/* Genel Stil Ayarları */
:root {
    --primary-color: #3498db; /* Mavi - Aksiyon Butonları, Linkler */
    --secondary-color: #2c3e50; /* Koyu Gri Mavi - Başlıklar, Footer */
    --accent-green: #2ecc71; /* Yeşil - Başarı, Doğru */
    --accent-red: #e74c3c; /* Kırmızı - Hata, Yanlış */
    --light-bg: #f4f7f9; /* Açık Gri Arka Plan */
    --white: #ffffff; /* Beyaz */
    --text-color-dark: #333; /* Koyu Metin */
    --text-color-light: #7f8c8d; /* Açık Metin */
    --border-color: #e0e0e0; /* Kenarlık Rengi */
    --box-shadow-light: 0 4px 15px rgba(0,0,0,0.05);
    --box-shadow-medium: 0 8px 25px rgba(0,0,0,0.08);
    --stroop-yellow: #f1c40f; /* Stroop testi için sarı */

    /* WCST kart renkleri */
    --wcst-red: #e74c3c;
    --wcst-green: #2ecc71;
    --wcst-blue: #3498db;
    --wcst-yellow: #f1c40f;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color-dark);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
    line-height: 1.7;
}

/* Header Alanı - Kaydırma Efekti İçin Güncelleme */
header {
    background-image: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('/background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* EKLENEN YENİ STİL: Geçişin yumuşak olmasını sağlar */
    transition: top 0.4s ease-in-out;
}

/* YENİ EKlenen Sınıf: Header'ı ekranın dışına iter */
.header--hidden {
    top: -250px; /* Header'ın yüksekliğinden daha büyük bir değer olmalı */
}


header h1 {
    color: var(--white);
    margin: 0;
    font-size: 2.8em;
    font-weight: 800;
    margin-bottom: 10px;
}

header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    margin-top: 5px;
    margin-bottom: 15px;
}

.main-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

.main-nav a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.main-nav a.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

main {
    flex-grow: 1;
    padding: 40px 20px;
}

.page-content-wrapper {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow-medium);
    max-width: 900px;
    margin: 20px auto;
    text-align: center;
}

h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

h3 {
    font-size: 1.6em;
    font-weight: 600;
}

p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 1em;
}

.game-description, .page-intro, .article-excerpt {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Oyun Seçim Butonları */
.game-selection-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.game-choice {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none; /* a etiketi için */
    display: inline-block; /* a etiketi için */
}

.game-choice:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Oyun Alanı ve Geri Butonu (Tek bir oyun çalışırken görünen) */
#game-container {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow-medium);
    max-width: 900px;
    margin: 20px auto;
}

/* Oyun içindeki "Geri Dön" butonu - daha büyük ve kırmızı */
#back-to-menu {
    background-color: var(--accent-red);
    color: var(--white);
    border: none;
    padding: 15px 30px; /* Daha büyük */
    border-radius: 10px; /* Köşeler biraz yuvarlak */
    font-size: 1.1em; /* Daha büyük font */
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 40px; /* Daha fazla boşluk */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Hafif gölge */
}

#back-to-menu:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Alt Bilgi */
footer {
    padding: 20px;
    background-color: var(--secondary-color);
    color: #ecf0f1;
    font-size: 0.9em;
    margin-top: auto;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
}

/* Yardımcı Class */
.hidden {
    display: none !important; /* Önemli! Gizlemeyi garanti altına almak için */
}

/* --- Yeni "Ana Sayfaya Dön" Buton Stilleri (Tüm sayfa içeriklerinin altında) --- */
.back-button-container {
    margin-top: 40px; /* Yukarıdaki içerikten boşluk */
    text-align: center; /* İçindeki butonu ortala */
    width: 100%; /* Kapsayıcı genişliği */
}

.back-to-selection-button {
    background-color: var(--accent-red); /* Kırmızı renk */
    color: var(--white);
    border: none; /* Kenarlık yok */
    padding: 15px 30px; /* Daha büyük padding */
    border-radius: 50px; /* Tamamen yuvarlak */
    font-size: 1.1em; /* Biraz daha büyük font */
    font-weight: bold;
    text-decoration: none; /* Alt çizgiyi kaldır */
    transition: all 0.3s ease;
    display: inline-block; /* Buton gibi davranması için */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Hafif gölge */
}

.back-to-selection-button:hover {
    background-color: #c0392b; /* Hover'da daha koyu kırmızı */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}


/* --- Genel Oyun Sonu Modalı --- */
.game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.game-over-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    max-width: 450px;
    width: 90%;
}

.modal-content h3 {
    font-size: 2.2em;
    margin-top: 0;
    color: var(--secondary-color);
}

#play-again-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 25px;
    transition: background-color 0.3s, transform 0.2s;
}

#play-again-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* --- Adam Asmaca Oyun Stilleri --- */
#game-content { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hangman-figure {
    height: 250px;
    width: 200px;
    position: relative;
    margin-bottom: 20px;
}

.hangman-figure svg {
    height: 100%;
    width: 100%;
}

.hangman-figure line,
.hangman-figure circle {
    stroke: var(--secondary-color);
    stroke-width: 4px;
    stroke-linecap: round;
    fill: none;
}

.figure-part {
    display: none;
}

.guesses-text {
    font-size: 1.3em;
    color: var(--accent-red);
    font-weight: bold;
    margin: 0;
}

.word-display {
    display: flex;
    gap: 12px;
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 5px;
    min-height: 60px;
    text-transform: uppercase;
    justify-content: center;
    align-items: flex-end;
}

.letter-box {
    border-bottom: 4px solid var(--primary-color);
    width: 40px;
    text-align: center;
    padding-bottom: 5px;
}

/* Mobil Adam Asmaca Klavyesi Düzenlemesi */
.keyboard {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Daha küçük boşluk */
    justify-content: center;
    max-width: 700px; /* Daha geniş alan, satırda daha fazla sığar */
    margin-top: 20px;
}

.key {
    font-size: 1.2em; /* Biraz küçültülebilir */
    width: 40px; /* Sabit genişlik */
    height: 40px; /* Sabit yükseklik */
    border: 1px solid var(--border-color);
    background-color: #fdfdfd;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.key:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.key.correct {
    background-color: var(--accent-green);
    color: white;
    border-color: #27ae60;
}

.key.wrong {
    background-color: var(--accent-red);
    color: white;
    border-color: #c0392b;
}

.key:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

#sequence-status {
    font-size: 1.7em;
    font-weight: bold;
    color: var(--primary-color);
    min-height: 40px;
    margin-bottom: 25px;
}

#sequence-game-board {
    display: grid;
    grid-template-columns: repeat(3, 120px); 
    grid-template-rows: repeat(3, 120px);
    gap: 20px; 
    background-color: #dbe3e7; 
    padding: 20px;
    border-radius: 15px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1); 
}

.sequence-tile {
    background-color: #ecf0f1;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s, box-shadow 0.2s;
    border: 2px solid #95a5a6;
    display: flex; 
    justify-content: center;
    align-items: center;
    font-size: 3em; 
    font-weight: bold;
    color: var(--secondary-color);
}

.sequence-tile:hover {
    background-color: #d2dce1;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.sequence-tile.active {
    background-color: var(--primary-color);
    transform: scale(1.08); 
    border-color: #2980b9;
    color: var(--white);
    box-shadow: 0 0 15px var(--primary-color); 
}

#stroop-word {
    font-size: 5.5em; 
    font-weight: bold;
    text-transform: uppercase;
    margin: 40px 0;
    min-height: 100px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobil Stroop Testi Seçenekleri Düzenlemesi */
#stroop-choices {
    display: flex;
    justify-content: center;
    gap: 10px; /* Daha küçük boşluk */
    flex-wrap: wrap; /* Yan yana sığmazsa alt satıra geç */
    margin-top: 30px;
    max-width: 700px; /* Genişliği kısıtlayabiliriz */
    margin-left: auto;
    margin-right: auto;
}

.stroop-button {
    background-color: #f0f0f0;
    color: var(--text-color-dark);
    border: 2px solid #ccc;
    padding: 15px 35px; 
    border-radius: 10px; 
    font-size: 1.3em; 
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stroop-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

#stroop-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 500px; 
    margin: 20px auto;
    font-size: 1.6em; 
    font-weight: 600;
    color: var(--secondary-color);
}

#stroop-stats span {
    font-weight: bold;
    color: var(--primary-color);
}

#stroop-start-screen {
    padding: 30px;
}

#stroop-start-screen h3 {
    font-size: 2em;
    color: var(--secondary-color);
}

#stroop-start-screen p {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 550px;
    margin: 15px auto;
}

#stroop-start-button {
    background-color: var(--accent-green);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 25px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#stroop-start-button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.page-container {
    background-color: var(--white);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: var(--box-shadow-medium);
    max-width: 900px;
    margin: 20px auto;
    text-align: left;
}

.page-intro {
    font-size: 1.1em;
    color: var(--text-color-light);
    line-height: 1.7;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.article-preview {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.article-preview:last-child {
    border-bottom: none;
}

.article-preview h3 a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1.7em; 
    transition: color 0.3s;
    font-weight: 700;
}

.article-preview h3 a:hover {
    color: var(--primary-color);
}

.article-meta {
    font-size: 0.95em; 
    color: var(--text-color-light);
    margin-top: 8px;
    margin-bottom: 18px;
}

.article-excerpt {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-color-dark);
}

.read-more {
    display: inline-block;
    margin-top: 18px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.2s, color 0.2s;
}

.read-more:hover {
    transform: translateX(5px);
    color: #2980b9;
}

/* Eski .back-to-home-link stili - artık kullanılmayacak, back-to-selection-button tercih edilecek */
.back-to-home-link {
    display: block; 
    text-align: center;
    margin-top: 40px;
    padding: 12px 25px;
    background-color: var(--accent-red);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.back-to-home-link:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.full-article h1 {
    font-size: 2.5em;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

.full-article h2 {
    font-size: 2em;
    margin-top: 40px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.full-article h3 {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.full-article p {
    font-size: 1.15em;
    line-height: 1.9;
    color: var(--text-color-dark);
    margin-bottom: 1.2em;
}

.full-article ul, .full-article ol {
    margin-left: 20px;
    margin-bottom: 1em;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color-dark);
}

.full-article li {
    margin-bottom: 0.5em;
}

.level-selection-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; 
}

.level-choice {
    padding: 15px 35px;
    font-size: 1.2em;
    font-weight: bold;
    border: 2px solid;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.level-choice[data-level="basit"] {
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.level-choice[data-level="basit"]:hover {
    background-color: var(--accent-green);
    color: white;
    box-shadow: 0 5px 10px rgba(46, 204, 113, 0.2);
}

.level-choice[data-level="orta"] {
    border-color: #f39c12; 
    color: #f39c12;
}
.level-choice[data-level="orta"]:hover {
    background-color: #f39c12;
    color: white;
    box-shadow: 0 5px 10px rgba(243, 156, 18, 0.2);
}

.level-choice[data-level="zor"] {
    border-color: var(--accent-red);
    color: var(--accent-red);
}
.level-choice[data-level="zor"]:hover {
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 5px 10px rgba(231, 76, 60, 0.2);
}

/* --- WCST'ye Özel Stiller --- */
.wcst-education-level, .wcst-instructions {
    width:100%;max-width:700px;background:#fdfdfd;padding:25px;border-radius:12px;border:1px solid var(--border-color);box-shadow:var(--box-shadow-light);text-align:center;margin-bottom:20px;
}
.education-options{
    display:flex;justify-content:center;gap:15px;flex-wrap:wrap;margin-top:15px;
}
.education-btn{
    padding:12px 28px;font-size:1.1em;cursor:pointer;border-radius:8px;border:2px solid var(--primary-color);background-color:transparent;color:var(--primary-color);font-weight:700;transition:all .3s;
}
.education-btn:hover{
    background-color:var(--primary-color);color:#fff;
}
.education-btn.selected{
    background-color:var(--secondary-color);border-color:var(--secondary-color);color:#fff;transform:scale(1.05);
}
#wcst-start-btn{
    padding:15px 40px;font-size:1.3em;font-weight:700;cursor:pointer;border:none;border-radius:10px;background-color:var(--accent-green);color:#fff;transition:all .3s;
}
#wcst-start-btn:disabled{
    background-color:#bdc3c7;cursor:not-allowed;opacity:.7;
}

/* WCST kart alanı düzenlemesi */
#wcst-game-screen .card-area {
    width: 100%;
    max-width: 600px; /* Uyaran kartları için maks genişlik */
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Kartlar sığmazsa alt satıra geçsin */
    align-items: flex-start; /* Kartlar üstten hizalansın */
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 12px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.1);
    margin: 20px auto; /* Ortalamak için */
}

#response-card-container {
    background-color:transparent;
    box-shadow:none;
    min-height:180px;
    margin-top: 20px; /* Uyaran kartlardan boşluk */
}

/* ====================================================== */
/* DÜZELTME 2: WCST KART GÖRÜNÜMÜ ÇÖZÜMÜ                 */
/* Flexbox yerine CSS Grid kullanarak daha stabil bir     */
/* yerleşim sağlıyoruz. Bu, 1-4 arası şeklin            */
/* karttan taşmasını engelleyecektir.                     */
/* ====================================================== */
.wcst-card {
    width: 110px;
    height: 150px;
    background-color: #fff;
    border: 3px solid #b0bec5;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    
    /* Flexbox yerine Grid kullanıyoruz */
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 sütun */
    grid-template-rows: 1fr 1fr;    /* 2 satır */
    place-items: center; /* Öğeleri hücre içinde ortala */
    
    padding: 5px;
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 5px;
}

#stimulus-cards-container .wcst-card {
    cursor:pointer;
    transition:transform .2s,box-shadow .2s;
}
#stimulus-cards-container .wcst-card:hover {
    transform:translateY(-5px);
    box-shadow:0 8px 16px rgba(0,0,0,.15);
}

/* Şekil boyutunu Grid hücresine sığacak şekilde ayarlıyoruz */
.wcst-card .card-shape {
    width: 80%; /* Hücre genişliğinin %80'i */
    height: 80%; /* Hücre yüksekliğinin %80'i */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ====================================================== */
/* DÜZELTME 2 SONU                                        */
/* ====================================================== */


.wcst-card .card-shape svg{
    width:100%;height:100%;fill:currentColor;
}
.color-red{color:var(--accent-red)}
.color-green{color:var(--accent-green)}
.color-blue{color:var(--primary-color)}
.color-yellow{color:var(--stroop-yellow)}

/* Geri bildirim yazısı stilleri */
#wcst-feedback{min-height:40px;font-size:2.2em;font-weight:800;text-transform:uppercase;letter-spacing:2px;transition:transform .2s ease}
#wcst-feedback.correct{color:var(--accent-green);transform:scale(1.1)}
#wcst-feedback.wrong{color:var(--accent-red);transform:scale(1.1)}

.wcst-results{
    text-align:left;width:100%;margin-top:20px;font-size:1.1em;
}
.wcst-results p{
    display:flex;justify-content:space-between;padding:10px 5px;border-bottom:1px solid #eee;margin-bottom:0;
}
.wcst-results p:last-of-type{border-bottom:none}
.wcst-results strong{color:var(--primary-color)}

/* --- N-Back Testi Stilleri --- */
.nback-container{display:flex;flex-direction:column;align-items:center;gap:30px}
#nback-stimulus-box{width:220px;height:220px;border:4px solid var(--secondary-color);border-radius:15px;display:flex;justify-content:center;align-items:center;font-size:8.5em;font-weight:700;color:var(--secondary-color);background-color:#fcfcfc;box-shadow:0 5px 15px rgba(0,0,0,.1)}
#nback-controls{margin-top:20px}
#nback-match-button{padding:22px 55px;font-size:1.6em;font-weight:700;cursor:pointer;background-color:var(--primary-color);color:#fff;border:none;border-radius:10px;transition:background-color .2s,transform .2s,box-shadow .2s;box-shadow:0 4px 10px rgba(0,0,0,.1)}
#nback-match-button:hover{background-color:#2980b9;transform:translateY(-3px);box-shadow:0 6px 15px rgba(0,0,0,.15)}
#nback-feedback{min-height:40px;font-size:1.7em;font-weight:700;margin-top:15px}
#nback-feedback.correct{color:var(--accent-green)}
#nback-feedback.wrong{color:var(--accent-red)}
#nback-stats{display:flex;gap:40px;font-size:1.3em;color:var(--secondary-color);font-weight:600}
#nback-stats span{color:var(--primary-color);font-weight:700}

.game-description {
    font-size: 1.1em;
    color: var(--text-color-light);
    max-width: 650px;
    margin: 15px auto 25px auto;
    line-height: 1.7;
    font-style: italic;
}

/* Ana Sayfa İçeriği Stilleri */
.homepage-content {
    background-color: var(--white); 
    background-image: url('/neuronbackground.webp'); 
    background-size: cover;
    background-position: center center;
    background-attachment: scroll; 
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    background-color: rgba(44, 62, 80, 0.7); 

    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow-medium);
    max-width: 1000px; 
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    color: white; 
}

.homepage-content h2 {
    color: var(--white); 
}
.homepage-content p {
    color: rgba(255, 255, 255, 0.9); 
}

.homepage-content .hero-image {
    width: 60%; 
    max-width: 400px; 
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    animation: fadeIn 1.5s ease-out; 
}

.homepage-content .call-to-action-buttons {
    margin-top: 30px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.homepage-content .cta-button {
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px; 
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid var(--white); 
    color: var(--white); 
    background-color: transparent; 
}

.homepage-content .cta-button:hover {
    background-color: var(--white); 
    color: var(--secondary-color); 
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobil Cihazlar İçin Medya Sorguları */
@media (max-width: 992px) {
    .homepage-content {
        padding: 30px;
        gap: 25px;
    }
    .homepage-content h2 {
        font-size: 2.2em;
    }
    .homepage-content p {
        font-size: 1.1em;
    }
    .homepage-content .hero-image {
        width: 80%;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    /* Oyun Seçim Konteynerleri ve Navigasyon Mobil Düzeni */
    .game-selection-container, .level-selection-container, .main-nav {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    .game-choice, .level-choice, .main-nav a {
        width: calc(100% - 20px);
        margin: 0 auto;
    }
    .game-choice{padding:12px 20px;font-size:.95em}

    /* Adam Asmaca Klavyesi Mobil Düzenlemesi */
    .keyboard {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
        max-width: 100%;
        padding: 0 5px;
    }
    .key {
        width: calc(14% - 10px);
        height: 40px;
        font-size: 0.9em;
        margin: 2px;
    }

    /* Stroop Seçenekleri Mobil Düzenlemesi */
    #stroop-choices {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        max-width: 100%;
        padding: 0 10px;
    }
    /* DÜZENLENDİ: Stroop buton boyutu artırıldı */
    .stroop-button {
        min-width: 100px;
        padding: 14px 25px;
        font-size: 1.2em;
    }

    #game-container,.page-container,.modal-content{padding:20px;margin:15px auto;width:auto}
    .homepage-content{padding:25px}.homepage-content h2{font-size:1.8em}.homepage-content p{font-size:1em}.homepage-content .hero-image{width:90%;max-width:300px}.homepage-content .cta-button{padding:15px 30px;font-size:1.1em}
    #sequence-game-board{grid-template-columns:repeat(3,90px);grid-template-rows:repeat(3,90px);gap:15px}.sequence-tile{font-size:2.5em}
    
    /* DÜZENLENDİ: Stroop yazı boyutu artırıldı */
    #stroop-word{font-size: 5em;}
    
    #stroop-stats{font-size:1.3em}
    #nback-stimulus-box{width:180px;height:180px;font-size:6em}
    #nback-match-button{padding:18px 45px;font-size:1.3em}
}

@media (max-width: 480px){
    h1{font-size:1.8em}
    h2{font-size:1.5em}
    p{font-size:.9em}
    
    .key{width: calc(16% - 8px); height: 35px; font-size: 0.8em; padding: 0;}
    
    .modal-content{padding:15px}.modal-content h3{font-size:1.8em}#play-again-button{padding:10px 20px;font-size:.9em}
    
    .homepage-content h2{font-size:1.6em}.homepage-content p{font-size:.9em}.homepage-content .cta-button{padding:12px 25px;font-size:1em}
    
    #sequence-game-board{grid-template-columns:repeat(3,70px);grid-template-rows:repeat(3,70px);gap:10px}.sequence-tile{font-size:2em}
    
    /* DÜZENLENDİ: Stroop yazı boyutu artırıldı */
    #stroop-word{font-size: 4em;}
    
    #stroop-choices{gap:10px}
    /* DÜZENLENDİ: Stroop buton boyutu artırıldı */
    .stroop-button{
        min-width:100px;
        padding:12px 20px;
        font-size:1.1em;
    }
    
    #nback-stimulus-box{width:150px;height:150px;font-size:5em}
}
