.custom-text-bg {
    background-color: #31112C; 
    color: white; /* Warna teks */
    padding: 8px 16px;  /* Kurangi padding */
    border-radius: 8px;
    display: block;
    width: fit-content;
    /* box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); */
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5); /* Shadow lebih besar & gelap */
    margin-bottom: 8px;
}

.custom-h-bg {
    background-color: #FBDCC4; 
    text-align: start;
    color: black; /* Warna teks */
    /* padding: 10px; */
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    /* border: 1px solid black; */
    /* border: 2px solid #31112C; */

}

.custom-p-bg {
    background-color: #FBDCC4; 
    text-align: start;
    color: black; /* Warna teks */
    padding: 10px 16px;
    border-radius: 8px;
    line-height: 1.4;
    /* display: inline-block; */
    width: 100%;
    margin-bottom: 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    /* border: 2px solid #31112C; */

}

.custom-info {
    background-color: white;
    border-radius: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    border: 1px solid #31112C
}

.custom-soal {
    border-bottom: 2px solid black;
    font-weight: bold;
}

.custom-p-soal {
    border-bottom: 2px solid #31112C;

}

.bor {
    /* border: 1px solid #31112C; */
    border-radius: 20px;
    background-color: #FFFFFF;
}

.tth {
    background-color: #31112C;
    color: white;
}

.next-button {
    background-color: #31112C;
    color: white;
}

pre {
    padding: 15px;
    border: 1px solid black;
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    border-radius: 8px;
    white-space: pre-wrap;       /* Wrap baris panjang */
    word-wrap: break-word;       /* Pecah kata panjang jika perlu */
    overflow-wrap: break-word;   /* Alternatif modern */
    /* background-color: black;
    color: white; */
}

.drag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border: 2px dashed #aaa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.drag-item {
    padding: 10px 20px;
    background-color: #F0F0F0;
    border-radius: 5px;
    cursor: grab;
    text-align: center;
    user-select: none;
    width: fit-content;
}

.drag-item:active {
    cursor: grabbing;
}

.drop-zone {
    min-height: 40px;
    border: 2px solid black;
    text-align: center;
    vertical-align: middle;
    padding: 10px;
    background-color: #f8f9fa;
}

.tb {
    border: 1px solid black;
    margin-bottom: 30px;
}

th, td {
    min-height: 50px; /* Atur tinggi minimum sel */
    height: 60px; /* Tinggi default */
    border: 2px solid black;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.ipt {
    border: 1px solid black;
    margin-bottom: 50px; 
}

  /* Type Query */
  .container-querys {
    font-size: 16px; 
    font-family: 'Fira Code', monospace;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    margin-top: 15px;
    border: 2px solid #7D0633;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
    position: relative; /* Untuk posisi garis */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cursor { 
    display: inline-block; 
    width: 10px; 
    background: black;
    animation: blink 1s infinite; 
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.querys {
    display: none;
    /* font-size: 16px; */
}

.bq{
    align-self: center;
    border-radius: 2em;
    cursor: pointer;
    /* font-weight: bold; */
    background-color: #7D0633;
    color: white;
    border: 1px solid #320215;
    padding: 5px 15px;
    font-size: 16px;
    box-shadow: 0px 3px 0px #320215;

}

.bq:hover {
    border: 1px solid #320215;
    background-color: #A12B55;
    color: white;
    
}

.bq2{
    align-self: center;
    border-radius: 2em;
    cursor: pointer;
    /* font-weight: bold; */
    background-color: #7D0633;
    color: white;
    border: 1px solid #320215;
    padding: 5px 15px;
    font-size: 16px;
    box-shadow: 0px 3px 0px #320215;

}

.bq2:hover {
    border: 1px solid #320215;
    background-color: #A12B55;
    color: white;
    
}

.teks-peringatan {
    font-size: 16px;
}

.popup {
    transform: scale(0);
    transition: transform 0.3s ease-in-out;
  }
  
  .show {
    transform: scale(1);
  }
  
.form-group textarea {
    border-radius: 8px;
}
  
.hidden {
    display: none;
}

.blatihan{
    align-self: center;
    border-radius: 2em;
    cursor: pointer;
    /* font-weight: bold; */
    background-color: #3D3D3D;
    color: white;
    border: 1px solid black;
    padding: 5px 15px;
    font-size: 13px;
    box-shadow: 0px 3px 0px black;

}

.spasi-li li {
    margin-bottom: 12px;
}

.bor-kuis {
    /* border: 2px solid #31112C; */
    border-radius: 10px;
    background-color: #FFFFFF;
    padding: 20px;
    height: fit-content;
    margin-bottom: 50px;
}

.p-kuis {
    margin: 0;
    padding: 0;
}

.quiz-container {
    display: flex;
    width: 100%;
    /* height: 420px; */
    gap: 25px;
    margin-bottom: 100px;
    /* text-align: left; */
    
}

.judul-quiz-container {
    width: 100%;
    background-color: white;
    padding: 30px;
    border-radius: 10px; 
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    

}

/* BAGIAN KANAN KUIS */
.sidebar-soal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    width: 30%;
    height: fit-content;
    padding: 30px;
    border-radius: 10px; 
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #31112C;

}

.nomor-soal-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
    justify-content: center; 
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.num-btn {
    background-color: white;
    border: 1px solid #31112C;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    
}

.num-btn.answered {
    background-color: lightgreen; /* hijau sebagai tanda sudah dijawab */
    color: black;
}

.status-wrapper {
    display: flex;
    align-items: center;
    /* margin-top: 15px; */
    /* margin: 5px 0; */
}

.kotak-hijau {
    width: 20px;
    height: 20px;
    background-color: lightgreen;
    display: inline-block;
    margin: 5px;
    border: 1px solid black;
    /* margin-top: 15px; */
}

.kotak-abu {
    width: 20px;
    height: 20px;
    background-color: white;
    display: inline-block;
    margin: 5px;
    border: 1px solid black;

}

.submit-btn-kuis {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.submit-btn-kuis button {
    width: 70%;
    padding: 10px 15px;
    background: red;
    box-shadow: 0px 3px 0px black;
    /* padding: 8px 12px; */
    border-radius: 2em;
    text-align: center;
    font-weight: bold;
    color: white;
    border: 1px solid black;
    cursor: pointer;
}

.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bnv {
    box-shadow: 0px 3px 0px black;
    background: red;
    /* padding: 8px 12px; */
    border-radius: 2em;
    text-align: center;
    font-weight: bold;
    color: white;
    border: 1px solid black;
    cursor: pointer;
}

.bnv:hover {
    box-shadow: 0px 3px 0px black;
    border: 1px solid black;
}

.bnv2 {
    box-shadow: 0px 3px 0px black;
    background: red;
    /* padding: 8px 12px; */
    border-radius: 2em;
    text-align: center;
    font-weight: bold;
    color: white;
    border: 1px solid black;
    cursor: pointer;
}

.bnv2:hover {
    box-shadow: 0px 3px 0px black;
    border: 1px solid black;
}

.next-materi {
    padding: 10px 15px;
    background: #31112C;
    box-shadow: 0px 3px 0px black;
    /* padding: 8px 12px; */
    border-radius: 2em;
    text-align: center;
    font-weight: bold;
    color: white;
    border: 1px solid black;
    cursor: pointer;
}

.mulai-btn-kuis {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.mulai-btn-kuis a {
    padding: 10px 15px;
    
    box-shadow: 0px 3px 0px black;
    /* padding: 8px 12px; */
    border-radius: 2em;
    text-align: center;
    font-weight: bold;
    
    border: 1px solid black;
    cursor: pointer;
}

.m-nilai {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}


.pointer-events-none {
    pointer-events: none;
    opacity: 0.6;
}


/* BAGIAN KIRI KUIS */
.question-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    width: 70%;
    height: fit-content;
    padding: 30px;
    border-radius: 10px; 
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #31112C;


}

.question-wrapper {
    flex-grow: 1;
}

.question-container ul {
    list-style: none; /* Menghilangkan bullet points */
    padding: 0; /* Menghapus padding bawaan */
}

.question-container li {
    margin: 5px 0;
    /* padding-left: 10px; */
}

.question {
    display: none;
}

.question.active {
    display: block;
}

.option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
}

.option input[type="radio"] {
    margin-top: 7px;
    margin-right: 10px;
}

.option label {
    display: inline-block;
    line-height: 1.5;
    max-width: 100%;
}


.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 75px;
}

.nav-buttons button {
    width: 35%;
    box-shadow: 0px 3px 0px black;
    padding: 8px 12px;
    border-radius: 2em;
    text-align: center;
    font-weight: bold;
    /* padding: 10px 15px; */
    background: blue;
    color: white;
    /* border: none; */
    border: 1px solid black;
    cursor: pointer;
}

.jawaban-benar {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}

.jawaban-salah {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
}

.rangkuman3 ul, ol {
    padding-left: 1em;
}

.rangkuman3 ul.no-bullets, ol.no-bullets {
    list-style: none;
    padding-left: 1.2em;
}

.container-match-up {
    display: flex;
    justify-content: space-between;
    max-width: 700px;
    margin: auto;
    /* margin-top: 30px; */
    position: relative;
  }

  .match-up {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
    margin: auto;
    margin-top: 40px;
    margin-right: 310px;
    position: relative;
  }

  .column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 1;
  }

  .item {
    padding: 10px 15px;
    background-color: #FBDCC4;
    border: 1px solid #F2A07B;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
  }

  .item.selected {
    background-color: #F2A07B;
    border-color: black;
  }

  .container-match-up svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
  }

  /* .match-up button {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 20px;
    background-color: #31112C;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: block;
  } */

  .result {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
  }

  .hint-btn {
    border-radius: 20px;
    border: 1px solid #320215;
    padding: 5px 15px;
    font-size: 16px;
    box-shadow: 0px 3px 0px #320215;
  }

  .hint-btn:hover {
    border: 1px solid #320215;
  }

  #eastherModal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  #eastherContent {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    animation: zoomIn 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    /* font-family: 'Segoe UI', sans-serif; */
  }

  #eastherContent h4 {
    font-weight: bold;
    color: #31112C;
    margin-bottom: 10px;
  }

  #eastherContent input {
    width: 80%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #31112C;
    border-radius: 8px;
  }

  .buttons button {
    padding: 8px 16px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
  }

  .buttons button:first-child {
    background-color: #22c55e;
    color: white;
  }

  .buttons button:last-child {
    background-color: #ef4444;
    color: white;
  }

  #eastherFeedback {
    margin-top: 10px;
    font-weight: bold;
  }

  @keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }


@media (max-width: 768px) {

  .custom-text-bg,
  .custom-h-bg,
  .custom-p-bg {
    text-align: start !important;
  }

  .custom-h-bg {
    font-size: 20px;
  }
 pre {
    font-size: 14px;
 }

 button {
    font-size: 14px;
 }
 .btn {
    font-size: 14px;
 }
 
  .quiz-container {
    display: flex;
    flex-direction: column;
    width: 100%;

  }

  .question-container {
    width: 100%;
  }

  .sidebar-soal {
    width: 100%; /* Biar pas di layar kecil */
  }

  .kotak-kuis {
    width: 100%;
  }


  th, td {
    font-size: 12px;
    padding: 8px;
  }

  .submit-btn-kuis button {
    width: 100%;
    font-size: 14px;
  }

  .bq, .blatihan, .bnv, .bnv2, .next-materi {
    font-size: 14px;
    padding: 6px 12px;
  }

  .form-group textarea {
    width: 100%;
    font-size: 14px;
  }

  .container-querys {
    padding: 12px;
    font-size: 14px;
  }

  .teks-peringatan {
    font-size: 14px;
  }

}
