#nav {
    background-color: var(--sky);
}

#nav .nav-link,
#nav .nav-link:hover,
#nav .nav-link:focus {
    color: var(--nav-link);
}

.coccinella {
    width: 40px;
    height: 40px;
    background: url('/images/favicon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
}

.hamburger {
    border: none;
    outline: none;
}

.hamburger span {
    width: 150%;
    float: left;
    height: 3px;
    background-color: var(--hamburger);
    margin-bottom: 5px;
}

.hamburger span:last-child {
    margin-bottom: 0;
}

/* Theme switch */

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.icon-sun {
    font-size: 20px;
}

.icon-moon {
    font-size: 18px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
    margin-top: 7px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 25px;
    transition: 0.4s;
}

.theme-switch .slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3.5px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.theme-switch input:checked + .slider {
    background-color: #333;
}

.theme-switch input:checked + .slider::before {
    transform: translateX(25px);
}

/* Full screen menu */

.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
    text-align: center;
    background-color: var(--sky);
}

.fullscreen-menu.active {
    display: flex;
}

.fullscreen-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fullscreen-menu li {
    margin: 20px 0;
}

.fullscreen-menu a:link,
.fullscreen-menu a:visited,
.fullscreen-menu a:hover,
.fullscreen-menu a:active {
    color: var(--nav-link);
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.close-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 24px;
    height: 24px;
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
    background-image: var(--menu-x);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Sub navigation */

#subnav {
    position: fixed;
    width: 100vw;
    top: 65px;
    min-height: 40px;
    background-color: var(--sky);
    z-index: 10;
    padding-top: 10px;
    padding-bottom: 10px;
}

#subnav .row > div {
    width: 100px;
    text-align: center;
}

#subnav .row > div.wide {
    width: 150px;
}

#subnav a:link,
#subnav a:visited,
#subnav a:hover,
#subnav a:active {
    color: var(--nav-link);
    text-decoration: none;
}

/* Footer */

#footer {
    position: relative;
    width: 100vw;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: var(--ground);
    color: var(--footer-text);
    text-align: center;
    z-index: 700;
}

#footer a:link,
#footer a:visited,
#footer a:hover,
#footer a:active {
    color: var(--footer-text);
    text-decoration: none;
}
