:root {
    font-size: 16px;
}

@media (max-width: 991.9px) {
    :root {
        font-size: 14px;
    }
}

@media (max-width: 767.9px) {
    :root {
        font-size: 14px;
    }
}

@media (max-width: 575.9px) {
    :root {
        font-size: 12px;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300&display=swap');

@font-face {
    font-family: 'Tajawal-Medium';
    src: url('../fonts/Tajawal-Medium.ttf');
}

@font-face {
    font-family: 'Tajawal-Bold';
    src: url('../fonts/Tajawal-Bold.ttf');
}

* {
    box-sizing: border-box;
    margin: 0;
    font-family: 'Tajawal-Medium';
}

main {
    padding: 3rem;
    height: 100vh;
    background-color: #222;
}

main>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9;
}

.container-swipers {
    height: 100%;
    overflow: auto;
}

.main-swiper {
    position: relative;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 99;
}

.main-swiper .swiper-wrapper {
    flex-grow: 1;
    margin-top: 1rem;
}

.main-swiper .swiper-wrapper .swiper-slide {
    overflow: auto;
}

.main-swiper .header img {
    height: auto;
    width: 9rem;

}

.container-new-pay {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: #fff;
    border: 1px solid #707070;
    border-radius: 0 5rem 5rem 3.125rem;
    padding: 1rem 1.5rem;
    padding-inline-end: 2.5rem;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.container-new-pay .details,
.container-new-pay .user,
.container-list-top-chance .user,
#nameList .user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

#nameList .user {
    justify-content: flex-start;
}

.container-new-pay .details {
    gap: 2.5rem;
}

.container-new-pay .user img,
.container-list-top-chance .user img,
#nameList .user img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: 50%;
}

.container-new-pay .user>div>*,
.container-list-top-chance .user>div>*,
#nameList .user>div>* {
    line-height: 1;
}

.container-new-pay .user h2,
.container-list-top-chance .user h2,
#nameList .user h2 {
    font-size: 1rem;
    font-family: 'Tajawal-Bold';
}

.container-list-top-chance .user h2,
.container-list-top-chance .user span,
.container-new-pay .user h2,
.container-new-pay .user span {
    display: block;
    width: 7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.container-new-pay .user span,
.container-list-top-chance .user span,
#nameList .user span {
    font-size: 1rem;
}

.container-new-pay .coins,
.container-list-top-chance .coins,
.container-list-top-chance .chance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.container-new-pay .coins img,
.container-list-top-chance .coins img,
.container-list-top-chance .chance img {
    width: 2rem;
    height: 2rem;
}

.container-new-pay .coins b,
.container-list-top-chance .coins b,
.container-list-top-chance .chance b {
    font-size: 1rem;
    font-family: 'Tajawal-Bold';
}

.container-new-pay p {
    direction: rtl;
    font-size: 1.125rem;
    color: #C21818;
}

.box-ad {
    margin-top: 2rem;
}

.box-ad,
.box-gold,
.total-reward,
.timer-down,
.text-to-viewers {
    display: flex;
    justify-content: center;
}

.box-ad a {
    display: inline-flex;
}

.box-ad img,
.box-gold img {
    flex: 1 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 7rem;
}

.box-gold {
    height: 15rem;
    align-items: center;
    overflow: hidden;
}

.box-gold img {
    height: 20rem;
    max-height: unset;
}

.total-reward {
    gap: 0.25rem;
}

.total-reward>span {
    font-family: 'Rubik', sans-serif;
}

.total-reward>span,
.text-to-viewers>p {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.7);
    color: #D51E1E;
    font-size: 5rem;
    line-height: 1;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
}

.timer-down,
.text-to-viewers {
    margin-top: 1.5rem;
}

.timer-down>span {
    background-color: rgba(255, 255, 255, 0.77);
    border-radius: 0 5rem 5rem 3.125rem;
    padding: 0.75rem 1.125rem;
    padding-inline-end: 1.5rem;
    font-size: 3rem;
    font-family: 'Tajawal-Bold';
    line-height: 1;
    font-family: 'Rubik', sans-serif;
}

.text-to-viewers p {
    border-radius: 0.4rem;
    padding: 1.25rem;
    font-size: 1.5rem;
    direction: rtl;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    background-color: rgba(353, 60, 62, 0.7);
}

@media (max-width: 767.9px) {
    main {
        padding: 2rem 1.5rem;
    }

    .total-reward>span {
        padding: 0.4rem 0.8rem;
        font-size: 3.5rem;
    }

    .container-new-pay {
        top: 1.5rem;
        right: 1.5rem;
        padding: 0.75rem 1.25rem;
        padding-inline-end: 2.25rem;
    }

    .container-new-pay .details {
        gap: 1rem;
    }
}

@media (max-width: 575.9px) {
    main {
        padding: 2rem 1rem;
    }

    .total-reward>span {
        padding: 0.4rem 0.8rem;
        font-size: 2.5rem;
    }

    .container-new-pay {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 0.8rem;
        padding-inline-end: 2rem;
    }

    .container-new-pay .details {
        gap: 1rem;
    }
}

.swiperSlide2 .timer-reward,
.swiperSlide3 .timer-reward {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 0;
}

.swiperSlide3 .timer-reward {
    justify-content: center;
    padding: 2.75rem 0 0.75rem;
}

.swiperSlide2 .reward-boxGold,
.swiperSlide3 .reward-boxGold {
    position: relative;
}

.swiperSlide2 .reward-boxGold img,
.swiperSlide3 .reward-boxGold img {
    position: absolute;
    left: -40px;
    top: -60px;
    z-index: 9;
    width: auto;
    height: 6.5rem;
}

.swiperSlide2 .timer-reward .total-reward>span,
.swiperSlide3 .reward-boxGold .total-reward>span {
    font-size: 3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.65rem;
}

.swiperSlide2 .timer-reward .timer-down {
    margin-top: 0;
}

.swiperSlide2 .timer-reward .timer-down>span {
    font-size: 3rem;
}

.list-top-chance {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 500px;
}

.container-list-top-chance {
    height: calc(100vh - 20rem);
}

.list-top-chance li {
    padding: 10px;
    border: 1px solid #ccc;
    background-color: rgba(255, 255, 255, 0.9);
    transition: 0.3s ease-in-out;
    position: relative;
    margin-bottom: 4px;
    width: 100%;
    z-index: 99;
    left: unset !important;
    top: unset !important;
    display: flex;
    align-items: center;
    border-radius: 0 5rem 5rem 3.125rem;
    padding: 0.25rem 4rem;
    padding-inline-end: 1.5rem;
}

.list-top-chance li::before {
    content: attr(data-num);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #d87a00;
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
}

.list-top-chance li.active {
    animation: makerChange 2s linear both;
}

.list-top-chance li>* {
    flex: 0 1 calc(100% / 3);
    flex: 0 0 6rem !important;
}

.container-list-top-chance .user {
    justify-content: flex-start;
}

.container-list-top-chance .coins b,
.container-list-top-chance .chance b {
    font-size: 1rem;
}

@keyframes makerChange {
    0% {
        background-color: rgba(0, 0, 0, 0.6);
    }

    25% {
        background-color: rgba(80, 255, 32, 0.9);
    }

    75% {
        background-color: rgba(80, 255, 32, 0.9);
    }

    100% {
        background-color: rgba(0, 0, 0, 0.6);
    }
}

@media (max-width: 991.9px) {
    .swiperSlide2 .timer-reward {
        padding: 3rem 0 1.5rem;
    }

    .swiperSlide2 .timer-reward .total-reward>span,
    .swiperSlide3 .reward-boxGold .total-reward>span {
        font-size: 2.5rem;
    }

    .swiperSlide2 .timer-reward .timer-down>span {
        font-size: 2rem;
    }
}

@media (max-width: 767.9px) {

    .swiperSlide2 .timer-reward .total-reward>span,
    .swiperSlide3 .reward-boxGold .total-reward>span {
        font-size: 2.3rem;
    }

    .swiperSlide2 .reward-boxGold img,
    .swiperSlide3 .reward-boxGold img {
        top: -50px;
    }

    .swiperSlide2 .timer-reward .timer-down>span {
        font-size: 2rem;
    }

    .list-top-chance li {
        justify-content: space-between;
    }

    .list-top-chance li>* {
        flex: 0 1 auto;
    }
}

@media (max-width: 399.9px) {
    .swiperSlide2 .timer-reward {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .swiperSlide2 .timer-reward {
        padding: 3rem 0 1rem;
    }

    .container-list-top-chance .user img {
        width: 2.8rem;
        height: 2.8rem;
    }

    .container-list-top-chance .user h2 {
        font-size: 1.2rem;
    }

    .container-list-top-chance .coins img,
    .container-list-top-chance .chance img {
        width: 1.7rem;
        height: 1.7rem;
    }

    .container-list-top-chance .chance span {
        display: none;
    }

    .container-list-top-chance .coins b,
    .container-list-top-chance .chance b {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {

    .container-list-top-chance .user h2,
    .container-list-top-chance .user span {
        max-width: 5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.container-btn {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.container-btn button {
    display: inline-flex;
    color: #000;
    background-color: #A4CE2F;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #A4CE2F;
    font-size: 1.25rem;
    transition: 0.3s;
}

.container-btn button:active {
    background-color: #97be29;
    border: 1px solid #97be29;
    transform: scale(1.05);
}

.finishTime-listNames,
.box-winner {
    background-color: rgba(191, 227, 255, 0.89);
    width: 65%;
    margin: auto;
    border-radius: 0 1rem 1rem 0.5rem;
    padding: 1rem 4rem 2rem;
}

.finishTime-listNames>span {
    display: flex;
    justify-content: center;
    font-size: 2.25rem;
    font-family: 'Tajawal-Bold';
}

.box-winner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    flex-wrap: wrap;
}

.box-winner img {
    width: 10rem;
    height: 10rem;
    object-fit: cover;
    border-radius: 50%;
}

.box-winner h2 {
    font-size: 1.5rem;
    color: #222;
}

.box-winner h1 {
    font-size: 2.75rem;
    color: #222;
}

.box-winner h1+span {
    font-size: 2.5rem;
    color: #D51E1E;
    font-weight: 900;
    letter-spacing: 2px;
}

#nameList {
    list-style: none;
    text-align: start;
    padding: 0;
    height: 7rem;
    overflow: hidden;
}

#nameList>li {
    background-color: #fff;
    border-radius: 0 5rem 5rem 3.125rem;
    padding: 0.75rem 1.25rem;
    padding-inline-end: 1.75rem;
    margin: 1rem 0;
    transition: 0.3s;
    position: relative;
}

.finishTime-listNames {
    position: relative;
}

.finishTime-listNames>svg {
    position: absolute;
    width: 2rem;
    height: auto;
    left: 1.5rem;
    top: 7rem;
}

.finishTime-listNames>svg:last-of-type {
    left: unset;
    right: 1.5rem;
}

#nameList>li.active {
    background-color: #D87A00;
}

#nameList.rolling>li {
    animation: rolling 1s infinite ease-in-out both;
}

@keyframes rolling {
    0% {
        opacity: 0;
        /* transform: translateY(0rem); */
    }

    100% {
        opacity: 1;
        /* transform: translateY(-7rem); */
    }
}

#nameList>li.active h2,
#nameList>li.active span {
    color: #fff;
}

@media (max-width: 575.9px) {

    .finishTime-listNames,
    .box-winner {
        width: 100%;
    }
}

.main-swiper .swiper-button-next:after,
.main-swiper .swiper-button-prev:after {
    content: unset;
}

.main-swiper [class*="swiper-button"] {
    background-color: #A4CE2F;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 999;
    top: unset;
    bottom: 2rem;
}

.main-swiper [class*="swiper-button"] svg {
    fill: #fff;
    flex: 0 0 1.75rem;
    height: auto;
    width: 1.75rem;
}

.swiper-button-next,
.swiper-rtl .swiper-button-prev {
    right: 2rem;
}

.swiper-button-prev,
.swiper-rtl .swiper-button-next {
    left: 2rem;
}

@media (max-width: 767.9px) {
    .swiperSlide2 .timer-reward {
        flex-direction: column;
        align-items: center;
    }
}

.swiperSlide2 .reward-boxGold img,
.swiperSlide3 .reward-boxGold img {
    left: 50% !important;
    transform: translateX(-50%);
    z-index: 0;
}
