@import url(https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Anton&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* mac, IOS 系統字體               Windows 英文系統字   微軟正黑體    Android 系統字  IOS 系統字  通用字體 */

  display: block;

}

.answer-container {
  display: block;
  color: var(--question-text);
  background-color: var(--container-bg);
  border-radius: 10px;
  /* box-shadow: 0 0 10px 2px rgba(100, 100, 100, 0.1); */
  width: 99%;
  max-width: 1400px;
  padding: 0.5rem 0rem 1rem 0.5rem;
  /* padding: 0rem 0rem 0.1rem 0.5rem; */
  margin: 2.5rem auto;
}

.outter-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: var(--question-text);
  background-color: var(--container-bg);
  border-radius: 10px;
  /* box-shadow: 0 0 10px 2px rgba(100, 100, 100, 0.1); */
  width: 99%;
  max-width: 1400px;
}

.item-container {
  margin: 0.5rem auto;
}

.item-container:hover {
  border: #6dda9a solid 6px;
  /* border-color: #6dda9a; */
}

.answer-container h5 {
  text-indent: -1.5rem;
  /* font-size: clamp(1.2rem, 2vw, 1.4rem); */
  /* -webkit-text-size-adjust: 105%; */
  padding: 1rem 0.1rem 0rem 1.5rem;
  margin: 0;
}

.answer-container label {
  cursor: pointer;
}

.fixed-submit-button {
  display: block;
  position: fixed;
  z-index: 99;
  width: 100%;
  bottom: 0px;
  right: 0px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-family: inherit;
}



/* The radiocontainer */
.radiocontainer {
  padding: 0;
  margin: 0.5rem 1rem 0.5rem 1.2rem;
  padding: 0.3rem 0.1rem 0.3rem 1.5rem;
  border-radius: 6px;
  color: var(--radio-unchecked-text);
  background-color: var(--radio-unchecked-bg);
  position: relative;
}

.progress-container {
  width: 100%;
  background-color: var(--container-bg);
  height: 0.2em;
  position: fixed;
  bottom: 2.5em;
  left: 0;
  z-index: 100;
  overflow: hidden;

}

.progress-bar {
  left: 0;
  width: 0%;
  z-index: 101;
  height: 0.2em;
  bottom: 2.5em;
  background-color: var(--progress-bar);
  transition: width 0.4s ease;
}



.radiocontainer input[type="radio"] {
  display: none;
}

.radiocontainer .ItemAsbutton {
  display: block;
  cursor: pointer;
}

.radiocontainer.correct.selected {
  color: var(--radio-checked-text);
  background-color: var(--radio-checked-bg);
  border: 3px solid;
}

.radiocontainer.wrong {
  background-color: lightblue;
  border: 3px solid;
}

/* The radiocontainer */
.radiocontainerAns {
  margin: 0.5rem 1rem 0.5rem 1.2rem;
  padding: 0.3rem 0.1rem 0.3rem 1.5rem;
  border-radius: 6px;
  background-color: var(--radio-unchecked-bg);
  color: var(--radio-unchecked-text);
  position: relative;
}

.radiocontainerAns.correct.selected {
  background-color: var(--radio-checked-bg);
  border: 3px solid;
}

.radiocontainerAns.wrong {
  background-color: var(--radio-checked-bg);
  color: var(--radio-checked-text);
  position: relative;
  border: 3px solid;
}


.removeInputMark {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
}

.markcontainerANS {
  position: absolute;
  top: 0.3em;
  left: 0.3em;
}

.radiocontainer:has(input:checked),
.radiocontainerAns:has(input:checked) {
  color: var(--radio-checked-text);
  background-color: var(--radio-checked-bg);
  /*  font-weight: bold; */
}


#fa-purple {
  background-color: var(--button-purple-bg);
  color: var(--button-purple-text);
  font-size: 1.2rem;

}

#fa-purple:hover {
  background-color: #732d91;
}

#fa-purple:hover {
  background-color: #8e44ad;
}


#btn-back-green {
  background-color: var(--button-green-bg);
  color: var(--button-green-text);
  font-size: 1.2rem;

}

#btn-back-green:hover {
  background-color: #6dda9a;
}



.score-board {
  display: flex;
  border-radius: 10px;
  box-shadow: 0 0 10px 2px rgba(100, 100, 100, 0.1);
  background-color: var(--container-bg);
  width: 99%;
  max-width: 1400px;
  padding: 0rem 0rem 0.3rem 0.5rem;
  margin: 0.5rem auto;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.container h1 {
  color: #c10fd1;
  /* font-size: clamp(1.5rem, 2.3vw, 4rem); */
  text-align: center;
  margin: 0px 0px;
  padding: 0px 0px;
}


#back-home:hover {
  color: #5734d6;
  cursor: pointer;
}

#back-home {
  flex-grow: 1;
  outline: none;
  border: none;
  background-color: transparent;
  color: #c33bcf;
  /* font-size: clamp(2rem, 2.3vw, 5rem); */
  text-align: center;
  margin: 0px 0px 0px 10px;
  padding: 0px 0px;
}

#topic-text {
  flex-grow: 8;
}


.score {
  flex: 1;
  /* padding-top: 0.2rem; */
  margin: 0.5rem 0.2rem;
}

.score h1 {
  color: var(--score-text);
  /* font-size: clamp(1.7rem, 3vw, #3112dd;
  /* font-size: clamp(1.7rem, 3vw, 4rem); */
  text-align: center;
  margin: 0 0;
}

.score p {
  /* font-size: 1.1rem; */
  text-align: left;
  margin: 0 0;
  padding: 0 0;
}

.icon {
  width: 1rem;
  height: 1rem;
}

.icon-big {
  margin-top: 6px;
  width: 2rem;
  height: 2rem;
  filter: invert(51%) sepia(22%) saturate(7170%) hue-rotate(174deg) brightness(105%) contrast(102%);
}

#scroll-top {
  width: 2rem;
  height: 2rem;
  position: fixed;
  bottom: 3rem;
  right: 10px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: transparent;
  cursor: pointer;
  border-radius: 1em;
  text-align: center;
  align-items: center;
  /* font-size: 1rem; */
  display: none;


}

@media screen and (max-width: 400px) {
  #scroll-top {
    bottom: 5.5em;
  }
}



h1,
.h1,
h2,
.h2 {
  font-size: 34px;
  font-weight: 700;
  line-height: 150%;

}

@media screen and (max-width: 600px) {

  h1,
  .h1,
  h2,
  .h2 {
    font-size: 30px;

  }
}

h3,
.h3 {
  font-size: 30px;
  font-weight: 600;
  line-height: 140%;

}

@media screen and (max-width: 600px) {

  h3,
  .h3 {
    font-size: 25px;

  }
}

@media screen and (max-width: 400px) {

  h3,
  .h3 {
    font-size: 17px;

    line-height: 102%;
  }
}

h4,
.h4 {
  font-size: 28px;
  font-weight: 500;
  line-height: 150%;

}

@media screen and (max-width: 600px) {

  h4,
  .h4 {
    font-size: 26px
  }
}

@media screen and (max-width: 400px) {

  h4,
  .h4 {
    font-size: 18px
  }
}

h5,
.h5 {
  font-size: 22px;
  font-weight: 500;
  line-height: 150%;

}

@media screen and (max-width: 600px) {

  h5,
  .h5 {
    font-size: 20px;
    line-height: 150%;

  }
}


@media screen and (max-width: 400px) {

  h5,
  .h5 {
    font-size: 17px;
  }
}

h6,
.h6 {
  font-size: 24px;
  font-weight: 500;
  line-height: 150%;

}

@media screen and (max-width: 600px) {

  h6,
  .h6 {
    font-size: 22px;

  }
}

@media screen and (max-width: 400px) {

  h6,
  .h6 {
    font-size: 17px;
  }
}


p,
.text,
span,
li {
  font-size: 20px;
  font-weight: 400;
  line-height: 150%;

}


@media screen and (max-width: 900px) {

  p,
  .text,
  span,
  li {
    font-size: 18px;
    line-height: 150%;

  }
}

@media screen and (max-width: 600px) {

  p,
  .text,
  span,
  li {
    font-size: 18px;
    line-height: 150%;

  }
}

@media screen and (max-width: 400px) {

  p,
  .text,
  span,
  li {
    font-size: 17px;

    line-height: 120%;
  }
}

.container {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

@media screen and (max-width: 600px) {
  container {
    margin: 0;
    padding: 0;

  }
}

.btn {
  background-color: var(--button-bg);
  border: none;
  color: var(--button-text);
  border-radius: 10px;
  padding: 7px 15px;
  cursor: pointer;
  margin: 6px;
}

/* .btn:hover {
  background-color: rgb(27, 209, 200);
} */

/* h3,
h4,
h5,
h6 {
  margin-bottom: min(3rem, 3%);
} */

.ribbon {
  width: 1.5em;
  height: 1.5em;
  font-size: 1em;
  padding: 1px;
  position: absolute;
  right: -20px;
  top: -10px;
  text-justify: center;
  text-align: center;
  border-radius: 50%;
  transform: rotate(20deg);
  background-color: red;
  color: var(--text-color);
  z-index: 99;
}

.examBlock input[type="radio"] {
  display: none;
}

.examBlock input:checked+.button {
  /* background: #5e7380; */
  background: var(--label-active-bg);
  color: var(--label-active-text);
  cursor: default;
}

.examBlock input:disabled+.button {
  background: var(--radio-disabled-bg);
  color: var(--radio-disabled-text);
  cursor: default;
}

#btn_mistake:disabled {
  background: var(--radio-disabled-bg);
  color: var(--radio-disabled-text);
  cursor: default;
}


.examBlock .button {
  display: inline-block;
  position: relative;
  margin: 6px 12px 6px 6px;
  padding: 10px 10px;
  background: var(--label-unactive-bg);
  color: var(--text-color);
  cursor: pointer;
}

@media screen and (max-width: 400px) {
  .examBlock .button {
    margin: 3px 6px 3px 6px;
    padding: 6px 6px;
  }
}


.topic-container {
  display: flex;
  background-color: var(--container-bg);
  border-radius: 10px;
  /* box-shadow: 0 0 10px 2px rgba(100, 100, 100, 0.1); */
  width: 99%;
  max-width: 1400px;
  padding: 0.1rem 0.5rem 0.1rem 0.5rem;
  justify-content: center;
  align-items: center;
  margin: 0.1rem auto;
  height: 50px;
}

.topic-container h3 {
  color: var(--text-color);
  /* font-size: clamp(1.5rem, 2.3vw, 4.5rem); */
  text-align: center;
  margin: 0px 0px;
  padding: 0px 0px;
}


/* .examBlock .button:hover {
   background: #bbb;
  color: #fff; 
} */

.examBlock .round {
  border-radius: 8px;
}

.examBlock {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  /* margin: 16px 0px 16px 0px; */
  border-radius: 10px;
  background-color: var(--container-bg);
  padding: 12px;
}

@media screen and (max-width: 1024px) {
  .examBlock {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

  }
}

@media screen and (max-width: 900px) {
  .examBlock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

  }
}

@media screen and (max-width: 630px) {
  .examBlock {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

  }
}


@media screen and (max-width: 490px) {
  .examBlock {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

  }
}

.button-container {
  display: flex;
  /* 启用 Flexbox */
  justify-content: space-between;
  align-items: center;
  /* 子元素之间留出最大空间，实现两端对齐 */
  width: 100%;
  height: 100px;

}

@media screen and (max-width: 400px) {
  .button-container {
    width: 100%;
    height: 80px;

  }
}

.bi-arrow-90deg-up {
  fill: #3498db;
  /* Changes the interior color */
  width: 50px;
  height: 50px;
  border: none;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;

}

.bi-arrow-up-circle {
  fill: white;
  stroke: chocolate;
  background-color: goldenrod;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  border: none;
  padding: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;

}

/* Sets the base font size for all elements inside the popup */
.swal2-popup {
  background-color: var(--popup-bg);
  color: var(--popup-text);
}

/* Adjusts the size of the text within the buttons */
.swal2-styled {
  font-size: 0.9rem !important;
}

/* Fix for success icon lines */
.swal2-success-line-tip,
.swal2-success-line-long {
  font-size: 16px !important;
  /* Or a size that works for your design */
}

/* Fix for error icon lines */
.swal2-x-mark-line-right,
.swal2-x-mark-line-left {
  font-size: 16px !important;
  /* Or a size that works for your design */
}

/* General icon font size fix */
.swal2-icon {
  font-size: 1em !important;
}