body {
    font-family: Arial, sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(45deg, #1a3c6f, #4c6a8b, #2c4f76, #3a5f88);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
}

* {
    user-select: none;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

h1 {
    margin-bottom: 10px;
    color: white;
}

.choices {
    margin: 20px 0;
}

button {
    padding: 15px 25px;
    margin: 0 10px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.result {
    font-size: 24px;
    margin-top: 30px;
    font-weight: bold;
    opacity: 0;
    animation: fadeIn 1s forwards;
    color: white;
}

.scoreboard {
    margin-top: 20px;
    font-size: 18px;
    color: white;
}

.choice-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.choice-container img {
    width: 100px;
    height: 100px;
    opacity: 0;
    transform: scale(0);
    animation: choiceFade 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes choiceFade {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes playerChoiceAnim {
    from {
        transform: scale(0.8);
        opacity: 0.5;
    }
    to {
        transform: scale(1.2);
        opacity: 1;
    }
}

.player-choice {
    animation: playerChoiceAnim 0.5s ease-out;
}

#playerChoice, #computerChoice {
    display: none;
}

.back-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}