:root {
    --primary-font: 'Roboto', sans-serif; /* Primær font */
    --primary-color: white; /* Primær farve */
    --secondary-color: rgba(0, 0, 0, 0.5); /* Sekundær farve til baggrunde */
    --footer-bg: rgba(0, 0, 0, 0.8); /* Baggrundsfarve til footer */
    --header-height: 100px; /* Højde på header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--primary-font); /* Anvend primær font */
}

body {
    min-height: 100vh; /* Minimum højde på body */
    margin: 0;
    padding: 0;
    background-image: url(/img/hvorfor-zerobuzz/background-hvorfor-zerobuzz.webp); /* Baggrundsbillede */
    background-size: cover; /* Sikrer at billedet dækker hele baggrunden */
    background-repeat: no-repeat; /* Forhindrer gentagelse af billedet */
    background-position: center; /* Centrerer billedet */
    color: var(--primary-color); /* Sikrer læsbar tekstfarve */
}

/* Navigationsbar start */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color); /* Sekundær baggrundsfarve */
    z-index: 10; /* Sikrer at header er øverst */
}

.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); /* Maksimal højde på navbar */
    padding: 0 20px; /* Indvendig margin */
}

nav ul {
    width: 100%;
    list-style: none; /* Fjern punkttegn */
    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; /* Fjern understregning */
    display: flex;
    align-items: center;
    color: var(--primary-color); /* Primær tekstfarve */
    padding: 0 2rem;
    font-size: 1.5rem;
}

.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: rgba(0, 0, 0, 0.8);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 5rem;
}

.dropdown-content a {
    color: white;
    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;
}

/* Navigation slut */

/* Hovedindhold */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - var(--header-height) - 40px); /* Juster for at fylde viewport minus header og footer */
}

main h1 {
    font-size: 2.5rem;
    margin-top: var(--header-height);
    background: rgba(0, 0, 0, 0.5); /* Tilføj baggrund til h1 for læsbarhed */
    padding: 1rem;
    border-radius: 10px;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main p {
    max-width: 800px;
    margin: 20px;
    background: rgba(0, 0, 0, 0.5); /* Tilføj baggrund til p for læsbarhed */
    padding: 1rem;
    border-radius: 10px;
    font-size: 2rem;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: white;
    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;
}

/* Responsive styles */
@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;
        margin-bottom: 1rem;
    }

    main h1 {
        font-size: 1rem;
        padding: 0.5rem;
    }

    article p {
        padding: 0.3rem;
        font-size: 1rem;
        line-height: 2rem;
    }

    .footer-social-section {
        flex-direction: column;
        gap: 10px;
    }

    .social-icon {
        font-size: 1.5rem;
    }

    .footer-bottom {
        font-size: 0.7em;
    }
}
