/* Import a gaming-inspired font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    margin: 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #1a1a1a, #000000);
    color: #ffffff;
    font-family: 'Press Start 2P', cursive;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Keeps canvas behind the overlay */
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 2s ease-in; /* Fade-in animation */
}

h1 {
    font-size: 2em;
    margin: 0;
    text-shadow: 2px 2px 4px #000000; /* Adds depth to the text */
}

p {
    font-size: 1em;
    margin: 10px 0;
}

/* Fade-in animation for the overlay */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
