@font-face {
    font-family: 'Fixedsys';
    src: url('Fixedsys.ttf') format('truetype');
}

/* 🎨 Estilos generales */
html, body {
    background-color: #121212;
    color: #00cc66;
    font-family: 'Fixedsys', monospace;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    cursor: url('cursor.png'), auto;
}

/* 📺 CRT Flicker sutil */
@keyframes crt-flicker {
    0% { opacity: 1; }
    50% { opacity: 0.97; }
    100% { opacity: 1; }
}

body {
    animation: crt-flicker 0.1s infinite alternate;
    background: linear-gradient(rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.2) 50%);
    background-size: 100% 3px;
}

/* 🎛️ NAVBAR */
.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 255, 0, 0.5);
}

/* 🔥 Sombras suaves en el ASCII ART (sin animación) */
.ascii-art {
    font-family: 'Fixedsys', monospace;
    white-space: pre;
    color: #ffcc00;
    text-shadow:
        0px 0px 6px #ff9900,
        0px 0px 12px #ff6600,
        0px 0px 18px rgba(255, 150, 0, 0.5);
    font-size: 18px;
    display: block;
    text-align: center;
}

/* 🔥 Efecto de encendido de neón con mejor timing */
@keyframes neon-power-on {
    0% { opacity: 0; text-shadow: none; }
    10% { opacity: 0.2; }
    20% { opacity: 0.4; text-shadow: 0px 0px 5px rgba(0, 255, 0, 0.3); }
    30% { opacity: 0.1; text-shadow: none; }
    40% { opacity: 0.7; text-shadow: 0px 0px 8px rgba(0, 255, 0, 0.4); }
    50% { opacity: 0.2; text-shadow: none; }
    60% { opacity: 0.9; text-shadow: 0px 0px 10px rgba(0, 255, 0, 0.6); }
    70% { opacity: 0.5; text-shadow: 0px 0px 5px rgba(0, 255, 0, 0.3); }
    80% { opacity: 1; text-shadow: 0px 0px 15px rgba(0, 255, 0, 0.9); }
    90% { opacity: 0.8; }
    100% { opacity: 1; text-shadow: 0px 0px 20px rgba(0, 255, 0, 1); }
}

.subtitle {
    font-size: 22px;
    font-weight: bold;
    animation: neon-power-on 3.5s ease-in-out forwards;
    opacity: 1;
    margin-top: 20px;
}

/* 🔥 Asegurar la alineación del contenido */
.container {
    width: 100%;
    text-align: center;
    padding-top: 150px; /* 🔥 Mayor espacio para que no quede encimado */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
}

/* 🔥 Restauración del footer con glow azul */
.footer {
    padding: 15px;
    background: #000;
    color: #00cc66;
    font-size: 14px;
    border-top: 2px solid #00cc66;
    font-family: 'Fixedsys', monospace;
    text-align: center;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    animation: crt-flicker 0.1s infinite alternate;
}

/* 🔥 Glow azul en los enlaces del footer */
.footer a {
    color: #00aaff;
    text-decoration: none;
    font-weight: bold;
    text-shadow:
        0px 0px 10px #00aaff,
        0px 0px 20px #0088cc,
        0px 0px 30px rgba(0, 170, 255, 0.8);
    transition: 0.3s;
}

.footer a:hover {
    color: #ffffff;
    text-shadow:
        0px 0px 15px #00ccff,
        0px 0px 25px #00aaff;
}

/* 🔘 Estilo para botones del navbar */
.nav button {
    all: unset;
    font-family: 'Fixedsys', monospace !important;
    background-color: #000 !important;
    color: #00ff00 !important;
    border: 1px solid #00ff00 !important;
    padding: 10px 18px !important;
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    text-shadow: 0 0 3px #00ff00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
    transition: all 0.2s ease-in-out;
}

.nav button {
    all: unset;
    font-family: 'Fixedsys', monospace !important;
    background-color: #000 !important;
    color: #00ff00 !important;
    border: 1px solid #00ff00 !important;
    padding: 10px 18px !important;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 3px #00ff00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
    transition: all 0.2s ease-in-out;
}

.nav button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, #00ff00 50%, transparent);
    opacity: 0.3;
    transition: left 0.3s ease-in-out;
}

.nav button:hover::before {
    left: 100%;
}

.nav button:hover {
    background-color: #000; /* no se rellena por completo */
    color: #00ff00;
    text-shadow: 0 0 6px #00ff00;
    box-shadow: 0 0 12px #00ff00;
}
