@font-face {
  font-family: Andika;
  src: url('../../../../../fonts/Andika-Regular.ttf');
}

.my_activity {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  font-size: 1.3em;
  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;
  font-family: Andika !important;
}

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

.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%;
  background-color: #b6d7a8ff;
}

.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%;
  z-index: 50;
}

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;
}

@-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;
}

/* === 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%;
  aspect-ratio: 3/2;
  padding: 5%;
  font-size: 2.5vw;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadein {
  100% {
    opacity: 1;
  }
}

.speechbg {
  position: absolute;
  width: 100%;
  height: 100%;
}
.speechbox > p {
  width: 85%;
  color: #595959;
}
/*-------------- 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-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);
  }
}

.textblock {
  height: 100%;
  width: 100%;
}

.bg_full {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}

.inverted {
  transform: scale(-1, 1);
}

.character {
  position: absolute;
  height: 50%;
  bottom: 5%;
}

.headerblock {
  background-color: #44ae17ff;
  color: #fff;
  font-size: 3vw;
  padding: 1% 3%;
  display: flex;
  align-items: center;
  justify-content: start;
  transition: all 1s ease;
}

.xray {
  position: absolute;
  height: 50%;
  z-index: 30;
}

.xray.switch {
  left: 0;
  height: 55%;
  top: 10%;
}

.xray.film {
  right: -5%;
  width: 38%;
  height: 100%;
  object-fit: contain;
  top: 50%;
  transform: translateY(-50%);
  background-color: #b6d7a8ff;
  padding-left: 3%;
}

.xray.plate {
  right: 33%;
  top: 50%;
  transform: translateY(-50%);
}

.xray-light {
  position: absolute;
  left: 35.5%;
  z-index: 50;
  top: 50%;
  transform: translateY(-50%);
  width: 25%;
  height: 28%;
  display: none;
  opacity: 0.65;
}

.pointer {
  height: 10%;
  position: absolute;
  top: 25%;
  left: 7%;
  z-index: 50;
  display: none;
  cursor: pointer;
}

.xray-png,
.zoomin {
  position: absolute;
  z-index: 30;
  top: 52.2%;
  transform: translateY(-50%);
  right: 12%;
  height: 22.5%;
  display: none;
}

.zoomin {
  height: 8%;
  right: 8%;
  top: 41%;
  cursor: pointer;
}

.overlay {
  position: absolute;
  top: 10%;
  z-index: 2000;
  width: 100%;
  height: 90%;
  background-color: rgb(14 14 14/ 0.3);
  backdrop-filter: blur(4px);
  display: none;
  transform: scale(0.2);
  transition: transform 1s cubic-bezier(0, -0.2, 0.03, 1.34);
}

.overlay .xray-container {
  border: 0.2em solid #78c269;
  margin: 5% auto;
  background-color: #111;
  width: 80%;
  height: 80%;
  border-radius: 0.8em;
}

.overlay .xray-container .xray-enlarged {
  height: 80%;
  margin: 5%;
}

.overlay .zoomout {
  --size: 8%;
  width: var(--size);
  position: absolute;
  right: calc(-1 * var(--size) / 2);
  top: calc(-1 * var(--size) / 2);
  cursor: pointer;
}

.qna-container {
  position: absolute;
  left: 54%;
  width: 50%;
  top: 20%;
  height: 70%;
}

.qna-content {
  background-color: #fff;
  height: 100%;
  width: 90%;
  border-radius: 1em;
  user-select: none;
}

.question {
  background-color: #44ae17ff;
  width: 90%;
  height: 15%;
  margin: auto;
  padding: 1%;
  color: #fff;
  border-radius: 0 0 0.5em 0.5em;
  font-size: 2.8vmin;
  display: grid;
  place-content: center;
}

.options-container {
  height: 80%;
  display: flex;
  flex-wrap: wrap;
  gap: 5%;
  justify-content: space-around;
  align-items: center;
  padding: 5%;
}

.option {
  --opt-bg: #f9f3dfff;
  --opt-border-color: #09bcc1;
  background-color: var(--opt-bg);
  margin: auto;
  border: 0.15em solid var(--opt-border-color);
  border-radius: 0.5em;
  cursor: pointer;
  font-size: 3vmin;
  padding: 2%;
  display: grid;
  place-content: center;
  transition: all 500ms ease-in-out;
  pointer-events: none;
}

.option:is(:hover, :active, :focus) {
  --opt-border-color: #f9f3dfff;
  --opt-bg: #09bcc1;
}

.option.incorrectans {
  --opt-border-color: #cc0000;
  --opt-bg: #f4ccccff;
}
.option.correctans {
  --opt-border-color: #6aa84f;
  --opt-bg: #d9ead3ff;
}

.feedback {
  --feedback-bg: #d9ead3ff;
  position: absolute;
  z-index: 50;
  right: 5%;
  top: 17%;
  width: 25%;
  padding: 1%;
  background-color: var(--feedback-bg);
  text-align: left;
  display: none;
}

.feedback::after {
  --caret-size: 1.5em;
  content: '';
  position: absolute;
  bottom: calc(-0.9 * var(--caret-size));
  left: 10%;
  border-top: var(--caret-size) solid var(--feedback-bg);
  border-left: var(--caret-size) solid transparent;
  border-right: var(--caret-size) solid transparent;
}

.feedback.incorrect {
  --feedback-bg: #f4ccccff;
}

.correct-incorrect__img {
  position: absolute;
  height: 50%;
  bottom: -25%;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-aspect-ratio: 4/3) {
  .speechbox > * {
    font-size: 3vh;
  }
  div.headerblock {
    font-size: 3.8vh;
  }

  .question {
    font-size: 3.3vh;
  }
  .option {
    font-size: 2.7vh;
  }
}
