@import "globals.css";
:root {
    --secondary-color: #FCD116 !important;
}
/* Backgrounds */
html,
body {
    background: url(../../img/bg-desktop.png);
    background-size: cover;
    background-position: center;
}

/* Header */
.header {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .logo {
    max-width: 200px;
    width: 100%;
}
.footer .logo {
    max-width: 45px;
    width: 100%;
}
.footer{
    background: black !important;
}
/* Main Layout */
.main {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    overflow: hidden;
    flex: 1 0 auto;
}

.main-contents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* gap: 20px; */
    padding: 1rem;
}

.main-contents .main-btn {
    padding: 1.5rem 3rem;
    background: #008751;
    border-radius: 50px;
    /* border: 2px solid linear-gradient(267.48deg, #ffecbc 5.91%, #ffdd84 95.65%); */
    font-size: 24px;
    text-transform: uppercase;
    color: white;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
    transition: all .3s;
    display: none;
}
.modal-container .modal-box .modal-btn{
    background: #008751;
    border-radius: 50px !important;
    margin-top: 10px !important;
    animation: pulse 1s linear infinite;
    font-size: 20px;
    padding: 0.8rem 4rem;
    color: white;
}
.modal-container .modal-box{
    background: url(../../img/winning-banner.png) no-repeat !important;
    background-size: cover;
    background-position: center !important;
}
.main-contents .mobile {
    padding: 0.8rem 3rem;
    background: #008751;
    border-radius: 50px;
    font-size: 24px;
    text-transform: uppercase;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s;
    display:none;
}

/* .main-contents .main-btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
} */

.main-contents h1 {
    font-size: 55px;
    text-transform: uppercase;
    color: white;
    font-weight: 900;
    font-style:italic;
    text-align: center;
    margin-bottom:5px;
    text-shadow: 2px 2px #515050;
}

.contents-text {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    .jackpot{
        font-size: 32px;
        font-weight: 900;
        font-style:italic;
        color: white;
        text-transform: uppercase;
        margin-bottom: 10px;
        text-shadow: 2px 2px #272727;
    }
    .yellow{
        color: var(--secondary-color);
    }
}
.contents-jackpot {
    /* max-width: 375px; */
    width: 100%;
    display: flex;
    font-style:italic;
    flex-direction: column;
    .jackpot{
        font-size: 30px;
        font-weight: 700;
        color: white;
        margin-bottom: 10px;
        text-align: center;
         text-shadow: 2px 2px #272727;
        .prize {
            font-size: 50px;
            color: var(--secondary-color);
            font-weight: 900;
            text-transform: uppercase;
             text-shadow: 2px 2px #272727;
        }   
    }
    .welcome{
        font-size: 30px;
        color: var(--secondary-color);
        font-weight: 800;
        text-align: center;
        margin-top: -12px;
        margin-bottom: 10px;
        text-shadow: 2px 2px #272727;
    }
    .yellow{
        color: var(--secondary-color);
        font-size: 30px;
    }
    span{
        font-size:42px;
        color: var(--secondary-color);
    }
    .you-got{
        font-size: 25px;
        margin-top:-10px;
        text-shadow: 2px 2px #272727;
        color: white;
        font-weight: 700;
        text-align: center;
        margin-bottom: 10px;
        .yellow{
            font-size:25px;
            color: var(--secondary-color);
            font-weight: 700;
        }
    }
}

.contents-text p {
    font-size: 22px;
    color: white;
    font-weight: 400;
    align-self: center;
}

.contents-text p span.remaining-chances {
    font-size: 32px;
    font-weight: 900;
}

.contents-text span.highlight {
    font-size: 22px;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 900;
    align-self: center;
}

/* Wheel and Related Elements */
.main-wheel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel {
    width: 375px;
    height: 375px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.4rem;
    flex: 0 0 auto;
}

.wheel::after {
    content: "";
    width: 30px;
    height: 30px;
    background: url(../images/arrow.webp) no-repeat;
    position: absolute;
    background-size: contain;
    top: 0;
    z-index: 3;
}

.edge-wheel,
.hoop-wheel {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.edge-wheel {
    z-index: 2;
    pointer-events: none;
    position: absolute;
}

.hoop-wheel {
    transform: rotate(0deg);
}

.edge-wheel img,
.hoop-wheel img {
    width: 100%;
    height: 100%;
}

.button-wheel {
    width: 120px;
    height: 120px;
    position: absolute;
    border-radius: 50%;
    /* background-image: url(../images/button-bg.webp); */
    background-size: cover;
    background-position: center;
    background: #008751;
    border: 2px solid white;
    outline: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    color: white;
    z-index: 3;
    animation: pulse 1s linear infinite;
}

@keyframes pulse {
    0%, to {
        transform: scale(1);
    }
    50% {
        transform: scale(.9);
    }
}

.button-wheel:hover {
    animation-play-state: paused;
}

/* Woman Image and Speech Bubble */
.woman-image {
    width: 220px;
    height: 360px;
    position: relative;
    flex: 0 0 auto;
    z-index: 10;
    margin-left: -80px;
    pointer-events: none;
}

.woman {
    width: 100%;
    height: 100%;
    background: url(../images/woman-nua.webp) no-repeat center/contain;
}
.spin-btn{
    animation: pulse 1s linear infinite;
}
.woman-image::after {
    content: "";
    width: 100%;
    height: 100%;
    background: url(../images/woman.webp) no-repeat center/contain;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    opacity: 1;
    transition: opacity .4s ease-in-out;
}

.woman-image.active::after {
    opacity: 0;
}

.speech-bubble {
    width: 160px;
    position: absolute;
    left: -80px;
    top: -70px;
    z-index: 5;
}

.speech-bubble.active {
    left: -130px;
    top: 100px;
}

.bubble-img {
    width: 100%;
    height: 100%;
}

.bubble-contents {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    color: white;
    padding: 1rem 1.5rem 1rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: italic;
}

.bubble-contents p {
    font-size: 21px;
    text-transform: uppercase;
    font-weight: 800;
    text-align: center;
}

.bubble-contents p span {
    color: var(--secondary-color);
}

.speech-bubble.active .bubble-contents {
    padding: 1rem 2rem 1rem 1rem;
}

/* Responsive Styles */
@media screen and (min-width: 350px) {
    .main-wheel {
        justify-content: center;
    }
}
/* @media screen and (max-width: 800px) {
    .mobile {
        display: flex !important;
    }
} */
@media screen and (min-width: 800px) {
    .main {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    .woman-image {
        width: 260px;
        height: 420px;
    }
    .speech-bubble.active {
        left: -110px;
        top: 240px;
    }
    .main-contents .main-btn {
        display: flex;
    }
}

@media screen and (min-width: 1000px) {
    .wheel {
        width: 450px;
        height: 450px;
    }
    .button-wheel {
        width: 80px;
        height: 80px;
        font-size: 21px;
    }
    .speech-bubble {
        width: 150px;
        left: -80px;
        top: -70px;
    }
}

@media screen and (min-height: 900px) {
    .woman-image {
        width: 320px;
        height: 520px;
        margin-left: -110px;
    }
    .wheel {
        width: 400px;
        height: 400px;
    }
}

@media screen and (min-width: 1400px) {
    .main-contents .main-btn {
        padding: 1.5rem 6rem;
        font-size: 28px;
    }
    .woman-image {
        width: 400px;
        height: 650px;
        margin-left: -150px;
    }
    .wheel {
        width: 600px;
        height: 600px;
        padding: 1.6rem;
    }
    .speech-bubble {
        width: 180px;
        left: 10px;
        top: -50px;
    }
    .contents-text {
        max-width: unset;
    }
    .contents-text p {
        font-size: 25px;
    }
    .remaining-chances {
        font-size: 42px;
    }
    .contents-text span.highlight {
        font-size: 25px;
    }
    .button-wheel {
        width: 120px;
        height: 120px;
        font-size: 28px;
    }
    .wheel::after {
        width: 60px;
        height: 60px;
    }
    .speech-bubble.active {
        left: -30px;
        top: 10px;
    }
}
@media screen and (min-width:1024px) and (max-width: 1400px) {
    .button-wheel {
        width: 90px;
        height: 90px;
        font-size: 20px;
    }
    .main-contents h1 {
        font-size: 40px;
        margin-top: -10px;
    }
    .main-contents .main-btn{
        display: flex;
        padding: 1rem 4rem;
        font-size: 24px;
    }
    .contents-jackpot {
        .you-got {
            font-size: 25px;
            color: white;
            font-weight: 700;
            text-align: center;
            margin-bottom: 10px;
            margin-top: -10px;
            .yellow{
                font-size:25px;
            }
        }
        .yellow {
            font-size: 25px !important;
        }
        .jackpot{
            font-size: 25px;
        }
        .prize {
            font-size: 40px !important;
            color: var(--secondary-color);
        }
    }
}
@media screen and (max-width: 1023px) {
    .button-wheel {
        width: 80px;
        height: 80px;
        font-size: 18px;
    }
    .main-contents .main-btn{
        display:none;
    }
    .mobile {
        display: flex !important;
    }
    .main {
        flex-direction: column;
        align-items: center;
    }
    .main-contents {
        padding: 1rem;
    }
    .main-contents h1 {
        font-size: 40px;
        margin-top: -10px;
    }
    .contents-text p {
        font-size: 20px;
    }
    .contents-text span.highlight {
        font-size: 20px;
    }
    .contents-jackpot {
        .you-got {
            font-size: 22px;
            color: white;
            font-weight: 700;
            text-align: center;
            margin-bottom: 10px;
            margin-top: -10px;
            .yellow{
                font-size:22px;
            }
        }
        .yellow {
            font-size: 22px !important;
        }
        .jackpot{
            font-size: 22px;
        }
        .prize {
            font-size: 35px !important;
            color: var(--secondary-color);
        }
    }
}
@media screen and (max-width:767px) {
    .welcome{
        font-size:20px !important;
    }
    .main {
        background: url(../../img/bg-mobile.png);
        background-size: cover;
        background-position: center;
        justify-content: center;
    }
    .button-wheel{
        width: 80px;
        height: 80px;
        font-size: 18px;
        margin-top: 10px;
    }
    .contents-jackpot {
        .you-got {
            font-size: 18px;
            color: white;
            font-weight: 700;
            text-align: center;
            margin-bottom: 10px;
            margin-top: -10px;
            .yellow{
                font-size:18px;
            }
        }
        .yellow {
            font-size: 18px !important;
        }
        .jackpot{
            font-size: 18px;
        }
        .prize {
            font-size: 27px !important;
            color: var(--secondary-color);
        }
    }
}

@media screen and (max-width: 500px) {
    .modal-container .modal-box p span{
        font-size: 30px;
        color: var(--secondary-color);
    }
    .modal-container .modal-box .modal-btn {
       padding: 0.8rem 3rem;
    }
    .contents-jackpot {
        .you-got {
            font-size: 18px;
            color: white;
            font-weight: 700;
            text-align: center;
            margin-bottom: 10px;
            margin-top: -10px;
            .yellow{
                font-size:18px;
            }
        }
        .yellow {
            font-size: 18px !important;
        }
        .jackpot{
            font-size: 18px;
        }
        .prize {
            font-size: 35px !important;
            color: var(--secondary-color);
        }
    }
    .contents-text p{
        margin-top:-10px;
    }
    .main-contents h1{
        font-size: 25px;
        margin-top:-15px;
    }
    .header{
        height: 70px;
    }
    .header .logo{
        width:170px;
    }
}
@media screen and (max-width: 400px) {
    .welcome{
        margin:0px !important;
    }
    .contents-jackpot {
        .you-got {
            font-size: 17px;
            color: white;
            font-weight: 700;
            text-align: center;
            margin-top:0px;
            margin-bottom: 0px;
            .yellow{
                font-size:17px !important;
            }
        }
        .jackpot{
            font-size: 19px;
        }
        .yellow{
            font-size:20px !important;
        }
        .prize {
            font-size: 32px !important;
            color: var(--secondary-color);
        }
    }
    .contents-text p{
        margin-top:-10px;
    }
    .main{
        padding-top: 20px;
    }
}
@media screen and (max-width: 430px) and (max-height: 700px) {
    .wheel{
        width:330px;
        height:330px;
    }
    .jackpot{
        margin-bottom:0px !important;
        font-size:35px;
    }
    .contents-jackpot {
        span {
            font-size: 39px;
            color: var(--secondary-color);
        }
    }
}