html {
  background: linear-gradient(to right, white, #9cf5ff); /* Gradient background */
}

body {
  font-family: sans-serif;
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  flex-direction: column;
  min-height: 100vh;
  align-items: flex-start;
  align-items: center;
  padding: 1em;
  padding-top: 100px;
  padding-bottom: 100px;
}
body.after-first-question .Quiz-title {
  display: none;
}

.Container-sex {
  background: url("img/sex-m.svg") no-repeat bottom center;
  background-size: contain;
}
@media (min-width: 768px) {
  .Container-sex {
    background-image: url("img/sex.svg");
  }
}

.Container-muskel {
  background: url("img/muskel-1-m.svg"), url("img/muskel-2-m.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: bottom left, top right;
  background-size: contain, contain;
}
@media (min-width: 768px) {
  .Container-muskel {
    background-image: url("img/muskel-1.svg"), url("img/muskel-2.svg");
  }
}

.Container-rauchen {
  background: url("img/rauchen-1-m.svg"), url("img/rauchen-2-m.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: bottom left, top right;
  background-size: contain, contain;
}
@media (min-width: 768px) {
  .Container-rauchen {
    background-image: url("img/rauchen-1.svg"), url("img/rauchen-2.svg");
  }
}

.Container-verhuetung {
  background: url("img/verhuetung-1-m.svg"), url("img/verhuetung-2-m.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: bottom left, top right;
  background-size: contain, contain;
}
@media (min-width: 768px) {
  .Container-verhuetung {
    background-image: url("img/verhuetung-1.svg"), url("img/verhuetung-2.svg");
  }
}

.Container-psycho {
  background: url("img/mental-health-m.svg") no-repeat bottom center;
  background-size: contain;
}
@media (min-width: 768px) {
  .Container-psycho {
    background-image: url("img/mental-health.svg");
  }
}

.Quiz-title {
  top: 0;
  width: 100%;
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  padding-bottom: 0.5em;
  color: #3F7590;
}
@media (min-width: 576px) {
  .Quiz-title {
    font-size: 1.8em;
  }
}
@media (min-width: 768px) {
  .Quiz-title {
    font-size: 2em;
    padding: 1em 0;
    position: absolute;
    display: block;
  }
}

.Quiz-quelle {
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  padding: 0.8em 1em;
  color: #1A1A1A;
  display: inline-block;
}
.Quiz-quelle a {
  color: #3F7590;
}
.Quiz-quelle a:visited {
  color: #3F7590;
}
.Quiz-quelle.background-on-desktop {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 1em;
}
@media (min-width: 768px) {
  .Quiz-quelle {
    display: block;
    position: absolute;
    bottom: 0;
  }
  .Quiz-quelle.background-on-desktop {
    position: static;
  }
}

.Quiz-container {
  margin: 0.8em;
  position: relative;
  max-width: 470px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 1em;
  background-color: #ffffff;
  width: 100%;
}

.logo {
  height: auto;
  z-index: 100;
  position: absolute;
  top: 1em;
  left: 1em;
}
.logo img {
  width: 100%;
  max-width: 70px; /* Smaller size for mobile */
  height: auto;
}
@media (min-width: 576px) {
  .logo img {
    max-width: 100px; /* Smaller size for mobile */
  }
}
@media (min-width: 768px) {
  .logo img {
    max-width: 150px; /* Larger size for desktop */
  }
}

.Quiz-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 1.5em;
}
@media (min-width: 576px) {
  .Quiz-content {
    padding: 2em;
  }
}

.Quiz-questionContainer {
  width: 100%;
}

form {
  width: 100%;
}

.radio-group {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  margin: 1em 0;
}

.radio-group label {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border: 2px solid #000;
  border-radius: 2em;
  padding: 0.5em;
  cursor: pointer;
  text-align: center; /* Center text in label */
}

label.radio-group--true {
  border-color: #C9D752;
}

label.radio-group--false {
  border-color: #D98C16;
}

input[type=radio] {
  display: none;
}

input[type=radio]:checked + .radio-group--true {
  background-color: #C9D752;
}

input[type=radio]:checked + .radio-group--false {
  background-color: #D98C16;
}

button {
  margin-top: 1em;
}

button {
  margin-top: 1em;
  background-color: #3F7590;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 1em;
  padding: 0.5em 1.4em;
  cursor: pointer;
  text-align: center;
  font-size: 100%;
}

.Quiz-heading {
  font-weight: bold;
  margin-bottom: 0;
  margin-top: 0;
  color: #3F7590;
}

.Quiz-question {
  margin-top: 4px;
  margin-bottom: 2em;
  color: #1A1A1A;
}

/* Styles for multiple-choice questions */
.multiple-choice .radio-group {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin: 1em 0;
}
.multiple-choice .radio-group label {
  border-color: #b3b3b3;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.5em;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 0.7em;
}
.multiple-choice .radio-group input[type=radio] {
  margin-right: 10px;
  display: inline-block;
  display: none;
}
.multiple-choice .radio-group input[type=radio]:checked + label {
  background-color: #C9D752; /* Change to your desired color */
  border-color: #C9D752;
}

/* Styles for correct and incorrect results */
.Quiz-result {
  display: inline-block;
}

.Quiz-result.correct {
  background-color: #f0f4ce;
  padding: 0.5em 1em;
  border-radius: 2em;
  text-align: center;
}

.Quiz-result.incorrect {
  background-color: #f9e3c2;
  padding: 0.5em 1em;
  border-radius: 2em;
  text-align: center;
}

.Quiz-resultContainer .Quiz-question {
  margin-bottom: 1em;
  font-weight: bold;
}
