@font-face {
  font-family: andikanew;
  src: url('../../../../../fonts/andika-new-basic/AndikaNewBasic-R.woff');
}
@font-face {
  font-family: inter;
  src: url('../../../../../fonts/inter/Inter-VariableFont_slnt\,wght.ttf');
}
@font-face {
  font-family: comicsans;
  src: url('../../../../../fonts/ComicSansMSRegular.ttf');
}

.punctuation {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  font-size: 1.3em;
  background: #fff;
  box-shadow: inset 0 0 30px #f2f2f2;
  font-family: comicsans, sans-serif;
}

.punctuation,
.punctuation * {
  /* position: relative; */
  margin: 0;
  padding: 0;
}

.my_activity {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  font-size: 1.3em;
  background: #fff;
  box-shadow: inset 0 0 30px #f2f2f2;
}

.my_activity,
.my_activity * {
  position: relative;
  margin: 0;
  padding: 0;
}

.my_activity .nextBtn {
  display: none;
  position: absolute;
  z-index: 1000;
  bottom: 0%;
  right: 0%;
  width: 7%;
  height: 10%;
}

.my_activity .prevBtn {
  display: none;
  position: absolute;
  z-index: 1000;
  bottom: 0%;
  left: 0%;
  width: 7%;
  height: 10%;
}

/*=====================================
 =            common styles            =
 =====================================*/
.board {
  position: relative;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  text-align: center;
}

.vertical-horizontal-center {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  text-align: center;
  height: 100%;
  width: 100%;
}

.vertical-center {
  position: relative;
  top: 45%;
  transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  text-align: center;
}

.coverboardfull {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bg_story_1 {
  background-image: url('../images/02.png');
  background-size: 100% 75%;
  background-repeat: no-repeat;
}
.main_bg {
  /*background-color: #A8DBA4;*/
  background-color: #9de446;
  /*background: radial-gradient(#80CBC4, #00695C);*/
}
.grassbg {
  background: url('../images/7ae2e7d4cc3bda7c6a61ea10144f3240.jpg');
  background-size: 26% 20%;
}
.main_bg_2 {
  background-color: #78c269;
}
/*=====  End of common styles  ======*/

/*===============================================
 =            general template layout            =
 ===============================================*/

div.generalTemplateblock {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  /*border   : 1px solid red; */
}

/*===================================
 =            HeaderBlock            =
 ===================================*/

div.headerblock {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 10%;
  /*border   : 1px solid red;*/
}

div.headerblock p.headertextstyle {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1% 2%;
  font-size: 1.3em;
  font-weight: bold;
  color: rgb(238, 110, 115);
  background-color: rgb(252, 252, 252);
  text-align: center;
}

div.generalTemplateblock[data-templatecontains='hasheaderblock']
  div.headerblock {
  height: 13%;
}

div.generalTemplateblock[data-templatecontains='hasheaderblock']
  div.headerblock
  p.headertextstyle {
  padding: 2%;
}

/*=====  End of HeaderBlock  ======*/

/*====================================
 =            ContentBlock            =
 ====================================*/

div.generalTemplateblock div.contentblock {
  position: absolute;
  width: 100%;
  /* padding: 1%; */
  /*border   : 1px solid blue;*/
}

div.generalTemplateblock[data-templatecontains='hasheaderblock']
  div.contentblock {
  top: 13%;
  height: 87%;
}

div.generalTemplateblock[data-templatecontains='hasonlycontent']
  div.contentblock {
  top: 0%;
  height: 100%;
}

/*=====  End of ContentBlock  ======*/

/*==================================
 =            Text Block            =
 ==================================*/

.its_hidden {
  display: none;
}

/* -------- speech box ends --------- */

/*----------------------------------
 |			Animations			   |
 -------------------------------- */
.fade_in {
  animation: appear 3s;
  -webkit-animation: appear 3s;
}
.fade-in-car {
  animation: appear 1s linear 1.5s both;
  -webkit-animation: appear 1s linear 1.5s both;
}
@-webkit-keyframes appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.fade_away {
  animation: disappear 3s;
  -webkit-animation: disappear 3s;
}

@-webkit-keyframes disappear {
  100% {
    opacity: 0;
  }
}
@keyframes disappear {
  100% {
    opacity: 0;
  }
}
/*=====  End of Text Block  ======*/

/*===================================
 =            Image Block            =
 ===================================*/

div.imageblock {
  position: absolute;
  /*border     : 1px solid green; */
}

div.imageblock label {
  position: absolute;
}

.horizontal_center {
  left: 50%;
  transform: translate(-50%, 0%);
  -moz-transform: translate(-50%, 0%);
  -webkit-transform: translate(-50%, 0%);
  text-align: center;
}

.cover_full {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* === Activity Specific Image Blocks === */

/*=====  End of Image Block  ======*/

/*============================================
 =            Definition layout               =
 ============================================*/
div.definitionblock > img {
  position: relative;
  width: 50%;
  left: -20%;
}

div.definitionblock > figcaption {
  position: relative;
  margin-top: -8%;
  left: -21%;
  font-size: 2em;
  color: rgb(201, 136, 116);
}

div.definitionblock > p.definitiontextstyle {
  position: relative;
  text-align: left;
  margin-top: 15%;
  font-size: 1.5em;
  padding: 0% 2%;
  /* border  : 1px solid red; */
}

/*=====  End of Definition layout  ======*/

/*=====  End of general template layout  ======*/

.ul {
  text-decoration: underline;
}
.bold {
  font-weight: bold;
}

.speechbox {
  position: absolute;
  width: 25%;
  height: 15%;
  font-family: sniglet;
  font-size: 2.1vw;
}
.speechbg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0%;
  left: 0%;
}
@media (min-aspect-ratio: 4/3) {
  .speechbox {
    font-size: 2.8vh;
  }
}
.speechbox > p {
  position: absolute;
  width: 84%;
  left: 8%;
  top: 40%;
  transform: translateY(-50%);
}
.speechbox > .audioicon {
  position: absolute;
  width: 10%;
  right: 5%;
  top: 12%;
}

/*-------------- For Loading ---------------*/

#loading-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: #222;
}

#loading-text {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  color: #999;
  text-align: center;
  transform: translate(-50%, -50%);
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: 3vmin;
}

#loading-content {
  display: block;
  position: absolute;
  left: 40%;
  top: 33.35%;
  width: 20%;
  height: 33.3%;
  transform: translate(-50%, -50%);
  border: 3px solid #f00;
}

#loading-content:after {
  content: '';
  position: absolute;
  border: 3px solid #0f0;
  left: 15%;
  right: 15%;
  top: 15%;
  bottom: 15%;
}

#loading-content:before {
  content: '';
  position: absolute;
  border: 3px solid #00f;
  left: 5%;
  right: 5%;
  top: 5%;
  bottom: 5%;
}

#loading-content {
  border: 3px solid transparent;
  border-top-color: #4d658d;
  border-bottom-color: #4d658d;
  border-radius: 50%;
  -webkit-animation: loader 2s linear infinite;
  -moz-animation: loader 2s linear infinite;
  -o-animation: loader 2s linear infinite;
  animation: loader 2s linear infinite;
}

#loading-content:before {
  border: 3px solid transparent;
  border-top-color: #d4cc6a;
  border-bottom-color: #d4cc6a;
  border-radius: 50%;
  -webkit-animation: loader 3s linear infinite;
  -moz-animation: loader 2s linear infinite;
  -o-animation: loader 2s linear infinite;
  animation: loader 3s linear infinite;
}

#loading-content:after {
  border: 3px solid transparent;
  border-top-color: #84417c;
  border-bottom-color: #84417c;
  border-radius: 50%;
  -webkit-animation: loader 1.5s linear infinite;
  animation: loader 1.5s linear infinite;
  -moz-animation: loader 2s linear infinite;
  -o-animation: loader 2s linear infinite;
}

@-webkit-keyframes loaders {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loader {
  0% {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.imageblock {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0%;
  left: 0%;
}

.textblock {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0%;
  left: 0%;
}

.bg-full {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: auto;
  /* object-fit: cover; */
}

.character-img {
  position: absolute;
  bottom: 2%;
  left: 10%;
  object-fit: contain;
  height: 55%;
  z-index: 10;
  width: 20%;
}

.characterdiv {
  position: relative;
  width: 100%;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translate(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  flex-direction: column;
  font-family: andikanew, sans-serif;
  text-align: left;
  /* z-index: 10000; */
}

.helper-ui::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  margin: auto;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

.characterblock {
  margin-bottom: 2%;
}

.characterblock:not(.dailogbox0) {
  display: none;
  transform: translateY(30%);
  transition: all 1000ms linear;
}

.toptextclass {
  position: relative;
  font-size: 0.55em;
  text-align: left;
  color: #424242;
  background-color: #27c99c;
  width: 100%;
  padding: 2% 2%;
  font-family: inter, sans-serif;
  border-radius: 0.2em 0.2em 0 0;
}

.revealtext {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.reveal-sp .revealtext .toptextclass2 {
  --reveal-color: #fff;
  --reveal-border-color: #0c8a67;
  --reveal-text-color: #0c8a67;
  cursor: pointer;
  user-select: none;
  border-radius: 9rem;
  color: var(--reveal-text-color);
  background-color: var(--reveal-color);
  border: 0.2em solid var(--reveal-border-color);
  padding: 1% 2%;
  transition: all 0.3s ease;
}

.revealtext .toptextclass2:hover {
  --reveal-color: #0c8a67;
  --reveal-border-color: #0c8a67;
  --reveal-text-color: #fff;
}

.character_B .revealtext .toptextclass2 {
  --reveal-color: #fff;
  --reveal-border-color: #3e61bb;
  --reveal-text-color: #3e61bb;
}
.character_B .revealtext .toptextclass2:hover {
  --reveal-color: #3e61bb;
  --reveal-border-color: #3e61bb;
  --reveal-text-color: #fff;
}

.reveal-sp .characterSpeechbox {
  align-items: flex-start;
  gap: 2%;
}

.reveal-sp .characterSpeechbox p {
  visibility: hidden;
  transition: visibility 0.5s ease-in-out;
}

.reveal-sp .speakericon {
  height: 1em;
  object-fit: contain;
  margin-top: 0.3em;
  cursor: pointer;
}

.character {
  position: absolute;
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.character_A {
  left: 0.5%;
  bottom: 54%;
}
.character_B {
  left: 25%;
  bottom: 54%;
}
.character_C {
  left: 50%;
  bottom: 54%;
}
.character_D {
  left: 75%;
  bottom: 54%;
}

.charactershow {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  padding: 0% 0%;
  border-radius: 0 0 0.2em 0.2em;
  border-top: none;
}

.characterSpeechbox,
.checkboxOptionBlock {
  width: 100%;
  display: flex;
  justify-content: start;
  align-items: center;
  font-size: 2.5vh;
  background: #3cd2a8;
  color: #424242;
  padding: 4% 2%;
}

.character_A :is(.characterSpeechbox, .checkboxOptionBlock) {
  background: #b3eaee;
}
.character_B :is(.characterSpeechbox, .checkboxOptionBlock) {
  background: #a7bcf6;
}
.character_C :is(.characterSpeechbox, .checkboxOptionBlock) {
  background: #72cc43;
}
.character_D :is(.characterSpeechbox, .checkboxOptionBlock) {
  background: #f15a24;
  color: #fff;
}

.character_A .toptextclass {
  background-color: #cbeaec;
}
.character_B .toptextclass {
  background-color: #b5cfe7;
}
.character_C .toptextclass {
  background-color: #92dd6b;
}
.character_D .toptextclass {
  background-color: #fbb03b;
  color: #000;
}

.nextdailog {
  background-color: #3fa7d6;
  color: #fff;
  width: 100%;
  cursor: pointer;
  display: none;
  background-color: #000;
  border-radius: 0 0 0.2em 0.2em;
  text-align: center;
  padding-block: 1%;
  border: 0.1em solid #000;
  transition: all 0.3s ease;
}

.nextdailog:hover {
  background-color: #fff;
  color: #000;
  border: 0.1em solid #000;
}

/* css for checkbox options */
.checkboxOptionBlock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  padding: 1%;
  width: 100%;
  font-size: 0.7em;
}

.checkboxdiv {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding: 2%;
}
.checkboxOption {
  display: none;
}

.option {
  display: flex;
  justify-content: flex-start;
  gap: 2%;
  align-items: center;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font-weight: normal;
  padding-right: 4%;
}

.option + .speakericon {
  cursor: pointer;
  width: 1.8em;
  margin-left: 1em;
}

.option.correctans {
  font-weight: 700;
}

.option.incorrectans {
  font-weight: 700;
  color: #d93535cc;
}

.checkboxOption + label span {
  margin-top: 0.8%;
  display: inline-block;
  height: 1.5em;
  aspect-ratio: 1;
  background: transparent;
  border: 0.1em solid #000000;
  cursor: pointer;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
}

@media screen and (min-aspect-ratio: 4/3) {
  .description_title {
    font-size: 4vh;
  }

  .dialog_content1 {
    font-size: 3.36vh;
  }

  .dialog_content {
    font-size: 3vh;
  }
}

@media screen and (max-aspect-ratio: 4/3) {
  .description_title {
    font-size: 3.56vw;
  }

  .dialog_content1 {
    font-size: 2.96vw;
  }

  .dialog_content {
    font-size: 2.56vw;
  }
}

.parsedString {
  color: gray;
}
.animated {
  color: black;
  font-weight: bold;
}
@media screen and (min-aspect-ratio: 4/3) {
  .characterSpeechbox {
    font-size: 2.4vh;
  }
}

@media screen and (max-aspect-ratio: 4/3) {
  .characterSpeechbox {
    font-size: 1.6vw;
  }
}

.check_speak {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  top: 3%;
  z-index: 10000;
}

.title img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.title label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.helper {
  position: absolute;
  height: 5%;
  width: 28%;
  text-align: left;
  line-height: 1.8em;
  padding-left: 2%;
  font-family: andikanew, sans-serif;
  font-size: 0.8em;
  z-index: 1000;
  display: none;
}

.helper img {
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0;
  margin: auto;
  object-fit: fill;
}

.helper.click-next {
  top: 40%;
  left: 23%;
  padding-left: 5%;
}
.helper.click-next img {
  transform: scale(-1, 1);
}
.helper.reveal-txt {
  top: 26%;
  left: 51%;
}
.helper.reveal-txt img {
  transform: scale(-1, 1) translateX(12%);
}
.helper.mcq {
  top: 65%;
  left: 50%;
  padding-top: 2%;
  line-height: 1em;
  padding-left: 8%;
  height: 10%;
}
.helper.speaker {
  top: 38%;
  left: 30%;
  padding-left: 0.8%;
  line-height: 2.2em;
}
.helper.speaker img {
  transform: translateX(-19%);
}

.character-img img {
  position: absolute;
  inset: 0;
  margin: auto;
  height: 100%;
  object-fit: contain;
}

.character-img label {
  position: absolute;
  left: -3%;
  top: 35%;
  width: 50%;
  padding: 4% 2%;
  background-color: #fff;
  border-right: 0.2em solid #000;
  border-bottom: 0.2em solid #000;
  font-size: 0.9em;
  border-radius: 0.2em;
  display: none;
}

img {
  object-fit: contain;
}

.ch-room {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.character-name {
  position: absolute;
  display: none;
  color: #435585;
  z-index: 1000;
  background-color: #fff;
  height: 2.5em;
  width: 5em;
  padding-block: 0.5em;
  font-size: 1.5em;
  box-shadow: 0.2em 0.2em 0 rgb(14 14 14);
  left: 2%;
  bottom: 5%;
}

.character-name :is(img, label) {
  position: absolute;
  max-width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: auto;
}

.character-name label {
  left: 55%;
  font-size: 1.3em;
}
