/* Top navigation with hamburger menu */

/*-------------------------------------------------------------------------------------------------*/
/* Mobile navigation container */
/*-------------------------------------------------------------------------------------------------*/
#top-nav-mobile {
    position: absolute;
    top: 0;
    right: 12px;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/*-------------------------------------------------------------------------------------------------*/
/* Navigation menu toggle */
/*-------------------------------------------------------------------------------------------------*/
#top-nav-mobile .hamburger-menu-icon {
    position: relative;
    top: auto;
    right: auto;
    z-index: 4;
    width: 50px;
    height: 50px;
    border-radius: 1rem;
    color: white;
    background-color: rgba(20, 30, 50, 0.5);
    cursor: pointer;
    text-align: center;
    line-height: 50px;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

#top-nav-mobile .hamburger-menu-icon:hover {
    transform: scale(1.1);
}

/*-------------------------------------------------------------------------------------------------*/
/* Navigation list */
/*-------------------------------------------------------------------------------------------------*/
#top-nav-mobile > ul {
    position: fixed;
    top: 0;
    right: -250px;
    z-index: 2200;
    width: 250px;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style-type: none;
    scrollbar-width: none;
    background-color: rgba(10, 20, 30, 0.5);
    transition: right 0.5s ease;
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
}

#top-nav-mobile > ul::-webkit-scrollbar {
    display: none;
}

#top-nav-mobile > ul.open {
    right: 0;
}

.toppest-li-needs-margin-to-top {
    margin-top: 160px;
}

/*-------------------------------------------------------------------------------------------------*/
/* Navigation list items */
/*-------------------------------------------------------------------------------------------------*/
#top-nav-mobile > ul > li > a {
    display: block;
    width: 100%;
    height: 50px;
    margin-left: 2rem;
    margin-bottom: 1rem;
    border-radius: 2rem;
    color: rgb(234, 6, 200);
    background-color: rgba(20, 30, 50, 0.5);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition:
        padding-left 0.2s ease,
        background-color 0.2s ease;
}

#top-nav-mobile > ul > li > a:hover,
#top-nav-mobile > ul > li > a.is-active {
    padding-left: 1rem;
    background-color: var(--nav-hover);
}

#top-nav-mobile > ul > li > a > span {
    width: 100%;
    height: 100%;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 3rem;
    text-decoration: none;
}

/*-------------------------------------------------------------------------------------------------*/
/* Small screens */
/*-------------------------------------------------------------------------------------------------*/

@media screen and (max-width: 768px) {

    #top-nav-mobile {
        right: 8px;
    }

    #top-nav-mobile .hamburger-menu-icon {
        width: 46px;
        height: 46px;

        line-height: 46px;
    }

    .toppest-li-needs-margin-to-top {
        margin-top: 130px;
    }
}

/*-------------------------------------------------------------------------------------------------*/
/* Very small screens */
/*-------------------------------------------------------------------------------------------------*/

@media screen and (max-width: 480px) {

    #top-nav-mobile {
        right: 6px;
    }

    #top-nav-mobile .hamburger-menu-icon {
        width: 44px;
        height: 44px;

        line-height: 44px;
    }

    .toppest-li-needs-margin-to-top {
        margin-top: 122px;
    }
}