/* General styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.game-container {
    width: 90%;
    max-width: 600px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
h1 {
    text-align: center;
    font-size: 2em;
}

/* Problem display */
#problem {
    font-size: 1.5em;
    text-align: center;
    margin: 20px 0;
}

/* Input field */
#answer-input {
    width: 100%;
    padding: 10px;
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* Buttons */
button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Feedback and scoreboard */
#feedback {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
}

#scoreboard {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}

/* Active players */
#active-players {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1em;
}

/* Responsive styling */
@media (max-width: 768px) {
    .game-container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    #problem {
        font-size: 1.2em;
    }

    #answer-input {
        font-size: 1em;
        padding: 8px;
    }

    button {
        font-size: 1em;
        padding: 8px;
    }

    #feedback {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 10px;
    }

    h1 {
        font-size: 1.2em;
    }

    #problem {
        font-size: 1em;
    }

    #answer-input {
        font-size: 0.9em;
        padding: 6px;
    }

    button {
        font-size: 0.9em;
        padding: 6px;
    }

    #feedback {
        font-size: 0.9em;
    }
}
