@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap");

/* General style */

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;

  font-family: "Helvetica", sans-serif;

  line-height: 1.6;

  letter-spacing: normal;
}

html{
  color-scheme: dark;
}
body {
  color: #fff;
  background-color: #161c23;
}

.quiz {
  display: flex;

  justify-content: center;

  flex-direction: column;

  align-items: center;

  margin: 55px 0 0 0;

  background-color: #161c23;

  padding: 50px 0;

  position: relative;
}

#quiz-container {
  padding: 1rem;
}

#current-score {
  position: absolute;

  top: 1rem;

  right: 1rem;

  font-size: 1.4rem;

  color: gold;

  border: 1px solid gold;

  border-radius: 5px;

  padding: 5px 8px;
}

.quiz-title {
  margin-top: 40px;

  font-family: "Poppins", sans-serif;

  font-size: 2.5rem;

  color: gold;

  text-shadow: 0px 0px 40px orange;
}

hr {
  background: gold;

  height: 3px;

  width: 60px;

  border-radius: 5px;

  border: none;

  margin: auto;
}

#quiz-container p {
  color: orange;

  margin: 10px auto 50px auto;

  font-size: 1.4rem;
}

h3 {
  margin-top: 20px;

  margin-bottom: 20px;

  font-size: 1.5rem;

  font-weight: 500;

  color: #fff;
}

label {
  display: flex;

  margin-bottom: 10px;

  font-size: 1.3rem;

  align-items: center;

  font-weight: 400;

  color: #ddd;
}

input[type="radio"] {
  margin-right: 10px;

  cursor: pointer;

  -webkit-appearance: none;

  -moz-appearance: none;

  appearance: none;

  border: 2px solid orange;

  border-radius: 50%;

  width: 17px;

  height: 17px;

  background-color: #1c2f38;
}

input[type="radio"]:checked {
  background-color: yellow;
}

/* Buttons */

.buttons {
  display: flex;

  justify-content: center;

  gap: 3rem;

  flex-wrap: wrap;
}

.buttons > * {
  border-radius: 5px;

  box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.25);
}

button[type="submit"]:disabled {
  opacity: 0.5;

  cursor: not-allowed;
}

button[type="submit"],
button[type="button"] {
  display: block;

  margin-top: 20px;

  padding: 10px 20px;

  background-color: #a459d1;

  color: #fff;

  border: none;

  cursor: pointer;

  font-size: 16px;

  font-weight: bold;

  transition: all 0.2s ease-in-out;
}

button[type="button"]:hover {
  background-color: #a459d1;
}

button[type="submit"]:active,
button[type="button"]:active {
  transform: scale(0.95);
}

/* Media queries */

@media (min-width: 1241px) {
  .quiz {
    margin-left: 260px;

    margin-top: 80px;
  }

  .quiz-title {
    font-size: 2.5rem;
  }

  #quiz-container p {
    font-size: 1.4rem;
  }
}

@media (max-width: 1240px) {
  .quiz-title {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  label {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .buttons {
    gap: 1.7rem;
  }

  #quiz-container p {
    font-size: 1.2rem;
  }
  h3{
    font-size: 1.2rem;
}
  label {
  font-size: 1rem;
  }
}
