/* Стили для контейнера и всех блоков */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f4a261, #2a9d8f);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Заголовки и текст */
header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.2rem;
    color: #264653;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header p {
    font-size: 1rem;
    color: #6a6a6a;
    margin-top: 5px;
}

/* Стиль для карточки вопроса */
.flashcard {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.question-text {
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-weight: 600;
    color: #264653;
    line-height: 1.5;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-btn {
    padding: 15px;
    font-size: 1.2rem;
    background-color: #2a9d8f;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.answer-btn:hover {
    background-color: #e76f51;
    transform: translateY(-3px);
}

.answer-btn:active {
    background-color: #e76f51;
    transform: translateY(2px);
}

/* Результат */
.result {
    display: none;
    margin-top: 40px;
    padding: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    border-radius: 10px;
    background: #264653;
    transition: opacity 0.5s ease;
}

/* Вывод правильных и неправильных ответов */
.score-summary {
    margin-top: 30px;
    font-size: 1.4rem;
    font-weight: bold;
}

.score-board {
    margin-top: 30px;
    font-size: 1.1rem;
    width: 100%;
    overflow-y: auto; /* Это обеспечит прокрутку таблицы */
    max-height: 400px; /* Максимальная высота для таблицы */
}

.score-board table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.score-board th, .score-board td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.score-board th {
    background-color: #264653;
    color: white;
}

.score-board .correct {
    color: green;
}

.score-board .incorrect {
    color: red;
}

/* Форма отправки результата */
#send-result {
    margin-top: 40px;
}

#send-result form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#send-result input, #send-result textarea {
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#send-result button {
    background-color: #2a9d8f;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

#send-result button:hover {
    background-color: #e76f51;
}

#send-result p {
    margin-top: 20px;
    color: #4caf50;
}
