/* Game specific styles for Flash Mental Math */

:root {
    --primary-color: #FF9800;
    --primary-hover: #F57C00;
    --primary-shadow: #E65100;
    --secondary-color: #555;
    --text-main: #333;
    --bg-card: #FFFFFF;
    --border-color: #e0e0e0;
}

.game-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}

.game-container h1 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.game-description {
    margin-bottom: 3rem;
    color: #555;
    font-size: 1.1rem;
}

/* Settings Panel */
.game-settings {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.control-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.form-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-size: 1.1rem;
    background-color: #fff;
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.3rem;
}

/* Game Area (Display) */
.game-area {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border: 4px solid var(--primary-color);
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.number-display {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Courier New', Courier, monospace;
    /* Monospace for stability */
}

.number-display.countdown {
    color: #2196F3;
    /* Blue for countdown */
}

/* Answer Area */
.answer-area {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.input-wrapper {
    margin-bottom: 1.5rem;
}

#userAnswer {
    width: 100%;
    padding: 12px;
    font-size: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

/* Overlays */
.overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 100;
    border: 4px solid var(--primary-color);
}

.overlay.hidden {
    display: none;
}

.overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.overlay p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #555;
    font-weight: bold;
}

/* Buttons */
.primary-btn {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 0 var(--primary-shadow);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

.secondary-btn {
    background-color: #f0f0f0;
    color: #555;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 0 #ccc;
    margin-left: 10px;
}

.secondary-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.hidden {
    display: none !important;
}

/* Instructions */
.instructions {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    margin: 3rem auto 5rem;
    color: #444;
    line-height: 1.8;
}

.instructions h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.instructions h3:first-child {
    margin-top: 0.5rem;
}