#mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
}

#mobile-menu-toggle input
{
    display: flex;
    width: 40px;
    height: 32px;
    position: absolute;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
}

#mobile-menu-toggle span
{
    display: flex;
    width: 29px;
    height: 2px;
    margin-bottom: 5px;
    position: relative;
    background: #ffffff;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 5px 0px;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
    background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
    opacity 0.55s ease;
}

#mobile-menu-toggle span:first-child
{
    transform-origin: 0% 0%;
}

#mobile-menu-toggle span:nth-last-child(2)
{
    transform-origin: 0% 100%;
}

#mobile-menu-toggle input:checked ~ span
{
    opacity: 1;
    transform: rotate(45deg) translate(-3px, -1px);
}
#mobile-menu-toggle input:checked ~ span:nth-last-child(3)
{
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

#mobile-menu-toggle input:checked ~ span:nth-last-child(2)
{
    transform: rotate(-45deg) translate(0, -1px);
}

#menu {
    position: absolute;
    top: 80px;
    width: 250px;
    height: 400px;
    box-shadow: 0 0 10px #85888C;
    margin-top: -50px;
    margin-right: 0;
    margin-left: -100px;
    margin-bottom: 0;
    padding-top: 30px;
    background-color: #DFD0BB;
    -webkit-font-smoothing: antialiased;
    transform-origin: -300px 0%;
    transform: translate(250px, 0);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    display: none;
}

#mobile-menu li a {
    /*padding: 10px 0;*/
    /*transition-delay: 2s;*/
    background-color: #5d564f;
    border-radius: 5px;
}

#mobile-menu-toggle input:checked ~ ul {
    right: 0;
}

#mobile-menu {
    display: flex;
}

/*#header:has(#mobile-menu-toggle input:checked) {*/
/*    position: fixed;*/
/*    !*margin-top: -50px;*!*/
/*}*/

#header:has(#mobile-menu-toggle input:checked) + #main-container{
    /*margin-top: 50px;*/
}

#mobile-menu .text-theme {
    border: 2px solid white;
    border-radius: 5px;
    padding: 10px;
}

#mobile-menu .text-theme li:not(:last-child) {
    padding-bottom: 5px;
}

#mobile-menu ul.main-menu li:not(:first-child) {
    margin-top: -15px;
}

.box_theme {
    font-size: 10px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 0;
}

@media screen and (max-width: 991px) {
    #mobile-menu {
        position: fixed;
        top: 50px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #DFD0BB;
        transition: right 0.3s;
        z-index: 1000;
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px 20px;
        box-shadow: 0px 0px 10px 0px rgba(34, 60, 80, 0.3);
    }

    #mobile-menu.active {
        right: 0;
    }

    #mobile-menu a {
        padding: 10px;
    }
}