/* style.css */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1, h2, h3 {
    color: #007bff;
    text-align: center;
}

/* --- Containers --- */
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

/* --- Scoreboard Styling --- */
#scoreboard {
    border: 2px solid #007bff;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    background-color: #e9f5ff;
}

#scoreboard p {
    margin: 5px 0;
    font-size: 1.1em;
    font-weight: bold;
}

#player1_score, #player2_score {
    color: #28a745; /* Success Green */
    font-size: 1.2em;
}

#opponent_status {
    font-style: italic;
    color: #6c757d;
    margin-top: 10px;
    border-top: 1px dashed #ced4da;
    padding-top: 5px;
}

/* --- Question Area --- */
#question-area {
    margin-top: 25px;
}

#question-area h2 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #007bff;
}

/* --- Buttons (Options) --- */
.answer-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s;
}

.answer-btn:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.answer-btn:disabled {
    background-color: #93a8bb;
    cursor: not-allowed;
}

/* --- Answered Overlay --- */
.answered-overlay {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

/* --- Lobby/Finish Styling --- */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"] {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
}

button[type="submit"] {
    padding: 12px;
    background-color: #28a745; /* Green for start/join */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #1e7e34;
}
