footer.footer-pwa {
    position: sticky;
    bottom: 0;
    z-index: 999;
    left: 0;
    /*background-color: var(--white);*/
}

header.header-pwa {
    height: 100%;
    z-index: 1000;
}

.container-menu-pwa {
    height: 85px;
    overflow: hidden;
}

.top-header {
    background-color: var(--white);
}

.hamburgerMenu {
    visibility: hidden;
    width: 85px;
    height: 85px;
    /*margin-top: -10px;*/
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--primary);
    transition: 0.5s;
    cursor: pointer;
}

.container-menu-pwa a {
    color: var(--text-body);
    background-color: var(--white);
}

#togglePWAMenu ~ .container-menu-pwa a > svg {
    fill: var(--black);
}

@media (min-width: 992px) {

    footer.footer-pwa {
        position: fixed;
        bottom: 10px;
        z-index: 999;

        width: 92px;
        left: 10px;
        margin-bottom: 10px;
        overflow: visible;
    }


    .container-menu-pwa {
        width: 0;
        border: none !important;
        box-shadow: none !important;
    }

    .hamburgerMenu {
        visibility: visible;
        position: absolute;
        left: 101%;
        transform: translate(-100%);
        z-index: 100;
    }

    #togglePWAMenu:checked ~ .container-menu-pwa {
        visibility: visible;
    }

    #togglePWAMenu ~ .container-menu-pwa a {
        position: absolute;
        width: 80px;
        height: 80px;
    }

    #togglePWAMenu ~ .container-menu-pwa a > svg {
        width: 40px;
        height: 40px;
        fill: var(--white);
        /*background-color: var(--primary);*/
        padding: 5px;
        border-radius: 3px;
    }
    #togglePWAMenu ~ .container-menu-pwa a .loans-icon{
        fill: var(--black) !important;
    }

    #togglePWAMenu:not(:checked) ~ .container-menu-pwa a {
        background-color: transparent;
    }

    #togglePWAMenu:checked ~ .container-menu-pwa a:first-child {
        animation: animHome 0.5s forwards;
    }

    @keyframes animHome {
        0% {
            top: 0;
        }
        100% {
            top: -420px;
        }
    }

    #togglePWAMenu:not(:checked) ~ .container-menu-pwa a:first-child {
        animation: animHomeNO 0.5s forwards;
        top: -420px;
        animation-delay: 0.8s;
    }

    @keyframes animHomeNO {
        0% {
            top: -420px;
        }
        100% {
            top: 0;
        }
    }

    #togglePWAMenu:checked ~ .container-menu-pwa a:nth-child(2) {
        animation: animEstimate 0.5s forwards;
        animation-delay: 0.2s;
    }

    @keyframes animEstimate {
        0% {
            top: 0;
        }
        100% {
            top: -340px;
        }
    }

    #togglePWAMenu:not(:checked) ~ .container-menu-pwa a:nth-child(2) {
        animation: animEstimateNo 0.5s forwards;
        top: -340px;
        animation-delay: 0.6s;
    }

    @keyframes animEstimateNo {
        0% {
            top: -340px;
        }
        100% {
            top: 0;
        }
    }

    #togglePWAMenu:checked ~ .container-menu-pwa a:nth-child(3) {
        animation: animLoan 0.5s forwards;
        animation-delay: 0.4s;
    }

    @keyframes animLoan {
        0% {
            top: 0;
        }
        100% {
            top: -260px;
        }
    }

    #togglePWAMenu:not(:checked) ~ .container-menu-pwa a:nth-child(3) {
        animation: animLoanNo 0.5s forwards;
        top: -260px;
        animation-delay: 0.4s;
    }

    @keyframes animLoanNo {
        0% {
            top: -260px;
        }
        100% {
            top: 0;
        }
    }

    #togglePWAMenu:checked ~ .container-menu-pwa a:nth-child(4) {
        animation: animTools 0.5s forwards;
        animation-delay: 0.6s;
    }

    @keyframes animTools {
        0% {
            top: 0;
        }
        100% {
            top: -180px;
        }
    }

    #togglePWAMenu:not(:checked) ~ .container-menu-pwa a:nth-child(4) {
        animation: animToolsNo 0.5s forwards;
        top: -180px;
        animation-delay: 0.2s;
    }

    @keyframes animToolsNo {
        0% {
            top: -180px;
        }
        100% {
            top: 0;
        }
    }

    #togglePWAMenu:checked ~ .container-menu-pwa a:nth-child(5) {
        animation: animUser 0.5s forwards;
        animation-delay: 0.8s;
    }

    @keyframes animUser {
        0% {
            top: 0;
        }
        100% {
            top: -100px;
        }
    }

    #togglePWAMenu:not(:checked) ~ .container-menu-pwa a:nth-child(5) {
        animation: animUserNo 0.5s forwards;
    }

    @keyframes animUserNo {
        0% {
            top: -100px;
        }
        100% {
            top: 0;
        }
    }
}

.close-menu {
    display: none
}

#togglePWAMenu:checked ~ label > .close-menu {
    display: block;
}

#togglePWAMenu:checked ~ label {
    background-color: var(--primary);
}

#togglePWAMenu:checked ~ label > .open-menu {
    display: none;
}

#togglePWAMenu ~ label > svg {
    transition: 0.5s;
}

#togglePWAMenu ~ label > svg:hover {
    transform: scale(1.1);
}


/*menu*/
.circle-wrapper {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px dashed var(--cool-red);
    animation: spinStoryBorder 4s ease-in-out infinite;
}

@keyframes spinStoryBorder {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(0deg);
    }
}


.menu-header {
    color: var(--primary);
    left: 100%;
    box-shadow: 0 0 4px var(--black);
}

.menu-header div {
    cursor: pointer;
}

#toggle-menu-header:checked ~ label > .menu-header {
    left: 0;
    transition: 0.5s;
}

#toggle-menu-header:not(:checked) ~ label > .menu-header {
    left: 105%;
    transition: 0.5s;
}

.container-stories {
    visibility: hidden;
}

label:has(>#toggleStory:checked) ~ .container-stories {
    animation: showEffectOpenStory 0.5s forwards;
}

.container-stories:has(label>#closeStory:checked) {
    animation: showEffectCloseStory 0.5s forwards;
}

@keyframes showEffectOpenStory {
    0% {
        visibility: hidden;
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        visibility: visible;
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes showEffectCloseStory {
    0% {
        visibility: visible;
        opacity: 1;
        transform: scale(1);
    }
    100% {
        visibility: hidden;
        opacity: 0;
        transform: scale(0.86);
    }
}

.pageName {
    font-size: 17px;
    font-family: PeydaFaNum;
}

@media (max-width: 992px) {

    .outer-container {
        height: calc(100vh - 130px);
        overflow-y: auto;
    }

    .modal.show {
        animation: inFromDown 1s forwards ease-in-out;
    }

    @keyframes inFromDown {
        0% {
            top: 100%;
        }
        100% {
            top: 0;
        }
    }

    .modal.closing {
        animation: outFromUp 1s forwards ease-in-out;
        display:block!important;
    }

    @keyframes outFromUp {
        0% {
            top: 0;
        }
        100% {
            top: 100%;
        }
    }

    .modal-dialog {
        align-items: end !important;
        margin: 0;
        height: 100%;
    }

    .modal-content {
        border-radius: 0 !important;
        border-top-left-radius: var(--bs-border-radius-xl) !important;
        border-top-right-radius: var(--bs-border-radius-xl) !important;
        max-height: 100%;
        overflow-y: scroll;
    }

    .footer-pwa {
        /*position: fixed !important;*/
        width: 100% !important;
        bottom: 0 !important;
        right: 0 !important;
    }
}

.header-pwa {
    height: auto !important;
}

/*tooltip*/
.tooltip.wiki-tooltip .tooltip-inner {
    background: rgba(6, 56, 44, 1);
    /*background: radial-gradient(circle, rgba(14, 84, 69, 1) 0%, rgba(6, 56, 44, 1) 71%, rgba(6, 56, 44, 1) 100%);*/
    color: white;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'YekanFaNum' !important;
    /*box-shadow: 0 6px 20px rgba(0, 0, 0, 1);*/
}

.tooltip.wiki-tooltip .arrow::before {
    border-top-color: #667eea;
}

.chat {
    position: fixed;
    top: 2%;
    left: 2.5%;
    z-index: 1001;
    cursor: pointer;
}

.filter-count {
    background-color: var(--auxan);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 15px;
    padding-right: 8px;
    margin-right: 5px;
    font-size: 14px;
}
.filter-remove {
    width: 20px;
    height: 20px;
    border-radius: 15px;
    padding: 1px;
    margin-right: 108px;
    border: 1px Solid var(--auxan);
    margin-top: -35px;
    position: absolute;
    color: #d96e6e;
    background: white;
}

.sort-select {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 10px !important;
    max-width: 120px;
    height: 42px;
}
.most-announce{
    background: var(--primary) !important;
    border-radius: 15px;
    height: 42px;
}
.most-announce-text{
    font-size: 14px;
    font-weight: bold;
    color: white;
}
.most-announce-img{
    display: none;
}
@media (max-width: 798px) {
    .most-announce {
        position: absolute;
        top: 16px;
        right: 160px;
        width: 60px;
        padding: 0px !important;
        background: #D5D9D8 !important;
        border-radius: 15px;
        height: 42px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    .most-announce-img{
        display: block;
        margin-top: -35px;
        margin-right: 35px;
        position: absolute;
        width: 20px;
        height: 20px;
        border: 1px Solid var(--auxan);
        border-radius: 15px;
        background: white;
    }
    .most-announce-text{
        font-size: 10px;
        font-weight: normal;
        color: black;
    }
}
