/* Initialisation et police */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'VT323', monospace; /* Police rétro parfaite pour cet effet */
    color: #0f0;
}

/* L'écran principal qui occupe tout l'espace */
#crt-screen {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2em;
    box-sizing: border-box;
}

/* Effet de scanlines statiques et de vignettage */
#crt-screen::after {
    content: ' ';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none; /* Permet de cliquer à travers */
}

/* Style de base pour le texte avec effet de lueur (glow) */
.text {
    font-size: 2.5rem;
    text-shadow: 
        0 0 5px #0f0,
        0 0 10px #0f0,
        0 0 20px #0f0,
        0 0 40px #0f0;
    line-height: 1.5;
    white-space: pre-wrap; /* Respecte les sauts de ligne et espaces */
    word-break: break-all;
}

/* Panneau de contrôle */
#controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

#text-input {
    width: 500px;
    height: 60px;
    background-color: rgba(0, 20, 0, 0.8);
    border: 1px solid #0f0;
    color: #0f0;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    padding: 10px;
    box-shadow: 0 0 10px #0f0 inset;
    resize: none;
}

#buttons-container {
    display: flex;
    gap: 10px;
}

button {
    background-color: transparent;
    border: 1px solid #0f0;
    color: #0f0;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    padding: 10px 15px;
    cursor: pointer;
    text-shadow: 0 0 5px #0f0;
    transition: background-color 0.3s, color 0.3s;
}

button:hover {
    background-color: #0f0;
    color: #000;
}