/* Estilo general */
body {
    background: #000; /* Fondo negro */
    font-family: 'VT323', 'Courier New', monospace; /* Fuente pixelada */
    color: #00ff00; /* Verde neón */
    margin: 20px;
    position: relative;
    overflow-x: hidden;
    cursor: url('https://cur.cursors-4u.net/cursors/cur-11/cur1054.cur'), auto; /* Cursor retro */
}

/* Fondo animado Matrix */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Detrás del contenido */
    overflow: hidden;
}
.matrix-bg span {
    position: absolute;
    top: -50px;
    color: #00ff00;
    font-size: 20px;
    text-shadow: 0 0 5px #00ff00;
    animation: matrix-fall 5s linear infinite;
    white-space: nowrap;
}
.matrix-bg span:nth-child(1) { left: 5%; animation-delay: 0s; }
.matrix-bg span:nth-child(2) { left: 10%; animation-delay: 0.5s; }
.matrix-bg span:nth-child(3) { left: 15%; animation-delay: 1s; }
.matrix-bg span:nth-child(4) { left: 20%; animation-delay: 1.5s; }
.matrix-bg span:nth-child(5) { left: 25%; animation-delay: 2s; }
.matrix-bg span:nth-child(6) { left: 30%; animation-delay: 2.5s; }
.matrix-bg span:nth-child(7) { left: 35%; animation-delay: 3s; }
.matrix-bg span:nth-child(8) { left: 40%; animation-delay: 3.5s; }
.matrix-bg span:nth-child(9) { left: 45%; animation-delay: 4s; }
.matrix-bg span:nth-child(10) { left: 50%; animation-delay: 4.5s; }
.matrix-bg span:nth-child(11) { left: 55%; animation-delay: 0.2s; }
.matrix-bg span:nth-child(12) { left: 60%; animation-delay: 0.7s; }
.matrix-bg span:nth-child(13) { left: 65%; animation-delay: 1.2s; }
.matrix-bg span:nth-child(14) { left: 70%; animation-delay: 1.7s; }
.matrix-bg span:nth-child(15) { left: 75%; animation-delay: 2.2s; }
.matrix-bg span:nth-child(16) { left: 80%; animation-delay: 2.7s; }
.matrix-bg span:nth-child(17) { left: 85%; animation-delay: 3.2s; }
.matrix-bg span:nth-child(18) { left: 90%; animation-delay: 3.7s; }
.matrix-bg span:nth-child(19) { left: 95%; animation-delay: 4.2s; }
.matrix-bg span:nth-child(20) { left: 100%; animation-delay: 4.7s; }
.matrix-bg span:before {
    content: "0101 1010 ハック ゲーム インディー 1337";
}
@keyframes matrix-fall {
    0% { transform: translateY(-50px); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0.3; }
}

/* Ventana estilo hacker */
.window {
    background: rgba(0, 0, 0, 0.7); /* Semi-transparente para ver el fondo Matrix */
    border: 3px solid #00ff00;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    position: relative;
    z-index: 1; /* Encima del fondo Matrix */
}

/* Barra de título */
.window-title {
    background: #000;
    color: #00ff00;
    padding: 5px;
    font-size: 50px;
    border-bottom: 2px solid #00ff00;
    text-shadow: 2px 2px 0 #ff00ff;
}

/* Botones estilo hacker */
.button {
    display: inline-block;
    background: #000;
    border: 2px solid #00ff00;
    padding: 5px 10px;
    text-decoration: none;
    color: #00ff00;
    font-size: 30px;
    margin: 5px;
    text-shadow: 1px 1px 0 #ff00ff;
}
.button:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 10px #00ff00;
}

/* Botón de idioma */
.lang-button {
    background: #ff00ff;
    color: #000;
}
.lang-button:hover {
    background: #00ff00;
    color: #000;
}

/* Cabecera */
header {
    text-align: center;
}
.logo {
    max-width: 355;
	max-height: 400;
	width: 25vw;
	height: auto;
    margin-top: 20px;
    filter: drop-shadow(0 0 5px #00ff00);
}
h1 {
    font-size: 28px;
    margin: 10px 0;
    animation: glitch 1s infinite;
}

/* Animación glitch */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 0); }
    80% { transform: translate(2px, 0); }
    100% { transform: translate(0); }
}

/* Proyectos */
.proyecto {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
}
.proyecto img.game-img {
    max-width: 300px;
    border: 2px solid #00ff00;
    filter: brightness(1.2) drop-shadow(0 0 5px #00ff00);
}
.proyecto h2 {
    font-size: 22px;
    margin: 10px 0;
    text-shadow: 1px 1px 0 #ff00ff;
}

/* Efecto parpadeo */
.blink {
    animation: blink 0.5s infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    margin-top: 20px;
    color: #00ff00;
    position: relative;
    z-index: 1;
}

/* Responsividad */
@media (max-width: 600px) {
    .window {
        margin: 10px;
        padding: 5px;
    }
    .proyecto img {
        max-width: 100%;
    }
}

p {
	font-size: 25px;
}