* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}

.background {
    position: relative;
    width: 550px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 550px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lighteffect{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lighteffect img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    max-width: 100px;
    height: 100%;
    object-fit: cover;
}

.effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.effect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text {
    position: absolute;
    top: 17%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text img {
    width: 100%;
    max-width: 450px;
    height: 100%;
    object-fit: cover;
}

.frame {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
}

.frame img {
    width: 100%;
    max-width: 450px;
    height: 100%;
    object-fit: cover;
}

.spin {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
}

.spin img {
    width: 100%;
    max-width: 330px;
    height: 100%;
    object-fit: cover;
}

.pointer {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 16;
}

.pointer img {
    width: 100%;
    max-width: 60px;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.buttonspin {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;

}

.buttonspin img {
    width: 100%;
    max-width: 250px;
    height: 100%;
    object-fit: cover;
    /* border-radius: 55px; */
    cursor: pointer;
}

/* Ensure spin wheel rotates around center and shows pointer */
.spin img {
    transform-origin: 50% 50%;
    cursor: pointer;
    pointer-events: auto;
}

.modelphone {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modelphone img.slot1 {
    margin-top: 8%;
    width: 100%;
    max-width: 280px;
    height: 100%;
    object-fit: cover;
}

.modelphone img.slot2 {
    margin-top: 8%;
    width: 100%;
    max-width: 280px;
    height: 100%;
    object-fit: cover;
}
.gold{
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    object-fit: cover;
    max-width: 550px;
}
.gold img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popout {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

/* Blur background and add colored overlay when popout is visible */
.popout-active .background img,
.popout-active .main-content {
    filter: blur(1px);
    transition: filter 0.3s ease;
    background-color: rgba(0, 0, 0.5, 0.5);
}


.popout-logo {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.popout-logo img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
}


.popout-button {
    position: absolute;
    margin-top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 30px;
}

.popout-button img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: cover;

}

@media (max-width: 768px) {

    .logo img {
        max-width: 120px;
    }

    .text img {
        max-width: 380px;
    }

    .frame {
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9;
    }


    .spin {
        top: 46%;
    }

    .spin img {
        max-width: 320px;
    }

    .modelphone {
        top: 78%;
    }

    .modelphone img.slot1 {
        margin-top: 20%;
        width: 100%;
        max-width: 230px;
        height: 100%;
        object-fit: cover;
    }

    .modelphone img.slot2 {
        margin-top: 15%;
        width: 100%;
        max-width: 230px;
        height: 100%;
        object-fit: cover;
    }

    .popout-button {
        margin-top: 80%;
    }

    .popout-button img {
        width: 100%;
        max-width: 180px;
        height: auto;
        object-fit: cover;
        border-radius: 35px;
    }
}

@media(max-width:440px) {
    .frame {
        position: absolute;
        top: 48%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }

    .spin {
        top: 48%;
    }

    .pointer {
        top: 47%;
    }

    .spin img {
        max-width: 320px;
    }

    .modelphone {
        top: 80%;
    }

    .modelphone img.slot2 {
        width: 100%;
        max-width: 230px;
        height: 100%;
        object-fit: cover;
    }

    .popout-logo {
        top: 48%;
    }

    .popout-button {
        margin-bottom: -70%;
    }

    .popout-button img {
        width: 100%;
        max-width: 180px;
        height: auto;
        object-fit: cover;
        border-radius: 35px;
    }
}
@media(max-width:430px) {
    .frame {
        position: absolute;
        top: 47.5%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    .frame img {
        max-width: 600px;
    }

    .spin {
        top: 48%;
    }

    .pointer {
        top: 47%;
    }
    .pointer img {
        max-width: 65px;
    }

    .spin img {
        max-width: 320px;
    }

    .modelphone {
        top: 80%;
    }

    .modelphone img.slot2 {
        width: 100%;
        max-width: 230px;
        height: 100%;
        object-fit: cover;
    }
    .gold{
        top: 92%;
    }

    .popout-logo {
        top: 48%;
    }

    .popout-button {
        margin-bottom: -70%;
    }

    .popout-button img {
        width: 100%;
        max-width: 180px;
        height: auto;
        object-fit: cover;
        border-radius: 35px;
    }
}
@media (max-width: 428px) {
    .spin {
        top: 49%;
    }

    .spin img {
        max-width: 300px;
    }

    .text {
        width: 70%;
    }

    .modelphone {
        top: 82%;
    }
}

@media (max-width: 414px) {
    .spin {
        top: 48%;
    }

    .spin img {
        max-width: 300px;
    }

    .text {
        width: 60%;
    }

    .modelphone {
        top: 82%;
    }

}

@media (max-width: 390px) {
    .text {
        width: 73%;
    }

    .frame {
        position: absolute;
        top: 48%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }

    .frame img {
        max-width: 400px;
    }

    .spin {
        top: 49%;
    }

    .spin img {
        max-width: 280px;
    }

    .pointer {
        top: 48%;
    }

    .pointer img {
        max-width: 55px;
    }

    .modelphone {
        top: 81.5%;
    }

    .najamodel {
        width: 73%;
    }
}

@media (max-width: 360px) {
    .frame img {
        max-width: 350px;
    }

    .spin img {
        max-width: 250px;
    }
    .buttonspin{
        max-width: 180px;
    }

    .pointer {
        top: 48%;
    }

    .pointer img {
        max-width: 50px;
    }

    .modelphone {
        top: 81.5%;
    }

    .popout-model {
        top: 55%;
    }

    .popoout-logo {
        top: 48%;
    }

    .popout-logo img {
        max-width: 320px;
    }

    .popout-button {
        margin-bottom: -70%;
    }

    .popout-button img {
        width: 100%;
        max-width: 150px;
        height: auto;
        object-fit: cover;
        border-radius: 35px;
    }
}