@font-face {
    font-family: "Fredoka One";
    src: url("../files/fonts/FredokaOne.woff2") format("woff2"),
        url("../files/fonts/FredokaOne.woff") format("woff");
}

*,
*::before,
*::after {
    box-sizing: border-box;

}

:root {
    --bg: oklch(100% 0.00011 271.152);
    --navcolor: oklch(0.5313 0.0568 168.29);
    --hbcolor: oklch(44.387% 0.07801 164.243);
    --secondcolor: oklch(0.6692 0.1738 32.66);
    --secondcolorA: oklch(67.055% 0.17285 33.027 / 0.50);
    --navbg: oklch(100% 0.00011 271.152 /.3);
    --black: oklch(0% 0 0);

    font-family: "Fredoka One", Arial, sans-serif;
    line-height: 1.6em;
    background-color: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

header {
    width: 100%;
    height: 5rem;
    background-color: var(--navcolor);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0;
    padding-inline: 6.25rem;

    nav {
        ul {
            list-style: none;
            margin: 0;
            padding: 0;

        }
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;

    img {
        max-width: 3rem;
    }
}

.hamburger {
    display: none;
}

.nav-bar ul {
    display: flex;

    li a {
        display: block;
        color: var(--bg);
        font-size: 1.25rem;
        padding-block: .625rem;
        padding-inline: 1.563rem;
        border-radius: 1.563rem;
        transition: .2s;
        margin-block: 0;
        margin-inline: .313rem;
        text-decoration: none;
    }

    li a:hover,
    a.active {

        color: var(--bg);
        background-color: var(--navbg);
    }

    li a.active {

        color: var(--bg);
    }
}

main {
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.overlay-slider {
    display: flex;
    flex-direction: column;
    justify-content: center;

    position: absolute;
    width: 100%;
    height: calc(100% - 5rem);

    padding: 1rem;
    z-index: 9999;
    
    background-color: var(--secondcolorA);

    div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    input[type=checkbox] {
        display: none;
    }

    .label {
        display: inline-block;
        flex: 1;
        padding: 1rem;
        margin: 0.5rem;

        background-color: var(--bg);
        border: 5px solid var(--hbcolor);
        transition: background-color 0.1s ease-in-out;
        border-radius: 1rem;

        img {
            max-width: 5rem;
        }
    }

    input[type=checkbox]:checked+.label {
        background-color: var(--navcolor);
    }
}

.map-button {
    margin-inline: auto;
    margin-block-start: 1rem;

    font-size: 3em;
    background-color: var(--bg);
    border: 5px solid var(--hbcolor);
    border-radius: 1rem;

    min-width: 15rem;
    min-height: 5rem;

    max-width: 20rem;
    max-height: 5rem;

    &:active {
        background-color: var(--navcolor);
    }
}

.bg-map {
    display: flex;
    height: calc(100vh - 5rem);
}

.hidden {
    display: none;
}

footer {
    position: relative;
    display: flex;
    background-color: var(--navcolor);
    color: var(--bg);
    justify-content: center;
    padding-block-start:1rem;
}

.popup-trigger {
    color: var(--bg);
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
    margin-left: 0.5rem;
}

.popup-overlay {
    visibility: hidden;
    opacity: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: oklch(0% 0 0 / 0.7);
    z-index: 10005;

    transition: visibility 0.3s, opacity 0.3s;
}

.popup-overlay:target {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    background: var(--bg);
    color: oklch(20% 0 0);
    padding: 3rem;
    border-radius: 0.8rem;
    max-width: 90%;
    width: 50rem;
    position: relative;

    box-shadow: 0 0.5rem 1.5rem oklch(0% 0 0 / 0.5);
}

.close-button {
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    font-size: 3rem;
    text-decoration: none;
    color: oklch(20% 0 0);
    font-weight: normal;
    line-height: 1;
}

.close-button:hover {
    color: var(--navcolor);
}


@media (max-width: 900px) {
    header {
        padding-block: 0;
        padding-inline: 1.25rem;
    }

    .hamburger {
        display: block;
        cursor: pointer;

        .line {
            width: 1.875rem;
            height: .1875rem;
            background-color: var(--bg);
            margin-block: .375rem;
            margin-inline: 0;
            border-radius: .09375rem;
            /** height /2 */
        }
    }

    .nav-bar {
        height: 0rem;
        position: absolute;
        top: 5rem;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--hbcolor);
        transition: 0.5s;
        overflow: hidden;
        border-bottom-right-radius: 3rem;
        border-bottom-left-radius: 3rem;
        z-index: 10000;

    }

    .nav-bar.active {
        height: auto;
    }

    .nav-bar.active ul {
        opacity: 1;
    }

    .nav-bar ul {
        display: block;
        width: fit-content;
        margin-block-start: 2rem;
        margin-block-end: 0;
        margin-inline: auto;
        text-align: center;
        transition: 0.5s;
    }

    .nav-bar ul li a {
        margin-block-end: .75rem;
    }

}