.navbar {
    background-color: var(--basecol-10);
    padding: 0;
    box-shadow: var(--light-shadow);
}

@media (min-width: 992px) {
    #nav-center-align {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    #nav-right-align {
        margin-right: 0.75rem;
    }
}

.dropdown:hover>.dropdown-menu,
.dropend:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
    right: 100%;
    left: auto;
}

.dropdown-menu>li:hover>.dropdown-submenu {
    display: block;
}

.dropdown>ul,
.dropend>ul {
    list-style-type: none;
}

#store-nav-brand,
.nav-link,
.dropdown-menu a,
.extended-drop-menu a {
    color: hsl(0, 0%, 100%);
}

.nav-item a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    text-align: center;
}

.dropdown-menu>.nav-item>.nav-link {
    padding: 0.5rem 1rem;
}

.nav-link:visited,
.nav-link:focus {
    color: hsl(0, 0%, 100%);
}

.nav-item a:hover {
    color: var(--accent-color);
}

.navbar-nav li:hover .dropdown-menu {
    margin-top: 0px;
    visibility: visible;
    border-top: 4px solid rgba(207, 30, 98, 255);
}

/* Only affect mobile (collapsed mode) */
@media (max-width: 991.98px) {

    .navbar {
        z-index: 1000;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        background-color: hsl(var(--base-col-hue), var(--base-col-sat), 12.5%);
        z-index: 999;

        box-shadow: var(--shadow);
    }
}

/* Slide-in animation for dropdown menu's in Navbar */

@media (min-width: 992px) {
    .animate {
        animation-duration: 0.4s;
        -webkit-animation-duration: 0.4s;
        animation-fill-mode: both;
        -webkit-animation-fill-mode: both;
    }
}

@media (min-width: 992px) and (max-width: 1040px) {
    .nav-link {
        font-size: 0.95rem;
    }
}

@keyframes slideIn {
    0% {
        transform: translateY(5rem);
        opacity: 0;
    }

    100% {
        transform: translateY(0rem);
        opacity: 1;
    }

    0% {
        transform: translateY(5rem);
        opacity: 0;
    }
}

@-webkit-keyframes slideIn {
    0% {
        -webkit-transform: transform;
        -webkit-opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        -webkit-opacity: 1;
    }

    0% {
        -webkit-transform: translateY(5rem);
        -webkit-opacity: 0;
    }
}

@keyframes slideRtoL {
    0% {
        transform: translateX(5rem);
        opacity: 0;
    }

    100% {
        transform: translateX(0rem);
        opacity: 1;
    }

    0% {
        transform: translateX(5rem);
        opacity: 0;
    }
}

@-webkit-keyframes slideRtoL {
    0% {
        -webkit-transform: transform;
        -webkit-opacity: 0;
    }

    100% {
        -webkit-transform: translateX(0);
        -webkit-opacity: 1;
    }

    0% {
        -webkit-transform: translateX(5rem);
        -webkit-opacity: 0;
    }
}

.slideIn {
    -webkit-animation-name: slideIn;
    animation-name: slideIn;
}

.slideRtoL {
    -webkit-animation-name: slideRtoL;
    animation-name: slideRtoL;
}

.navbar .container-fluid {
    min-height: 50px;
    padding: 0;
    display: flex;
}

.navbar-toggler {
    flex: 1;
    width: 100%;
    border: 0;
    border-radius: 0;
    background-color: var(--basecol-10);
    min-height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    color: hsl(0, 0%, 100%);
    display: block;
    margin: 0 auto;
    border-width: 0;
    border-radius: 0;
    text-align: center;
}

.button-label {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Mode Toggler */
.checkbox {
    opacity: 0;
    position: absolute;
}

.checkbox-label {
    background-color: #111;
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fa-moon {
    color: #f1c40f;
}

.fa-sun {
    color: #f39c12;
}

.checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

.checkbox:checked+.checkbox-label .ball {
    transform: translateX(24px);
}