@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');

html {
    scroll-behavior: smooth;
  }
body
  {
    background: #fff0e1;;
    margin: 0px 0px 0px 0px;
    overflow-x: hidden;
    display: grid;
      grid-template-rows: auto 1fr auto;
      grid-template-columns: 1fr;
  
}
main {
    margin: 0px 10px 0px 15%;
    width: 70%;
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: large;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.question {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    background-color: #fae2ca;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.question img  {
    display: block;
    margin: 10px auto;
    max-width: 300px;
    border-radius: 5px;
    width: 100%;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.question img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.submitQuiz {
    display: block;
    margin: 20px auto;
    width: 200px; /* Фиксированная ширина */
    height: 50px; /* Фиксированная высота */
    text-align: center;
    font-size: 20px;
    font-family: "Roboto Slab", serif;
    font-weight: bold;
    background-color: #fae2ca; /* Основной цвет */
    color: #333;
    border: 2px solid #333; /* Граница */
    border-radius: 10px; /* Закругленные углы */
    cursor: pointer;
    transition: all 0.3s ease; /* Эффект перехода */
}

/* Эффект при наведении */
.submitQuiz:hover {
    background-color: #f5c89c; /* Более яркий цвет */
    border-color: #333; /* Акцент на границу */
    color: #333;
}

/* Активное состояние */
.submitQuiz:active {
    background-color: #4caf50; /* Зеленый цвет */
    color: white;
    border-color: #4caf50;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); /* Тень при нажатии */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .submitQuiz {
        width: 80%; /* Кнопка занимает всю ширину */
        height: auto; /* Автоматическая высота */
        line-height: normal; /* Сбрасываем line-height */
        padding: 10px; /* Добавляем отступы */
    }
}

.hidden {
    display: none;
}

#quizResult {
    text-align: center;
    margin-top: 20px;
}
#resultImage {
    width: 25%;
    height: 25%;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .custom-radio {
        width: 100%; /* Радио-кнопки занимают всю ширину */
        height: auto; /* Высота адаптируется под текст */
        line-height: normal; /* Выравнивание текста по умолчанию */
        padding: 10px 0; /* Добавляем отступы */
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .question img {
        max-width: 80%; /* Сужение изображений для мобильных */
    }
}

@media (max-width: 480px) {
    .question img {
        max-width: 100%; /* Изображения занимают всю ширину на маленьких экранах */
    }
}
/* Скрыть стандартное отображение радио-кнопки */
input[type="radio"] {
    display: none;
}

/* Контейнер для радио-кнопки */
input[type="radio"] + label {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, #f5c89c, #7c7165);
    border: 2px solid #7c7165;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

/* Эффект при наведении */
input[type="radio"] + label:hover {
    background: linear-gradient(135deg, #7c7165, #f5c89c);
    transform: scale(1.05);
}

/* Активное состояние при выборе */
input[type="radio"]:checked + label {
    background: #7c7165;
    color: #fff;
    border-color: #f5c89c;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
/* Скрываем стандартные радио-кнопки */
input[type="radio"] {
    display: none;
}

/* Стили для метки, чтобы она выглядела как кнопка */
.custom-radio {
    display: inline-block;
    width: 200px; /* Фиксированная ширина */
    height: 50px; /* Фиксированная высота */
    line-height: 50px; /* Выравнивание текста по вертикали */
    text-align: center;
    background-color: #fae2ca; /* Основной цвет */
    color: #333;
    border: 2px solid #ccc; /* Граница */
    border-radius: 10px; /* Закругленные углы */
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease; /* Эффект перехода */
}

/* Эффект при наведении */
.custom-radio:hover {
    background-color: #f5c89c; /* Более яркий цвет */
    border-color: #333; /* Акцент на границу */
}

/* Стили для активной (выбранной) кнопки */
input[type="radio"]:checked + .custom-radio {
    background-color: #4caf50; /* Зеленый цвет */
    color: white;
    border-color: #4caf50;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Тень */
}

/* Обеспечиваем одинаковый размер текста */
.custom-radio {
    font-family: "Roboto Slab", serif;
    font-size: 1rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .custom-radio {
        width: 80%; /* Радио-кнопки занимают всю ширину */
        height: auto; /* Высота адаптируется под текст */
        line-height: normal; /* Выравнивание текста по умолчанию */
        padding: 10px 0; /* Добавляем отступы */
    }
}
