body {
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  text-align: center;
  margin: 0;
  padding: 0;
}

.logo {
  width: 6vw;
  height: 6vh;
  position: fixed;
  top: 1vw;
  left: 1vw;
  z-index: 9999;
}
.logo img {
  width: 100%;
  height: auto;
}

.scene {
  overflow: hidden;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-background-size: cover;
  background-position: center;
}

.button-muted {
  width: 8vw;
  height: 8vh;
  position: fixed;
  top: 1vw;
  right: 1vw;
  z-index: 9999;
  cursor: pointer;
}
.button-muted img {
  width: 70%;
  height: auto;
}

.button-muted:hover {
  transform: scale(1.1);
}

.button-muted:active {
  transform: scale(0.9);
}

.button-back {
  width: 8vw;
  height: 8vh;
  position: fixed;
  top: 1vw;
  right: 1vw;
  z-index: 9999;
  cursor: pointer;
}
.button-back img {
  width: 100%;
  height: auto;
}

.button-back:hover {
  transform: scale(1.1);
}

.button-back:active {
  transform: scale(0.9);
}

#scene1 {
  background-image: url("assets/cover.webp");
  position: relative;
}

.cover-container {
  height: 50%;
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Styling for Start Screen */
.title-cover {
  background-image: url("assets/judul.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  height: 35vh;
}

.title {
  font-size: 1.7vw;
  font-weight: bold;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.description {
  margin-top: 3vh;
  font-size: 1.2vw;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.cover-left {
  position: absolute;
  background-image: url("assets/kiri.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 55vh;
  height: 75%;
  bottom: 0;
  left: 0;
}
.cover-right {
  position: absolute;
  background-image: url("assets/kanan.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 55vh;
  height: 75%;
  bottom: 0;
  right: 0;
}

.start-button {
  background-image: url("assets/mulai.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 50%;
  height: 50%;
  cursor: pointer;
  border-radius: 0.5vw;
}

.start-button:hover {
  transform: scale(1.1);
}

.start-button:active,
.start-button:focus {
  transform: scale(0.9);
}

#scene2 {
  background-image: url("assets/bg menu.webp");
}

.speech-bubble {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  font-size: 1em;
  margin-bottom: 15px;
  display: inline-block;
  max-width: 80%;
}

.purpose-text,
.instruction-text {
  font-size: 1.1em;
  margin: 10px 0;
}

.button {
  display: none;
  background-color: #007bff;
  border: none;
  color: white;
  padding: 1vw 2vw;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

.button.next {
  display: inline-flex;
  background-color: #ff7a00;
}

#scene3 {
  background-image: url("assets/bg menu.webp");
}

/* Menu Item Container */
.menu-container {
  display: flex;
  width: 90%;

  padding: 1vw 1vw;
  margin-top: 2vw;
  gap: 20px;
  justify-content: center;
}

/* Menu Item Styling */
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20vw;
  cursor: pointer;
}

.menu-item:hover {
  transform: scale(1.1);
}

.menu-item:active,
.menu-item:focus {
  transform: scale(0.9);
}

.menu-item img {
  border: 2px solid #fff;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 99%;
  border-radius: 0.5vw;
}

#scene4 {
  background-image: url("assets/bg.webp");
  position: relative;
}
.container-content-scene4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  gap: 1vh;
}

.content-scene4 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18vh;
  width: 80vw;
  background-size: cover;
  background-position: center;
  position: relative;
}

.helms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  position: relative;
  background-color: #567799;
  padding: 0.5vw;
  border-radius: 0.5vw;
}
.helm {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.1vw;
  height: 5.1vw;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* default position */
#helm-red {
  background-image: url("assets/1.webp");
}

#helm-white {
  background-image: url("assets/2.webp");
}
#helm-green {
  background-image: url("assets/3.webp");
}

#helm-blue {
  background-image: url("assets/4.webp");
}

#helm-orange {
  background-image: url("assets/5.webp");
}

#helm-yellow {
  background-image: url("assets/6.webp");
}

/* helm used */
#helm-red-use {
  width: 100%;
  height: 100%;
  background-image: url("assets/helm 1.webp");
}

#helm-white-use {
  width: 100%;
  height: 100%;
  background-image: url("assets/helm 2.webp");
}
#helm-green-use {
  width: 100%;
  height: 100%;
  background-image: url("assets/helm 3.webp");
}

#helm-blue-use {
  width: 100%;
  height: 100%;
  background-image: url("assets/helm 4.webp");
}

#helm-orange-use {
  width: 100%;
  height: 100%;
  background-image: url("assets/helm 5.webp");
}

#helm-yellow-use {
  width: 100%;
  height: 100%;
  background-image: url("assets/helm 6.webp");
}

.characters-scene4 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 70%;
  position: relative;
}

.character-container {
  position: relative;
  display: flex;
  height: 100%;
}

.character-container-4 {
  position: relative;
  display: flex;
  height: 100%;
  width: 100%;
}

.character-container-4 img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.dropzone-container {
  width: 100%;
  height: 100%;
  display: flex; /* Gunakan inline-flex untuk memastikan bead pas di tengah */
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

.dropzone-scene4-container {
  width: 100%;
  height: 100%;
  display: flex; /* Gunakan inline-flex untuk memastikan bead pas di tengah */
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

.dropzone-scene4 {
  width: 100%;
  height: 100%;
  display: flex; /* Gunakan inline-flex untuk memastikan bead pas di tengah */
  justify-content: center;
  align-items: center;
  position: relative;
}

#scene5 {
  background-image: url("assets/ruang gambar.webp");
  position: relative;
}
.container-content-scene5 {
  padding-top: 2vw;
  display: -webkit-flex;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 70%;
}
.content-scene5 {
  margin-top: 3vw;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  height: 100%;
  width: 40%;
  background-size: cover;
  -webkit-background-size: cover;
  -webkit-background-position: center; 
  background-position: center;
  position: relative;
}

.characters-container-scene5 {
  display: flex;
  justify-content: end;
  align-items: end;
  /* margin-right: 5vw; */
  width: 30%;
}

.characters-container-scene5 img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}


.character4 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 70vh;
}

.character5 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 70vh;
}

.dropzone.scene-5 {
  width: 100%;
  height: 100%;
  position: relative;
  top: 0;
  left: 0;
}

.tools-scene5-background {
  padding-top: 1vw;
  width: 100%;
  height: 60%;
  display: -webkit-grid;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.5vw;
  justify-content: center;
  -webkit-justify-content: center;
  align-items: center;
  -webkit-align-items: center; 
  justify-items: center;
  align-items: center;
  position: relative;
}

.tool {
  cursor: pointer;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 8vw;
  height: 8vw;
}

.tool.helm {
  background-image: url("assets/helm.webp");
  z-index: 6;
  -webkit-z-index: 6;
}

.tool.mask {
  background-image: url("assets/maskah.webp");
  z-index: 5;
  -webkit-z-index: 5;
}

.tool.gloves {
  background-image: url("assets/sarungtangan.webp");
  z-index: 4;
  -webkit-z-index: 4;
}

.tool.spectacles {
  background-image: url("assets/spectacles.webp");
  z-index: 3;
  -webkit-z-index: 3;
}

.tool.boots {
  background-image: url("assets/sepatu.webp");
  z-index: 2;
  -webkit-z-index: 2;
}

.tool.earplug {
  background-image: url("assets/Earplug.webp");
  z-index: 1;
  -webkit-z-index: 1;
}
/* tool use */
.tool.helm-use {
  height: 100%;
  width: 100%;
  background-image: url("assets/set helm.webp");
  z-index: 10;
  -webkit-z-index: 10;
  position: absolute;
}

.tool.mask-use {
  height: 100%;
  width: 100%;
  background-image: url("assets/set masker.webp");
  position: absolute;
  z-index: 5;
  -webkit-z-index: 5;
}

.tool.gloves-use {
  height: 100%;
  width: 100%;
  background-image: url("assets/set sarungtangan.webp");
  position: absolute;
  z-index: 4;
  -webkit-z-index: 4;
}

.tool.spectacles-use {
  height: 100%;
  width: 100%;
  background-image: url("assets/set spectacles.webp");
  position: absolute;
  z-index: 3;
  -webkit-z-index: 3;
}

.tool.boots-use {
  height: 100%;
  width: 100%;
  background-image: url("assets/setsepatu.webp");
  position: absolute;
  z-index: 2;
  -webkit-z-index: 2;
}

.tool.earplug-use {
  height: 100%;
  width: 100%;
  background-image: url("assets/set earplug.webp");
  position: absolute;
  z-index: 1;
  -webkit-z-index: 1;
}

.button-scene5 {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.button-scene5.check-gambar {
  cursor: pointer;
  width: 20vw;
  height: 5vw;
  background-image: url("assets/tombol periksa.webp");
}

.button-scene5.check-gambar:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1); /* Optional hover effect */
}

.button-scene5.check-gambar:active {
  -webkit-transform: scale(0.9);
  transform: scale(0.9); /* Optional active effect */
}

#scene6 {
  background-image: url("assets/ruang mesin bubut.webp");
  position: relative;
}

.dropzone.scene-6 {
  width: 100%;
  height: 100%;
  position: relative;
  top: 0;
  left: 0;
}

#scene7 {
  background-image: url("assets/ruang pengecoran logam.webp");
  position: relative;
}

.dropzone.scene-7 {
  width: 100%;
  height: 100%;
  position: relative;
  top: 0;
  left: 0;
}

#scene8 {
  background-image: url("assets/ruang rangka pesawat.webp");
  position: relative;
}

.dropzone.scene-8 {
  width: 100%;
  height: 100%;
  position: relative;
  top: 0;
  left: 0;
}

.information {
  display: none; /* Mulai dengan display: none agar tidak muncul di awal */
  position: fixed; /* Pastikan elemen tetap berada di layar */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0; /* Mulai dengan opacity 0 */
  animation-duration: 2s;
  animation-fill-mode: forwards; /* Menyimpan gaya setelah animasi */
}

.information.show {
  display: flex; /* Menampilkan informasi setelah animasi dimulai */
  animation-name: fadeIn; /* Menambahkan animasi untuk fade in */
}

.information .instruction-1 {
  position: absolute;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1000;
  width: 50%; /* Atur lebar sesuai kebutuhan */
  height: 50%; /* Atur tinggi sesuai kebutuhan */
  background-image: url("assets/petunjuk.png"); /* Gambar petunjuk */
  top: 25%;
  left: 25%;
  transform: translate(-50%, -50%); /* Posisikan di tengah */
  display: flex;
  opacity: 0; /* Mulai dengan opacity 0 */
  animation: slideIn 2s forwards; /* Menambahkan animasi slide in */
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1; /* Pada tengah animasi, elemen akan sepenuhnya terlihat */
  }
  100% {
    opacity: 0; /* Di akhir animasi, elemen akan kembali transparan */
  }
}

/* Overlay Danger */
.overlay-danger {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 0, 0, 0.2); /* Merah transparan */
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  opacity: 0; /* Hidden by default */
  pointer-events: none; /* Tidak menghalangi klik di elemen lain */
  animation: fadeInOut 2s ease-in-out infinite;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  left: 0;
  top: 0;
  width: 100vw; /* Full width */
  height: 100vh; /* Full height */
  overflow: hidden; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  height: 30vw;
  width: 50%;
  margin: 15% auto; /* 15% from the top and centered */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 2vw;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 1vw;
  animation: slideIn 0.5s ease-out, fadeIn 0.5s ease-in;
}

.modal-content.correct {
  background-image: url("assets/benar.webp");
}

.modal-content.wrong {
  background-image: url("assets/salah.webp");
}
.modal-button {
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35%;
  height: 20%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("assets/baik.webp");
  cursor: pointer;
}

.modal-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.modal-button:active {
  transform: translate(-50%, -50%) scale(0.9);
}

.alert {
  display: none;
  position: fixed;
  top: 1%;
  left: 50%;
  transform: translate(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  border-radius: 0.5vw;
  text-align: center;
  z-index: 1000;
}

.alert-text {
  margin-bottom: 10px;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.btn-alert {
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 0.3vw;
  padding: 1vw 2vw;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
}

.btn-alert:hover {
  background-color: #45a049;
}

.btn-alert:focus {
  outline: none;
}

.btn-alert.no {
  background-color: #f44336;
}

.btn-alert.no:hover {
  background-color: #e53935;
}

.landscape-message {
  color: #333;
  display: none; /* Sembunyikan pesan saat potrait */
}

audio {
  display: none;
}

@media screen and (min-width: 1024px) and (max-width: 1400px) {
  .cover-left {
    width: 30vh;
    height: 50%;
  }
  .cover-right {
    width: 30vh;
    height: 50%;
  }
  /* 
  .modal-button {
    bottom: 20%;
    width: 40%;
    height: 10%;
  } */
}

@media only screen and (orientation: portrait) {
  .landscape-message {
    display: flex;
    height: 100vh;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
}

@media only screen and (orientation: landscape) {
  #scene1 {
    display: flex;
  }
  .landscape-message {
    display: none; /* Sembunyikan pesan saat lanskap */
  }
}
