body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6; /* Light teal/grey */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

.game-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    position: relative; /* For loading screen positioning */
    overflow: hidden; /* Hide overflow from loading screen */
}

h1 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50; /* Dark blue/grey */
    margin-bottom: 10px;
    font-size: 2.5em;
}

.date-display {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
}

/* Container for all clues */
#cluesContainer {
    margin-bottom: 25px;
    text-align: left; /* Align clues to the left */
}

.clue-initial,
.clue-item {
    background-color: #e6f2f0; /* Lighter teal */
    border-left: 5px solid #4a90e2; /* Blue accent */
    padding: 15px;
    margin-bottom: 10px; /* Space between clues */
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.6;
    min-height: 60px; /* Ensure consistent height */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Style for the first welcome message */
.clue-initial {
    background-color: #f0f8ff; /* Lighter blue */
    border-left: 5px solid #a0c2e6;
    color: #4a4a4a;
    font-style: italic;
}


.guesses-left {
    font-weight: bold;
    color: #e74c3c; /* Red for emphasis */
    margin-bottom: 20px;
    font-size: 1.05em;
}

input[type="text"] {
    width: calc(100% - 20px);
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1.1em;
    box-sizing: border-box; /* Include padding in width */
}

input[type="text"]:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

button {
    background-color: #4a90e2; /* Blue */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 150px;
}

button:hover:not(:disabled) {
    background-color: #357ABD; /* Darker blue */
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.feedback {
    margin-top: 20px;
    font-weight: bold;
    min-height: 25px; /* Prevent layout shift */
}

.feedback.correct {
    color: #27ae60; /* Green */
}

.feedback.incorrect {
    color: #e74c3c; /* Red */
}

.hidden {
    display: none !important;
}

#shareSection {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#shareSection h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

#eventReveal {
    font-size: 1.2em;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 10px;
}

#shareMessage {
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    word-wrap: break-word; /* Ensure long messages wrap */
}

.share-button {
    background-color: #28a745; /* Green for share */
    margin-top: 10px;
}

.share-button:hover {
    background-color: #218838;
}

/* Loading Screen Styles */
.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 12px;
    transition: opacity 0.5s ease;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #4a90e2;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none; /* Allows clicks through when hidden */
}