body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

main#flashcard-container {
    width: 300px;
    height: auto;
    border: 1px solid #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: white;
    margin-bottom: 20px;
}

.question, .answer {
    width: 100%;
    text-align: center;
}

.question {
    margin-bottom: 30px; /* Space below the question */
}

.question.clickable {
    cursor: pointer; /* Add cursor pointer */
}

.answer {
    margin-bottom: 30px; /* Space below the answer before navigation buttons */
}

.navigation {
    display: flex;
    gap: 10px; /* Space between navigation buttons */
}

.navigation button, #restart-btn {
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

#message-section {
    margin-bottom: 20px; /* Space below the message before buttons */
    text-align: center; /* Ensure the message is centered */
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    main#flashcard-container {
        width: 90%;
    }
}
