/************************** Mobile First ! **************************/

/************************** THEMING **************************/
:root {
    --primary-color: #cc0808;
    --on-primary-color: #ffffff;
    --on-primary-selected: #410000;
    --secondary-color: #006a6a;
    --on-secondary-color: #ffffff;
    --tertiary-color: #ba005f;
    --on-tertiary-color: #ffffff;
    --font-color: #001f25;
    --bg-color: #fff;
}

[data-theme="dark"] {
    --primary-color: #ffb4a9;
    --on-primary-color: #690001;
    --secondary-color: #33dbdb;
    --on-secondary-color: #003737;
    --tertiary-color: #ffb1c6;
    --on-tertiary-color: #650031;
    --font-color: #a6eeff;
    --bg-color: #001f25;
}

/************************** GENERAL **************************/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    background: var(-bg-color);
}

img {
    max-width: 100%;
    display: block;
}

a { 
    text-decoration: none;
}

header, #wrapper, footer {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
}

/**************************************************** HEADER ****************************************************/
header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0px;
    padding: 20px 50px;
    line-height: 23px;
    font-size: 15px;
    background: var(--primary-color);
    color: var(--on-primary-color);
}

#logo {
    order: -1;
    flex: 1;
}

#main_nav {
    order: 1;
}

#nav_hamburger {
    order: 2;
}

/************************** NAVIGATION **************************/

#main_nav {
    position: relative;
}

#nav_toggle {
    display: none;
}

#nav_toggle ~ #navbar_links {
    visibility: hidden;
    height: 0;
    transition: height 1s linear;
    overflow: hidden;
}

#nav_toggle:checked ~ #navbar_links {
    visibility: visible;
    height: 90vw;
}

#nav_toggle ~ #nav_hamburger::before {
    font-family: 'Material Symbols Outlined';
    content: "menu";
}

#nav_toggle:checked ~ #nav_hamburger::before {
    content: "close";
}

#navbar_links {
    position: absolute;
    top: 100%;
    left: calc(-90vw + 200%);
    width: 90vw;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    background: color-mix(in srgb, var(--bg-color), transparent 20%);
}

#navbar_links li {
    list-style: none;
    padding: 20px 0;
}

#wrapper, footer {
    flex-direction: column;
}

#navbar_links li a {
    font-weight: 600;
    color: var(--primary-color);
    padding: 10px 5%;
}

#navbar_links li.active a {
    color: var(--secondary-color);
}

#wrapper {
    margin-top: 100px;
}

/**************************************************** BIGGER SCREENS ****************************************************/
@media (min-width: 992px) {
    #nav_hamburger {
        display: none;
    }
    
    #main_nav {
        display: block;
        flex: 2;
    }
    
    #nav_toggle ~ #navbar_links {
        visibility: visible;
        position: relative;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        text-align: center;
        border-top: 0px;
        border-bottom: 0px;
        background: none;
        height: auto;
    }
    
    #nav_toggle:checked ~ #navbar_links {
        height: auto;
    }
    
    #navbar_links li {
        display: block;
        width: auto;
        padding: 0 20px;
    }
    
    #navbar_links li a {
        color: var(--on-primary-color);
        padding: 0px;
    }
    
    #navbar_links li.active a {
        color: var(--on-primary-selected);
    }

    #wrapper, footer {
        flex-direction: row;
    }
    
    #wrapper {
        width: 90%;
        margin: 100px auto 0;
    }
}