/* Reset default margins and set up dark theme background */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Center card widget container */
.game-container {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.subtitle {
    color: #b0b0b0;
    margin-bottom: 20px;
}

/* Score display container */
.attempts-box {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #00e676;
}

/* Input field and guess button wrapper */
.input-section {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

input[type="number"] {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 1rem;
    width: 120px;
    outline: none;
}

button {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    background-color: #bb86fc;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background-color: #9965f4;
}

/* Dynamic feedback text container */
.feedback-message {
    font-size: 1.1rem;
    margin-top: 15px;
    min-height: 28px;
}

/* Utility class to hide elements */
.hidden {
    display: none;
}