/* Version 1 */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

body {
  text-align: center;
  margin: 0;
  padding: 0;
  background-image: url("source/image/background-2.png");
  font-family: "Open Sans", sans-serif;
}

    /* Modal Background */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    /* Modal Box */
    .modal-box {
      width: 80%;
      height: 60%;
      background: url('source/image/modal-2.png') no-repeat center center;
      background-size: cover;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 30px;
      border-radius: 24px;
      text-align: center;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
      position: relative;
    }

    .modal-box h1 {
      margin-bottom: 10%;
      font-size: 81px;
      font-family: "Titan One", sans-serif;
      font-weight: 400;
      font-style: normal;
      color: #303030;
    }

    .modal-box-text {
      position: absolute;
      top: 13%;
      left: 57%;
    }


    .modal-box button {
      padding: 18px 24px;
      font-size: 24px;
      border: none;
      border-radius: 6px;
      background-color: #007bff;
      color: white;
      cursor: pointer;
    }

    .modal-box button:hover {
      background-color: #0056b3;
    }
    .hidden{
      display: none;
    }




.main-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
  width: 100%;
}

.book-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 100vh;
  padding: 0.5rem;
  gap: 0rem;
  flex: 1; /* Take all remaining space */
}

/* A4-like pages, scaled to fit 1360x768 */
.page {
  display: none;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  aspect-ratio: 1 / 1.414;
  width: 31vw;           /* smaller width to fit both pages in 1360px */
  max-width: 648px;      /* max pixel width */
  max-height: 915px;     /* keeps it under 768px height */
  box-sizing: border-box;
  position: relative;
}

.page.active {
  display: block;
}

/* Right: Sidebar navigation */
.sidebar {
  width: 25vw;
  min-width: 200px;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 90%;
  overflow-y: auto;
  margin-left: 5%;
  margin-right: 5%;
  -ms-overflow-style: none;     /* Hide scrollbar in IE and Edge */
  scrollbar-width: none;        /* Hide scrollbar in Firefox */
}

.sidebar::-webkit-scrollbar {
  display: none;                /* Hide scrollbar in Chrome, Safari, Opera */
}

.nav-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.button-prev{
  margin-right: 35%;
  margin-bottom: 5%;
}
.button-next{
  margin-left: 35%;
}

.img-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 50%;
}

.img-button img {
  width: 100%;
  height: auto;
  display: block;
}
.music-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: right;
}

.fullscreen-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: right;
}

.sidebar h3 {
  font-size: 1.3rem;
  text-align: center;
  color: #FFF;
  background-color: #FC840D;
  width: 90%;
  padding-top: 1%;
  padding-bottom: 1%;
  border-radius: 8px;
  margin: 0.5rem auto;
}

.flex {
  display: flex;
  justify-content: right;
}
.toc-list {
  list-style: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 90%;
}

.toc-shape{
  width: 7px;
  height: 37px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #FC840D;
}

.toc-list li {
  background-color: #ffd447;
  border-radius: 6px;
  padding: 3px 0px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
  display: flex;
  align-items: center;
  column-gap: 14px;
  font-weight: 600;
  /* align-items: center; */
}

.toc-list li:hover {
  background-color: #ffcb25;
}

.toc-list li.active {
  background-color: #ffa726;
  font-weight: bold;
}
ul.toc-list{
padding-inline-start: 0px;
}

/* .sidebar-content{
  margin-right: 10%;
} */

.top-nav-mobile, .bottom-nav-mobile {
  display: none;
}
.toc-list a {
  color: #333;
  text-decoration: none;
}

/* *---------------- Mobile TOC / Daftar Isi ----------- */
/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Modal Content */
.modal-content {
  background-color: #fffbea;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
}

.close-button {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

.daftar-isi-list {
  list-style-type: none;
  padding: 0;
  font-size: 1.2rem;
}

.daftar-isi-list li {
  margin: 10px 0;
}

.daftar-isi-list a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.top-nav-mobile button, .bottom-nav-mobile button {
  background: none;
  border: none;
  cursor: pointer;
}
.top-nav-mobile button img, .bottom-nav-mobile button img{
  height: 60px;
}

#page0{
  background-color: transparent;
}
#page0.page {
  border: none;
  box-shadow: none;
}


/* --- Page 2 */
.kata-pengantar {
  color: #000;
  text-align: justify;
  font-size: 0.7rem;
  font-family: "Open Sans";
  font-weight: 400;
}
.page-padding{
    padding: 2rem 3rem;
}
.kata-pengantar-footer{
  margin-left: auto; 
  margin-right: 0;
  width: 50%;
}
.kata-pengantar-footer-text{
  text-align: center;
  font-size: 0.7rem;
}


/* ------Each page CSS------- */


















































































/* ------- Quiz CSS Style---------- */
    h1 {
      color: #001f9c;
      font-size: 1.3vw;
      text-align: center;
      margin-top: 2vw;
      margin-bottom: 0.1vw;
    }

    h3 {
      color: #001f9c;
      text-align: center;
      font-size: 1vw;
      margin-bottom: 1.5vw;
      margin-top: 0px;
    }

    .question {
      margin-bottom: 1.5vw;
    }

    .question p {
      font-size: 0.9vw;
      font-weight: 600;
      margin-bottom: 0.8vw;
      text-align: left;
    }

    .option {
      display: flex;
      align-items: center;
      /* padding: 0.2vw 0.75vw; */
      border: 1px solid #ccc;
      border-radius: 8px;
      margin-bottom: 0.2vw;
      font-size: 80%;
      background-color: #fff;
      transition: all 0.2s ease;
      cursor: pointer;
      margin-left: 5%;
    }

    .option span {
      display: inline-block;
      width: 8%;
      background-color: #ccc;
      color: white;
      font-weight: bold;
      text-align: center;
      border-radius: 5px;
      padding: 0.3vw 0;
      /* margin: 0.2vw auto; */
    }
    .option p{
      width: 90%;
      font-size: 0.8vw;
      background-color: #fff;
      transition: all 0.2s ease;
      text-align: left;
      cursor: pointer;
      margin: 0;
      margin-left: 0.5vw;
      font-weight: normal;
    }


    .option.correct {
      background-color: #00b300;
      color: white;
      border-color: #00b300;
    }
    .option.correct p {
      color: white;
      background-color: #32d36e;
    }

    .option.correct span {
      background-color: #007a00;
    }

    .option.incorrect, .option.incorrect p {
      background-color: #f85c5c;
      color: white;
      border-color: #f99;
    }

    .option.incorrect span {
      background-color: #B53016;
    }

    .option.disabled {
      pointer-events: none;
      opacity: 0.8;
    }

    #pageTOC{
      position: relative;
      background-image: url("source/page/Opening\ -\ \(6\).webp");
  
      background-size:cover;
      background-repeat: no-repeat;

    }

    #QuizPage-1{
      background-image: url("source/page/Page\ -\ \(66\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    
    #QuizPage-2 {
      background-image: url("source/page/Page\ -\ \(67\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }

    #QuizPage-3 {
      background-image: url("source/page/Page\ -\ \(68\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }

    #QuizPage-4 {
      background-image: url("source/page/Page\ -\ \(69\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    #QuizPage-5 {
      background-image: url("source/page/Page\ -\ \(70\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    #QuizPage-6 {
      background-image: url("source/page/Page\ -\ \(71\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    #QuizPage-7 {
      background-image: url("source/page/Page\ -\ \(72\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    #QuizPage-8 {
      background-image: url("source/page/Page\ -\ \(73\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    #QuizPage-9 {
      background-image: url("source/page/Page\ -\ \(74\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    #QuizPage-10 {
      background-image: url("source/page/Page\ -\ \(75\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }

    
    #QuizPage-1 .quiz-instruction {
      margin-bottom: 0;
      font-size: 80%;
    }

    #essaypage-1{
      background-image: url("source/page/Page\ -\ \(76\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    #essaypage-2{
      background-image: url("source/page/Page\ -\ \(77\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    




    .quizpage-inner {
      position: absolute;
      top: 7%;
      left: 10%;
      width: 80%;
    }
    .quizpage-inner h1 {
      font-size: 100%;
    }
    .quizpage-inner h3 {
      font-size: 80%;
    }
    .quizpage-inner p {
      font-size: 80%;
    }
    .quizpage-inner .option p {
      font-size: 100%;
    }

    .quizpage-inner .question p:first-child{
      font-size: 80%;
    }


    /* .quizpage-inner-left{
      margin-top: 2vw;
    } */
    .quizpage-inner-match{
      margin-top: 10%;
    }
    ul.list-instruction-penilaian-akhir {
      margin: 0;
      padding-left: 10%;
      font-size: 100%;
    }
    .list-instruction-penilaian-akhir li {
      font-size: 80%;
      text-align: left;
      line-height: 14px;
    }

    .summary {
      position: absolute;
      top: -18%;
      left: 93%;
      text-align: center;
      display: flex;
      flex-direction: row;
      font-size: 100%;
      font-weight: 500;
      background-color: #FFE974;
      border-radius: 16px;
      padding: 0.5vw 1vw;
      box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
      z-index: 1;
    
    }
    .summary-first{
      top: -10% !important;
    }
    .summary-mobile {
      display: none;
    }

    .summary p, .summary span {
      margin: 0;
      font-size: 1vw;
      color: #0D0D0D;
    }
    .summary-right span {
      padding-left: 0.7vw;
    }

    .summary-left{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: 0.7vw;
    }
    .summary-left p{
      font-size: 0.9vw;
      line-height: 0.2vw;
      font-weight: 500;
    }
    .summary-left span{
      font-size: 2vw;
      font-weight: bold;
    }

    .summary-right{
      display: flex;
      flex-direction: column;
      margin-left: 2vw;
      justify-content: center;
    }
    .summary-right-inner{
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: left;
    }

    .restart-btn {
      display: block;
      margin: 1.5rem auto;
      padding: 0.8rem 2rem;
      background-color: #001f9c;
      color: white;
      font-size: 1rem;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .restart-btn:hover {
      background-color: #0040ff;
    }

    




/* Essay Question Style---- */

.question-block {
  margin-bottom: 0.5vw;
  text-align: left;
}

.question-block p {
  font-size: 100%;
  margin-bottom: 0px;
}

.question-block textarea {
  width: 50%;
  height: 2vw;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.6vw;
  margin-bottom: 0.5vw;
  resize: vertical;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  float: left;
  margin-left: 1vw;
  font-size: 70%;
  font-family: "Open Sans", sans-serif;
}

.submit-btn {
  background: linear-gradient(to right, #2196F3, #0D8BF2);
  color: #fff;
  border: none;
  padding: 0.6vw 0.9vw;
  border-radius: 8px;
  font-size: 60%;
  cursor: pointer;
  float: left;
  margin-left: 0.5vw;
  margin-bottom: 0.5vw;
}

.answer-box {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  padding: 0.5vw 1vw;
  clear: both;
  margin-left: 0.7vw;
}

.answer-toggle {
  font-weight: bold;
  color: #0D73EC;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2vw;
  font-size: 60%;
}

.answer-text {
  font-size: 70%;
  color: #444;
  display: block;
}

.arrow {
  font-size: 0.7vw;
}

.answer-box.locked .answer-toggle {
  pointer-events: none;
  opacity: 0.5;
}
.question-block ol {
  padding-left: 1vw;
  margin-bottom: 2%;
}
.question-block ol li{
  font-size: 80%;
}




/* TOC STYLE  */
    .toc-header {
      margin-top: 20%;
    }

    .toc-item {
      display: flex;
      padding: 1% 0;
      cursor: pointer;
      color: #333;
      text-decoration: none;
      font-size: 80%;
      text-align: left;
      margin-left: 5%;
      align-items: center;
    }

    .page-badge {
      background-color: #FFE470;
      color: #333;
      font-weight: bold;
      font-size: 80%;
      padding: 1%;
      border-radius: 4px;
      min-width: 2vw;
      text-align: center;
      margin-left: 5%;
    }













/* QUIZ STYLE - Matching */
    h1.heading-1{
      font-size: 80%;
    }
    h3.heading-3{
      margin-bottom: 1%;
      font-size: 80%;
    }
    .container {
      display: flex;
      justify-content: center;
      position: relative;
      gap: 10%;
    }

    .column {
      display: flex;
      flex-direction: column;
      gap: 0.7vw;
      z-index: 1;
    }
    .column p{
      font-size: 80%;
      margin-top: 5%;
      margin-bottom: 0%;
      font-weight: 600;
    }

    .item {
      padding: 2% 4%;
      border: 2px solid #2C93D6;
      border-radius: 0.5vw;
      font-size: 0.8vw;
      cursor: pointer;
      transition: 0.3s;
      position: relative;
      text-align: left;
    }

    .item.selected {
      outline: 0.6vw solid #007bff;
      background-color: rgb(255, 255, 194);
    }

    .correct {
      background-color: #32d36e !important;
      border-color: #32d36e !important;
      color: white;
      pointer-events: none;
    }

    .incorrect {
      background-color: #f85c5c !important;
      border-color: #f85c5c !important;
      color: white;
    }

    #canvas {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 0;
    }

    .score-box {
      font-size: 80%;
      margin-top: 3%;
      font-weight: bold;
      text-align: right;
    }


    .guide-question-match{
      width: 80%;
      text-align: center;
      margin: 5% auto;
    }
    p.guide-question-match {
      font-size: 60%;
    }








    /* TRUE FALSE QUIZ STYLE  */
    .question-TF, .question-TF-2 {
      margin-bottom: 0.5vw;
      text-align: center;
    }

    .question-TF h3, .question-TF-2 h3 {
      font-size: 4vw;
      margin-bottom: 1vw;
    }
    .question-TF ol, .question-TF-2 ol{
      margin-top: 0.2vw;
      margin-bottom: 0.2vw;
      padding-left: 7%;
    }
    .options {
      display: flex;
      gap: 1vw;
      margin: 0;
      justify-content: center;
    }


    ul.list-TF{
      margin: 0;
      text-align: left;
      padding-left: 12%;
    }
    .list-TF li {
      font-size: 0.8vw;
    }

    #pageQuiz-TF-1-1 p, #pageQuiz-TF-2-1 p{
      text-align: left;
      font-size: 0.8vw;
      margin-bottom: 0px;
    }
    .quiz-instruction{
      margin-top: 18%;
    }

    #pageQuiz-TF-1-1 {
      background-image: url("source/page/Page\ -\ \(51\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    #pageQuiz-TF-1-2 {
      background-image: url("source/page/Page\ -\ \(52\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    #pageQuiz-TF-1-3 {
      background-image: url("source/page/Page\ -\ \(53\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
      
      
    #pageQuiz-TF-2-1 {
      background-image: url("source/page/Page\ -\ \(63\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }

    #pageQuiz-TF-2-2 {
      background-image: url("source/page/Page\ -\ \(64\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }

    #pageQuiz-TF-2-3 {
      background-image: url("source/page/Page\ -\ \(65\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }


    #pageQuizMatch{
      background-image: url("source/page/Page\ -\ \(9\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }

    ol li{
      text-align: left;
      font-size: 0.8vw;
    }

    .btn, .btn-2 {
      padding: 0.4vw 0.8vw;
      border: none;
      font-size: 0.8vw;
      border-radius: 0.2vw;
      background: #f0f0f0;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      cursor: pointer;
      transition: 0.3s;
    }

    .btn.correct, .btn-2.correct {
      background-color: #32d36e;
      color: white;
    }

    .btn.wrong, .btn-2.wrong {
      background-color: #f85c5c;
      color: white;
    }

    .answer-box-TF, .answer-box-TF-2 {
      /* margin-top: 0.2vw; */
      padding: 0.2vw 0.4vw;
      background: #eaffec85;
      border-radius: 0.2vw;
      box-shadow: 0 2px 5px rgba(0,0,0,0.08);
      font-size: 0.8vw;
      display: none;
      color: #00b300;
    }

    .score {
      font-size: 1vw;
      font-weight: bold;
      margin-top: 1vw;
      text-align: center;
    }

    .reset-btn, .reset-btn-2 {
      display: block;
      margin: 0.2vw auto 0;
      padding: 0.4vw 0.8vw;
      font-size: 1vw;
      background: #007bff;
      color: white;
      border: none;
      border-radius: 1vw;
      cursor: pointer;
    }






    /* Observation Question Style */



    #page10, #page18, #page52{
      position: relative;
    }
    .observation-container {
      position: absolute;
      top: 78%;
      left: 10%;
      width: 80%;
      height: 10%;
    }

    .observation-container-2 {
      position: absolute;
      top: 68%;
      left: 10%;
      width: 80%;
      height: 10%;
    }

    .observation-container-3 {
      position: absolute;
      top: 60%;
      left: 10%;
      width: 80%;
      height: 10%;
    }
    .observation-container-4 {
      position: absolute;
      top: 64%;
      left: 10%;
      width: 80%;
      height: 10%;
    }
    .observation-container-5 {
      position: absolute;
      top: 74%;
      left: 10%;
      width: 80%;
      height: 10%;
    }
    .observation-container-6 {
      position: absolute;
      top: 60%;
      left: 10%;
      width: 80%;
      height: 10%;
    }

    .observation-box {
      background-color: #e8f3ff;
      border-radius: 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 100%;
      /* max-width: 45vw; */
    }

    .observation-box-left {
        width: 28%;
        height: 100%;
        background-color: #2196f3;
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .observation-box-left p {
        font-size: 60%;
        font-weight: bold;
        line-height: 1.4em;
        text-align: right;
    }

    /* .observation-box-textarea {
        position: absolute;
        left: 30%;
        top: 50%;
        transform: translateY(-50%);
        width: 70%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    } */

    .input-area {
      position: absolute;
      left: 30%;
      top: 50%;
      transform: translateY(-50%);
      width: 65%;
      padding: 5% 0%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }



    .input-area textarea{
        width: 70%;
        border-radius: 4px;
        border: none;
        padding: 0.5vw 1vw;
        font-size: 80%;
        resize: none;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
        font-family: "open sans", sans-serif;
    }

    .error-message {
      color: rgb(122, 0, 0);
      margin-top: 5px;
      font-size: 60%;
      display: none;
    }

    .submit-button {
      background-color: #2196f3;
      color: white;
      border: none;
      padding: 0.4vw 0.6vw;
      border-radius: 4px;
      font-size: 80%;
      cursor: pointer;
      transition: background 0.3s ease;
      margin-left: 3%;
    }
    .submit-button button:hover {
      background-color: #1976d2;
    }

    .answer-box-observation {
      text-align: center;
      margin-top: 5px;
      font-size: 60%;
      display: none;
    }








/* When in fullscreen */
:fullscreen .page {
  width: 35vw; /* Fullscreen width */
}

/* Webkit browsers (Safari, older Chrome) */
:-webkit-full-screen .page {
  width: 35vw; /* Fullscreen width */
}

/* Mozilla Firefox */
:-moz-full-screen .page {
  width: 35vw; /* Fullscreen width */
}









/* version 2 */
:root {
    /* Define A4 aspect ratio using CSS variables for easy calculation */
    --a4-ratio: calc(1123 / 794); /* Height / Width */
    /* These are conceptual for the #myBook element. PageFlip will handle scaling */
}

body {
    margin: 0;
    display: flex;
    flex-direction: column; /* Changed to column to accommodate overall layout */
    justify-content: center;
    align-items: center;
    /* min-height: 100vh; */
    background-color: #f0f0f0;
    overflow-x: hidden; /* Prevent horizontal scroll from overflowing content */
    box-sizing: border-box;
    overflow-y: hidden;
}

.main-content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1600px; /* Limit overall content width for large screens */
    height: 90vh; /* Make sure it takes full height if possible */
    align-items: flex-start;
    justify-content: center;
    flex-grow: 1; /* Allow it to take up available space */
    box-sizing: border-box;
}


.page-nav-button {
    background-color: #555;
    color: white;
    border: none;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.page-nav-button:hover {
    background-color: #007bff;
    transform: translateY(-1px);
}

.page-nav-button.active {
    background-color: #007bff;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.flip-book-container {
    perspective: 2000px;
    flex-grow: 1; /* Allow the book container to take available space */
    display: flex; /* Use flex to center the book within its container */
    justify-content: center;
    align-items: center;
    height: 100%; /* Take full height of main-content-wrapper */
}

/* The #myBook dimensions are primarily controlled by PageFlip's
    minWidth/maxWidth/minHeight/maxHeight and its parent container's size.
    We set these as initial values, but they will be adjusted by JS and PageFlip. */
#myBook {
    /* Default for desktop: two pages */
    width: auto; /* Approx A4_WIDTH * 2 */
    height: auto; /* Approx A4_HEIGHT */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    max-height: 100%;
    margin-left: 5%;
}

.page {
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.page--cover {
    background-color: #e0e0e0;
    border: 1px solid #999;
}

.page-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
}

/* --- Responsive Adjustments for Overall Layout & Sidebar --- */


#pageTOC{
    position: relative;
    background-image: url("source/page/Opening\ -\ \(6\).webp");

    background-size:cover;
    background-repeat: no-repeat;

}





    /* Observation Question Style */



    #page10, #page18, #page52{
      position: relative;
    }
    .observation-container {
      position: absolute;
      top: 78%;
      left: 10%;
      width: 80%;
      height: 10%;
    }

    .observation-container-2 {
      position: absolute;
      top: 68%;
      left: 10%;
      width: 80%;
      height: 10%;
    }

    .observation-container-3 {
      position: absolute;
      top: 60%;
      left: 10%;
      width: 80%;
      height: 10%;
    }
    .observation-container-4 {
      position: absolute;
      top: 64%;
      left: 10%;
      width: 80%;
      height: 10%;
    }
    .observation-container-5 {
      position: absolute;
      top: 74%;
      left: 10%;
      width: 80%;
      height: 10%;
    }
    .observation-container-6 {
      position: absolute;
      top: 60%;
      left: 10%;
      width: 80%;
      height: 10%;
    }

    .observation-box {
      background-color: #e8f3ff;
      border-radius: 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 100%;
      /* max-width: 45vw; */
    }

    .observation-box-left {
        width: 28%;
        height: 100%;
        background-color: #2196f3;
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .observation-box-left p {
        font-size: 60%;
        font-weight: bold;
        line-height: 1.4em;
        text-align: right;
    }

    /* .observation-box-textarea {
        position: absolute;
        left: 30%;
        top: 50%;
        transform: translateY(-50%);
        width: 70%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    } */

    .input-area {
      position: absolute;
      left: 30%;
      top: 50%;
      transform: translateY(-50%);
      width: 65%;
      padding: 5% 0%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }



    .input-area textarea{
        width: 70%;
        border-radius: 4px;
        border: none;
        padding: 0.5vw 1vw;
        font-size: 80%;
        resize: none;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
        font-family: "open sans", sans-serif;
    }

    .error-message {
      color: rgb(122, 0, 0);
      margin-top: 5px;
      font-size: 60%;
      display: none;
    }

    .submit-button {
      background-color: #2196f3;
      color: white;
      border: none;
      padding: 0.4vw 0.6vw;
      border-radius: 4px;
      font-size: 80%;
      cursor: pointer;
      transition: background 0.3s ease;
      margin-left: 3%;
    }
    .submit-button button:hover {
      background-color: #1976d2;
    }

    .answer-box-observation {
      text-align: center;
      margin-top: 5px;
      font-size: 60%;
      display: none;
    }




    /* Video Style  */


    .video-overlay {
      position: absolute;
      top: 21%;
      left: 10%;
      width: 80%;
      aspect-ratio: 16/9;
    }

    .video-overlay iframe {
      width: 100%;
      height: 100%;
      border: none;
    }



/* .quizpage Match */

    
    .quizpage-inner {
      position: absolute;
      top: 7%;
      left: 10%;
      width: 80%;
    }
    .quizpage-inner h1 {
      font-size: 100%;
    }
    .quizpage-inner h3 {
      font-size: 80%;
    }
    .quizpage-inner p {
      font-size: 100%;
    }
    .quizpage-inner .option p {
      font-size: 100%;
    }

    .quizpage-inner .question p:first-child{
      font-size: 70%;
    }



    /* .quizpage-inner-left{
      margin-top: 2vw;
    } */
    .quizpage-inner-match{
      margin-top: 10%;
    }
    ul.list-instruction-penilaian-akhir {
      margin: 0;
      padding-left: 10%;
      font-size: 80%;
    }
    .list-instruction-penilaian-akhir li {
      font-size: 80%;
      text-align: left;
      line-height: 12px;
    }

    .summary {
      position: absolute;
      top: -18%;
      left: -30%;
      text-align: center;
      display: flex;
      flex-direction: row;
      font-size: 100%;
      font-weight: 500;
      background-color: #FFE974;
      border-radius: 16px;
      padding: 0.5vw 1vw;
      box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
      z-index: 1;
    
    }
    .summary-first{
      top: -10% !important;
    }
    .summary-mobile {
      display: none;
    }

    .summary p, .summary span {
      margin: 0;
      font-size: 1vw;
      color: #0D0D0D;
    }
    .summary-right span {
      padding-left: 0.7vw;
    }

    .summary-left{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: 0.7vw;
    }
    .summary-left p{
      font-size: 0.9vw;
      line-height: 0.2vw;
      font-weight: 500;
    }
    .summary-left span{
      font-size: 2vw;
      font-weight: bold;
    }

    .summary-right{
      display: flex;
      flex-direction: column;
      margin-left: 2vw;
      justify-content: center;
    }
    .summary-right-inner{
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: left;
    }

    .restart-btn {
      display: block;
      margin: 1.5rem auto;
      padding: 0.8rem 2rem;
      background-color: #001f9c;
      color: white;
      font-size: 1rem;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .restart-btn:hover {
      background-color: #0040ff;
    }

    





/* QUIZ STYLE - Matching */
    h1.heading-1{
      font-size: 80%;
    }
    h3.heading-3{
      margin-bottom: 1%;
      font-size: 80%;
    }
    .container {
      display: flex;
      justify-content: center;
      position: relative;
      gap: 10%;
    }
    .container-match {
      display: flex;
      justify-content: center;
      position: relative;
      gap: 10%;
      width: 100%;
    }

    .column {
      display: flex;
      flex-direction: column;
      gap: 0.7vw;
      z-index: 1;
    }
    .column p{
      font-size: 80%;
      margin-top: 5%;
      margin-bottom: 0%;
      font-weight: 600;
    }



    #canvas {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 0;
      width: auto;
      height: auto;
    }








    /* TRUE FALSE QUIZ STYLE  */
    .question-TF, .question-TF-2 {
      margin-bottom: 0.5vw;
      text-align: center;
    }

    .question-TF h3, .question-TF-2 h3 {
      font-size: 4vw;
      margin-bottom: 1vw;
    }
    .question-TF ol, .question-TF-2 ol{
      margin-top: 0.2vw;
      margin-bottom: 0.2vw;
      padding-left: 7%;
    }
    .options {
      display: flex;
      gap: 1vw;
      margin: 0;
      justify-content: center;
    }


    ul.list-TF{
      margin: 0;
      text-align: left;
      padding-left: 12%;
    }
    .list-TF li {
      font-size: 0.8vw;
    }

    #pageQuiz-TF-1-1 p, #pageQuiz-TF-2-1 p{
      text-align: left;
      font-size: 0.8vw;
      margin-bottom: 0px;
    }
    .quiz-instruction{
      margin-top: 18%;
    }

    #pageQuiz-TF-1-1 {
      background-image: url("source/page/Page\ -\ \(51\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    #pageQuiz-TF-1-2 {
      background-image: url("source/page/Page\ -\ \(52\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
    #pageQuiz-TF-1-3 {
      background-image: url("source/page/Page\ -\ \(53\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }
      
      
    #pageQuiz-TF-2-1 {
      background-image: url("source/page/Page\ -\ \(63\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }

    #pageQuiz-TF-2-2 {
      background-image: url("source/page/Page\ -\ \(64\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }

    #pageQuiz-TF-2-3 {
      background-image: url("source/page/Page\ -\ \(65\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }


    #pageQuizMatch{
      background-image: url("source/page/Page\ -\ \(9\).webp");
      background-size:cover;
      background-repeat: no-repeat;
    }

    ol li{
      text-align: left;
      font-size: 0.8vw;
    }

    .btn, .btn-2 {
      padding: 0.4vw 0.8vw;
      border: none;
      font-size: 0.8vw;
      border-radius: 0.2vw;
      background: #f0f0f0;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      cursor: pointer;
      transition: 0.3s;
    }

    .btn.correct, .btn-2.correct {
      background-color: #32d36e;
      color: white;
    }

    .btn.wrong, .btn-2.wrong {
      background-color: #f85c5c;
      color: white;
    }

    .answer-box-TF, .answer-box-TF-2 {
      /* margin-top: 0.2vw; */
      padding: 0.2vw 0.4vw;
      background: #eaffec85;
      border-radius: 0.2vw;
      box-shadow: 0 2px 5px rgba(0,0,0,0.08);
      font-size: 0.8vw;
      display: none;
      color: #00b300;
    }

    .score {
      font-size: 1vw;
      font-weight: bold;
      margin-top: 1vw;
      text-align: center;
    }

    .reset-btn, .reset-btn-2 {
      display: block;
      margin: 0.2vw auto 0;
      padding: 0.4vw 0.8vw;
      font-size: 1vw;
      background: #007bff;
      color: white;
      border: none;
      border-radius: 1vw;
      cursor: pointer;
    }






/* Evaluasi dan Essay */


    .question {
      margin-bottom: 1.5vw;
    }

    .question p {
      font-size: 0.9vw;
      font-weight: 600;
      margin-bottom: 0.8vw;
      text-align: left;
    }

    .option {
      display: flex;
      align-items: center;
      /* padding: 0.2vw 0.75vw; */
      border: 1px solid #ccc;
      border-radius: 8px;
      margin-bottom: 0.2vw;
      font-size: 0.8vw;
      background-color: #fff;
      transition: all 0.2s ease;
      cursor: pointer;
      margin-left: 5%;
    }

    .option span {
      display: inline-block;
      width: 8%;
      background-color: #ccc;
      color: white;
      font-weight: bold;
      text-align: center;
      border-radius: 5px;
      padding: 0.3vw 0;
      /* margin: 0.2vw auto; */
    }
    .option p{
      width: 90%;
      font-size: 0.8vw;
      background-color: #fff;
      transition: all 0.2s ease;
      text-align: left;
      cursor: pointer;
      margin: 0;
      margin-left: 0.5vw;
      font-weight: normal;
    }


    .option.correct {
      background-color: #00b300;
      color: white;
      border-color: #00b300;
    }
    .option.correct p {
      color: white;
      background-color: #32d36e;
    }

    .option.correct span {
      background-color: #007a00;
    }

    .option.incorrect, .option.incorrect p {
      background-color: #f85c5c;
      color: white;
      border-color: #f99;
    }

    .option.incorrect span {
      background-color: #B53016;
    }

    .option.disabled {
      pointer-events: none;
      opacity: 0.8;
    }

  #zoomReminder {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: sans-serif;
    font-size: 16px;
    z-index: 9999;
    display: none;
  }

  #zoomReminder button {
    margin-left: 12px;
    background: white;
    border: none;
    color: #856404;
    font-weight: bold;
    cursor: pointer;
  }











/* Big Screen view */
@media (min-width: 1900px) {
  .sidebar {
    width: 20vw;
  }
  .toc-list{
    width: 90%;
  }
  .page {
    width: 40vw; /* Adjusted for larger screens */
    max-width: 650px; /* Keeps it under 768px height */
  }
  .summary {
    left: 93%;
    top: -13% !important;
  }

  

/* Essay Question Style---- */

  .question-block p {
    font-size: 120%;
  }

  .question-block textarea {
    height: 2vw;
    margin-bottom: 0.5vw;
    margin-left: 1vw;
    font-size: 80%;
    font-family: "Open Sans", sans-serif;
  }

  .submit-btn {
    padding: 0.6vw 0.9vw;
    border-radius: 8px;
    font-size: 80%;
    cursor: pointer;
    float: left;
    margin-left: 0.5vw;
    margin-bottom: 0.5vw;
  }

  .answer-box {
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    padding: 0.5vw 1vw;
    clear: both;
    margin-left: 0.7vw;
  }

  .answer-toggle {
    font-weight: bold;
    color: #0D73EC;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2vw;
    font-size: 80%;
  }

  .answer-text {
    font-size: 100%;
    color: #444;
    display: block;
  }

  .question-block ol li{
    font-size: 80%;
  }


  /* Observation  */
    .observation-box-left p {
        font-size: 80%;
    }

    p.guide-question-match {
      font-size: 80%;
    }

    ul.list-instruction-penilaian-akhir {
      font-size: 100%;
    }
    .list-instruction-penilaian-akhir li {
      font-size: 100%;
      line-height: 100%;
    }
    #QuizPage-1 .quiz-instruction {
      font-size: 100%;
    }




      /* Modal Box */
    .modal-box {
      width: 80%;
      height: 60%;
    }


    .modal-box h1 {
      margin-bottom: 10%;
      font-size: 108px;
      font-family: "Titan One", sans-serif;
      font-weight: 400;
      font-style: normal;
      color: #303030;
    }
    .modal-box-text {
      position: absolute;
      top: 13%;
      left: 55%;
    }

    .modal-box button {
      padding: 24px 32px;
      font-size: 32px;
      border-radius: 6px;

    }

}







/* Tablet breakpoint (approx. 768px to 1024px)
    Sidebar collapses to row, book remains primary focus. */
@media (max-width: 1024px) {
    .main-wrapper {
    flex-direction: column;
    height: 100vh;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    min-height: 60px;
  }
  .book-container {
    flex-direction: column;
  }
  .page {
    width: 98vw;
    max-width: 600px;
    max-height: none;
    position: relative;
  }
  .sidebar{
    display: none;
  }

  .top-nav-mobile, .bottom-nav-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
  }
  .top-nav-mobile {
    background-color: transparent;
    height: 60px;
  }
  .top-nav-mobile button img{
    height: 60px;
  }
  .button-nav img button{
    height: 40px;
  } 
  .bottom-nav-mobile {
    background-color: transparent;
    height: 60px;
    margin-top: 1rem;
  }


  .kata-pengantar {
    font-size: 0.6rem;
  }
  .kata-pengantar-footer-text {
    font-size: 0.6rem;
  }
  .page-padding {
    padding: 1rem 2rem;
  }



    .item {
      font-size: 100%;
    }





    body {
        padding: 10px;
    }
    #myBook {
        /* Default for desktop: two pages */
        width: auto !important; 
        height: auto; 
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        max-width: 100%;
        max-height: 100%;
        margin-left: 5%;
    }
    .main-content-wrapper {
        flex-direction: column; /* Stack sidebar and book */
        padding: 10px;
        height: auto; /* Allow height to adjust based on content */
        min-height: 90vh; /* Ensure it still takes full height if content is small */
        justify-content: flex-start;
    }

    .flip-book-container{
      flex-direction: column;
    }
    .sidebar {
        width: 100%;
        max-width: 700px; /* Limit sidebar width even when full width */
        margin-right: 0;
        margin-bottom: 20px;
        flex-direction: row; /* Buttons in a row */
        flex-wrap: wrap; /* Allow buttons to wrap */
        justify-content: center;
        align-self: center; /* Center the sidebar horizontally */
        height: auto; /* Allow sidebar height to be determined by content */
        padding: 10px;
    }

    .sidebar h3 {
        width: 100%; /* Make heading take full width */
        margin-bottom: 10px;
        font-size: 1em;
    }

    .page-nav-button {
        flex: 1 1 auto; /* Allow buttons to grow/shrink */
        max-width: 120px; /* Limit button width on small screens */
        font-size: 0.85em;
        padding: 8px 12px;
    }

    .observation-box-left p{
      font-size: 90%;
    }
    .submit-button {
      padding: 3% 6%;
      font-size: 100%;
      margin-left: 2%;
    }
    
    


    /* True False Quiz Style Mobile
      .btn {
        font-size: 1.2vw;
        padding: 1vw 3vw;
      }

      .question h3 {
        font-size: 1.8vw;
      }

      .answer-box {
        font-size: 1.1vw;
      }

      .score {
        font-size: 1.5vw;
      }

      .reset-btn {
        font-size: 1.2vw;
        padding: 1vw 3vw;
      } */


    /* TRUE FALSE QUIZ STYLE  */
    .question-TF, .question-TF-2 {
      margin-bottom: 0.2vw;
    }

    .question-TF h3, .question-TF-2 h3 {
      font-size: 4vw;
      margin-bottom: 0.5vw;
    }
    .question-TF ol, .question-TF-2 ol{
      margin-top: 2vw;
      margin-bottom: 0.2vw;
      padding: 0 0 0 4vw;
    }
    .options {
      gap: 4vw;
    }

    ul.list-TF{
      margin: 0;
    }
    .list-TF li {
      font-size: 100%;
      width: 100%;
    }

    #pageQuiz-TF-1-1 p, #pageQuiz-TF-2-1 p{
      font-size: 100%;
      margin-top: 0px;
      margin-bottom: 0px;
    }
    #pageQuiz-TF-1-1 p.quiz-instruction,
    #pageQuiz-TF-2-1 p.quiz-instruction {
      margin-top: 14%;
    }
    .quiz-instruction {
      margin-top: 14%;
    }
    .quiz-instruction.pilihan-ganda{
      margin-top: 16%;
    }
    .quizpage-inner .question p:first-child {
      font-size: 100%;
    }
    ol li{
      font-size: 100%;
    }

    ul.list-instruction-penilaian-akhir {
      font-size: 100%;
    }
    .list-instruction-penilaian-akhir li {
      font-size: 100%;
      line-height: 100%;
    }
    #QuizPage-1 .quiz-instruction {
      font-size: 100%;
    }
    .btn, .btn-2 {
      padding: 1vw 4vw;
      font-size: 100%;
      border-radius: 0.2vw;
    }

    .answer-box-TF, .answer-box-TF-2 {
      /* margin-top: 0.2vw; */
      padding: 0.2vw 0.4vw;
      border-radius: 0.2vw;
      font-size: 80%;
    }

    .score {
      font-size: 80%;
      margin-top: 6vw;
    }

    .reset-btn, .reset-btn-2 {
      margin: 1vw auto 0;
      padding: 2vw 4vw;
      font-size: 100%;
    }
    #gameContainer-1 h1{
      margin-bottom: 0vw;
    }






    

/* QUIZ STYLE - Matching Mobile */
    /* h3.heading-3{
      margin-bottom: 1vw;
      font-size: 3vw;
    }
    .container {
      gap: 10vw;
    }
    h1.heading-1{
      margin-bottom: 0vw;
    }
    .column {
      gap: 3vw;
    }
    .column p{
      font-size: 2.5vw;
      margin-top: 3vw;
      margin-bottom: 0vw;
      font-weight: 600;
    }
    .item {
      padding: 1.2vw 3vw;
      border: 0.5vw solid #2C93D6;
      border-radius: 2vw;
      font-size: 2.8vw;
    }

    .score-box {
      font-size: 3vw;
      margin-top: 5vw;
    }

    .guide-question-match{
      width: 80%;
      text-align: center;
      margin: 0 auto;
      font-size: 2.5vw;
    } */


    .option {
      margin-bottom: 0.5vw;
      font-size: 100%;
    }

    .option span {
      width: 6%;
      font-size: 80%;
      background-color: #ccc;
      color: white;
      font-weight: bold;
      text-align: center;
      border-radius: 5px;
      padding: 0.5vw 0;
      /* margin: 0.2vw auto; */
    }
    .option p{
      width: 90%;
      font-size: 0.8vw;
      background-color: #fff;
      transition: all 0.2s ease;
      text-align: left;
      cursor: pointer;
      margin: 0;
      margin-left: 1vw;
      font-weight: normal;
    }

    .item {
      font-size: 100%
    }

    .container {
      gap: 7vw;
    }
    .column {
      gap: 1.5vw;
    }

    .score-box {
      font-size: 100%;
      margin-top: 5vw;
    }



    .summary {
      top: -25%;
      left: 30%;
      width: 35%;
      font-size: 10%;
      border-radius: 2vw;
      padding: 1vw 2vw;
    }
    .summary-first {
      top: -17% !important;
    }
    .summary-second {
      top: -20% !important;
    }
    .summary p, .summary span {
      margin: 0;
      font-size: 2.5vw;
      color: #0D0D0D;
    }
    .summary-right span {
      padding-left: 2vw;
    }

    .summary-left{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: 0.7vw;
    }
    .summary-left p{
      font-size: 2.5vw;
      line-height: 2vw;
      font-weight: 500;
    }
    .summary-left span{
      font-size: 4vw;
    }

    .summary-right{
      margin-left: 2vw;
    }
    .summary-mobile {
      display: flex;
    }




/* Essay Question Style---- */

.question-block {
  margin-bottom: 1.5vw;
}

.question-block p {
  font-size: 100%;
  margin-bottom: 0.3vw;
}

.question-block textarea {
  width: 60%;
  min-height: 4vw;
  padding: 1.5vw 2vw;
  font-size: 100%;
  margin-bottom: 2vw;
  margin-left: 1vw;
  
}

.submit-btn {
  padding: 1.5vw 2vw;
  border-radius: 8px;
  font-size: 80%;
  margin-left: 0.5vw;
  margin-bottom: 0.5vw;
}

.answer-box {
  padding: 1vw 2vw;
  margin-left: 0.7vw;
}

.answer-toggle {
  margin-bottom: 0.2vw;
  font-size: 80%;
}

.answer-text {
  font-size: 80%;
}

.arrow {
  font-size: 2vw;
}

.question-block ol {
  padding-left: 1vw;
  margin: 0px;
  margin-bottom: 1vw;
}
.question-block ol li{
  font-size: 100%;
}









  /* Modal Box */
    .modal-box {
      width: 80%;
      height: 30%;
    }

    .modal-box h1 {
      margin-bottom: 10%;
      font-size: 54px;
      font-family: "Titan One", sans-serif;
      font-weight: 400;
      font-style: normal;
      color: #303030;
    }
    .modal-box-text {
      position: absolute;
      top: 17%;
      left: 57%;
    }

    .modal-box button {
      padding: 16px 24px;
      font-size: 18px;
      border: none;
      border-radius: 6px;
      background-color: #007bff;
      color: white;
      cursor: pointer;
    }

  /* Fullscreen view */

  /* When in fullscreen */
  :fullscreen .page {
    width: 98vw; /* Fullscreen width */
  }

  /* Webkit browsers (Safari, older Chrome) */
  :-webkit-full-screen .page {
    width: 98vw; /* Fullscreen width */
  }

  /* Mozilla Firefox */
  :-moz-full-screen .page {
    width: 98vw; /* Fullscreen width */
  }
}

/* Mobile breakpoint (approx. < 768px) */
@media (max-width: 767px) {
  
  /* Quiz page styles Mobile */
    .option{
      font-size: 100%;
    }

    .quizpage-inner {
      position: absolute;
      top: 8%;
      left: 10%;
      width: 80%;
    }
    .quizpage-inner h1 {
      font-size: 100%;
    }
    .quizpage-inner h3 {
      font-size: 70%;
    }
    .quizpage-inner p {
      font-size: 60%;
    }
    .quizpage-inner p.column-title{
      font-size: 70%;
      height: 10%;
      display: flex;
      align-items: center;   /* vertical center */
      justify-content: center; /* horizontal center */
      text-align: center; /* ensures multiline text is also centered */
    }
    .quizpage-inner .option p {
      font-size: 60%;
    }

    .guide-question-match{
      margin: 2% auto;
    }




  .toc-header{
    margin-top: 15%;
  }

    .toc-item {
      padding: 1% 0;
      font-size: 70%;
      margin-left: 5%;
    }

    .page-badge {
      font-size: 80%;
      padding: 1%;
      margin-left: 5%;
    }










    .observation-box-left {
        border-top-left-radius: 15px;
        border-bottom-left-radius: 15px;
    }

    .observation-box-left p {
        font-size: 60%;
    }

    .input-area {
      height: 70%;
    }
    .input-area textarea{
        font-size: 60%;
        height: 80%;
    }

    .error-message {
      margin-top: 5px;
      font-size: 80%;
    }

    .submit-button {
      padding: 4%;
      font-size: 80%;
      margin-left: 2%;
    }

    .answer-box-observation {
      font-size: 80%;
    }




    .score-box {
      font-size: 80%;
    }














        /* TRUE FALSE QUIZ STYLE  */

    .list-TF li {
      font-size: 60%;
    }

    #pageQuiz-TF-1-1 p, #pageQuiz-TF-2-1 p{
      font-size: 60%;
    }
    #pageQuiz-TF-1-1 p.quiz-instruction,
    #pageQuiz-TF-2-1 p.quiz-instruction {
      margin-top: 14%;
    }
    ol li{
      font-size: 60%;
    }

    ul.list-instruction-penilaian-akhir {
      font-size: 80%;
    }
    .list-instruction-penilaian-akhir li {
      font-size: 80%;
      line-height: 100%;
    }
    .quizpage-inner .question p:first-child {
      font-size: 70%;
      line-height: 110%;
    }
        #QuizPage-1 .quiz-instruction {
      font-size: 60%;
    }
    .quiz-instruction {
      margin-top: 16%;
    }
    .btn, .btn-2 {
      padding: 1vw 4vw;
      font-size: 60%;
      border-radius: 0.2vw;
    }

    .answer-box-TF, .answer-box-TF-2 {
      margin-top: 1%;
      padding: 0.2vw 0.4vw;
      border-radius: 0.2vw;
      font-size: 60%;
    }

    .score {
      font-size: 60%;
      margin-top: 6vw;
    }

    .reset-btn, .reset-btn-2 {
      font-size: 80%;
    }
    .question-TF, .question-TF-2{
      margin-bottom: 3%;
    }
    


    .summary {
      top: -20%;
      font-size: 20%;
    }
    .summary p, .summary span {
      font-size: 3vw;
    }

    .summary-first {
      top: -17% !important;
    }


    .item {
      padding: 1% 4%;
      border: 1px solid #2C93D6;
      border-radius: 1.5vw;
      font-size: 75%;
      cursor: pointer;
      transition: 0.3s;
      position: relative;
      text-align: left;
    }












    

/* Essay Question Style---- */

  .question-block p {
    font-size: 100%;
  }

  .question-block textarea {
    width: 60%;
    min-height: 4vw;
    padding: 1.5vw 2vw;
    font-size: 70%;
    margin-bottom: 2vw;
    margin-left: 1vw;
  }

  .submit-btn {
    padding: 3%;
    border-radius: 8px;
    font-size: 70%;
    margin-left: 0.5vw;
    margin-bottom: 0.5vw;
  }

  .answer-box {
    padding: 1vw 2vw;
    margin-left: 0.7vw;
  }

  .answer-toggle {
    margin-bottom: 0.2vw;
    font-size: 60%;
  }

  .answer-text {
    font-size: 60%;
  }

  .arrow {
    font-size: 2vw;
  }

  .question-block ol {
    padding-left: 1vw;
    margin: 0px;
    margin-bottom: 1vw;
  }
  .question-block ol li{
    font-size: 70%;
  }


  /* Modal Box */
    .modal-box {
      width: 80%;
      height: 20%;
    }


    .modal-box h1 {
      margin-bottom: 10%;
      font-size: 32px;
      font-family: "Titan One", sans-serif;
      font-weight: 400;
      font-style: normal;
      color: #303030;
    }
    .modal-box-text {
      position: absolute;
      top: 19%;
      left: 55%;
    }

    .modal-box button {
      padding: 12px 16px;
      font-size: 12px;
      border-radius: 6px;

    }

    .page-nav-button {
        font-size: 0.75em;
        padding: 6px 10px;
        margin: 4px; /* Smaller margin for tighter fit */
    }
    #myBook {
    /* Default for desktop: two pages */
    width: auto; /* Approx A4_WIDTH * 2 */
    height: auto; /* Approx A4_HEIGHT */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    max-height: 100%;
    margin-left: 5%;

}


}