@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:#0d1117;     /* DARK background */
}

/* ---------------- DESKTOP VIEW (ORIGINAL SIZE) ---------------- */

.container{
    padding: 2rem 7rem;
    border-radius: 14px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    background: #fff;
}

.result_image{
    display: flex;
    column-gap: 7rem;
}

.result_image img{
    width: 100px;
}

.user_result img{
    transform: rotate(90deg);
}

.cpu_result img{
    transform: rotate(-90deg) rotateY(180deg);
}

.result{
   text-align: center; 
   font-size: 2rem;
   color: #7d2ae8;
   margin-top: 1.5rem;
}

.option_image img{
    width: 50px;
}

.option_images{
    display: flex;
    align-items: center;
    margin-top: 2.5rem;
    justify-content: space-between;
}

.container.start .user_result{
    transform-origin: left;
    animation: userShake 0.7s ease infinite;
}

@keyframes userShake {
    50%{ transform: rotate(10deg); }
}

.container.start .cpu_result{
    transform-origin: right;
    animation: cpuShake 0.7s ease infinite;
}

@keyframes cpuShake {
    50%{ transform: rotate(-10deg); }
}

.container.start .option_images{
    pointer-events: none;
}

.option_image{
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.option_image:hover{
    opacity: 1;
}

.option_image.active{
    opacity: 1;
}

.option_image img{
    pointer-events: none;
}

.option_image p{
    color: #7d2ae8;
    font-size: 1.235rem;
    margin-top: 1rem;
    pointer-events: none;
}

/* ---------------- PERFECT MOBILE RESPONSIVE ---------------- */

@media (max-width: 480px){

    /* shrink whole container */
    .container{
        padding: 1.5rem 1.2rem !important;
        max-width: 92%;
    }

    /* reduce hand image space */
    .result_image{
        column-gap: 2.8rem !important;
    }

    /* smaller hand images */
    .result_image img{
        width: 65px !important;
    }

    /* smaller text */
    .result{
        font-size: 1.4rem !important;
        margin-top: 1rem !important;
    }

    /* options layout smaller */
    .option_images{
        margin-top: 2rem !important;
        gap: 1rem !important;
    }

    /* icons smaller */
    .option_image img{
        width: 40px !important;
    }

    /* option label text smaller */
    .option_image p{
        font-size: 0.9rem !important;
    }
}
