body {
    background-color: black;
    color: #00FF00;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.container {
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2; /* Le contenu reste au-dessus des fantômes */
}

.logo {
    width: 120px;
    margin-bottom: 20px;
}

.terminal {
    background-color: #111;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 0 15px #00FF00;
    position: relative;
    z-index: 10;
}

/* Style du champ de saisie */
.input-area {
    margin-top: 20px;
}

#userInput {
    width: 70%;
    max-width: 200px;
    padding: 10px;
    background-color: #222;
    color: #00FF00;
    border: 1px solid #00FF00;
    border-radius: 5px;
}

button {
    padding: 10px;
    background-color: #00FF00;
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #00cc00;
}

/* Fantômes en pixels centrés et en mosaïque */
body::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    background-image: url('image.png'); /* Remplacer par l'image pixelisée d'un fantôme */
    background-size: 80px 80px; /* Ajuste la taille du fantôme */
    background-position: center;
    background-repeat: repeat;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    z-index: 1;
    animation: float 10s linear infinite;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
    100% { transform: translate(-50%, -50%) translateY(0); }
}

/* Responsiveness */
@media (max-width: 600px) {
    .logo {
        width: 80px;
    }

    #userInput {
        width: 90%;
        max-width: 150px;
    }

    button {
        width: 100%;
        margin-top: 10px;
    }

    .terminal {
        width: 90%;
        padding: 15px;
    }
}


#cursor {
    color: #00FF00;
    font-weight: bold;
    animation: blink 0.5s steps(2) infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}



/* Animation de clignotement */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Section d'introduction */
.intro {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00ff00;
    font-family: monospace;
}

.skull-animation {
    animation: blink 0.4s steps(5) 8; /* Clignote 7 fois */
}

.skull-animation pre {
    font-size: 18px;
    line-height: 20px;
}
