@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0a0000;
  color: #fff;
  overflow: hidden; /* Taşmaları ve kaydırmayı engelle */
  touch-action: manipulation; /* Mobilde çift tıklama zoomunu engelle */
}

/* Kalp Partikül Efekti */
.particle-heart {
  position: absolute;
  pointer-events: none;
  font-size: 24px;
  animation: floatUp 1.2s ease-out forwards;
  z-index: 99999;
  transform: translate(-50%, -50%);
}
@keyframes floatUp {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -150px) scale(2); opacity: 0; }
}

/* Çiçek Yağmuru */
.flower-rain {
  position: absolute;
  top: -50px;
  font-size: 30px;
  animation: fallDown 3s linear forwards;
  z-index: 900;
  pointer-events: none;
}
@keyframes fallDown {
  to { transform: translateY(110vh) rotate(360deg); }
}

.screen {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  z-index: 10;
}
.screen.active {
  opacity: 1;
  visibility: visible;
  z-index: 20;
}

/* Intro Ekranı */
#intro-screen { background: radial-gradient(circle, #3a0000 0%, #000000 100%); }
.intro-box { text-align: center; padding: 20px; }
.intro-box h2 { font-size: 1.5rem; margin-bottom: 10px; color: #ff3333; }
.intro-box p { font-size: 0.9rem; color: #aaa; margin-bottom: 20px; }
.intro-box input {
  padding: 15px; font-size: 1.2rem; width: 80%; max-width: 300px;
  border: 2px solid #550000; border-radius: 8px; background: #110000; color: #fff;
  text-align: center; outline: none; display: block; margin: 0 auto 20px;
}
.intro-box button {
  padding: 15px 40px; font-size: 1.2rem; background: #8b0000; color: white;
  border: none; border-radius: 8px; font-weight: bold; cursor: pointer;
}

/* H&M Netflix Efekti */
#netflix-screen { background: #000; }
.hm-logo {
  color: #e50914; /* Netflix kırmızısı */
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 5px;
  text-shadow: 0 0 20px red;
}
.netflix-animate {
  animation: netflixZoom 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes netflixZoom {
  0% { transform: scale(0.5); opacity: 0; }
  20% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { transform: scale(25); opacity: 0; }
}

/* Ana Oyun Ekranı */
#game-screen {
  background: radial-gradient(circle at center, #260000 0%, #050000 100%);
  padding: 20px;
  text-align: center;
}
#question-text {
  font-size: 1.4rem; color: #ffb3b3; margin-bottom: 40px; min-height: 80px;
  text-shadow: 0 0 10px #000; z-index: 50; padding: 0 15px;
}

/* Kapı Tasarımı */
.door-wrapper {
  perspective: 1200px;
  width: 90%; max-width: 350px; height: 350px;
  display: flex; position: relative;
}
.door {
  width: 50%; height: 100%;
  background: linear-gradient(to right, #1f0404, #3d0a0a);
  border: 3px solid #000;
  box-shadow: inset 0 0 30px #000;
  display: flex; justify-content: center; align-items: center;
  transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer; z-index: 30;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(0,0,0,0.5) 20px, rgba(0,0,0,0.5) 22px);
}
.door.left { transform-origin: left; border-right: 2px solid #0a0000; }
.door.right { transform-origin: right; border-left: 2px solid #0a0000; }

.door-text {
  font-size: 1.5rem; font-weight: bold; color: #fff;
  text-shadow: 2px 2px 5px #000, 0 0 10px #ff0000;
  pointer-events: none;
}

/* Kapı Açılış ve İçeri Girme Animasyonları */
.door.left.open { transform: rotateY(-110deg); }
.door.right.open { transform: rotateY(110deg); }
.door-wrapper.zoom-in {
  transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.5s ease-in;
  transform: translateZ(600px) scale(3);
  opacity: 0;
}

/* Ateş Çemberi Efekti (8. Soru İçin) */
.fire-ring {
  animation: fireGlow 0.8s infinite alternate !important;
  border-radius: 10px; padding: 10px;
  border: 2px solid #ff4500;
}
@keyframes fireGlow {
  0% { box-shadow: 0 0 10px #ff4500, inset 0 0 10px #ff4500; text-shadow: 0 0 5px #ff4500; }
  100% { box-shadow: 0 0 25px #ff0000, inset 0 0 25px #ff0000; text-shadow: 0 0 15px #ff0000; }
}

/* Kırılma ve Çökme Efekti */
#crash-overlay {
  background: #000; z-index: 100;
}
.crash-text { color: white; font-size: 2.5rem; text-align: center; font-weight: bold; }
.shake-screen { animation: screenShake 0.4s infinite; }
@keyframes screenShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px) translateY(5px) rotate(-1deg); }
  50% { transform: translateX(10px) translateY(-5px) rotate(1deg); }
  75% { transform: translateX(-10px) translateY(-5px) rotate(2deg); }
}

/* Fake İnternet Ekranı */
#no-internet-screen { background: #fff; color: #5f6368; align-items: flex-start; padding: 10% 20px; }
.dino-container h1 { font-size: 1.6rem; color: #202124; margin: 15px 0 10px; }
.dino-icon { font-size: 4rem; filter: grayscale(100%); }

/* Ara Modallar */
#modal-overlay { background: rgba(0,0,0,0.85); z-index: 80; }
.modal-box { background: #1a0000; border: 2px solid #ff0000; padding: 30px; border-radius: 10px; text-align: center; box-shadow: 0 0 30px rgba(255,0,0,0.5); }
.modal-box h3 { font-size: 1.5rem; margin-bottom: 20px; color: #fff; }
.modal-box button { background: #ff0000; color: #fff; border: none; padding: 10px 25px; font-size: 1.2rem; border-radius: 5px; cursor: pointer; font-weight: bold; }

/* Final Ekranı */
#final-screen { background: #fff; color: #000; transition: background 2s, color 2s; }
#final-content { text-align: center; }
#final-content p { font-size: 1.5rem; margin-bottom: 20px; }
#final-link { display: inline-block; padding: 15px 30px; background: #000; color: #fff; text-decoration: none; font-size: 1.2rem; border-radius: 10px; font-weight: bold; animation: pulse 2s infinite; }

@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }