body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.main-header {
    text-align: center;
    margin-bottom: 20px;
}

.main-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.main-header h2 {
    font-size: 20px;
    color: #007BFF;
    margin-bottom: 5px;
}

.main-header p {
    font-size: 16px;
    color: #555;
    font-style: italic;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

/* Отдельный класс для растягивания кнопок на всю ширину */
.full-width {
    display: block;
    width: 100%;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.container-btn {
    width: 100%; /* Растягиваем кнопку на всю ширину блока */
    max-width: 100%; /* Ограничиваем ширину */
    padding: 15px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    background: #007BFF;
    color: white;
}

.container-btn:hover {
    background: #0056b3;
}

.mode-btn {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    background: #007BFF;
    color: white;
}

.mode-btn:hover {
    background: #0056b3;
}

.test-mode {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

#test-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px; /* Увеличенная ширина блока с вопросами */
    margin: auto;
}

.question-box {
    padding: 20px;
}

/* Кнопки ответа */
.answer {
    display: block;
    width: 100%; /* Теперь кнопки во всю ширину блока */
    max-width: 800px; /* Подстраиваются под размер блока */
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ccc; /* Серое обрамление */
    background: white;
    color: #333; /* Черный текст */
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    margin: 10px 0;
}

.answer:hover {
    background: #ddd; /* Светло-серый фон при наведении */
}

/* Стили для правильного и неправильного ответа */
.correct {
    border-color: #28a745 !important; /* Зеленая рамка */
    color: black !important;
    background: #eaf8ed !important; /* Светло-зеленый фон */
}

.incorrect {
    border-color: #dc3545 !important; /* Красная рамка */
    color: black !important;
    background: #f8e6e6 !important; /* Светло-красный фон */
}

/* Блок с результатами */
.result-box {
    background: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

.wrong {
    color: red;
    font-weight: bold;
}

.right {
    color: green;
    font-weight: bold;
}

.result {
    font-size: 18px;
    padding: 10px;
}

.bottom-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.bottom-buttons button {
    padding: 15px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    width: 200px;
}

#restart {
    background: #007BFF;
    color: white;
}

#restart:hover {
    background: #0056b3;
}

.bottom-buttons button:nth-child(2) {
    background: #FFC107;
    color: black;
}

.bottom-buttons button:nth-child(2):hover {
    background: #e0a800;
}

#score-container {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}



.shuffle-toggle {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    color: #333;
}

.shuffle-toggle input {
    transform: scale(1.2);
    margin-right: 10px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: #f4f4f4;
    font-size: 16px;
    color: #333;
}

.footer a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}
