/* ===================== */
/*    Header and logo    */
/* ===================== */
header {
    align-items: center;
    background-color: var(--nav-bg-c-alt);
    box-shadow: 
        rgba(0, 0, 0, 0.16) 6px 0px 6px, 
        rgba(0, 0, 0, 0.23) 6px 0px 6px;
    color: var(--link-c);
    display: flex;
    flex-direction: row;
    grid-area: header;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
    z-index: 999;
}

#logo {
    margin-left: 2em;
}



/* ======================= */
/*    Mobile navigation    */
/* ======================= */
.overlay {
    background-color: var(--nav-bg-c-alt-opq);
    height: 100%;
    left: 0;
    overflow-x: hidden;
    position: fixed;
    top: 0;
    transition: 0.5s;
    width: 0;
    z-index: 1000;
}
.overlay a {
    color: #818181;
    background-color: white;
    border-radius: var(--bord-rad);
    box-shadow: 
        rgba(0, 0, 0, 0.16) 0px 3px 6px, 
        rgba(0, 0, 0, 0.23) 0px 3px 6px;
    display: block;
    font-size: 36px;
    margin: 0.5em;
    padding: 8px;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}  
.overlay a:hover, .overlay a:focus {
    box-shadow:
        rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, 
        rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}
.overlay .closebtn {
    font-size: 50px;
    margin-right: 0.25em;
    position: absolute;
    right: 0;
    top: 20px;
}

.overlay-content {
    position: relative;
    text-align: left;
    top: 25%;
    width: 100%;
}

.mobile-nav-label {
    align-items: center;
    color: var(--link-c);
    display: inline-flex;
    font-size: 80%;
    margin-bottom: auto;
    margin-top: auto;
    min-height: 2.5em;
}



/* ================ */
/*    Navigation    */
/* ================ */
#idNav {
    display: none;
}

.nav-toggle-label {
    align-items: center;
    align-self: flex-end;
    background-color: transparent;
    border: none;
    display: flex;
    height: 100%;
    margin-left: auto;
    margin-right: 1em;
}

a:has(.navicon) {
    text-align: center;
}
.navicon {
    display: inline-block;
}
.navicon img {
    width: 3rem;
}

.navlabel {
    align-items: center;
    color: var(--link-c);
    display: inline-flex;
    font-size: 100%;
    margin-bottom: auto;
    margin-top: auto;
    min-height: 2.5em;
    text-align: start;
}
