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

body {
    font-family: 'Montserrat', sans-serif;
    /* A nice, modern gradient background */
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    
    /* Perfect centering */
    display: grid;
    place-items: center;
    min-height: 100vh;
}

/* --- The Card Container --- */
.card {
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* The "frosted glass" effect */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    padding: 40px;
    text-align: center;
}

.card h1 {
    font-size: 2.2rem;
    color: #1e3a8a; /* A deep blue color */
    margin-bottom: 8px;
}

.card p {
    font-size: 1rem;
    color: #3b5998; /* A softer blue */
    margin-bottom: 30px;
}

/* --- The Interactive Emoji --- */
#emoji {
    font-size: 10rem;
    filter: grayscale(1);
    cursor: pointer;
    
    /* Making the transition feel smoother and more "bouncy" */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease-in-out;
}

#emoji:hover {
    transform: scale(1.3);
    filter: grayscale(0);
}

/* Animation for when a new emoji is generated */
@keyframes pop-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* This class will be added by JavaScript */
.pop-animation {
    /* We keep the hover effect by adding it to the animation! */
    transform: scale(1.3);
    filter: grayscale(0);
    animation: pop-in 0.4s ease-out;
}