/* Import Google Fonts */
body,
h1,
p {
    font-family: 'Mountains of Christmas', bold;
}

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

/* Body Styling */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('https://example.com/snowy-village-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    overflow: hidden;
    font-size: 18px;
}

/* Container Styling */
.container {
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    border: 4px solid #ff6347;
    position: relative;
    backdrop-filter: blur(8px);
}

/* Header Styling */
.header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #ff6347;
    font-size: 36px;
    margin-bottom: 10px;
}

p {
    color: #fff;
    font-size: 16px;
}

/* Hands Styling */
.hands {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 20px;
    z-index: 1;
}

.hand {
    font-size: 48px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hand colors */
.rock {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.paper {
    background: linear-gradient(135deg, #044c22, #0a381d);
}

.scissors {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.hand:hover {
    animation: shake 0.5s ease-in-out;
    transform: scale(1.2);
}

/* Shake Keyframes */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Result Section Styling */
.result-section {
    background: hsla(0, 1%, 17%, 0.671);
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px #f9f5f590;
}

.result-section h2 {
    color: #dbd41b;
    font-size: 26px;
    margin-bottom: 15px;
}

.result-section p {
    font-size: 28px;
    color: #fff;
    font-weight: 600;
}

/* Result Highlighting */
#result {
    color: #228b22;
    font-size: 30px;
    margin-top: 10px;
    font-weight: 700;
}

#user-choice,
#computer-choice {
    margin-top: 10px;
}

/* Snow Falling Effect */
@keyframes snowfall {
    0% {
        top: -10%;
    }

    100% {
        top: 100%;
    }
}

.snowflakes {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: snowfall linear infinite;
    animation-duration: 6s;
    opacity: 0.8;
}

.snowflake:nth-child(odd) {
    animation-duration: 5s;
}

.snowflake:nth-child(even) {
    animation-duration: 7s;
}

/* Media Queries for Mobile */
@media (max-width: 600px) {
    .container {
        max-width: 90%;
        padding: 10px;
    }

    h1 {
        font-size: 28px;
    }

    .hand {
        font-size: 36px;
        width: 120px;
        height: 120px;
        padding: 15px;
    }

    .result-section h2 {
        font-size: 22px;
    }

    .result-section p {
        font-size: 24px;
    }

    #result {
        font-size: 24px;
    }
}
