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

body {
    /* Learned from: https://redstapler.co/css-animated-gradient-background/ */
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* A colorful gradient background with five color stops */
    background: linear-gradient(135deg, #ff7eb9, #ff65a3, #7afcff, #feff9c, #fff740);
    background-size: 300% 300%;
    /* Animates the gradient over a 10-second loop, creating a gentle shifting effect */
    animation: gradientAnimation 10s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    /* Used CSS Grid to layout internal elements in a structured format */
    display: grid;
    gap: 20px;
    text-align: center;
    max-width: 400px;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px; /* Rounds the corners of the container for a softer, modern appearance */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #333;
    font-size: 2em;
}

button {
    padding: 12px;
    font-size: 1.1em;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button:hover {
    /* Reversed the gradient on hover to provide a visual indication of interaction */
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    /* GSAP will handle scaling; this transition complements it by handling color and shadow smoothly */
}

#result {
    /* Increased the font size slightly for readability, making the result text more visible */
    font-size: 1.2em;
    color: #444;
    padding: 10px;
    border-radius: 6px;
    background-color: #f1f1f1;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}