/* Gövde aynı bırakıldı – içerik 600px ortalı kalır */
body {
  font-family: Arial, sans-serif;
  background: #ce2929;
  padding: 20px;
  max-width: 600px;
  margin: auto;
  color: #222;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;

  /* 👇 ÖNEMLİ DÜZELTME: body (600px) sınırından çıkıp tam ekran kaplaması için */
  width: 100vw;                     /* Viewport genişliği kadar olsun */
  margin-left: calc(50% - 50vw);    /* Ortalı gövdeden taşır (sola yayar) */
  margin-right: calc(50% - 50vw);   /* Sağa taşır */
  left: 0; right: 0;                /* Güvenlik için kenarlara hizala */
  box-sizing: border-box;           /* İç boşluk eklenince taşma yapmasın */

  background: #000;                 /* siyah */
  color: #fff;
  border-radius: 0;                 /* Tam şerit görünsün diye köşe yok */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left .logo {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.nav-left .site-desc {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  align-items: center;
  background: linear-gradient(135deg, #5a25d4, #a8edea);
  width: 220px;
  height: 30px;
  border-radius: 50px;
  display: inline-flex;             /* Dikey hizalama için */
  justify-content: center;
}

.nav-left .site-desc:hover {
  background: rgb(18, 18, 143);
  color: yellow;
}

/* Menü Linkleri (renkleri-boşlukları aynı) */
.nav-right a {
  background: linear-gradient(135deg, #5a25d4, #a8edea);
  color: white;
  padding: 10px 16px;
  margin: 0 5px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-right a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background: rgb(18, 18, 143);
  color: yellow;
}

/* Hamburger buton (mobil) */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* Mobil görünüm */
@media (max-width: 768px) {
  .nav-right {
    display: none;
    flex-direction: column;

    /* Menü açıldığında şeridin altında tam genişlikte görünsün */
    width: 100%;
    background: #5a25d4;
    text-align: center;
    margin-top: 10px;
    border-radius: 8px;
    padding: 8px 0;
  }

  .nav-right a {
    display: block;
    margin: 10px 12px;
  }

  .menu-toggle {
    display: block; /* 768px altı hamburger görünür */
  }

  .nav-right.active {
    display: flex; /* JS ile sınıf eklenince açılır */
  }
}
/* === /NAVBAR === */


/* --- OYUN STİLLERİ (değiştirilmedi) --- */
h1 {
  text-align: center;
  margin-bottom: 10px;
  color: rgb(57, 2, 116);
  background: #28a745;
  padding: 10px;
}

h2 {
  text-align: center;
  color: white;
  background-color: #b3004d;
}

p {
  text-align: center;
  font-size: 20px;
  color: yellow;
  background: rgb(57, 2, 116);
  padding: 10px;
  border-radius: 8px;
}

#start-screen input {
  width: 80%;
  padding: 10px;
  font-size: 18px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 2px solid #ccc;
}

.btn-play {
  cursor: pointer;
  background-color: #ce2929;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  margin: 5px auto;
  display: block;
}

.btn-play:hover {
  background-color: rgb(57, 2, 116);
}

.question, .progress {
  background: rgb(57, 2, 116);
  color: white;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 25px;
  box-shadow: 0 0 18px rgba(0,0,0,0.1);
  text-align: center;
}

.option-btn {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background-color: #ce2929;
  color: white;
}

.option-btn:hover {
  background-color: rgb(57, 2, 116);
}

.correct {
  background-color: #c8f7c5 !important;
  color: #256029;
  border: 1.5px solid #256029;
}

.incorrect {
  background-color: #f7c5c5 !important;
  color: #7a1c1c;
  border: 1.5px solid #7a1c1c;
}

#level-counter {
  text-align: center;
  font-size: 18px;
  margin-bottom: 15px;
  color: yellow;
  font-weight: bold;
}

#creator {
  text-align: center;
  font-size: 12px;
  font-style: italic;
  font-weight: bold;
  color: white;
  background-color: rgb(57, 2, 116);
  border: 8px solid #256029;
  margin-top: 20px;
  padding: 5px;
}

.progress-item {
  padding: 5px;
  margin: 3px 0;
  border-radius: 5px;
}

.progress-correct {
  background-color: #c8f7c5;
  color: #256029;
}

.progress-current {
  background-color: #28a745;
  color: white;
}

.progress-item.baraj {
  background-color: rgb(57, 2, 116);
  color: white;
  font-weight: bold;
}

.progress-bar {
  text-align: center;
}
