* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  background-image: linear-gradient(90deg, #0a00cc, #000594);
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  background-color: rgb(232, 232, 232);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px;
  max-width: 900px;
  min-width: 60vw;
}

h1 {
  font-size: 3.5em;
}

.annotation {
  margin-top: 10px;
  font-size: 1.5em;
  font-weight: 300;
  margin-bottom: 50px;
}

.themes_container {
  display: flex;
  margin-bottom: 50px;
}

.theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  width: 150px;
  height: 150px;
  text-align: center;
  margin-right: 20px;
  margin-left: 20px;
  border: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme:not(.pressed):hover {
  background-color: white;
  border: 3px solid #8c11fa;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(140, 17, 250, 0.25);
}

.theme.pressed {
  background-color: #8c11fa;
  color: white;
  border-color: #8c11fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(140, 17, 250, 0.4);
}

.theme.pressed:hover {
  background-color: #8c11fa;
  color: white;
  border-color: #8c11fa;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(140, 17, 250, 0.5);
}

.theme_icon {
  font-size: 3em;
  margin-bottom: 5px;
}

.theme_title {
  font-weight: 600;
}

.theme:first-of-type {
  margin-left: 0;
}

.theme:last-of-type {
  margin-right: 0;
}

.timer_div {
  width: calc(100% - 40px);
  background-color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.timer_sign {
  padding: 20px;
  font-size: 1.5em;
}

.checkbox {
  margin-top: 5px;
}

.button_div {
  width: calc(100% - 40px);
  display: flex;
}

.start_quiz_btn,
.to_the_main_button {
  margin-top: 50px;
  width: 100%;
  font-size: 30px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 20px;
  background-image: linear-gradient(90deg, #8c11fa, #009ca0);
  color: white;
  padding: 15px;
  border: 3px solid transparent;
}

.start_quiz_btn:hover,
.to_the_main_button:hover {
  background-image: none;
  background-color: white;
  color: black;
  border: 3px solid #8c11fa;
}

.start_quiz_btn:active,
.theme:active,
.to_the_main_button:active {
  background-color: #8c11fa;
  color: white;
}

.timer_container {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
}

.checkbox {
  display: none;
}

.timer_label {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background-color: white;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.5em;
}

.timer_text {
  font-weight: 500;
}

.custom_slider {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: #ccc;
  border-radius: 15px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.custom_slider::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.checkbox:checked + .timer_label .custom_slider {
  background-color: #8c11fa;
}

.checkbox:checked + .timer_label .custom_slider::before {
  left: 32px;
}

.theme:hover {
  transform: translateY(-5px);
  transition: transform 0.5s ease;
  box-shadow: 0 8px 20px rgba(140, 17, 250, 0.3);
}

.question_header {
  margin-bottom: 15px;
}

.answer {
  padding: 30px;
  padding: 30px 60px 30px 60px;
  border: 3px solid transparent;
  border-radius: 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1em;
  background-color: white;
  color: #8c11fa;
  margin: 20px;
  flex: 0 0 calc(33.333% - 40px);
  min-width: 200px;
  max-width: 280px;
}

.question_text {
  text-align: center;
}

.answer_variants_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
}

.question_text_div {
  padding: 20px;

  display: flex;
  align-items: center;
}

.answer:hover {
  background-image: none;
  background-color: white;
  border: 3px solid #8c11fa;
}

.timer_line {
  border-radius: 5px;
  width: 100%;
  height: 10px;
  background-color: #8c11fa;
  border: 1px solidt transparent;
  margin-top: 30px;
  margin-bottom: -20px;
}

.final_page_header {
  margin-bottom: 50px;
}
.stat {
  font-size: 1.5em;
  text-align: center;
}

.thanks {
  margin-top: 100px;
  font-size: 1.5em;
  font-weight: 500;
  margin-bottom: -20px;
}

.pressed {
  background-color: #8c11fa;
}

.correct {
  background-color: #4caf50 !important; /* зелёный */
  color: white !important;
  border-color: #4caf50 !important;
}
.wrong {
  background-color: #f44336 !important; /* красный */
  color: white !important;
  border-color: #f44336 !important;
}
