html,
body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.quiz {
  width: 100%;
  margin: 0 auto;
  background-color: #e7e3eb;
  border: 1px solid #ccc;
  border-radius: 10px;
  transition: transform 0.3s ease;
  display: flex;
  max-width: 1000px;
  font-family: Barlow, sans-serif;
  overflow: hidden;
  height: 600px;
  color: #624b78;
}

.swiper-slide {
  display: flex;
  justify-content: space-between;
  background-color: #e7e3eb;
  border-radius: 10px;
  position: relative;
}

.quiz #button-container {
  width: 170%;
  display: flex;
  flex-wrap: wrap;
}

.quiz h3 {
  font-size: 2rem;
}

.quiz h2 {
  font-size: 1.75rem;
  margin: 10px 0;
  font-weight: 500;
  line-height: 1;
}

.quiz h4 {
  font-size: 1.2rem;
}

#quiz-container {
  width: 100%;
  min-height: 500px;
  display: flex;
  justify-content: space-between;
}

.options {
  width: 100%;
  margin-top: 35px;
}

#progressAndCount {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-width: 180px;
}

#cover-content,
.result-content {
  padding: 1rem;
  width: 100%;
}

#coverHeader {
  border-bottom: 2px solid #624b78;
  line-height: 1.2;
  margin-bottom: 20px;
  padding-bottom: 20px;
  
}
@media (min-width: 360px) {
  #coverHeader {
    margin-bottom: 15px;
    padding-bottom: 15px;
    margin-top: 0;
  }
}
.cover-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
  box-sizing: border-box;
}

.cover-content p {
  font-size: 14px;
  margin: 0;
  padding: 0;
  line-height: 1;
}

#coverfootNote {
  font-size: 14px;
}

/* Style for the question text */
#question-container h2 {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.25;
  min-height: 120px;
  width: 100%;
  max-width: calc(100% - 100px);
  margin-top: 0;
}

#question-container {
  padding: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: space-around;
  max-width: unset;
}

/* Style for answer options */
.quiz label {
  display: flex;
  margin: 10px 0;
  padding: 10px;
  background-color: white;
  border: 1px solid #fff;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  color: #000;
  max-width: 270px;
  box-sizing: border-box;
  align-items: center;
  line-height: 1;
}

.quiz label span {
  line-height: 1;
}

.check {
  display: flex;
  gap: 10px;
  margin: 15px 0 0;
  align-items: center;
}

.check label {
  display: inline-block;
  border-radius: 0;
  background-color: unset;
  border: 0;
  color: #624b78;
  padding: 0;
  max-width: unset;
  margin: 0;
}

.check input[type="checkbox"] {
  width: 16px;
  cursor: pointer;
  display: inline-block;
}

.quiz label:has(input:checked) {
  background-color: white;
  background-color: #00838f;
  color: white;
  border: 1px solid #00838f;
}

.quiz label:has(input:disabled) {
  background-color: #ccc;
}

#cover {
  display: flex;
  flex-direction: row;
  height: max-content;
  justify-content: flex-end;
}

#progress-container {
  width: 100%;
  height: 16px;
  background-color: #ffffff;
  margin: 10px 0;
  border-radius: 16px;
}

#progress-bar {
  width: 0;
  height: 100%;
  background-color: #00838f;
  border-radius: 16px;
  transition: width 0.3s;
}

/* Style for the Next button */

#next {
  transition: background-color 0.2s;
  width: 100%;
  max-width: 120px;
  padding: 10px 12px;
}

#prev {
  background-color: #00838f;
  border: solid 2px #00838f;
  color: white;
  width: 100%;
  max-width: 120px;
  padding: 10px 12px;
}

#prev:hover {
  background-color: #e7e3eb;
  border: solid 2px #00838f;
  color: #18263b;
}

.image-container {
  width: 100px;
  height: 160px;
  position: absolute;
  right: 0;
  top: 0;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.titdes {
  font-size: 12px;
  font-weight: 500;
  margin: 14px 0 0;
}

.cover-left {
  max-width: calc(100% - 140px);
  width: 100%;
}

.reference p {
  font-size: 10px;
  margin: 0;
  font-weight: 300;
}

.reference span {
  font-weight: 600;
}

.reference .copy {
  font-size: 10px;
  margin: 10px 0;
  font-weight: 600;
}

.cover-content .response {
  margin: 10px 0;
  width: calc(100% - 100px);
  font-weight: 700;
}

.cover-content .next {
  margin: 20px 0;

}

.cover-left {
  max-width: 100%;
}

.cover-left .titdes,
.cover-left h2 {
  max-width: calc(100% - 100px);
  width: 100%;
}

.cover-left h2 {
  font-size: 20px;
}

.result-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  overflow-y: auto;
}

.swiper-slide-result {
  max-height: 600px;
  overflow-y: h;
}

.result-content .title {
  margin: 10px 0;
  max-width: calc(100% - 85px);
  width: 100%;
  text-align: center;
}

.result-content .title p {
  font-weight: 500;
  font-size: 16px;
  margin: 0;
}

.result-content .title .scoretitle,
.result-content .title .score {
  font-size: 20px;
  margin: 10px 0 0;
}

.result-content .title .score {
  font-weight: 700;
}

.result {
  font-size: 16px;
  margin-top: auto;
}

.result p strong {
  font-weight: 600;
}

.qusresult p {
  font-weight: 400;
  margin-top: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.qusresult p span {
  font-weight: 700;
  min-width: 36px;
  text-align: left;
}

.ques5 {
  margin-bottom: 0;
}

.pdfdown,
.over {
  margin: 0 auto;
  display: block;
}

.ques1 {
  width: calc(100% - 100px);
}

.result-content-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.result-content-inner h4 {
  margin: 20px auto 30px 0px;
  width: calc(100% - 100px);
  text-align: center;
}

@media (min-width: 360px) {
  .quiz #button-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }

  #question-container {
    width: 100%;
    padding: 1rem;
  }

  #progressAndCount {
    width: 100%;
  }

  .options {
    margin-top: 0;
  }

  .quiz h2 {
    font-size: 28px;
  }

  .cover-content .response {
    margin: 20px 0 30px;
    width: 100%;
  }

  .cover-left .response {
    max-width: calc(100% - 100px);
    font-size: 18px;
  }

  .result-content .title p {
    font-weight: 500;
    font-size: 18px;
    margin: 0;
  }

  .swiper-slide-landing h2 {
    font-size: 24px;
  }
}

@media (min-width: 440px) {
  .qusresult p {
    font-size: 18px;
  }

  .result-content-inner h4 {
    font-size: 25px
  }

  .resultimg {
    top: -81px;
  }
}

@media (min-width: 570px) {
  #prev {
    padding: 12px 24px;
  }

  #next {
    padding: 12px 24px;
  }

  #question-container h2 {
    min-height: unset;
    max-width: unset;
  }

  #quiz-container {
    min-height: 600px;
    justify-content: center;
  }

  #cover-content {
    padding: 2rem;
    width: 100%;
    min-width: 280px;
    padding-left: 20px;
  }

  .result-content .title p {
    font-size: 28px;
  }

  .result-content .title .scoretitle,
  .result-content .title .score {
    font-size: 32px;
  }

  .result-image.langing-image {
    position: static;
    height: 100%;
    max-width: 200px;
  }

  .cover-left h2,
  .cover-left .response,
  .qusresult .ques2,
  .qusresult .ques3 {
    max-width: 100%;
    width: 100%;
  }

  .image-container {
    max-width: 365px;
    width: 100%;
    min-width: 150px;
    position: static;
    height: auto;
  }

  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .langing-image {
    max-width: 140px;
    height: 160px;
    min-width: unset;
    position: absolute;
    right: 0;
    top: 0;
  }

  .image-container.langing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .result-content .title {
    max-width: 100%;
  }

  #coverText {
    width: 100%;
  }

  .qusresult p {
    font-size: 16px;
  }

  .resultimg {
    display: none;
  }

  .result-image.langing-image {
    display: block;
  }


  .qusresult .ques1 {
    width: 100%;
  }

  .result-content-inner h4 {
    margin: 15px 0 20px 0px;
    width: 100%;
  }
}

@media (min-width: 600px) {
  .langing-image.image-container {
    max-width: 365px;
    width: 63%;
    min-width: 150px;
    position: static;
    height: auto;
  }

  .image-container.langing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .result-content {
    padding: 32px 32px 32px 32px;
  }

  .resultimg {
    top: -98px;
    right: -32px;
  }
}

.cover-content .disclaimer {
  margin-top: 20px;
}

.result-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
}


a.button.primary,
button.primary,
button.pdfdown,
button.over {
  background-color: #624b78;
  color: #fff;
  font-family: Barlow, sans-serif;
  padding: 12px 24px;
  border-radius: 32px;
  cursor: pointer;
  margin: 0.25rem;
  border: 2px solid #624b78;
  font-size: 16px;
}

@media (min-width: 395px) {
  #coverText {
    max-width: calc(100% - 100px);
  }
}
@media(min-width: 570px) {
 #coverText {
  max-width: 100%;
 }
  
}
@media (min-width: 768px) {
  #question-container {
    padding: 2rem;
  }

  #prev {
    max-width: 150px;
  }

  #next {
    max-width: 150px;
  }

  #question-container h2 {
    font-size: 1.5rem;
  }

  .quiz h2 {
    font-size: 26px;
    max-width: 100%;
  }

  .quiz h4 {
    font-size: 1rem;
  }

  .result-content-inner h4 {
    font-size: 30px;
    margin-top: 0;
  }

  .quiz label {
    font-size: 16px;
  }

  .cover-left {
    max-width: 100%;
  }

  #progress-container {
    min-width: unset;
    position: unset;
  }

  #cover {
    display: flex;
    flex-direction: row;
    height: auto;
    align-items: flex-start;
  }

  #progress-container {
    width: 100%;
  }

  #coverText {
    font-size: 1rem;
  }

  .cover-content .titdes {
    font-size: 16px;
    width: 100%;
  }

  .cover-content .next {
    margin-top: 25px;
  }

  .swiper-slide-result {
    max-height: unset;
    overflow-y: unset;
  }

  .result-content .title p {
    font-size: 32px;
  }

  .result-content .title .scoretitle,
  .result-content .title .score {
    font-size: 48px;
  }

  .qusresult p {
    font-size: 18px;
  }
a.button.primary,
button.primary,
button.pdfdown,
button.over {
  font-size: 20px;
}
}

@media (min-width: 900px) {
  .quiz h2 {
    font-size: 2.5rem;
  }

  .cover-content .response {
    margin: 25px 0;
    font-size: 20px;
    font-weight: 700;
  }

  .result-content .title {
    margin-top: 20px;
  }

  .qusresult p {
    font-size: 20px;
  }
}

.quiz input {
  font-size: 1.25rem;
  max-width: max-content;
  display: inline;
  margin-bottom: 0;
  padding: 0;
  margin-top: 1px;
  line-height: 1;
  width: 16px;
  height: 16px;
}

.quiz h2::after {
  content: "";
  position: absolute;
  height: 0;
  background: unset;
  top: 100%;
  left: 0;
  width: 300px;
  margin-top: 1.5rem;
}

button:disabled,
button:hover:disabled,
button:disabled:hover {
  background-color: lightgray;
  cursor: not-allowed;
  color: gray;
  border: 2px solid lightgray;
}

a.button.primary:hover,
a.button.primary:focus,
button.primary:enabled:hover,
button.primary:focus,
button.pdfdown:hover,
button.over:hover {
  background-color: transparent;
  cursor: pointer;
  color: #000;
  border: 2px solid #624b78;
}

button.pdfdown,
button.over {
  margin: 0 0 20px;
}

.non-homepage .hero-container {
  display: block;
}

.non-homepage .hero-container:first-of-type {
  display: none;
}

.non-homepage .hero-container {
  display: none;
}

.non-homepage .hero-container:first-of-type {
  display: block;
}

.startbox {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}
.start-image {
  top: -1rem;
  right: -1rem;
}

.last-image {
  top: -89px;
  right: -1rem;
}

.home-image,
.result-image {
  display: none;
}

@media (min-width: 440px) {
  .last-image {
    top: -96px;
  }

}
@media (min-width: 570px) {
  .start-image,
  .last-image {
    display: none;
  }

  .home-image {
    display: block;
  }
}