body, html {
    height: 100%;
    margin: 0;
    font-family: 'Orbitron', sans-serif;
}

.background-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(50%) brightness(80%);
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.text-overlay h1 {
    font-size: 3em;
    margin: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 5s ease-in-out forwards;
}

.text-overlay h2 {
    font-size: 2em;
    margin: 10px 0 0;
    padding: 5px;
    animation: fadeIn 5s ease-in-out forwards;
    opacity: 0; /* Initially hidden */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .text-overlay h1 {
        font-size: 2em;
    }

    .text-overlay h2 {
        font-size: 1.5em;
    }
}
