*{
    margin: 0;
    padding: 0;
}

html{
    font-size: 12pt;
    font-family: --font-family;
} 

nav{

    height: 60px;
    background-color: var(--nav-bg);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.links-container{

    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav a{
    border-radius: 8px;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e8ecf5;
}

nav a:hover{
    background-color: var(--btn-color);
    color: var(--text-color);
}

.dropdown{
    position: relative;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.dropdown-toggle{
    background: transparent;
    border: none;
    color: #e8ecf5;
    font: inherit;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus-visible{
    background-color: var(--btn-color);
    outline: none;
}

.chevron{
    border: solid #ffff;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.dropdown:hover .chevron,
.dropdown:focus-within .chevron{
    transform: rotate(-135deg);
}

.dropdown-menu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--nav-bg);
    min-width: 210px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    z-index: 15;
}

.dropdown-menu a,
.dropdown-menu .dropdown-item{
    height: auto;
    padding: 12px 20px;

}

.dropdown-menu .placeholder{
    cursor: pointer;
    color: white;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu{
    display: flex;
}

nav .home-link{
    margin-right: auto;
}

nav svg{
    fill: withe;
}

#sidebar-active{
    display: none;
}

.open-sidebar-button, .close-sidebar-button{
    display: none;
}


@media(max-width: 630px){
    .links-container{
        flex-direction: column;
        align-items: flex-start;

        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 200px;

        background-color: var(--nav-bg);
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.70s ease-out;
    }
    
    nav a{
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }

    .dropdown{
        width: 100%;
        flex-direction: column;
    }

    .dropdown-toggle{
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-menu{
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
    }

    .open-sidebar-button, .close-sidebar-button{
        padding: 20px;
        display: block;
    }

    #sidebar-active:checked ~ .links-container{
        right: 0;
    }

    #sidebar-active:checked ~ #overlay{
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }

}

