@font-face {
    font-family: 'Honnifont';
    src: url('honnifont.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Honnifont', Arial, sans-serif;
    color: #fff;
    overflow: hidden; /* Sayfanın aşağı kaydırılmasını engeller */
    text-transform: uppercase; /* Tüm yazıları büyük harf yapar */
}

/* Video Arka Planı */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* İçerik Katmanı */
.content-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Ana içeriğin arkasındaki siyah transparan katman */
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px #000;
    animation: white-glow 1.5s infinite alternate; /* Başlık için beyaz glow efekti */
}

.thanks-message {
    font-size: 1.2em;
    max-width: 600px;
    margin-top: 50px;
    text-shadow: 1px 1px 2px #000;
}

/* Üstteki Butonlar İçin Konteyner */
.top-buttons-container {
    position: absolute;
    top: 20px; /* Üstten boşluk */
    left: 20px; /* Soldan boşluk */
    display: flex;
    flex-direction: column; /* Butonların alt alta gelmesini sağlar */
    gap: 10px; /* Butonlar arası boşluk */
    z-index: 2; /* Diğer içeriklerin üzerinde görünmesini sağlar */
}

/* Buton Ortak Stilleri */
.how-to-join-button,
.back-to-website-button {
    background: rgba(0, 0, 0, 0.7); /* Şeffaf siyah arka plan */
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'Honnifont', Arial, sans-serif;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Hafif beyaz kenarlık */
    white-space: nowrap; /* Yazının tek satırda kalmasını sağlar */
}

.how-to-join-button:hover,
.back-to-website-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Aboneler Kutusu ve Dağılımı */
.subscriber-container {
    display: flex;
    justify-content: space-around; /* Kutuları alana eşit dağıtır */
    align-items: center;
    width: 100%; /* Sayfaya tam yayılmasını sağlar */
    max-width: 1000px; /* Daha fazla yayılması için max-width artırıldı */
    margin: 40px auto; /* Üst boşluk ve yatayda ortalama */
    flex-wrap: wrap; /* Küçük ekranlarda alt alta gelmesini sağlar */
    padding: 0 2%; /* Ekran kenarlarından biraz daha az boşluk */
}

.subscriber-card {
    position: relative; /* Rozet için konumlandırma noktası oluşturur */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Logo üste, yazı alta itilir */
    align-items: center;
    background: rgba(0, 0, 0, 0.7); /* Siyah şeffaf arka plan */
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 25px; /* İç boşluk artırıldı */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    width: 200px; /* Kutucuk genişletildi (1:1 oranı korundu) */
    height: 200px; /* Kutucuk genişletildi (1:1 oranı korundu) */
}

.subscriber-card:hover {
    transform: translateY(-5px);
}

.subscriber-logo {
    width: 120px; /* Logo boyutu büyütüldü */
    height: 120px;
    border-radius: 50%; /* Daire şekli */
    object-fit: cover;
    border: 4px solid #fff; /* Çerçeve kalınlığı artırıldı */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    margin-top: 0;
}

.subscriber-nick {
    font-size: 1.5em; /* Yazı boyutu daha da büyütüldü */
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 7px #fff, 0 0 14px #fff, 0 0 21px #fff; /* Beyaz glow efekti güçlendirildi */
    margin-bottom: 0;
    word-break: break-word; /* Uzun nicklerin kutudan taşmasını önler */
    text-align: center;
}

/* Rozet (Badge) Stil Tanımları */
.rank-badge {
    position: absolute; /* Ana karttan bağımsız konumlandırma */
    top: -15px; /* Yukarıdan dışarı taşma */
    left: -15px; /* Soldan dışarı taşma */
    width: 50px; /* Rozet genişliği */
    height: 50px; /* Rozet yüksekliği */
    background: rgba(0, 0, 0, 0.9); /* Rozet arka planı */
    border-radius: 50%; /* Daire şekli */
    border: 2px solid #fff; /* Beyaz çerçeve */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3); /* Beyaz parlaklık efekti */
    z-index: 5; /* Diğer öğelerin üzerinde görünmesini sağlar */
}

.rank-badge span {
    font-size: 2em; /* Sayı boyutu */
    font-weight: bold;
    color: #fff; /* Sayı rengi */
    text-shadow: 0 0 5px #fff, 0 0 10px #fff; /* Sayı için parlaklık */
}


/* Beyaz Glow Animasyonu */
@keyframes white-glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff;
    }
    to {
        text-shadow: 0 0 15px #fff, 0 0 25px #fff, 0 0 35px #fff;
    }
}

/* Pop-up Stil Tanımları */
.popup-container {
    display: none; /* Başlangıçta gizli */
    position: fixed; /* Ekranın her yerini kaplar */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Daha koyu şeffaf arka plan */
    justify-content: center;
    align-items: center;
    z-index: 10; /* En üstte görünmesini sağlar */
}

.popup-content {
    background: rgba(0, 0, 0, 0.9); /* Pop-up içeriğinin şeffaf siyah arka planı */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 500px; /* Pop-up genişliği */
    text-align: center;
    position: relative;
    color: #fff;
    font-family: 'Honnifont', Arial, sans-serif;
    font-size: 1.2em;
    line-height: 1.6;
    border: 2px solid rgba(255, 255, 255, 0.5); /* Hafif beyaz çerçeve */
}

.popup-content p {
    margin: 0; /* Paragrafın varsayılan boşluğunu kaldırır */
    padding: 10px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #ffd700; /* Kapatma butonuna hover efekti */
}

/* Mobil Uyarı Pop-up'ı Stil Tanımları */
.mobile-warning-container {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Çok koyu şeffaf arka plan */
    justify-content: center;
    align-items: center;
    z-index: 100; /* Diğer her şeyin üzerinde görünmesini sağlar */
    text-align: center;
    color: #fff;
    font-family: 'Honnifont', Arial, sans-serif;
    font-size: 1.8em;
    line-height: 1.5;
    padding: 20px;
    box-sizing: border-box;
}

.mobile-warning-content {
    background: rgba(255, 255, 255, 0.1); /* Beyaz şeffaf kutu */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    border: 3px solid rgba(255, 255, 255, 0.7);
}

/* Video Oynatma Hatası Fallback Mesajı Stil Tanımları */
.autoplay-fallback-message {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Koyu şeffaf arka plan */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 90; /* İçeriğin üzerinde ama mobil uyarının altında */
    color: #fff;
    font-family: 'Honnifont', Arial, sans-serif;
    font-size: 1.5em;
    gap: 20px;
}

.autoplay-fallback-message button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px 30px;
    border-radius: 8px;
    font-family: 'Honnifont', Arial, sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.autoplay-fallback-message button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}
