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

.container{
    width: 100%;
    height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.background{
    position: relative;
    top: 0;
    left: 0;
    width: 550px;
    height: 100vh;
}
.background img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.main-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 100vh;
    overflow: hidden;
}
.title{
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 540px;
}
.title img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.coin{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}
.coin img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomInOut 2s ease-in-out infinite alternate;
}

/* Zoom In/Out Animation */
@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}
.frame{
    position: absolute;
    top: 41%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
}
.frame img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wheels{
    position: absolute;
    top: 40.1%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 340px;
    transform-origin: center center;
    transition: transform 5s cubic-bezier(0.23, 1, 0.32, 1);
}
.wheels img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.middle{
    position: absolute;
    top: 40.1%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100px;
}
.middle img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pointer{
    position: absolute;
    top: 21.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 50px;
}
.pointer img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.buttons{
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 50px;
    z-index: 1002;
    cursor: pointer;
}
.buttons img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: smoothZoom 1.5s ease-in-out infinite;

}

/* Smooth Infinite Zoom Animation */
@keyframes smoothZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Popup Modal Styles */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 43%;
    transform: translate(-50%, -50%);
    width: 550px;
    height: 50%;
    animation: fadeIn 0.3s ease-in-out;

}

.popup-content {
    position: relative;
    margin: 0% auto;
    width: 100%;
    height: 100%;
    animation: popupSlideIn 0.5s ease-out;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}


/* Popup Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.5) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .popup-modal {
        top: 50%;
        transform: translate(-50%, -50%);
        height: auto;
        padding: 20px;
    }
    
    .popup-content {
        width: 100%;
        max-width: 550px;
    }
    
    .popup-image {
        border-radius: 10px;
    }
    
    .container {
        width: 100%;
    }
    
    .background {
        width: 100%;
    }
    
    .main-content {
        width: 100%;
    }
    
    .title {
        width: 90%;
        max-width: 90%;
    }
    
    .coin {
        width: 100%;
    }
    
    .frame {
        top: 50%;
        width: 90%;
        max-width: 450px;
    }
    
    .wheels {
        top: 49.2%;
        width: 90%;
        max-width: 380px;
    }
    
    .middle {
        top: 49.2%;
        width: 90%;
        max-width: 80px;
    }
    
    .pointer {
        top: 32%;
        width: 90%;
        max-width: 50px;
    }
    
    .buttons {
        width: 90%;
        max-width: 350px;
        gap: 30px;
    }
}
@media (max-width: 430px) {
    .popup-modal {
        top: 43%;
        transform: translate(-50%, -50%);
        padding: 10px;
        height: 40%;
    }
    
    .popup-content {
        width: 100%;
        max-width: 420px;
    }
    
    .popup-image {
        border-radius: 6px;
    }
    
    .title {
        width: 98%;
        max-width: 98%;
    }
    
    .coin {
        width: 100%;
    }
    
    .frame {
        top: 42%;
        width: 98%;
        max-width: 380px;
    }
    
    .wheels {
        top: 41.1%;
        width: 98%;
        max-width: 320px;
    }
    
    .middle {
        top: 41%;
        width: 98%;
        max-width: 70px;
    }
    
    .pointer {
        top: 22.5%;
        width: 98%;
        max-width: 40px;
    }
    
    .buttons {
        width: 98%;
        max-width: 280px;
        gap: 15px;
    }
}
@media (max-width: 428px) {
    .popup-modal {
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 15px;
        height: 40%;
    }
    
    .popup-content {
        width: 100%;
        max-width: 370px;

    }
    
    .popup-image {
        border-radius: 8px;
    }
    
    .title {
        width: 95%;
        max-width: 95%;
    }
    
    .coin {
        width: 100%;
    }
    
    .frame {
        top: 44%;
        width: 95%;
        max-width: 315px;
    }
    
    .wheels {
        top: 43.2%;
        width: 95%;
        max-width: 260px;
    }
    
    .middle {
        top: 43%;
        width: 95%;
        max-width: 70px;
    }
    
    .pointer {
        top: 24.5%;
        width: 95%;
        max-width: 35px;
    }
    
    .buttons {
        width: 95%;
        max-width: 300px;
        gap: 20px;
    }
}
@media (max-width: 390px) {
    .popup-modal {
        top: 45%;
        transform: translate(-50%, -50%);
        padding: 15px;
        height: 40%;
    }
    
    .popup-content {
        width: 100%;
        max-width: 370px;

    }
    
    .popup-image {
        border-radius: 8px;
    }
    
    .title {
        width: 95%;
        max-width: 95%;
    }
    
    .coin {
        width: 100%;
    }
    
    .frame {
        top: 44%;
        width: 95%;
        max-width: 315px;
    }
    
    .wheels {
        top: 43%;
        width: 95%;
        max-width: 260px;
    }
    
    .middle {
        top: 43%;
        width: 95%;
        max-width: 70px;
    }
    
    .pointer {
        top: 27%;
        width: 95%;
        max-width: 35px;
    }
    
    .buttons {
        width: 95%;
        max-width: 300px;
        gap: 20px;
    }
}
@media (max-width: 360px) {
    .popup-modal {
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 15px;
        height: 40%;
    }
    
    .popup-content {
        width: 100%;
        max-width: 370px;

    }
    
    .popup-image {
        border-radius: 8px;
    }
    
    .title {
        width: 95%;
        max-width: 95%;
    }
    
    .coin {
        width: 100%;
    }
    
    .frame {
        top: 44%;
        width: 95%;
        max-width: 315px;
    }
    
    .wheels {
        top: 43%;
        width: 95%;
        max-width: 260px;
    }
    
    .middle {
        top: 43%;
        width: 95%;
        max-width: 70px;
    }
    
    .pointer {
        top: 23%;
        width: 95%;
        max-width: 35px;
    }
    
    .buttons {
        width: 95%;
        max-width: 300px;
        gap: 20px;
    }
}