/* Genel sayfa ayarları */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  touch-action: pan-x pan-y; /* yakınlaştırmayı kısıtlar */
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  background: linear-gradient(to bottom, #a102cd, #26047c);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Ekranlar */
.screen {
  display: none;
  width: 100%;
  height: 100%;
  text-align: center;
  position: relative;
}
.screen.active {
  display: block;
}

/* Genel buton stili */
button {
  font-size: 1.6rem !important;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-shadow: #000000 0px 0px 8px;
  padding: 25px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(90deg, #ff6a00, #ee0979);
  color: white;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  transition: transform 0.2s;
  display: block;
  padding: 20px 5px;
  width: 90%;         /* %80 genişlik */
  margin: 30px auto;  /* sağ-sol eşit boşluk */
  max-width: 80%;   /* masaüstünde fazla geniş olmasın */
}
button:hover {
  transform: scale(1.05);
}

#startBtn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ff6a00, #ee0979);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(238,9,121,0.3);
  text-shadow: 0 2px 8px #00000088;
  padding: 20px 5px;
  border-radius: 25px;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 90%;
  margin: 30px auto;
  max-width: 80%;
  display: block;
}
#startBtn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(238,9,121,0.5);
}


/* Logo ortada */
#logo {
  display: block;
  margin: 50% auto auto auto;
  max-width: 80%;
  height: auto;
}

/* Seçim ekranı grid */
#selectionScreen .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 85%;
  margin: 120px auto;
}
#selectionScreen img {
  width: 80%;
  height: auto;
  padding: 9px !important;
  cursor: pointer;
  border-radius: 15px;
  border: 5px solid #44cdff96;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
}
#selectionScreen img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  border-color: #0066ff;
}

/* Seçilen öğe */
#selectedItem, #caughtItem {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s;
  width: 70%;   /* genişliğin %80’i */
  height: auto;
  z-index: 15;
}
#selectedItem.active,
#caughtItem.active {
  transform: translate(-50%, -50%) scale(1);
}

/* Oyun ekranı */
#gameScreen {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Düşen öğeler */
.falling {
  position: absolute;
  width: 120px;   /* masaüstünde boyut */
  height: 120px;
  top: -120px;
  cursor: pointer;
  transition: transform 0.3s;
  z-index: 5;
}

/* Tavşan */
.rabbit {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  z-index: 50;
  transition: bottom 0.8s ease-out;
  display: none;
}
.rabbit.active {
  bottom: 60px;
  display: block;
}

/* ---------------------- */
/* Mobil uyumluluk */
@media (max-width: 800px) {
  button {
    font-size: 2rem;;
    padding: 12px;
  }

  #selectionScreen img {
    padding: 0px;
    border-width: 2px;
    border-radius: 20px;
  }

  /* Düşen öğeler daha büyük */
  .falling {
    width: 90px !important;
    height: 90px !important;
  }

  .rabbit {
    width: 500px;
  }

}
