body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Caveat Brush', 'Playwrite DE Grund', Courier, monospace;
}

.highlightText {
    font-family: Arial, Helvetica, sans-serif;
    direction: rtl;
    text-align: right;
}

.element img {
  transition: filter 0.3s ease;
}

.highlight img {
  filter: drop-shadow(0 0 20px yellow);
}

.element {
  position: absolute;
  cursor: pointer;
}

.order-number {
  position: absolute;
  background-color: #007bff;
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Loading Screen */
#loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
}

.bg-brown-500 {
  background-color: #8B4513;
}

#loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.774)
    /* bg-gray-800 with bg-opacity-75 */
}

#loading-screen .text-center {
  text-align: center;
}

#loading-screen p {
  color: white;
  margin-bottom: 1rem;
  /* mb-4 */
}

#loading-screen .logo {
  display: block;
  margin: 0 auto 1rem;
  /* mx-auto mb-4 */
  width: 150px;
  /* Adjust size as needed */
}

#loading-screen .loader {
  display: block;
  margin: 0 auto 1rem;
  width: 60px;
  /* mx-auto mb-4 */
}

#loading-percentage {
  font-size: 1.5rem;
  font-weight: bold;
}


#start-button {
  background-color: #a0522d;
  /* bg-brown-500 */
  color: white;
  padding: 0.5rem 1rem;
  /* p-2 */
  border-radius: 0.25rem;
  /* rounded */
}


.popup {
  display: none;
}

.popup.active {
  display: block;
}

.sub-popup {
  display: none;
}

.sub-popup.active {
  display: block;
}

/* Styling tombol audio */
.audio-button {
  position: absolute;
  width: 15%;
  height: 100%;
}

.hint {
  display: none;
}

#hint-container {
  z-index: 30;
}

#hint-text {
  font-size: 1.5rem;
  max-width: 80%;
}

.bottom-custom {
  font-size: 0.7rem;
  bottom: 4rem;
  /* Ubah nilai sesuai kebutuhan Anda */
}


/* Styling untuk ukuran mobile */
@media (max-width: 768px) {
  .audio-button.u {
    left: 20%;
    top: -250%;
  }

  .audio-button.i {
    left: 43%;
    top: -250%;
  }

  .audio-button.a {
    left: 66%;
    top: -250%;
  }

  .audio-button.asli {
    left: 43%;
    top: -550%;
  }
}

/* Styling untuk ukuran desktop */
@media (min-width: 769px) {
  .audio-button.u {
    left: 20%;
    top: -1000%;
    height: 450%;
  }

  .audio-button.i {
    left: 43%;
    top: -1000%;
    height: 450%;
  }

  .audio-button.a {
    left: 66%;
    top: -1000%;
    height: 450%;
  }

  .audio-button.asli {
    left: 43%;
    top: -1500%;
    height: 450%;
  }
}

/* General styling for hidden layers */
#simulation-popup img.hidden {
  display: none;
}

/* Ensure the layers are above the base image */
#simulation-popup .relative img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#simulation-popup .relative img#mouth-image {
  position: relative;
  z-index: 0;
}

/* Highlight effect for makhraj layers */
#simulation-popup .highlight {
  animation: highlightEffect 1s ease-in-out;
  z-index: 2;
}

@keyframes highlightEffect {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

.highlight-ayat {
  background-color: yellow;
}

.audio-controls {
  margin-top: 20px;
}

.btn-play,
.btn-pause,
.btn-stop {
  margin-right: 10px;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
}

.btn-pause {
  background-color: #ffc107;
}

.btn-stop {
  background-color: #dc3545;
}

.ayat {
  margin-left: 5px;
  color: #000;
}

/* Tambahan untuk styling tombol pilihan kalimat */
.menu-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.menu-button {
  flex: 1;
  margin: 0 5px;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  text-align: center;
}

.menu-button:hover {
  background-color: #218838;
}

.menu-button:active {
  background-color: #1e7e34;
}


/* Kata */
.highlightKataButton {
  margin: 5px;
  padding: 10px 15px;
  background-color: #A0522D;
  /* Sienna */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.highlightKataButton:hover {
  background-color: #8B4513;
  /* Darker brown */
}

/* Atur konten untuk ditampilkan dari kanan ke kiri */
#kata-content {
  direction: rtl;
  text-align: right;
}