html, body {
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;

    /* --- Add laughing people images here --- */
    /* Replace 'URL_TO_YOUR_LAUGHING_PEOPLE_IMAGE' with an actual image URL */
    /* Example: background-image: url('https://example.com/laughing-emoji.png'); */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">😂</text></svg>'); /* Placeholder emoji */
    background-repeat: repeat;
    background-size: 100px; /* Adjust size as needed */
    background-blend-mode: multiply; /* Optional: blend with background color */
    /* ------------------------------------- */
}

.container {
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    z-index: 1; /* Ensure container is above background images */
    position: relative; /* For z-index to work */
}

h1 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

#name-input {
    width: 80%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

#name-input:focus {
    outline: none;
    border-color: #007bff;
}

#submit-name {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #007bff;
    cursor: pointer;
    transition: background-color 0.2s;
}

#submit-name:hover {
    background-color: #0056b3;
}

/* Result Screen Styling */
#result-text {
    font-size: 10rem; /* Adjusted for longer text */
    font-weight: bold;
    color: #8b4513; /* Brown color */
    animation: pop-in 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    line-height: 1.2; /* Adjust line height for multi-line text */
}

@keyframes pop-in {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hidden {
    display: none;
}
