body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
}

#app {
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 400px; /* Add a minimum height to prevent layout shifts */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space evenly */
}

h1 {
    color: #333;
}

#countdown {
    font-size: 3em;
    margin-bottom: 20px;
    color: #e44d26;
    min-height: 1.2em; /* Ensure space is reserved */
}

#start-button {
    padding: 15px 30px;
    font-size: 1.5em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
}

#start-button:hover {
    background-color: #45a049;
}

#game-click-area {
    width: 300px;
    height: 300px;
    background-color: #2196F3; /* A different color for the game area */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    cursor: pointer;
    border-radius: 10px;
    margin: 20px auto;
    user-select: none;
    transition: background-color 0.2s ease;
}

#game-click-area.inactive {
    background-color: #cccccc; /* Greyed out */
    cursor: default; /* Not clickable when inactive */
}

#game-click-area.inactive:hover {
    background-color: #cccccc; /* Keep greyed out on hover when inactive */
}

#game-click-area:not(.inactive) {
     background-color: #2196F3; /* Blue when active */
     cursor: pointer;
}

#game-click-area:not(.inactive):hover {
    background-color: #1976D2;
}

#results {
    font-size: 1.5em;
    margin-top: 20px;
    color: #333;
    min-height: 1.2em; /* Ensure space is reserved */
}