/* Google'dan gelen fontu tanımlıyoruz */
:root {
  --game-font: 'Luckiest Guy', cursive;
}

/* Genel Sayfa ve Arka Plan */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2c274c; /* Koyu mor arka plan */
  background-image: radial-gradient(circle, #4a3f80, #2c274c 70%);
  color: #fff;
}

/* Oyun Paneli */
.game-container {
  width: 100%;
  max-width: 550px;
  background-color: #3e376e;
  border-radius: 25px;
  padding: 30px;
  text-align: center;
  border: 5px solid #a89ff7;
  box-shadow: 0 0 20px rgba(0,0,0,0.5), inset 0 0 10px rgba(0,0,0,0.3);
  transition: all 0.2s ease-out; /* Geri bildirim animasyonu için */
}

/* --- GÖRSEL GERİ BİLDİRİM --- */
/* JavaScript ile bu sınıflar eklenecek */
.game-container.correct {
  transform: scale(1.02);
  border-color: #55ff89;
  box-shadow: 0 0 30px #55ff89, inset 0 0 10px rgba(0,0,0,0.3);
}
.game-container.incorrect {
  transform: scale(0.98);
  border-color: #ff556a;
  box-shadow: 0 0 30px #ff556a, inset 0 0 10px rgba(0,0,0,0.3);
  animation: shake 0.5s; /* Sallanma efekti */
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px) scale(0.98); }
  20%, 80% { transform: translateX(2px) scale(0.98); }
  30%, 50%, 70% { transform: translateX(-4px) scale(0.98); }
  40%, 60% { transform: translateX(4px) scale(0.98); }
}

/* Başlık */
h1 {
  font-family: var(--game-font);
  font-size: 3.5em;
  color: #f7ca18;
  text-shadow: 4px 4px 0 #9f5b0d;
  margin: 0 0 20px 0;
  line-height: 1;
}

/* Skor Paneli */
#score-panel {
  background: rgba(0,0,0,0.2);
  padding: 10px 20px;
  border-radius: 50px;
  display: inline-block;
  font-size: 1.5em;
  font-weight: bold;
  border: 2px solid #a89ff7;
  margin-bottom: 25px;
}
#score-panel span {
  font-family: var(--game-font);
  color: #f7ca18;
  margin-left: 5px;
}

/* Soru alanı ve Cümle */
#question-area {
  background: rgba(0,0,0,0.2);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
}
#sentence {
  font-size: 1.4em;
  line-height: 1.6;
}
#sentence select {
  padding: 10px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 10px;
  border: 3px solid #6b61a9;
  background-color: #f0f0f0;
  color: #333;
}

/* --- ANA OYUN BUTONU --- */
.action-btn {
  font-family: var(--game-font);
  font-size: 1.8em;
  padding: 15px 40px;
  color: white;
  background-color: #1abc9c; /* Turkuaz */
  border: none;
  border-radius: 15px;
  border-bottom: 6px solid #16a085; /* 3D efekt için alt gölge */
  cursor: pointer;
  transition: all 0.1s ease-in-out;
}
.action-btn:hover {
  background-color: #2fe2bf;
}
.action-btn:active {
  transform: translateY(4px); /* Tıklama hissi */
  border-bottom-width: 2px;
}


/* Oyun Sonu Formu Stilleri */
#end-form {
  border-top: 5px dashed #a89ff7;
  margin-top: 30px;
  padding-top: 20px;
}
#end-form h3 {
  font-family: var(--game-font);
  font-size: 2.5em;
  color: #ff556a;
}
.final-score-display {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
}
#end-form input[type="text"] {
  width: 80%;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 3px solid #6b61a9;
  background: #f0f0f0;
  font-size: 1.1em;
  text-align: center;
}
.submit-btn {
  font-family: var(--game-font);
  font-size: 1.5em;
  padding: 12px 30px;
  color: white;
  background-color: #e67e22;
  border: none;
  border-radius: 12px;
  border-bottom: 5px solid #d35400;
  cursor: pointer;
  transition: all 0.1s;
}
.submit-btn:hover { background-color: #f39c12; }
.submit-btn:active { transform: translateY(3px); border-bottom-width: 2px; }