/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    width: 90%;
    max-width: 800px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #46178f;
    /* Kahoot Purple */
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 2rem;
}

/* Question Box */
#question-text {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 2rem 0;
    padding: 1rem;
    background: #f0f0f0;
    border-radius: 10px;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 2rem;
}

/* Option Buttons */
.btn-option {
    border: none;
    padding: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.1s, opacity 0.3s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.btn-option:active {
    transform: translateY(4px);
    box-shadow: none;
}

.btn-A {
    background-color: #e21b3c;
}

/* Red */
.btn-B {
    background-color: #1368ce;
}

/* Blue */
.btn-C {
    background-color: #d89e00;
}

/* Yellow/Gold */
.btn-D {
    background-color: #26890c;
}

/* Green */

/* Control Buttons */
.btn-control {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
}

.btn-control:hover {
    opacity: 0.9;
}

.hidden {
    display: none !important;
}

/* Status Box */
#status-box {
    margin-top: 2rem;
    padding: 1rem;
    background: #eef;
    border-radius: 5px;
    font-weight: bold;
}

/* Player specific */
.player-waiting {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 300px;
    font-size: 1.5rem;
    color: #888;
}

.result-message {
    font-size: 2rem;
    font-weight: bold;
    margin: 2rem;
}

.result-win {
    color: #26890c;
}

.result-loss {
    color: #e21b3c;
}

/* Score table on Operator */
#score-table {
    width: 100%;
    margin-top: 2rem;
    border-collapse: collapse;
}

#score-table th,
#score-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

#score-table th {
    background-color: #46178f;
    color: white;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* Dark Mode for Operator (Projection) */
.operator-view {
    background-color: #111;
    color: #eee;
}

.operator-view .container {
    background-color: #222;
    color: #eee;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    max-width: 1000px;
    /* Wider for projection */
}

.operator-view h1 {
    color: #a06eff;
    /* Lighter purple */
    font-size: 3rem;
    text-shadow: 2px 2px 4px #000;
}

.operator-view h2 {
    color: #ccc;
    font-size: 2rem;
}

.operator-view #question-text {
    background-color: #333;
    color: white;
    font-size: 2.5rem;
    /* Larger for reading from distance */
}

.operator-view #status-box {
    background-color: #333;
    color: #ccc;
}

.operator-view #score-table th {
    background-color: #33106a;
}

.operator-view #score-table td {
    border-color: #444;
}

/* Evaluation Boxes - UPDATED */
.eval-dashboard {
    display: flex;
    flex-flow: row nowrap;
    /* Force horizontal */
    width: 100%;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    padding: 1rem;
    background: #333;
    border-radius: 10px;
    box-sizing: border-box;
}

.eval-player-box {
    flex: 1;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background-color: #555;
    /* Default neutral */
    border-radius: 5px;
    text-align: center;
    border: 2px solid #777;
    transition: background-color 0.3s;
}

.eval-correct {
    background-color: #26890c !important;
    /* Green */
    border-color: #4fff22 !important;
}

.eval-wrong {
    background-color: #e21b3c !important;
    /* Red */
    border-color: #ff5555 !important;
}
