@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@200;300;400;500;700&family=Roboto:wght@400;500&display=swap');

a {
    text-decoration: none;
}

/* Navigation bar */

.navbar {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    background-color: black;
    display: flex;
    flex-direction: column;
    min-height: 44px;
}

.navbar-hamburger {
    width: 34px;
    height: 34px;
    margin: 5px 12px 5px 5px;
}

nav div ul {
    display: inline-block;
    margin: 0;
    padding: 0;
}

nav div ul li {
    list-style-type: none;
    margin: 7px 16px;
    text-align: right;
}

.navbar-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin: 5px 5px 5px 25px;
}

.navbar-logo {
    width: 26px;
    height: 26px;
}

.navbar-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

nav div ul li a {
    font-family: 'Noto Sans', sans-serif;
    color: white;
    font-weight: 400;
    font-size: 1em;
    text-decoration: none;
}

/* JavaScript-controlled styles */

.navbar-hidden-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.navbar-links-toggle {
    max-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.navbar-anchor {
    display: inline-block;
    transform: translateX(-100vw);
}

@media(min-width: 896px) {

    .navbar-logo {
        width: 30px;
        height: 30px;
    }

    nav div ul li a {
        font-size: 1.15em;
    }

    .navbar {
        flex-direction: row;
        align-items: center;
    }

    nav div ul {
        display: flex;
        flex-direction: row;
    }

    .navbar-hamburger {
        display: none;
    }

    .navbar-display {
        width: 25%;
    }

    .navbar-anchor {
        transform: translateX(0);
        display: inline-block;
    }

    .navbar-hidden-mobile {
        width: 75%;
        height: 100%;
        max-height: none;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .navbar-links {
        margin: 5px 15px;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
    }

    .navbar-links:last-of-type {
        margin: 5px 40px 5px 15px;
    }

    .navbar-hover {
        display: block;
        position: relative;
        padding: 0.1em 0;
    }

    .navbar-hover::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0.1em;
        background-color: orangered;
        opacity: 0;
        transition: opacity 300ms, transform 300ms;
    }

    .navbar-hover:hover::after,
    .navbar-hover:focus::after {
        opacity: 1;
    }
}

@media(min-width: 1280px) {

    .navbar-logo {
        width: 34px;
        height: 34px;
    }

    nav div ul li a {
        font-size: 1.15em;
    }
}

@media(min-width: 1920px) {

    nav div ul li a {
        font-size: 1.3em;
    }

    .navbar-hover::after {
        height: 0.08em;
    }
}