:root {
  /* Light mode colors */
  --light-button-bg: #e0f7fa;
  --light-button-text: #006064;
  --light-frame-bg: rgba(255, 255, 255, 0.7);
  --light-modal-bg: rgba(255, 255, 255, 0.9);

  /* Dark mode colors */
  --dark-button-bg: #37474f;
  --dark-button-text: #eceff1;
  --dark-frame-bg: rgba(30, 34, 46, 0.9);
  --dark-modal-bg: rgba(45, 45, 45, 0.9);
}

/* Genel stil ayarları */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  transition: color 0.5s;
  background-image: url('gorsel/7.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 100vh;
  overflow: hidden;
}

/* Mobil cihazlar için stil ayarları */
@media (max-width: 767px) {
  body {
    padding: 10px; /* İçerik için yan boşluk ekle */
  }
}

/* Tablet cihazlar için stil ayarları */
@media (min-width: 768px) and (max-width: 1024px) {
  body {
    padding: 20px; /* İçerik için yan boşluk ekle */
  }
}

/* Light mode styles */
body.light-mode .icon-button {
  background-color: var(--light-button-bg);
  color: var(--light-button-text);
  border-color: var(--light-button-text);
}

body.light-mode .button-frame {
  background-color: var(--light-frame-bg);
}

body.light-mode .modal {
  background-color: var(--light-modal-bg);
}

/* Dark mode styles */
body.dark-mode .icon-button {
  background-color: var(--dark-button-bg);
  color: var(--dark-button-text);
  border-color: var(--dark-button-text);
}

body.dark-mode .button-frame {
  background-color: var(--dark-frame-bg);
}

body.dark-mode .modal {
  background-color: var(--dark-modal-bg);
}

.content {
  text-align: center;
  padding: 20px;
}

.button-frame {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px;
  border-radius: 25px;
  background-color: rgba(255, 255, 255, 0.7);
}

.button-container {
  display: flex;
  gap: 20px;
}

.icon-button {
  width: 60px;
  height: 60px;
  border: 2px solid currentColor;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.icon-button:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.2);
}

.icon-button svg {
  stroke: currentColor;
  width: 40px;
  height: 40px;
}

#game-btn { color: #de1212; }
#education-btn { color: #6a5acd; }
#tournament-btn { color: #d93692; }
#shop-btn { color: #00bfa5; }

.modal {
  display: none; /* Başlangıçta görünmez */
  position: fixed; /* Modal konumunu sabitler */
  top: 50%; /* Yükseklik ortalaması */
  left: 50%; /* Genişlik ortalaması */
  transform: translate(-50%, -50%); /* Modal'ı tam ortalar */
  background: rgba(0, 0, 0, 0.5); /* Arka plan rengi */
  border-radius: 10px; /* Köşeleri yuvarlar */
  padding: 30px; /* İçerik ile kenar arasında boşluk */
  max-width: 90%; /* Maksimum genişlik */
  width: 800px; /* Sabit genişlik */
  height: 350px; /* Sabit yükseklik */
  display: flex; /* Flexbox ile içerik düzenleme */
  align-items: center; /* Dikey olarak ortala */
  justify-content: center; /* Yatayda ortala */
  flex-direction: column; /* İçerikleri dikey hizala */
  backdrop-filter: blur(10px); /* Arka planı bulanıklaştırır */
}

/* Mobil ve tabletler için stil ayarları */
@media (max-width: 768px) {
  .modal {
    width: 80%; /* Tabletlerde genişlik */
    padding: 20px; 
  }
}

@media (max-width: 480px) {
  .modal {
    width: 90%; /* Mobilde genişlik */
    padding: 15px; 
  }
}

.modal-content {
  display: flex;
  flex-direction: column; /* Dikey hizalama */
  align-items: center; /* Yatayda ortala */
  justify-content: center; /* Dikeyde ortala */
  width: 100%;
}

.modal-content img {
  max-width: 200px; /* Resmin genişliği */
  margin-bottom: 20px; /* Logo ile yazı arasında boşluk */
}

.modal-content p {
  font-size: 1.2rem; /* Yazı boyutu */
  /*margin-bottom: 20px; /* Yazı ile buton arasında boşluk */
  text-align: center; /* Yazıyı ortala */
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  margin-bottom: 20px;
}

body.light-mode .modal p {
  color: black;
}

/* Dark mode styles for modal text */
body.dark-mode .modal p {
  color: white;
}

#modal-button {
  background-color: #de1212; /* Buton rengi */
  color: white; /* Yazı rengi */
  border: none; /* Kenarlık yok */
  border-radius: 5px; /* Köşeleri yuvarla */
  padding: 10px 20px; /* İçerik için boşluk */
  cursor: pointer; /* İmleci değiştir */
  transition: background-color 0.3s; /* Hover durumu için geçiş */
  font-size: 20px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

#modal-button:hover {
  background-color: #006064; /* Hover durumu rengi */
}

.theme-button {
  width: 50px;
  height: 50px;
  border-radius: 12px; /* Köşeleri yuvarla */
  background-color: rgba(255, 165, 0, 0.3); /* Daha koyu sarı arka plan */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
  position: fixed; /* Sabit konum */
  top: 20px; /* Üstten mesafe */
  right: 20px; /* Sağdan mesafe */
}

/* Tema değişim butonları için stiller */
.light-mode .theme-button {
  background-color: rgba(255, 165, 0, 0.6); /* Koyu sarı */
}

.dark-mode .theme-button {
  background-color: rgba(139, 69, 19, 0.4);
}

.theme-button img {
  width: 24px;
  height: 24px;
  transition: filter 0.3s;
}

/* Mobil Cihazlar ve Tabletler için Media Query'ler */
@media (max-width: 768px) {
  .button-container {
    gap: 10px;
  }

  .icon-button {
    width: 50px;
    height: 50px;
  }

  .icon-button svg {
    width: 30px;
    height: 30px;
  }

  .modal-content img {
    max-width: 70px;
    margin-right: 15px;
  }

  .modal {
    padding: 15px;
  }

  .button-frame {
    padding: 10px;
    bottom: 15px;
  }

  .theme-button {
    width: 40px;
    height: 40px;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .button-container {
    gap: 8px;
  }

  .icon-button {
    width: 45px;
    height: 45px;
  }

  .icon-button svg {
    width: 25px;
    height: 25px;
  }

  .modal-content img {
    max-width: 60px;
    margin-right: 10px;
  }

  .modal {
    padding: 10px;
    max-width: 90%;
  }

  .button-frame {
    padding: 8px;
    bottom: 10px;
  }

  .theme-button {
    width: 35px;
    height: 35px;
    top: 10px;
    right: 10px;
  }
}

/* Sağ alt köşedeki info buton stili */
.info-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(255, 165, 0, 0.6); /* Arka plan rengi */
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.3s;
}

.info-button:hover {
  background-color: rgba(255, 165, 0, 0.8); /* Hover durumu */
  transform: scale(1.1); /* Hover durumunda büyütme */
}

.info-icon {
  font-weight: bold;
}