body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    color: #333;
    overflow-x: hidden;
    /* Prevents horizontal scrolling */
}

#trainer {
    font-family: 'Arial', sans-serif;
    padding: 20px;
    max-width: 500px;
    margin: auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

# #question,
#result,
#streak,
#highScore {
    margin-bottom: 10px;
}

#question,
#answer {
    font-size: 18px;
    margin: 10px 0;
}

#questionType {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    padding: 10px 0;
}

#answer {
    width: calc(100% - 40px);
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* Virtual Keyboard Styles */
#virtualKeyboard {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#virtualKeyboard button {
    background-color: #f0f0f0;
    color: black;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

/* Responsive Design for smaller screens */
@media (max-width: 600px) {

    body {
        height: auto;
        /* Allows natural page length on mobile */
        padding-bottom: 20px;
        /* Extra space for the virtual keyboard */
    }

    #trainer {
        margin: 10px;
        width: auto;
    }

    #answer,
    #virtualKeyboard button {
        font-size: 14px;
        padding: 8px;
    }

    button {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #fff;
    }

    #trainer {
        background-color: #1e1e1e;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }
}