/* twister.css */

.twister-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background-image: url('icons/wood.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    padding: min(12vmin, 45px) min(8vmin, 30px);
    z-index: 10;
}

.rollers-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: min(28vmin, 105px);
    width: 90%;
    flex: 1;
    justify-content: center;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

.roller-window {
    width: 90vw;
    max-width: 450px;
    height: min(52vmin, 200px);
    border: none;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roller {
    width: 90%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 10s cubic-bezier(0.15, 0.85, 0.35, 1);
    -webkit-transition: -webkit-transform 10s cubic-bezier(0.15, 0.85, 0.35, 1);
}

.face {
    position: absolute;
    width: 100%;
    height: min(52vmin, 200px); 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: min(12vmin, 45px);
    font-weight: bold;
    text-align: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-sizing: border-box;
    padding: 5px;
    text-transform: uppercase;
    border-radius: 40px;
    border: 8px solid rgba(255, 255, 255, 1);    
}

.color-face:nth-child(1) { transform: rotateX(0deg) translateZ(90px); -webkit-transform: rotateX(0deg) translateZ(100px); background: #ff0000; color: black; } 
.color-face:nth-child(2) { transform: rotateX(90deg) translateZ(90px); -webkit-transform: rotateX(90deg) translateZ(100px); background: #ffff00; color: black; } 
.color-face:nth-child(3) { transform: rotateX(180deg) translateZ(90px); -webkit-transform: rotateX(180deg) translateZ(100px); background: #00ff00; color: black; } 
.color-face:nth-child(4) { transform: rotateX(270deg) translateZ(90px); -webkit-transform: rotateX(270deg) translateZ(100px); background: #ff8000; color: black; } 

.body-face {
    position: absolute;
    width: 100%;
    height: min(52vmin, 200px); 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: min(12vmin, 45px);
    font-weight: bold;
    text-align: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-sizing: border-box;
    padding: 5px;
    text-transform: uppercase;
    border-radius: 40px;
    border: 8px solid rgba(255, 255, 255, 1);    
}

.body-face:nth-child(1) { transform: rotateX(0deg) translateZ(100px); -webkit-transform: rotateX(0deg) translateZ(100px); background: #0000ff; color: white;}
.body-face:nth-child(2) { transform: rotateX(90deg) translateZ(100px); -webkit-transform: rotateX(90deg) translateZ(100px); background: #0000ff; color: white;}
.body-face:nth-child(3) { transform: rotateX(180deg) translateZ(100px); -webkit-transform: rotateX(180deg) translateZ(100px); background: #0000ff; color: white; }
.body-face:nth-child(4) { transform: rotateX(270deg) translateZ(100px); -webkit-transform: rotateX(270deg) translateZ(100px); background: #0000ff; color: white;}

.btn-spin {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.1s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    margin-bottom: min(4vmin, 20px);
    z-index: 50;
}
.btn-spin:active {
    transform: scale(0.9);
}
.btn-spin img {
    width: min(22vmin, 95px);
    height: min(22vmin, 95px);
    filter: drop-shadow(0px 8px 6px rgba(0,0,0,0.8));
}