body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  transition: background-color 0.3s, color 0.3s;
  background-color: #f4f4f4;
  color: #333;
}

iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
z-index: 0;
}

.dark-mode {
background-color: #1e1e1e;
color: #f4f4f4;
}

.theme-toggle {
position: fixed;
bottom: 20px;
right: 20px;
background: linear-gradient(45deg, #4b79a1, #283e51);
border: none;
color: white;
padding: 10px 20px;
font-size: 16px;
border-radius: 50px;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
z-index: 1000;
transition: all 0.3s ease;
}

.theme-toggle:hover {
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
transform: scale(1.05);
}

.right-panel {
position: fixed;
top: 20px;
right: 20px;
width: 300px;
background: #fff;
border: 0px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
z-index: 1;
}

.left-panel {
position: fixed;
top: 20px;
left: 20px;
width: 150px;
background: #fff;
border: 1px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
z-index: 1;
}

.menu-button {
padding: 15px;
cursor: pointer;
border: none;
width: 100%;
text-align: left;
background: #f8f8f8;
border-bottom: 1px solid #ddd;
font-size: 16px;
color: #333;
position: relative;
}

.menu-button:hover {
background: #eaeaea;
}

.menu-button i {
position: absolute;
right: 20px;
top: 18px;
}

.menu-button-focus {
background: #ddd;
}

.sub-menu {
  display: none;
  padding: 10px;
  background: #f9f9f9;
  max-height: 400px; /* Sub-menünün maksimum yüksekliği */
  position: relative;
}

.sub-menu h3 {
  position: sticky;
  top: 0;
  background: #f9f9f9;
  padding: 10px 0;
  margin: 0;
  z-index: 1;
}

.sub-menu-content {
  max-height: 350px; /* İçerik alanının maksimum yüksekliği */
  overflow-y: auto; /* Dikey scroll ekler */
  padding-right: 5px; /* Scroll çubuğu için boşluk */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

/* Scroll çubuğu stilleri */
.sub-menu-content::-webkit-scrollbar {
  width: 6px;
}

.sub-menu-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.sub-menu-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.sub-menu-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.sub-menu a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin: 5px;
  padding: 5px;
  background-color: #fff;
  border-radius: 4px;
}

.sub-menu a img {
  width: 100px;
  height: 30px;
  object-fit: cover;
  margin-right: 10px;
}

.metaller a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin: 5px;
  padding: 5px;
  border-radius: 4px;
}

.metaller a img{
  height: 150px;
   width: 150px;
}

.sub-menu a:hover {
  text-decoration: none;
}

.sub-menu a:hover img {
  border: 2px solid #383b3d;
}

/* Mobil görünüm düzenlemeleri */
@media (max-width: 767px) {
  .sub-menu {
    padding: 5px; /* Daha küçük padding */
    max-height: 300px; /* Alt menü yüksekliği azaltıldı */
  }

  .sub-menu h3 {
    font-size: 14px; /* Başlık yazı boyutu küçültüldü */
    padding: 5px 0;
  }

  .sub-menu-content {
    max-height: 250px; /* İçerik alanı yüksekliği */
    padding-right: 3px; /* Scroll boşluğu daraltıldı */
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); /* Daha küçük elemanlar */
    gap: 5px; /* Daha küçük boşluk */
  }

  .sub-menu-content::-webkit-scrollbar {
    width: 4px; /* Scroll çubuğu genişliği azaltıldı */
  }

  .sub-menu-content::-webkit-scrollbar-thumb {
    background: #bbb; /* Scroll çubuğu rengi */
  }

  .sub-menu-content::-webkit-scrollbar-thumb:hover {
    background: #888;
  }
  img {
    height: 100px;
    width: 100px;
}
  .sub-menu a {
    margin: 3px;
    padding: 3px; /* Daha az padding */
    background-color: #f8f8f8;
  }

  .sub-menu a img {
    width: 80px; /* Görsel boyutları küçültüldü */
    height: 25px;
    margin-right: 5px; /* Görsel ile metin arası boşluk */
  }

  .metaller a img {
    width: 60px !important;/* Metaller görselleri küçültüldü */
    height:60px !important;
  }
  .sub-menu a:hover img {
    border: 1px solid #383b3d; /* Kenar kalınlığı mobil için azaltıldı */
  }
}


/* Genel buton stili */
.button-container {
  position: fixed;
  bottom: 10px; /* Alt kısımdan biraz boşluk bırakır */
  right: 20px; /* Sol kısımdan biraz boşluk bırakır */
  display: flex;
  gap: 10px; /* Butonlar arasına boşluk ekler */
}

.button-container p {
  position: fixed;
  bottom: -8px; /* Alt kısımdan biraz boşluk bırakır */
  right: 0px; /* Sol kısımdan biraz boşluk bırakır */
  display: flex;
  gap: 10px; /* Butonlar arasına boşluk ekler */
  background-color: #686767;
  color: white;
  padding: 20px;
  box-shadow: 0 4px 6px #0000001a; /* Hafif gölge ekler */
  border-radius: 5px; /* Köşeleri yuvarlatır */
  justify-content: center; /* Yazıyı sağa hizalar */
  width: 100%;
}
/* ...existing code... */

#satin-al {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px 0 10px 10px;

  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background-color: #0d2549;
  border: none;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

#satin-al:hover {
  background-color: #111c3d;
  transform: scale(1.05);
}

#satin-al:active {
  background-color: #1e7e34;
  transform: scale(0.95);
}

/* ...existing code... */

@media (max-width: 767px) {
  .right-panel {
    position: fixed;
    top: auto; /* Üst hizalamayı etkisiz kılar */
    bottom: 0; /* Alt hizalamayı etkinleştirir */
    right: 0; /* Sağdan hizalar */
   /* width: 100%;  Tam genişlik verir */
    margin-top: unset; /* `margin-top`'u sıfırlar */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
}




/* ...existing code... */

