* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
  font-family: Arial, sans-serif;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.screen {
  display: none;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.screen.active {
  display: block;
}

.bg-img {
  width: 100%;
  height: 99%;
  object-fit: contain;
}

.hidden {
  display:  none;
}

#play-btn {
  position: absolute;
  bottom:5%;
  left:23%;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#play-btn img {
  height: 90%;
  width: 90%;
}
#play-btn:hover {
  transform: scale(1.08);
 }

#level-1-btn {
  position: absolute;
  top: 50%;
  left: 18%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#level-1-btn img {
  height: 100px;
  width: auto;
}

#level-1-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

#level-screen {
  position: relative;
}

.character {
  position: absolute;
}

.banana-kid {
  left: 20%;
  height: 50%;
  top: 45%;
}

.banana-dad {
  right: 12%;
  height: 70%;
  top: 23%;
}

.banana-mom {
  right: 8%;
  height: 60%;
  top: 40%;
}

.appy {
  left: 35%;
  bottom: 120px;
  height: 700px;
  z-index: 3;
  top: 12%;
}

#intro-box {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background: #ffff;
  border: 3px solid #000;
  padding: 15px 20px;
  color: #000;
  text-align: center;
  z-index: 5;
}

.speech-bubble {
  font-size: 1.2rem;
  margin-bottom: 12px ;
}

.game-btn {
  background: #ff9900;
  color: #000;
  border: none;
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.game-btn.danger {
  background-color: #e74c3c;
}
.game-btn.safe {
  background-color: #2ecc71;
}

.game-over-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  padding: 30px 40px;
  border-radius: 20px;
  border: 3px solid #ff9900;
  text-align: center;
  z-index: 100;
}

.game-over-box p {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  font-weight: bold;
}

.replay-icon {
  width: 55px;
  height: 55px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.replay-icon:hover {
  transform: scale(1.15) rotate(15deg);
}

.start-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.start-btn img {
  height: 100px;
}

.back-btn {
  position: absolute;
  top: 20%;
  left: 70%;
  z-index: 10;
}

#kitchen-arrow {
  position: absolute;
  top: 50px;
  left: 20px;
  z-index: 10;
}

.kitchen-ui {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  z-index: 10;
}

.fridge-note {
  position: absolute;
  right: 30%;
  top: 45%;
  width: 55px;
  height: auto;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s;
}

.fridge-note.hover {
  transform: scale(1.15);
}

#clue-popup {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  padding: 15px 25px;
  border-radius: 10px;
  border: 2px solid #000000;
  text-align: center;
  z-index: 20;
}

.clue-text {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

@keyframes wiggle {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-12deg) scale(1.05); }
  50% { transform: rotate(12deg) scale(1.05); }
  75% { transform: rotate(-12deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

.wiggle {
  animation: wiggle 0.4s ease-in-out infinite;
}

.coming-soon {
  position: absolute;
  top: 380px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: #f1c40f;
  font-size: 1.8rem;
  font-weight: bold;
  padding: 12px 25px;
  border-radius: 30px;
  border: 3px solid #f1c40f;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}