:root {
    --navbar-bg-color: hsl(0, 0%, 15%);
    --navbar-text-color: hsl(0, 0%, 85%);
    --navbar-text-color-focus: white;
    --navbar-bg-contrast: hsl(0, 0%, 25%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

ul {
    padding-left: 0;
}


.closebtn i {
    font-size: 28px;
    position: absolute;
    right: 5px;
    top: 0;
}

#navbar {
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    height: 100%;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

.navbar-logo img {
    animation: zoomIn 1s forwards cubic-bezier(0.19, 1, 0.22, 1);
    width: 150px;
}

.home-link,
.navbar-link {
    color: var(--blue);
    transition: color 0.2s ease-in-out;
    text-decoration: none;
    display: flex;
    font-weight: 400;
    align-items: center;
    transition: background-color 0.2s ease-in-out,
        color 0.2s ease-in-out;
}

.home-link:focus,
.home-link:hover {
    color: var(--navbar-text-color-focus);
}

.navbar-link {
    justify-content: center;
    width: 100%;
    padding: 0.4em 0.8em;
    border-radius: 5px;
    font-weight: 500;
}

.navbar-toggle {
    cursor: pointer;
    border: none;
    background-color: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 4px;
    margin: 2px;
    transition: background-color 0.2s ease-in-out,
        transform 0.2s ease-in-out,
        opacity 0.2s ease-in-out;
    background-color: var(--blue);
    border-radius: 10px;
}


#navbar.opened .navbar-toggle .icon-bar:first-child,
#navbar.opened .navbar-toggle .icon-bar:last-child {
    position: absolute;
    margin: 0;
    width: 30px;
}

#navbar.opened .navbar-toggle .icon-bar:first-child {
    transform: rotate(45deg);
}

#navbar.opened .navbar-toggle .icon-bar:nth-child(2) {
    opacity: 0;
}

#navbar.opened .navbar-toggle .icon-bar:last-child {
    transform: rotate(-45deg);
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-50%);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

#navbar-menu {
    position: fixed;
    top: 90px;
    transition: opacity 0.2s ease-in-out,
        visibility 0.2s ease-in-out,
        left 0.2s ease-in-out,
        right 0.2s ease-in-out;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
}

#navbar-menu.sidebar,
#navbar-menu.sidebar.left {
    left: -1000px;
    right: 0;
}

#navbar-menu.sidebar.right {
    right: -1000px;
    left: 0;
}

#navbar-menu.detached,
#navbar-menu.attached {
    left: 0;
    right: 0;
}

#navbar.opened #navbar-menu {
    opacity: 1;
    visibility: visible;
}

#navbar.opened #navbar-menu.sidebar.left {
    left: 0;
}

#navbar.opened #navbar-menu.sidebar.right {
    right: 0;
}

.navbar-links {
    font-size: 16px;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#navbar.opened .navbar-links {
    max-height: none;
}

.sidebar .navbar-links {
    top: 0;
    bottom: 0;
}

.left.sidebar .navbar-links {
    left: 0;
    right: unset;
    box-shadow: 5px 20px 20px rgba(0, 0, 0, 0.3);
}

.right.sidebar .navbar-links {
    right: 0;
    left: unset;
    box-shadow: -5px 20px 20px rgba(0, 0, 0, 0.3);
}

.detached .navbar-links {
    left: 0;
    right: 0;
    margin: 1.4rem;
    border-radius: 5px;
}

#navbar.opened .detached .navbar-links {
    box-shadow: 5px 5px 10px #0008;
    background-color: #d1e2eb55;
    backdrop-filter: blur(15px);
    outline: 1px solid #033763;
    outline-offset: -5px;
}

.attached .navbar-links {
    left: 0;
    right: 0;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.3);
}

.navbar-item {
    margin: 0.4em;
}

.navbar-links .navbar-item:nth-child(1) .navbar-link {
    animation: slideInDown 1s forwards cubic-bezier(0.165, 0.84, 0.44, 1) .1s;
}

.navbar-links .navbar-item:nth-child(2) .navbar-link {
    animation: slideInDown 1s forwards cubic-bezier(0.165, 0.84, 0.44, 1) .2s;
}

.navbar-links .navbar-item:nth-child(3) .navbar-link {
    animation: slideInDown 1s forwards cubic-bezier(0.165, 0.84, 0.44, 1) .3s;
}

.navbar-links .navbar-item:nth-child(4) .navbar-link {
    animation: slideInDown 1s forwards cubic-bezier(0.165, 0.84, 0.44, 1) .4s;
}

.navbar-links .navbar-item:nth-child(5) .navbar-link {
    animation: slideInDown 1s forwards cubic-bezier(0.165, 0.84, 0.44, 1) .5s;
}

.navbar-links .navbar-item:nth-child(6) .navbar-link {
    animation: slideInDown 1s forwards cubic-bezier(0.165, 0.84, 0.44, 1) .6s;
}

@media screen and (min-width: 992px) {
    .navbar-toggle {
        display: none;
    }

    .navbar-logo img {
        width: initial;
    }


    #navbar #navbar-menu,
    #navbar.opened #navbar-menu {
        visibility: visible;
        opacity: 1;
        position: static;
        display: block;
        height: 100%;
    }

    #navbar .navbar-links,
    #navbar.opened .navbar-links {
        margin: 0;
        padding: 0;
        box-shadow: none;
        position: static;
        flex-direction: row;
        list-style-type: none;
        max-height: max-content;
        width: 100%;
        height: 100%;
    }

    #navbar .navbar-link:last-child {
        margin-right: 0;
    }
}

#options {
    display: flex;
    flex-direction: column;
}