/* style.css - The Global Look */

:root {
    --primary: #2c3e50;    /* Dark Blue */
    --accent: #3498db;     /* Bright Blue */
    --bg: #f4f7f6;         /* Light Grey Background */
    --text: #333;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Navigation Bar */
nav {
    background-color: var(--primary);
    padding: 1rem;
    text-align: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

nav a:hover {
    color: var(--accent);
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Headers */
h1 { color: var(--primary); text-align: center; }
h2 { color: var(--accent); margin-top: 0; }

/* Standard Cards/Boxes */
.game-area {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    min-height: 300px;
}

/* --- BUTTON STYLES --- */

/* 1. Default Global Button (Blue with White Text) */
button {
    background-color: var(--accent);
    color: white; /* This causes the issue on white buttons if not overridden! */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin: 5px;
    transition: background 0.2s, transform 0.1s;
}

button:hover { 
    background-color: #2980b9; 
    transform: translateY(-2px);
}

/* 2. Specific Fix for Game/Option Buttons (White with Dark Text) */
.game-btn, .option-btn {
    color: var(--text) !important; /* Forces text to be dark */
    background-color: var(--white);
    border: 2px solid #ccc;
}

.game-btn:hover, .option-btn:hover {
    background-color: #e2e6ea;
    color: var(--text) !important;
}

/* --- FORM ELEMENTS (Text Boxes & Dropdowns) --- */
/* Ensures these always have dark text, even if browser defaults vary */
select, input, textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text);      /* Force Dark Text */
    background-color: var(--white); /* Force White Background */
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #ddd;
}

footer a {
    color: #2980b9; /* Your accent color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

footer a:hover {
    color: #1a5276;
    text-decoration: underline;
}