header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid var(--comp);
    position: sticky;
    top: 0;
    background-color: var(--light);
    z-index: 2;
}
header h1 {
    display: none;
}
header nav {
    font-size: 1.2rem;
}

nav a {
    text-decoration: none;
    display: block;
    padding: .5rem 0;
    transition: .3s;
    color: var(--main);
}
nav .current a,
nav .current a:hover {
    opacity: .5;
    color: var(--mid);
}
header nav a:hover {
    color: var(--comp);
}
header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    text-align: center;
    height: 100%;
    align-items: center;
}
header nav li {
    flex: 1;
}
header nav a::before {
    font-family: var(--fa-style-family, "Font Awesome 6 Free");
    font-weight: var(--fa-style, 900);
    --fa: "\e589";
    content: var(--fa);
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: var(--fa-display, inline-block);
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
    margin-right: 1rem;
    transition: .3s;
}
#menubutton,
[for="menubutton"] {
    display: none;
}
header nav a:hover::before {
    color: var(--comp);
    rotate: -90deg;
}
nav .current a::before {
    rotate: -90deg;
}
nav .current a:hover::before {
    color: var(--mid);
    rotate: -90deg;
}
.fa::before {
    font-size: 1.1rem;
    margin-right: 1rem;
    color: var(--main);
}
.logoName {
    display: flex;
    align-items: center;
}
.logoText {
    font-size: 2rem;
    margin-left: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
}
.logoName a {
    color: var(--comp);
    text-decoration: none;
}
.logo {
    width: 5vw;
    height: 5vw;
    display: block;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, .5));
}
.logo img {
    width: 100%;
    height: 100%;
}
footer {
    background-color: var(--main);
    color: var(--light);
    display: flex;
    justify-content: space-around;
}
footer a {
    color: inherit;
    text-decoration: none;
}
footer .fa::before {
    color: var(--light);
}
@media only screen and (max-width: 1500px) {
    .logo {
        width: 7vw;
        height: 7vw;
    }
}
@media only screen and (max-width: 1200px) {
    .logo {
        width: 8vw;
        height: 8vw;
    }
}
@media only screen and (max-width: 1000px) {
    header {
        grid-template-columns: 1fr 2fr;
    }
    .logo {
        width: 10vw;
        height: 10vw;
    }
    .logoName {
        display: block;
    }
}
@media only screen and (max-width: 800px) {
    .logo {
        width: 12vw;
        height: 12vw;
    }
}
@media only screen and (max-width: 685px) {
    header {
        grid-template-columns: 1fr 3fr;
    }
}
@media only screen and (max-width: 650px) {
    header {
        grid-template-columns: 1fr;
    }
    [for="menubutton"] {
        background-image: url(../graphics/hamburgerOpen.png);
        background-repeat: no-repeat;
        cursor: pointer;
        display: block;
        height: 36px;
        position: absolute;
        right: 16px;
        text-decoration: none;
        top: 15px;
        width: 36px;
        z-index: 20;
    }
    #menubutton:checked+[for="menubutton"] {
        background-image: url(../graphics/hamburgerClose.png);
        height: 42px;
        left: unset;
        position: fixed;
        right: 60px;
        top: 20px;
        width: 41px;
    }
    nav {
        flex-direction: column;
        height: 0;
        overflow: hidden;
        padding: 0;
        transition: width .3s;
        width: 0;
    }
    #menubutton:checked+label+nav {
        background-color: var(--main);
        left: 0;
        min-height: 300vh;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: 15;
    }
    nav a {
        color: var(--light);
    }
    header nav a::before {
        content: "";
    }
    header nav li {
        padding: 1rem 0;
    }
    #menubutton:checked+label+nav>ul {
        display: block;
        margin-top: 3rem;
        padding-left: 1rem;        
    }
    #menubutton:checked+label+nav ul ul {
        background-color: var(--main);
        display: block!important;/*NECESSARY TO OVERRIDE SUPERFISH*/
        left: 0;
        margin-left: 0;
        padding-top: 0; 
        position: static;
        transform: none; 
        visibility: visible!important;/*NECESSARY TO OVERRIDE SUPERFISH*/
    }
@media only screen and (max-width: 600px) {
    .logo {
        width: 15vw;
        height: 15vw;
    }
}
@media only screen and (max-width: 500px) {
    .logo {
        width: 17vw;
        height: 17vw;
    }
}
@media only screen and (max-width: 540px) {
    footer {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        text-align: center;
    }
}
