@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&family=Press+Start+2P&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f8f8f8;
    color: #333;
    transition: background-color 1s ease;
    
    
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Press Start 2P', cursive;
    color: #333;
    line-height: 1.4;
}

a {
    color: #3c44a8;
    text-decoration: none;
}
a:hover {
    color: #4a9c9c;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('foto.png');
    background-size: contain;
    background-position: 50% 30%;
    background-repeat: no-repeat;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

header {
    height: 100vh;
    padding: 0 40px;
    box-sizing: border-box;
    background-color: #f8f8f8;
    
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;

    opacity: 0;
    
    transition: all 1s cubic-bezier(0.77, 0, 0.175, 1);
}

header h1 {
    font-size: 2rem;
    color: #2b2b2b;
    text-decoration: none;
    margin: 0;
    text-align: center;
    
    transition: all 1s cubic-bezier(0.77, 0, 0.175, 1);
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header nav {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

main {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    
    
    overflow-x: hidden; 
}

body.loaded .splash-screen {
    opacity: 0;
    z-index: -1;
}

body.loaded header {
    opacity: 1;
}

body.loaded-final header {
    height: 80px;
    justify-content: space-between;
    background-color: #3c44a8;
    border-bottom: 4px solid #fff7a9;
    box-shadow: 0 4px 0px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.loaded-final header h1 {
    font-size: 1.2rem;
    color: #ffffff;
}

body.loaded-final header nav {
    opacity: 1;
    transform: translateY(0);
}

body.loaded-final header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
body.loaded-final header nav ul li {
    display: inline;
    margin-left: 20px;
}
body.loaded-final header nav ul li a {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #ffffff;
}
body.loaded-final header nav ul li a:hover,
body.loaded-final header nav ul li a.active {
    color: #fff7a9;
}

body.loaded-final main {
    opacity: 1;
    transform: translateY(0);
}

.quest-board {
    padding: 40px 0;
}

.quest-board h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.quest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.quest-card {
    background: #ffffff;
    border: 3px solid #2b2b2b;
    border-radius: 0;
    padding: 20px 25px;
    
    box-shadow: 6px 6px 0px #2b2b2b;
    
    transition: all 0.2s ease-out;
}

.quest-card:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0px #2b2b2b;
}

.quest-card h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #3c44a8;
}

.quest-card h3 span { margin-right: 10px; }
.quest-card .tarih {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}
.quest-card p { font-family: 'Poppins', sans-serif; margin-bottom: 20px; }

.activities-section {
    padding: 40px 0;
    background-color: #ffffff;
    border-top: 3px solid #ddd;
    border-bottom: 3px solid #ddd;
}
.activities-section h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
}
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.activity-card {
    background: #f8f8f8;
    border: 3px solid #ccc;
    text-align: center;
    padding: 25px;
    border-radius: 0;
    transition: all 0.3s ease;
}
.activity-card:hover {
    border-color: #3c44a8;
    transform: translateY(-5px);
}
.activity-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #3c44a8;
}
.activity-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

body.sub-page .splash-screen { display: none; }

body.sub-page header {
    height: 80px;
    justify-content: space-between;
    background-color: #3c44a8;
    border-bottom: 4px solid #fff7a9;
    box-shadow: 0 4px 0px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    opacity: 1;
}
body.sub-page header h1 {
    font-size: 1.2rem;
    color: #ffffff;
}
body.sub-page header nav { opacity: 1; transform: translateY(0); }
body.sub-page header nav ul { margin: 0; padding: 0; list-style: none; }
body.sub-page header nav ul li { display: inline; margin-left: 20px; }
body.sub-page header nav ul li a {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #ffffff;
}
body.sub-page header nav ul li a:hover,
body.sub-page header nav ul li a.active {
    color: #fff7a9;
}
body.sub-page main { opacity: 1; transform: translateY(0); }

.page-content {
    background: #ffffff;
    padding: 30px 40px;
    margin-top: 30px;
    border: 3px solid #2b2b2b;
    box-shadow: 6px 6px 0px #2b2b2b;
}
.page-content h2 { font-size: 1.5rem; color: #3c44a8; }
.page-content ul li { font-family: 'Poppins', sans-serif; }

footer {
    background-color: #3c44a8;
    color: #ddd;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    border-top: 4px solid #fff7a9;
    font-family: 'Poppins', sans-serif;
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

footer .iletisim-bilgisi,
footer .reklam-kredisi {
    font-size: 0.9rem;
    color: #ddd;
    margin-top: 15px;
}

footer a {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #fff7a9;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffffff;
}

header h1 .bbb-watermark {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    color: #888;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-top: 10px;
    transition: all 0.5s ease;
}
body.loaded-final header h1 .bbb-watermark,
body.sub-page header h1 .bbb-watermark {
    display: inline-block;
    font-size: 0.7rem;
    color: #ddd;
    margin-top: 0;
    margin-left: 10px;
    font-weight: 400;
}

.etkinlik-galerisi {
    margin-top: 40px;
}

.etkinlik-galerisi h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.galeri-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.etkinlik-karti {
    background: #ffffff;
    border: 3px solid #2b2b2b;
    border-radius: 0;
    padding: 25px;
    box-shadow: 6px 6px 0px #2b2b2b;
}

.etkinlik-karti h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 25px;
    color: #3c44a8;
    text-align: center;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 15px;
}

.etkinlik-karti .foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.etkinlik-karti .foto-grid img {
    width: 100%;
    height: auto;
    border: 3px solid #ddd;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.etkinlik-karti .foto-grid img:hover {
    transform: scale(1.05);
    border-color: #3c44a8;
}




@media (max-width: 768px) {

    .splash-screen {
        background-position: center center; 
    }

    header h1 {
        font-size: 1.5rem; 
        text-align: center; 
    }
    header h1 .bbb-watermark {
        font-size: 0.5rem; 
    }

    body.loaded-final header,
    body.sub-page header {
        height: auto; 
        padding: 15px 20px;
        flex-direction: column; 
        gap: 15px; 
    }

    body.loaded-final header h1,
    body.sub-page header h1 {
        font-size: 1.1rem; 
        text-align: center; 
        margin-bottom: 0; 
    }
    body.loaded-final header h1 .bbb-watermark,
    body.sub-page header h1 .bbb-watermark {
        display: block; 
        margin-left: 0;
        text-align: center;
        margin-top: 5px;
    }

    body.loaded-final header nav,
    body.sub-page header nav {
        width: 100%; 
    }

    body.loaded-final header nav ul,
    body.sub-page header nav ul {
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        padding: 0; 
        gap: 15px; 
    }
    
    body.loaded-final header nav ul li,
    body.sub-page header nav ul li {
        margin: 0; 
    }
    
    body.loaded-final header nav ul li a,
    body.sub-page header nav ul li a {
        font-size: 0.7rem;
    }

    h2, .quest-board h2, .activities-section h2, .etkinlik-galerisi h2,
    h3, .quest-card h3, .etkinlik-karti h3, .page-content h2 {
        font-size: 1rem; 
        
        word-break: break-all;
        overflow-wrap: break-word;
    }
    
    .quest-card h3 { font-size: 1rem; }
    .quest-board h2 { font-size: 1.3rem; }
    .etkinlik-karti h3 { font-size: 1.2rem; }
    
    .quest-grid,
    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .etkinlik-karti .foto-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .page-content,
    .quest-card,
    .etkinlik-karti {
        padding: 20px;
        box-shadow: 4px 4px 0px #2b2b2b; 
        overflow: hidden; 
    }
    .quest-card:hover,
    .etkinlik-karti:hover {
        transform: translate(2px, 2px);
        box-shadow: 2px 2px 0px #2b2b2b;
    }
}