/* Fullscreen container */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100dvh; /* Use dynamic viewport height */
    background: url('../images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    text-align: center;
    font-family: 'Trajan Pro Bold', serif;
    position: relative;
    overflow: hidden; /* Prevent scrolling */
}

/* Fade-in and Fade-out overlay */
.fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    pointer-events: none;
    opacity: 0;
    animation: fadeOverlay 1.2s ease-out;
}

/* Title image */
#title-image {
    width: 80%;
    max-width: 600px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    margin-bottom: 20px;
}

/* Play button */
.play-button {
    font-family: 'Trajan Pro Bold', serif;
    font-size: 30px;
    font-weight: bold;
    padding: 15px 60px;
    transition: 0.3s;
	max-height: none;
    flex-grow: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 5px;
}

.play-button:hover {
    background: white;
    color: black;
    text-shadow: none;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(200px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOverlay {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

#title-image,
.play-button {
    animation: fadeIn 1.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    #title-image {
        max-width: 80%;
    }

    .play-button {
        padding: 12px 50px;
        font-size: 24px;
    }
}

#versionLabel {
    position: absolute;
    bottom: 0;
    left: 0;
    user-select: none;
    margin: 2px;
    text-align: left;
}