/* Reset basic margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #363636; /* Dark ash background */
    color: #f5f5dc; /* Whitish beige text */
    font-family: Georgia, serif; /* Enforced Georgia uniform font */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out; /* Smooth 0.5s final fade-out */
}

#splash-screen {
    text-align: center;
}

#main-title {
    font-size: 4.5rem;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 15px;
    min-height: 5.5rem; /* Prevents layout layout jumps while typing */
}

#subtitle {
    font-size: 1.5rem;
    font-style: none;
    opacity: 0; /* Starts completely invisible */
    /* Waits 2s for the title to finish typing, then takes 2s to fade in */
    animation: fadeIn 2s ease-in 2s forwards; 
}

/* Keyframe for the subtitle fade-in */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Triggered by JS right before redirecting */
.fade-out {
    opacity: 0 !important;
}