body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top for longer content */
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    color: #2c3e50;
    margin: 0;
}

#gameArea > div {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
}

#definitionSection h2 {
    margin-top: 0;
    font-size: 1.2em;
    color: #34495e;
}

#definitionText {
    font-style: italic;
    color: #555;
    min-height: 40px; /* Ensure space even when empty */
}

#wordProgressText {
    font-size: 1.8em;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5em;
    text-align: center;
    color: #2980b9;
    min-height: 30px;
}

#inputSection {
    display: flex;
    gap: 10px;
}

#guessInput {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

#submitGuessBtn {
    background-color: #27ae60;
    color: white;
}
#submitGuessBtn:hover {
    background-color: #229954;
}

#newWordBtn {
    background-color: #3498db;
    color: white;
}
#newWordBtn:hover {
    background-color: #2980b9;
}

#hintBtn {
    background-color: #f39c12;
    color: white;
}
#hintBtn:hover {
    background-color: #e67e22;
}
#hintBtn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

#controlsSection {
    display: flex;
    justify-content: space-between;
}

#feedbackText {
    text-align: center;
    font-weight: bold;
    min-height: 20px;
}
.correct { color: #27ae60; }
.incorrect { color: #c0392b; }
.info { color: #2980b9; }

#scoreSection {
    text-align: right;
    font-size: 1.1em;
    font-weight: bold;
}