/* General Layout */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    color: #333;
    line-height: 1.6;
}

/* Typography & Titles */
#howMany, p {
    font-weight: 600;
    margin-bottom: 5px;
}

/* Inputs & Select Boxes */
input, select {
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 250px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Buttons */
button {
    padding: 12px 24px;
    margin: 10px 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:active {
    transform: scale(0.98);
}

#results {
    background-color: #2196F3;
}

#results:hover {
    background-color: #1976D2;
}

/* The Flashcard Container */
#jsButton {
    /* Keeps your existing display: none; until the game starts */
    display: none; 
    
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    width: 350px;
    border-top: 10px solid #4CAF50;
}

#flashcards {
    font-size: 3.5rem;
    margin: 20px 0;
    color: #2c3e50;
    letter-spacing: 2px;
}

/* Feedback Text */
#error {
    color: #e74c3c;
    font-weight: bold;
}

#answerWrong {
    color: #e67e22;
    margin-top: 10px;
}

#completion {
    font-size: 1.2rem;
    color: #27ae60;
    font-weight: bold;
    margin: 20px 0;
}

/* Results Display */
#finishedResults {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: 300px;
    margin-top: 20px;
    border-left: 5px solid #2196F3;
}

#finishedResults p {
    margin: 8px 0;
    font-size: 0.95rem;
}