@font-face {
    font-family: "Glitch";
    src: url(../fonts/GlitchGoblin-2O87v.ttf);
}

@font-face {
    font-family: "Neon";
    src: url(../fonts/NeonSans.ttf);
}

/* Navbar CSS */

.navbar {
    background: rgb(22, 109, 31);
    opacity: 0.96;
    height: 60px;
    width: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: opacity 0.3s;
    box-shadow: 0px 5px 8px rgba(0, 255, 26, 0.2);
}

.navbar.sticky {
    display: flex;
}

.navbar_container {
    display: flex;
    justify-content: space-between;
    height: 60px;
    width: 100%;
    margin: 0 auto;
    padding: 0 25px 0 0;
}

.navbar_menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
    width: 100%;
    justify-content: space-around;
}

.navbar_item {
    height: 60px;
}

.vert_bar {
    background-color: rgb(40, 203, 56);
    width: 0.5px;
    height: 46px;
}

.logo_container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-left: 20px;
}

.navbar_logo {
    font-family: "Glitch";
    color: rgb(40, 203, 56);
    font-size: 1.8rem;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 3px 3px 6px rgba(40, 203, 56, 0.3);
    cursor: pointer;
}

.navbar_logo:hover {
    color: rgb(34, 171, 48);
    text-shadow: 2px 2px 6px rgba(40, 203, 56, 0.2);
    transition: all 0.15s ease-in-out;
}

.navbar_links {
    font-family: "Neon";
    color: rgb(40, 203, 56);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 100%;
    font-size: 1.3rem;
    padding: 0 50px;
}

.navbar_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}
.navbar_btn:hover {
    cursor: pointer;
}

.navbar_links:hover {
    color: rgb(27, 131, 37);
    transition: all 0.3s ease;
}


/* Navbar Mobile Responsiveness */

@media screen and (max-width: 960px) {
    .navbar {
        background: rgb(23, 41, 20);
        opacity: 1;
    }

    .navbar_container {
        display: flex;
        justify-content: space-between;
        height: 60px;
        width: 100%;
        z-index: 1;
        max-width: 1300px;
        padding: 0;
    }

    .navbar_menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        opacity: 0;
        transition: all 0.5s ease;
        height: 50vh;
        z-index: -1;
    }

    .navbar_menu.active {
        background-color: rgb(23, 41, 20);
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        height: 50vh;
        font-size: 1.5rem;
        z-index: 999;
    }

    .vert_bar {
        display: none;
    }

    .navbar_toggle .bar {
        width: 25px;
        height: 3px;
        margin: 6px auto;
        transition: all 0.5 ease-in-out;
        background: white;
    }

    .navbar_item {
        width: 100%;
    }

    .navbar_links {
        color: rgb(40, 203, 56);
        text-align: center;
        width: 100%;
        padding: 0rem;
        display: table;
    }

    #mobile-menu {
        position: absolute;
        top: 6px;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar_btn {
        padding-bottom: 0.6rem;
    }

    .navbar_links:hover {
        color: rgb(27, 131, 37);
        transition: all 0.3s ease;
    }    

    .navbar_toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}