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

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

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

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

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

.logo{
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 300px;
}

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

.text{
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
}
.text img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.backwheel{
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
}
.backwheel img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wheel{
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 350px;
}
.wheel img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
}
.middle{
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 50px;
}
.middle img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.frame{
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
}
.frame img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pointer{
    position: absolute;
    top: 37%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 40px;
}
.pointer img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buttonPlay{
    position: absolute;
    top: 88%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 250px;
}
.buttonPlay img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.popout-win1{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    pointer-events: auto;
}

.popout-win1.show{
    display: flex;
    opacity: 1;
}

.popout-win1 .image-win{
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.popout-win1 .image-win img{
    width: 100%;
    height: auto;
    display: block;
}

.popout-win1 .buttons{
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    pointer-events: auto;
    position: relative;
    z-index: 1002;
}

.popout-win1 .buttons img{
    width: 100%;
    max-width: 210px;
    height: auto;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    position: relative;
    z-index: 1001;
    user-select: none;
    -webkit-user-select: none;
}

.popout-win1 .buttons img:active{
    transform: scale(0.95);
}

.popout-win2{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    pointer-events: auto;
}

.popout-win2.show{
    display: flex;
    opacity: 1;
}

.popout-win2 .image-win2{
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.popout-win2 .image-win2 img{
    width: 100%;
    height: auto;
    display: block;
}

.popout-win2 .buttons2{
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    pointer-events: auto;
    position: relative;
    z-index: 1002;
}

.popout-win2 .buttons2 img{
    width: 100%;
    max-width: 210px;
    height: auto;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    position: relative;
    z-index: 1001;
    user-select: none;
    -webkit-user-select: none;
}

.popout-win2 .buttons2 img:active{
    transform: scale(0.95);
}

.popout-win3{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    pointer-events: auto;
}

.popout-win3.show{
    display: flex;
    opacity: 1;
}

.popout-win3 .image-win3{
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.popout-win3 .image-win3 img{
    width: 100%;
    height: auto;
    display: block;
}

.popout-win3 .buttons3{
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    pointer-events: auto;
    position: relative;
    z-index: 1002;
}

.popout-win3 .buttons3 img{
    width: 100%;
    max-width: 250px;
    height: auto;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    position: relative;
    z-index: 1001;
    user-select: none;
    -webkit-user-select: none;
}

.popout-win3 .buttons3 img:active{
    transform: scale(0.95);
}

/* Mobile responsive styles for popouts */
@media (max-width: 768px) {
    .popout-win1 .image-win,
    .popout-win2 .image-win2,
    .popout-win3 .image-win3 {
        max-width: 380px;
        margin-bottom: 18px;
    }
    
    .popout-win1 .buttons img,
    .popout-win2 .buttons2 img,
    .popout-win3 .buttons3 img {
        max-width: 200px;
    }
    .pointer{
        top: 35.8%;
        width: 80%;
    }
}

@media (max-width: 480px) {
    .popout-win1 .image-win,
    .popout-win2 .image-win2,
    .popout-win3 .image-win3 {
        max-width: 350px;
        margin-bottom: 15px;
    }
    
    .popout-win1 .buttons img,
    .popout-win2 .buttons2 img,
    .popout-win3 .buttons3 img {
        max-width: 180px;
    }
    
    .popout-win1 .buttons,
    .popout-win2 .buttons2,
    .popout-win3 .buttons3 {
        gap: 12px;
    }
}
