body {
    margin: 0;
    font-family: "Nunito", sans-serif;
     display: flex;
    justify-content: center;
    align-items: center;
 
     
    /* Logo: Yatayda ortalı (center), Dikeyde en üstte (top veya 20px gibi bir değer) */
    background-position: center 20px, center; 
    
    /* Tekrar etmesin */
    background-repeat: no-repeat;
    
    /* Boyutlandırma: Logo kendi boyutunda (veya 200px gibi), Gradient tüm ekranı kaplasın (cover) */
    background-size: 200px auto, cover; 
    
    background-color: #0d0d2b; /* Görsel yüklenmezse diye yedek renk */
}


 .oyun-konteynir { text-align: center; z-index: 1; width: 100%; max-width: 900px; margin-top: 60px; }
.gizli { display: none !important; }

.input-modern-kapsayici input::placeholder {
    color: rgba(255, 255, 255, 0.8); /* Yazı rengine yakın, hafif şeffaf bir beyaz */
    font-weight: 400;               /* İstersen kalınlığını değiştirebilirsin */
    opacity: 1;                     /* Firefox uyumluluğu için */
}

/* LOGO VE BAŞLIK */
.kurum-logo { max-width: 220px; filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); animation: suzulme 3s ease-in-out infinite; }
@keyframes suzulme { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.baslik { font-size: 2rem; color: #fff; margin: 15px 0; animation: parlat 2s infinite; }
@keyframes parlat { 50% { text-shadow: 0 0 20px #f1c40f; transform: scale(1.02); } }

/* ORTALANMIŞ GİRİŞ ALANI */
.avci-giris-alani { margin: 25px auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.avci-label { color: #ff9f43; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 12px; font-weight: bold; text-shadow: 0 0 10px #ff9f43; }
.input-modern-kapsayici { position: relative; width: 300px; margin-bottom: 30px; }

.input-modern-kapsayici input { 
    width: 100%; padding: 12px 0; background: transparent; border: none; 
    border-bottom: 2px solid rgba(255,255,255,0.2); color: #fff; 
    font-size: 1.4rem; outline: none; 
    text-align: center; /* Yazıyı merkeze alır */
}

.input-modern-kapsayici input::placeholder { text-align: center; opacity: 0.5; }
.alt-isik { position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: #ff9f43; box-shadow: 0 0 20px #ff9f43; transition: 0.5s; transform: translateX(-50%); }
.input-modern-kapsayici input:focus + .alt-isik { width: 100%; }

/* KARTLAR VE IŞIKLI KENARLAR */
/* KARTLAR VE IŞIKLI KENARLAR */
.oyun-alani { 
    display: grid;
    /* Kartların genişliği 150px civarı olduğu için sütunları sabitleyelim */
    grid-template-columns: repeat(auto-fill, 160px); 
    gap: 20px; /* Kartlar arası boşluğu artırdık */
    justify-content: center; /* Kartları merkeze toplar */
    perspective: 1000px;
    max-width: 1000px; 
    margin: 20px auto;
}

.kart {   
    margin: 15px 0; /* Otomatik dış boşluğu sıfırladık, gap kullanıyoruz */
    width: 150px; /* Genişliği biraz daralttık */
    height: 217px; /* Boyu genişliğe göre oranladık */
    position: relative; 
    transform-style: preserve-3d; 
    transition: transform 0.6s; 
    cursor: pointer; 
}

/* Mobilde (küçük ekranlarda) kartların sığması için */
@media (max-width: 600px) {
    .oyun-alani {
        grid-template-columns: repeat(auto-fill, 100px);
        gap: 10px;
    }
    .kart {
        width: 90px;
        height: 140px;
    }
}
.kart.acik { transform: rotateY(180deg); }

.kart-yuz { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 12px;     border: 10px solid #f4e5e1; background-color: white; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 15px rgba(255, 159, 67, 0.4); }

/* DOĞRU EŞLEŞME - YEŞİL YANMA */
.kart.dogru .kart-yuz { border-color: #2ecc71 !important; box-shadow: 0 0 25px #2ecc71 !important; animation: dogruZiplama 0.5s ease; }
@keyframes dogruZiplama { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.kart-arka { z-index: 2; transform: rotateY(0deg); }
.kart-on {     margin: 0 -20px; transform: rotateY(180deg); }
.kart-yuz img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }

/* BAŞARI İBARESİ */
.basari-notu { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(46, 204, 113, 0.9); color: white; padding: 15px 30px; border-radius: 50px; font-weight: bold; z-index: 1000; animation: yaziUcur 1s forwards; box-shadow: 0 0 20px #2ecc71; }
@keyframes yaziUcur { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } 50% { opacity: 1; transform: translate(-50%, -80%) scale(1.2); } 100% { opacity: 0; transform: translate(-50%, -120%) scale(1); } }

 .bilgi-alani {
    background: rgb(255 80 80 / 58%);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #ffffff;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
} 
.bilgi-kutusu{
    color :#fff;
}
.sihirli-buton { padding: 15px 45px; background: linear-gradient(45deg, #1e3799, #ff9f43); color: white; border: none; border-radius: 50px; cursor: pointer; font-weight: bold; font-size: 1.1rem; box-shadow: 0 0 20px rgba(255, 159, 67, 0.5); transition: 0.3s; }
.sihirli-buton:hover { transform: scale(1.05); }

/* Kurallar Butonu */
.kurallar-bilgi-btn {
    background: #000000;
    color: #fff;
    border: 2px solid #3498db;
    padding: 8px 15px;
    margin-top: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 25px;
    transition: 0.3s;
}

.kurallar-bilgi-btn:hover {
    background: rgba(52, 152, 219, 0.2);
}

/* Modal Genel Arka Plan */
.modal-kapsayici {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

/* Modal İç Kutu */
.modal-icerik {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    margin: 10% auto;
    padding: 30px;
    border: 2px solid #3498db;
    border-radius: 20px;
    width: 85%;
    max-width: 550px;
    color: white;
    position: relative;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
}

.modal-baslik {
    color: #3498db;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.kural-listesi {
    text-align: left;
    line-height: 1.6;
    font-size: 1rem;
    padding-right: 10px;
}

.kural-listesi li { margin-bottom: 12px; }

.kapat-ikonu {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 30px; cursor: pointer; color: #bdc3c7;
}

.anladim-btn {
    width: 100%;
    padding: 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}