/* Sayfa genelinde stil ayarları */
body {
    font-family: Arial, sans-serif; /* Yazı tipi ailesi */
    color: white;
    margin: 0; /* Kenar boşluğu sıfır yap */
    padding: 0; /* İç boşluğu sıfır yap */
    background-image: url('../images/ui/Background.gif'); /* Arka plan resmi */
    background-size: cover; /* Arka plan resmi boyutunu kapsa */
    background-position: center; /* Arka plan resmi ortala */
    background-repeat: no-repeat; /* Arka plan resmini tekrar etme */
    background-attachment: fixed; /* Arka plan resminin sabit kalması */
    overflow-y: scroll; /* Dikey kaydırma çubuğunu etkinleştir */
}

/* Üst çubuk stil ayarları */
.top-bar {
    background-color: #000000; /* Siyah arka plan rengi */
    color: white; /* Yazı rengi beyaz */
    height: 86px; /* Yükseklik 86 piksel */
    display: flex; /* İçeriği yatay hizala */
    align-items: center; /* İçeriği dikey hizala */
    justify-content: center; /* İçeriği yatayda ortala */
    position: fixed; /* Üst çubuğun sabit kalması için */
    width: 100%; /* Genişlik yüzde 100 */
    top: 0; /* Üst kenara yapışık */
    left: 0; /* Sol kenara yapışık */
    z-index: 1000; /* Üstte kalması için yüksek z-index değeri */
}
.back-button {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #e5e7eb;
}

.back-button img {
    width: 24px;
    height: 24px;
}
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-container img.logo {
    height: 86px;
}


/* Logo stil ayarları */
.logo {
    height: 86px; /* Yükseklik 86 piksel */
}

/* Menü stil ayarları */
.menu {
    font-family: 'Macondo Swash Caps', cursive; /* Yazı tipi ailesi */
    font-size: 24px; /* Yazı boyutu 24 piksel */
    color: orange; /* Yazı rengi turuncu */
    cursor: pointer; /* İmleç tıklanabilir göster */
    position: absolute; /* Sabit pozisyon */
    left: 18px; /* Sol kenardan 20 piksel uzakta */
    bottom: 3px; /* Alt kenardan 10 piksel uzakta */
    transition: text-shadow 0.3s ease; /* Geçiş animasyonu */
    margin-bottom: 3px; /* Yazı ile alt arasındaki boşluk */
}

/* Menüye gelindiğinde gölge efekti */
.menu:hover {
    text-shadow: 0 0 5px rgb(255, 255, 255);
}

/* Dil değiştirme ve ikon kısmının stil ayarları */
.language-switch {
    bottom: 3px;
    position: absolute;
    right: 18px; /* Sağ kenardan 20px uzaklıkta */
    transform: translateY(-50%);
    display: flex;
    margin-bottom: 3px;
}

.language-switch a {
    font-family: 'Macondo Swash Caps', cursive;
    font-size: 18px;
    color: orange;
    text-decoration: none;
    margin-right: 8px; /* İkonlar arasındaki boşluk */
}

.language-switch a:hover {
    text-shadow: 0 0 5px rgb(255, 255, 255);
}

/* Dropdown menü temel ayarları */
.dropdown {
    display: none;
    position: fixed;
    top: 86px;
    left: 0;
    width: 250px;
    height: 350px;
    background-color: white;
    z-index: 1001;
    box-shadow: 0 5px 4px rgba(0, 0, 0, 0.8);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

.dropdown ul {
    height: 200px;
    padding: 40px 0;
    list-style-type: none;
    margin: 0;
}

.dropdown li {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
}

.dropdown li img {
    width: 34px;
    height: auto;
    margin: 0 10px 0 20px;
    transition: transform 0.3s ease;
}

.dropdown .branch {
    color: #666666;
    font-family: 'Macondo Swash Caps';
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Seçili ve hover durumları */
.dropdown li:hover .branch,
.dropdown li.selected .branch {
    color: orange !important;
    transition: color 0.3s ease;
}

.dropdown li:hover img {
    transform: scale(1.1);
}

/* Branch container (yan panel) ayarları */
.branch-container {
    display: none; /* Başlangıçta gizli */
    position: fixed; /* Sabit pozisyon */
    top: 86px; /* Üst çubuk yüksekliği */
    left: 250px; /* Menü1 alanının yanında */
    width: 280px; /* Genişlik 280 px */
    height: 350px; /* Yükseklik 350 px */
    background-color: #666666; /* Arka plan rengi */
    z-index: 1000; /* Üstte kalması için yüksek z-index değeri */
    color: white; /* Yazı rengi */
    text-align: center; /* Yazıları sola yasladık */
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.9); /* Hafif gölge efekti */
    padding: 0; /* İç boşluk */
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Geçiş animasyonu */
    opacity: 0; /* Başlangıçta görünmez */
    visibility: hidden; /* Başlangıçta gizli */
    overflow-y: auto; /* İçerik taşması için kaydırma ekle */
}

/* Branch linkleri için düzenlemeler */
.branch-container .branch-links {
    padding: 15px 20px; /* Üst padding'i 20px'den 15px'e düşürdük */
    display: flex;
    flex-direction: column;
    gap: 5px; /* Link arası boşluğu 10px'den 5px'e düşürdük */
}

.branch-container .branch-links a {
    display: block;
    font-family: 'Macondo Swash Caps';
    font-size: 24px;
    color: white;
    text-decoration: none;
    padding: 0px 0px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.branch-container .branch-links a:hover {
    background-color: orange;
    color: white;
    transform: translateX(5px);
}

.branch-container h2 {
    text-align: center;
    font-family: 'Macondo Swash Caps';
    margin-top: 3px;
    margin-bottom: 0px; /* 30px'den 15px'e düşürüldü */
    color: orange;
}
/* Aktif durumlar */
.dropdown.active,
.branch-container.active {
    display: block; /* Görünür hale getirir */
    opacity: 1; /* Görünür */
    visibility: visible; /* Görünür */
}

.branch-links a:hover {
    background-color: orange;
    color: white;
    padding: 0px 0px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Seçili branş stili */
.selected .branch {
    color: orange !important; /* Yazı rengi turuncu */
}



/* Yeni eklenen resim kutuları stil ayarları */
.image-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    position: absolute;
    top: 200px; /* Üstten uzaklık */
    right: 60px; /* Sağ kenardan uzaklık */
}

.image-row {
    display: flex;
    margin-bottom: 80px; /* Alttaki kutu ile arası */
}

.image-box {
    width: 406px;
    height: fit-content;
    display: flex;
    justify-content: left;
    position: relative;
}

.image-box:not(:last-child) {
    margin-right: 40px; /* Yan yana duran kutuların arası */
}

.branch-name {
    right: 3px;
    font-family: 'Macondo Swash Caps'; /* Font ailesi */
    position: absolute;
    top: -30px;
    border: 0;
    color: orange;
    font-size: 14pt;
    margin: 0px;
}

/* Yeni eklenen yazı için stil ayarları */
.title-container {
    display: flex;
    justify-content: center;
    margin-left: 100px;
    margin-right: 100px;
    margin-bottom: 80px;
    margin-top: 120px;
    color: orange;
    font-family: 'Hemi Head Rg', sans-serif;
}

.main-title {
    display: flex;
}

.rectangle-row {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
    justify-content: left;
}

/* Rectangle bileşenleri sol tarafa yakın alt alta yerleştir */
.rectangle-container {
    display: flex; /* Başlangıçta gizli */
    flex-direction: column; /* Alt alta dizmek için */
    position: absolute; /* Sabit pozisyon */
    top: 520px; /* Üstten uzaklık */
    left: 60px; /* Soldan uzaklık */
}

.rectangle {
    width: 350px; /* Genişlik 200 piksel */
    height: auto; /* Yükseklik otomatik */
    background-color: rgba(224, 224, 224, 0.226); /* Arka plan rengi gri */
    margin-bottom: 120px; /* Alt boşluk */
    display: flex;
    flex-direction: column; /* Alt alta dizmek için */
    align-content: left; /* kutudaki link yazılarını sola yasla */
    justify-content: center;
    border-radius: 22px; /* Köşeleri yuvarlat */
    padding: 5px; /* İç boşluk */
    position: relative; /* Katmanlı yerleşim için gerekli */
}
.rectangle-title-link {
    font-size: 24px; /* Başlık yazı boyutu */
    font-family: 'Fabada';
    color: orange; /* Başlık yazı rengi */
    margin-bottom: 5px; /* Alt boşluk */
    margin-top: 5px;
    margin-left: 5px;
    text-align: left; /* Metni sola hizala */
}
.links-rectangle img {
    position: absolute; /* Resmi katman olarak yerleştirmek için */
    padding-left: 240px;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: contain; /* Resmi kutuya sığdır */
    border-radius: 22px; /* Köşeleri yuvarlak */
    z-index: 1; /* Resmi en alta yerleştir */
}
/* Hazır Board, Ayaklı Board ve Duvara Monte Board linkleri için stil düzenlemesi */
.links-container .rectangle-link {
    color: orange; /* Varsayılan metin rengini beyaz yap */
    text-decoration: none; /* Alt çizgiyi kaldır */
}

.links-container .rectangle-link:hover {
    text-decoration: none; /* Hover (üzerine gelince) alt çizgiyi kaldır */
    color: white; /* Renk değiştirmeyi engellemek için aynı rengi ayarla */
}

.links-container {
    z-index: 2; /* Linkleri resmin üstüne yerleştir */
}

.rectangle-title {
    font-size: 24px; /* Başlık yazı boyutu */
    font-family: 'Fabada';
    color: orange; /* Başlık yazı rengi */
    margin-bottom: 5px; /* Alt boşluk */
    margin-top: 5px;
    margin-left: 5px;
    text-align: center; /* Metni sola hizala */
}

.rectangle-text {
    margin: 10px;
    font-size: 18px; /* Metin yazı boyutu */
    font-family: 'medel';
    color: #fff9bf; /* Metin yazı rengi */
    text-align: justify; /* Metin ortala */
}

.rectangle-text-bold {
    font-size: 30px;
    color: rgb(93, 179, 7);
    text-align: center;
}

.rectangle-content {
    margin-top: 0px;
    margin-bottom: 0px;
    display: flex;
    height: 35px;
    justify-content: space-between; /* İçeriği iki yana dağıt */
    width: 100%; /* Genişliği tam yap */
}

.left-text {
    margin-top: 0px;
    margin-bottom: 0px;
    height: 25px;
    text-align: right; /* Sol tarafa hizala */
    width: 30%; /* Genişliği %50 yap */
}

.right-text {
    margin-top: 0px;
    margin-bottom: 0px;
    height: 25px;
    text-align: left; /* Sağ tarafa hizala */
    width: 70%; /* Genişliği %50 yap */
}
.right-text2 {
    margin-top: 0px;
    margin-bottom: 0px;
    height: 25px;
    text-align: right; /* Sağ tarafa hizala */
    width: 70%; /* Genişliği %50 yap */
}

/* Medya sorguları */
@media (max-width: 1320px) {
    .image-row {
        flex-direction: column;
        margin-bottom: 80px; /* Alttaki kutu ile arası */
    }

    .image-box {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .title-container {
        display: flex;
        margin-left: 440px;
    }
}

/* Medya sorguları */

.icon-right {
    position: absolute;
    top: 0px; /* Kutunun üst kısmından uzaklık */
    right: 15px; /* Kutunun sağ kısmından uzaklık */
    width: 80px; /* İkonun genişliği, isteğe bağlı olarak değiştirilebilir */
    height: auto; /* Yükseklik orantılı ayarlanır */
}
.icon-right2 {
    position: absolute;
    bottom: -40px; /* Kutunun üst kısmından uzaklık */
    right: -50px; /* Kutunun sağ kısmından uzaklık */
    width: 150px; /* İkonun genişliği, isteğe bağlı olarak değiştirilebilir */
    height: auto; /* Yükseklik orantılı ayarlanır */
    transform: rotate(140deg);
}

.some-class {
    margin-right: 10px; /* Geçerli bir değer */
}

.container {
    align-content: center; /* Geçerli bir değer */
}
/* Basketbol sayfası başlık boşlukları */
.main h2 {
    margin-top: 50px;
    margin-bottom: 50px;
}
/* Medya sorguları */
@media (max-width: 800px) {
    .dropdown {
        width: 80px; /* Menü genişliği daralıyor */
    }

    .dropdown li {
        justify-content: center; /* İkonları ortala */
        padding: 0; /* İç boşluğu sıfırla */
    }

    .branch {
        display: none; /* Yazıları gizle */
    }

    .branch-container {
        left: 80px; /* İkinci alan menü yanına geliyor */
    }

    .dropdown li img {
        margin-right: center; /* İkon ve yazı arasındaki boşluğu kaldır */
        margin-left: 10px;
    }
}
/* === 918px altı küçük ekran düzeltmesi (desktop'a dokunmaz) === */
/* === FINAL HOTFIX: ≤918px'te container genişlemesini ve görsel bozulmasını durdur === */
/* Medya sorguları — SADECE sağdaki resimleri alta indir, diğer her şey aynı kalsın */

@media (max-width: 918px) {
  html, body { overflow-x: hidden !important; }

  .video-container { 
    position: static !important;
    width: 350px !important;               /* masaüstü kutu genişliği */
    margin: 200px auto 0 !important;       /* yatay merkez */
  }

  

  /* SOL KOLON (kartlar): masaüstü ölçüsüyle ortada dursun */
  .rectangle-container {
    position: static !important;           /* akışa al */
    width: 350px !important;               /* masaüstü genişliği */
    margin: 200px auto 0 !important;       /* yatay merkez */
  }
  .rectangle {
    top: -100px !important;
    width: 350px !important;
    max-width: 350px !important;
    margin: 0 auto 120px !important;       /* tek tek kartları da ortala */
  }
    /* Başlık bloğu da ortalansın */
  .title-container {
    margin: 80px auto !important;
    text-align: center;
  }
  /* SAĞDAKİ RESİMLER (zaten alta iniyor) → ortada sırala */
  .image-container {
    position: static !important;
    width: 406px !important;               /* masaüstü kutu genişliği */
    margin: 20px auto 0 !important;        /* yatay merkez */
  }
  .image-row {
    display: block !important;             /* dikey istif */
    margin: 0 0 80px 0 !important;
  }
  .image-box {
    width: 406px !important;
    max-width: 406px !important;
    margin: 0 auto 20px !important;        /* her kutu ortada */
  }
  .image-box:not(:last-child) { margin-right: 0 !important; }
}
.video-container {
    display: flex; /* Başlangıçta gizli */
    flex-direction: column; /* Alt alta dizmek için */
    position: absolute; /* Sabit pozisyon */
    top: 200px; /* Üstten uzaklık */
    left: 60px; /* Soldan uzaklık */
    right: 60px;          /* sağdan hizala */
    width: 350px;         /* resim kutularıyla aynı genişlik */
}

.video-box {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
