:root {
    --primary-font: 'Roboto', sans-serif;
    --primary-color: white;
    --secondary-color: rgba(0, 0, 0, 0.5);
    --footer-bg: rgba(0, 0, 0, 0.8);
    --header-height: 100px;
}

/* Grundlæggende indstillinger for alle elementer */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--primary-font);
}

/* Kroppens grundindstillinger */
body {
    min-height: 100vh;
 
}

/* Navigationsbar start */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    z-index: 10;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    max-height: var(--header-height);
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li {
    height: 5rem;
}

nav li:first-child {
    margin-right: auto;
    max-width: 100px;
    height: auto;
}

nav a {
    height: 5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--primary-color);
    padding: 0 2rem;
    font-size: 1.5em;
}

.navimg {
    width: 10rem;
    padding-left: 50px;
}

/* Burger-menu til mobilvisning */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.burger-menu span {
    height: 3px;
    width: 25px;
    background: var(--primary-color);
    margin: 4px;
    border-radius: 2px;
}

/* Dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: var(--primary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobil dropdown-stilarter */
@media (max-width: 768px) {
    .dropdown-content {
        position: relative;
        background-color: var(--secondary-color);
        box-shadow: none;
        display: none;
    }

    .dropdown.show .dropdown-content {
        display: block;
    }
}

/* Gradient baggrund */
.gradient-background {
    min-height: 100vh; /* Fuld højde */
    width: 100%; /* Fuld bredde */
    display: flex; /* Flexbox */
    align-items: center; /* Centrer indhold lodret */
    justify-content: center; /* Centrer indhold vandret */
    background: linear-gradient(to top, yellow, black); /* Eksempel på baggrund */
    padding: 20px; /* Polstring */
}

/* Billedcontainer */
.img-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Produktbillede */
.produkt-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Overskrifter */
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

h2 {
    font-size: 2rem;
    margin-top: 20px;
    color: white;
}

h3 {
    font-size: 2rem;
    color: white;
}

/* Artikelindhold */
article {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    padding-right: 200px;
}

p {
    font-size: 1rem;
    margin: 10px 0;
    text-align: justify;
    line-height: 1.5;
    color: white;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--primary-color);
    padding: 20px 0;
    text-align: center;
}

.footer-logo-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    width: 100px;
}

.footer-social-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    font-size: 2rem;
    color: antiquewhite;
}

.footer-bottom {
    font-size: 0.8em;
    display: flex;
    justify-content: center;
}

/* Flexbox til desktop */
.gradient-background {
    flex-direction: row; /* Rækkes layout til desktop */
}

/* Responsive stilarter */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: var(--header-height);
        left: 0;
        padding: 0;
        z-index: 100;
    }

    nav ul.show {
        display: flex;
    }

    nav li {
        margin: 1rem 0;
    }

    nav a {
        padding: 0.5rem 1rem;
        font-size: 1em;
    }

    .navimg {
        display: none;
    }

    .gradient-background {
        padding: 10px;
        flex-direction: column; /* Kolonnelayout til mobil */
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    article {
        padding: 10px;
    }

    p {
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .footer-social-section {
        flex-direction: column;
        gap: 10px;
    }

    .social-icon {
        font-size: 1.5rem;
    }

    .footer-bottom {
        font-size: 0.7em;
    }
}

@media (max-width: 480px) {
    .navimg {
        display: block;
        width: 7rem;
        padding-left: 20px;
    }

    nav a {
        font-size: 0.9em;
        padding: 0.5rem;
    }

    .burger-menu span {
        width: 20px;
    }

    h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.2rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }


    p {
        font-size: 1.1rem;
    }
}

/* Dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: var(--primary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile dropdown-stilarter */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: var(--header-height);
        left: 0;
        padding: 0;
        z-index: 100;
    }

    nav ul.show {
        display: flex;
    }

    nav li {
        margin: 1rem 0;
    }

    nav a {
        padding: 0.5rem 1rem;
        font-size: 1em;
    }

    .navimg {
        display: none;
    }

    .dropdown-content {
        position: relative;
        background-color: var(--secondary-color);
        box-shadow: none;
        display: none;
        width: 100%; /* Gør dropdown fuld bredde i mobilvisning */
    }

    .dropdown.show .dropdown-content {
        display: block;
    }
}
