.results {
  width: 18rem;
}

.quiz-back {
  display: flex;
  justify-content: flex-end;
}

.results-title {
  font-family: var(--buddhism-font);
  font-weight: 400;
  color: hsl(208, 26%, 60%);
  font-size: 1.2rem;
  display: inline;
  line-height: 0;
}

.results-container {
  width: 100%;
  height: 19rem;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--text-color);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) transparent;
  padding: 0.5rem;
  margin-top: -0.5rem;
}

.quiz-link {
  opacity: 0.7;
  filter: grayscale(30%);
  font-size: 0.7rem;
  text-align: center;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;

  &:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: hsl(208, 26%, 60%);
  }
}

.quiz-result {
  background-color: hsl(36, 28%, 96%);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  padding: 0.5rem;
}

.link-box--mod {
  font-weight: bold;
  font-size: 0.7rem;
  padding: 2px 0;
  color: var(--text-color);
  transition: all 0.3s ease;
  text-decoration: underline;

  &:hover {
    color: var(--accent-color);
    text-decoration: none;

    cursor: pointer;
  }
}

.sub {
  line-height: 0;
  font-size: 0.8rem;
  font-family: var(--buddhism-font);
}

/* spiritual being */

.quiz {
  background-image: url("/images/quiz/bg-quiz1.webp");
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  overflow: hidden;
}

.quiz-form {
  width: min(35rem, calc(100vw - 1.5rem));
  height: 90vh;
  background-color: #e3ded1;
  padding: 1rem;
  overflow-y: auto;
  scrollbar-color: var(--accent-color) transparent;
  scrollbar-width: thin;
  position: relative;

  @media (min-width: 50rem) {
    margin: 1.5rem auto 1.5rem 1.5rem;
  }

  @media (min-width: 90rem) {
    width: 41rem;
  }
}

.quiz-title {
  font-size: 1.3rem;
  font-family: var(--buddhism-font);
  display: inline;
  background-color: var(--text-color);
  color: #e3ded1;
  padding: 2px 5px;
}

.question-group {
  margin: 1.5rem 0;
}

.question-text {
  font-size: 0.8rem;
  color: #333333;
  margin: 0.5rem 0;
  font-weight: bold;
}

.option-group {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.option-group {
  display: grid;
  grid-template-columns: min-content 1fr;
  gap: 5px;
  align-items: start;
}

.radio-input {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  margin: 3px 0 0;
  border-radius: 50%;
  border: 1px solid rgb(126, 155, 180);
}

.radio-input:checked {
  background-color: rgb(126, 155, 180); 
  
  box-shadow: inset 0 0 0 2px #e3ded1; 
}

.radio-label {
  line-height: 1.4;
}

.submit-button {
  background-color: rgb(30, 58, 95);
  color: #e3ded1; 
  padding: 0.3rem 0.5rem;
  border: none;
  font-weight: bold;
  font-size: 0.8rem;
  transition: 0.3s ease all;

  &:hover {
    cursor: pointer;
    transform: scale(1.05);
  }
}

#form-warning {
  font-size: 0.75rem;
  margin-top: 0.3rem;
  font-style: italic;
  font-weight: 600;
}

.result-name {
  max-width: 400px;
  margin: 1rem 0;

  @media (min-width: 90rem) {
    max-width: 600px;
  }
}

.embed-code-container p {
  margin-bottom: 0.2rem;
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.code {
  width: 400px;
  height: 70px;
  padding: 0.5rem;
  border: none;
  background-color: hsl(36, 28%, 96%);
  color: var(--text-color);
  resize: none;
  line-height: 1.3;
  outline: none;
}

.quiz-nav {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

