/* Karanlık tema */
body {
  font-family: Arial, sans-serif;
  background-color: #1e1e1e;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(45deg, #1e1e1e, #2a2a2a); /* Gradient başlangıcı */
  transition: background 0.5s ease; /* Arka plan geçişleri */
}

/* Fare ile hareket eden arka plan */
body.dynamic-bg {
  background: linear-gradient(45deg, #1e1e1e, #313131); /* Default renk */
}

/* Quiz ve Oyun seçimi container */
#quiz-container,
#game-selection-container {
  width: 80%;
  max-width: 600px;
  padding: 20px;
  background: rgba(49, 49, 49, 0.8); /* Cam efekti için arka plan */
  backdrop-filter: blur(10px); /* Arka planı bulanıklaştır */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  text-align: center;
  z-index: 1;
  color: #fff; /* Yazı rengi beyaz */
}

/* Sonuç ekranı stili */
#result-container {
  font-weight: bold;
  font-size: 1.5rem;
  margin-top: 20px;
}

#result-container h2 {
  color: #ffcc00;
}

/* Solaire animasyonu */
.solaire-animation {
  display: block;
  margin: 30px auto;
  width: 150px; /* Görsel boyutunu ayarlayabilirsiniz */
  height: auto;
}

/* 2x2 şık düzeni */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2x2 şık düzeni */
  gap: 15px;
}

/* 2x2 düzeni */
#game-selection-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 sütun */
  grid-template-rows: repeat(2, auto);   /* 2 satır */
  gap: 15px; /* Butonlar arasındaki boşluk */
  justify-content: center; /* Butonları yatay olarak ortalayalım */
  align-items: center; /* Butonları dikey olarak ortalayalım */
}

/* Şıkların stili (cam görünüşlü kutular) ve oyun seçim butonları */
.option-box,
.game-btn {
  padding: 15px;
  background: rgba(255, 255, 255, 0.1); /* Cam efekti */
  backdrop-filter: blur(10px); /* Hafif bulanıklık */
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5); /* Beyaz ince kontur */
  cursor: pointer;
  transition: background 0.3s ease, border 0.3s ease;
  font-size: 1rem;
  color: white; /* Buton yazı rengini beyaz yapalım */
  text-align: center;
}

/* Müzik kontrol butonu ve kaydırma barı */
#music-control {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10; /* Üstte durması için */
  display: flex;
  align-items: center; /* Ses kontrol butonu ve slider yan yana olacak */
}

#volume-slider {
  width: 100px; /* Slider'ın genişliği */
  margin-right: 10px; /* Ses butonuna olan mesafe */
  vertical-align: middle; /* Buton ile aynı hizada olacak şekilde ortalar */
  -webkit-appearance: none; /* Varsayılan stili kaldır */
  appearance: none;
  background: linear-gradient(to right, red 0%, red 0%, #ccc 0%, #ccc 100%); /* Başlangıçta kırmızı ve gri */
  height: 6px;
  backdrop-filter: blur(8px); /* Hafif bulanıklık ile cam efekti */
  border-radius: 5px;
  outline: none;
}

/* Webkit tarayıcıları (Chrome, Safari) için slider */
#volume-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border-radius: 5px;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px; /* Görselin genişliği */
  height: 30px; /* Görselin yüksekliği */
  background: url('images/bonfire.png'); /* Bonfire görseli */
  background-size: contain;
  border: none;
  cursor: pointer;
  margin-top: -12px; /* Görseli ortalamak için */
}

#volume-slider::-moz-range-thumb {
  width: 30px; /* Görselin genişliği */
  height: 30px; /* Görselin yüksekliği */
  background: url('images/bonfire.png'); /* Bonfire görseli */
  background-size: contain;
  border: none;
  cursor: pointer;
}

/* Progress bar'ı her kaydırmada güncelle */
#volume-slider::-moz-range-track {
  background: linear-gradient(to right, red 0%, #ccc 100%);
}

#toggle-music-btn {
  background-color: rgba(255, 255, 255, 0.4); /* Hafif şeffaf buton */
  backdrop-filter: blur(8px); /* Hafif bulanıklık */
  color: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  vertical-align: middle; /* Butonun slider ile hizalanmasını sağlar */
}

#toggle-music-btn:hover {
  background-color: rgba(255, 255, 255, 0.6); /* Üzerine gelindiğinde renk değişir */
}



.option-box:hover,
.game-btn:hover {
  background: rgba(255, 255, 255, 0.25); /* Hover olduğunda arka planı daha belirgin yap */
  border: 1px solid #ffffff; /* Üzerine gelindiğinde daha belirgin beyaz çerçeve */
}

input[type="radio"] {
  display: none; /* Radio butonları gizlenir */
}

/* Butonlar */
.button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin: 10px;
}

.button:hover {
  background-color: #45a049;
}

/* Sonuç ekranı stili */
.result-style {
  text-align: center;
  font-size: 1.8rem;
  color: #ffcc00;
}
