/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    scroll-behavior: smooth; /* Smooth scrolling for the page */
}

body {
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* Gradient for an elegant look */
    color: #fff;
    font-family: 'Poppins', Arial, sans-serif; /* Modern font */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 6rem;
    overflow-x: hidden;
}

/* Navbar */
h1 {
    background-color: #081b31;
    color: #fff;
    height: 5rem;
    line-height: 5rem;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    z-index: 1000;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 2rem;
    font-weight: 700;
    animation: slide-down 0.6s ease-out; /* Navbar slides in on load */
}

/* Choice Buttons */
.choice {
    height: 180px;
    width: 180px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.choice:hover {
    cursor: pointer;
    background-color: #081b31;
    transform: scale(1.2) rotate(5deg); /* Hover scale and slight rotation */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

img {
    height: 150px;
    width: 150px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choice:hover img {
    transform: scale(1.1); /* Subtle zoom on hover */
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.3);
}

/* Layout for Choices */
.choices {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 7rem;
    flex-wrap: wrap; /* Adjusts layout for smaller screens */
}

/* Scoreboard */
.score-board {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin-top: 4rem;
    gap: 5rem;
    animation: fade-in 0.6s ease-in-out;
}

#user-score,
#comp-score {
    font-size: 4.5rem;
    color: #f9d423; /* Bright golden color for scores */
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6); /* Stronger shadow for scores */
}

/* Message Display */
.msg-container {
    margin-top: 5rem;
    text-align: center;
    animation: bounce 1.2s infinite ease-in-out; /* Subtle bounce for attention */
}

#msg {
    background-color: #081b31;
    color: #fff;
    font-size: 2.2rem;
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse 2s infinite; /* Pulsing effect for emphasis */
}

/* Keyframes for Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-down {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.7);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 1.7rem;
        letter-spacing: 2px;
    }

    .choice {
        height: 150px;
        width: 150px;
    }

    img {
        height: 120px;
        width: 120px;
    }

    .choices {
        gap: 2rem;
    }

    #user-score,
    #comp-score {
        font-size: 3.5rem;
    }

    #msg {
        font-size: 1.8rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    .choice {
        height: 120px;
        width: 120px;
    }

    img {
        height: 100px;
        width: 100px;
    }

    .score-board {
        flex-direction: column; /* Stacks scores vertically */
        gap: 2rem;
    }

    #user-score,
    #comp-score {
        font-size: 3rem;
    }

    #msg {
        font-size: 1.5rem;
        padding: 0.8rem 1.5rem;
    }
}
