@font-face {
    font-family: Hatton-local;
    src: url("./Assets/fonts/hatton-black.otf");
}
@font-face {
    font-family: Montserrat-local;
    src: url("./Assets/fonts/montserrat-italic.ttf");
}
:root {
    --primær: #111;
    --highlight: #333;
    --light-highlight: #555;
    --tekst-mørk  : #020202;
    --tekst-lys: #eee;
    --lenke : #048;
}

*:focus:not(:focus-visible) {
    outline: none;
}
*:focus-visible {
    outline: 2px solid var(--tekst-lys);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat-local', sans-serif, 'Hatton', bold;
    font-weight: 500;
    font-size: min(3.5vw, 1.6rem);
}

body {
    margin: 0;
    padding: 0;
}
h1,h2 {
    font: min(4.4vw, 3rem) 'Hatton-local', bold;
}
a {
    color: var(--lenke);
    text-decoration: none;
    
}
.top-bar {
    background-color: var(--primær);
    color: var(--tekst-lys);
    padding: min(1.5vw,10px);

    z-index: 9999999999;

    position: fixed;
    width: 100%;
    max-height: 120px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
}
.navbar {
    display: flex;
    color: var(--tekst-lys);
    text-decoration: none;
    padding: 0;

}
.navbar div {

    text-decoration: none;
    cursor: pointer;
}
.navbar div:hover {
    background-color: var(--highlight);
    color: var(--tekst-lys);
    text-decoration: none;
}
.navbar div a {
    color: var(--tekst-lys);
    text-decoration: none;
    padding: min(1.5vw,10px);
}
.logo a img {
    height: min(16vw, 128px);
    width: min(16vw, 128px);
}
.section {
    padding-top: calc(120px + min(1.5vw,10px));
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(120px + min(1.5vw,10px));
}
form, form fieldset {
    border: none;
    padding: 10px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
form fieldset {
    gap: 15px;
}
form fieldset legend {
    text-align: center;
    font-weight: 600;
}

#melding {
    width: 100%;
    height: 200px;
    resize: unset;
}
.some {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
}
.some a{
    padding: 10px;
    color: #000;
}
.slogo {
    height: min(4vw, 32px);
    width: min(4vw, 32px);
}
.produkter {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(33.33% - 20px), 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 80%;
    justify-content: center;
}
.produkt {
    background-color: var(--highlight);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: var(--tekst-lys);
    transition: transform 0.3s ease-in-out;
}

.produkt:hover {
    transform: scale(1.05);
    background-color: var(--light-highlight);
}

.produkt img {
    width: 100%;
    max-height: calc(400px - 150px);
    object-fit: cover;
    border-radius: 5px;
}
.prist{
    font-size: minmax(max(1.5vh, 1.5vw), 1em);
    font-weight: 500;
    margin-top: 10px;

}
.litent {
    font-size: minmax(max(1.5vh, 1.5vw), 1em);
    font-weight: 500;
    margin-top: 10px;
}

@media (max-width: 1200px) {
    .produkter {
        /* Adjust for smaller screens, ensuring at most two items in one row */
        grid-template-columns: repeat(auto-fill, minmax(calc(50% - 20px), 1fr));
    }
}

@media (max-width: 768px) {
    .produkter {
        /* Adjust for smaller screens, ensuring at most one item in one row */
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}