* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    overflow: hidden;
    font-family: 'Times New Roman', Times, Georgia, serif; 
}

/* Tüm süreci tam merkezde toplayan ana kapsayıcı */
#time-journey-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #000000;
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 9999;
}

/* Merkezlenen ve mobilde alt satıra taşan dinamik yüzyıl yazıları */
.moving-year {
    position: absolute;
    /* vw (viewport width) kullanarak puntoyu ekrana göre esnettik */
    font-size: 8vw; 
    font-weight: bold;
    color: #ffffff; 
    letter-spacing: 4px;
    text-align: center; /* Metni kendi içinde merkezler */
    width: 90%; /* Ekran kenarlarına sıfırlanmasını engeller */
    max-width: 800px;
    
    /* Mobilde yazı sığmadığında kelimeyi alt satıra bölmek için kritik ayarlar */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    word-break: break-word;
    
    opacity: 0;
    animation: zoomEffect 1.2s ease-in-out forwards; 
}

@keyframes zoomEffect {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    30% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4); /* Ekrandan taşmayacak kibar büyüme oranı */
        opacity: 0;
    }
}

/* Karşılama Paneli ve Mobil Optimizasyonu */
#welcome-panel {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #000000;
    display: flex; 
    justify-content: center; 
    align-items: center;
    color: #f5eae0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.panel-content {
    text-align: center;
    padding: 20px;
    width: 90%;
}

.panel-title {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: #dfb76c; /* Kilimlerin vintage altın rengi */
}

.panel-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-style: italic;
    color: #a49383;
}

.enter-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #dfb76c;
    color: #000000;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.enter-btn:hover {
    background-color: #f3cf8c;
    transform: translateY(-2px);
}

/* MOBİL CİHAZLAR İÇİN ÖZEL PUNTO DÜZENLEMESİ */
@media (max-width: 768px) {
    .moving-year {
        font-size: 12vw; /* Küçük ekranlarda yazının okunabilir kalması için */
    }
    .panel-title {
        font-size: 2rem; /* Başlığın mobilde taşmaması için */
    }
}
