@font-face {
    font-family: "Retrolift";
    src: url("/home/pancho/PROGRAMACION/FLUJOS/retrolift.woff2") format("woff2"),
         url("/home/pancho/PROGRAMACION/FLUJOS/retrolift.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Code';
}

body {
    font-family: 'Fira Code', monospace;
    background: #000000;
    color: #000000;
}

header {
    position: relative;
    height: 120px;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

.title {
    font-family: 'Nosifer';
    color: #ffffff;
    font-size: 6.5rem;
    margin: 0 auto;
    line-height: 1.2;
    align-self: center;
}

.header-content {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 0 14px;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
}

.header-buttons--left {
    right: auto;
    left: 14px;
}

.stats-btn {
    border-color: #39ff14;
    color: #39ff14;
}

.stats-btn:hover {
    background-color: #39ff14;
    color: #000;
}

.small-button {
    margin-left: 5px;
    margin-right: 3px;
    padding: 4px 8px;
    font-size: 10px;
    color: #ffffff;
    text-decoration: none;
    background-color: #000000;
    border: 2px solid #ffffff;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.small-button:hover {
    background-color: #ffffff;
    color: #000000;
    text-shadow: none;
}

nav {
    display: flex;
    justify-content: center;
    background-color: #000000;
    color: #ff1a1a;
    padding: 10px 0;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    margin-bottom: 5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 14em;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px 40px;
    box-shadow: 0 0 0px rgba(28, 103, 241, 0);
    position: relative;
    border: none;
    transition: .4s ease-in;
    z-index: 1;
    width: 40vw;
    height: 20vh;
    border: 3vw;
    align-items: center;
    border: 3px solid;
}

.nav-links a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    box-shadow: 2vw 1vw;
    border: 3px solid black;
}

.glob-war:hover { color: #39ff14; }
.int-sec:hover { color: #ff69b4; }
.climate:hover { color: #ff4500; }
.eco-corp:hover { color: #00fff2; }
.popl-up:hover { color: #0066ff; }

.glob-war {
    color: #FF4136;
    background-color: red;
}

.int-sec {
    color: #0074D9;
    background-color: darkblue;
}

.climate {
    color: #2ECC40;
    background-color: lightgreen;
}

.eco-corp {
    color: #FFDC00;
    background-color: yellow;
}

.popl-up {
    color: #FF851B;
    background-color: orange;
}


.background {
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    height: 100vh;
    width: 100%;
    overflow-x: hidden; /* Oculta cualquier posible desplazamiento horizontal */
    margin: 0 auto; 
    padding: 0;
}

.background a {
    display: block;
    flex: 1; /* Asegura que cada imagen se expanda uniformemente para ocupar todo el espacio disponible */
    height: 100%;
    transition: transform 1.5s ease;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
    margin: 0; /* Elimina cualquier margen alrededor de las imágenes */
}

.background img:hover {
    transform: scale(1.1);
}


#sidebar.active {
    transform: translateX(0);
}

#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-image: url("/images/flujos7.jpg");
    background-size: cover;
    color: #39ff14;
    padding: 30px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-90%);
    transition: transform 0.3s ease-out;
    overflow: auto;
    font-size: 18px;
    z-index: 3;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

#sidebar h2 {
    color: #39ff14;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: -1px 0 black, 0 3px black, 3px 0 black, 0 -1px black;
}

#sidebar:hover {
    transform: translateX(0);
}

#sidebarToggle {
    position: absolute;
    left: 1em;
    top: 1em;
    background: #007BFF;
    color: #39ff14;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
    z-index: 2;
}

#sidebarToggle {
    display: none;
}

#sidebar form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 20px;
}

#sidebar label {
    color: #39ff14;
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

#sidebar input {
    padding: 10px;
    border: 2px solid #39ff14;
    background: black;
    color: #39ff14;
    border-radius: 5px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

#sidebar input:hover {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
}

#sidebar input[type="submit"] {
    color: #39ff14;
    background: #ff6600;
    cursor: pointer;
}

#sidebar input[type="submit"]:hover {
    background: #ff6600;
}

footer {
    width: 100%;
    background-color: #000000;
    color: #39ff14;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    font-family: 'Courier New', Courier, monospace;
    z-index: 1;
}

footer a {
    color: #39ff14;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #2ECC40;
}

footer p {
    margin: 0;
}

#canvasContainer {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    pointer-events: none;
}

.button-overlay {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.button-column {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Incrementa el espacio entre botones */
    width: 13%; /* Reducido el ancho de las columnas de botones */
}

.overlay-button {
    display: block;
    padding: 10px 15px; /* Ajustar para reducir el tamaño del botón */
    color: #ffffff;
    font-weight: bold; /* Hacer el texto más grueso */
    text-decoration: none;
    border-radius: 30px; /* Bordes redondeados para un efecto de cilindro */
    font-size: 1em;
    border: 2px solid #ffffff;
    background-color: black; /* Fondo negro */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.overlay-button:hover {
    transform: scale(1.05);
    color: #ffffff;
    background-color: transparent;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Media Queries for larger screens */
@media screen and (max-width: 1920px) {
    .background a {
        width: 18%;
    }

    .button-column {
        width: 18%;
    }

    .overlay-button {
        font-size: 1.1em;
        padding: 16px 20px;
    }

    .title {
        font-size: 7rem;
    }

    .small-button {
        font-size: 1em;
        padding: 8px 14px;
    }

    .nav-links {
        list-style: none;
        display: flex;
        gap: 14em;
    }


}

@media screen and (max-width: 1600px) {
    .background a {
        width: 20%;
    }

    .button-column {
        width: 20%;
    }

    .overlay-button {
        font-size: 1em;
        padding: 14px 18px;
    }

    .title {
        font-size: 6.5rem;
    }

    .small-button {
        font-size: 0.9em;
        padding: 7px 13px;
    }
    .nav-links {
        list-style: none;
        display: flex;
        gap: 6em;
    }


}

@media screen and (max-width: 1440px) {
    .background a {
        width: 22%;
    }

    .button-column {
        width: 22%;
    }

    .overlay-button {
        font-size: 0.95em;
        padding: 12px 16px;
    }

    .title {
        font-size: 6rem;
    }

    .small-button {
        font-size: 0.85em;
        padding: 6px 12px;
    }

    .nav-links a {
        font-size: 0.85em;
        padding: 16px 30px;
    }
}

@media screen and (max-width: 1280px) {
    .background a {
        width: 25%;
    }

    .button-column {
        width: 25%;
    }

    .overlay-button {
        font-size: 0.5em;
        padding: 10px 14px;
    }

    .title {
        font-size: 5.5rem;
    }

    .small-button {
        font-size: 0.4em;
        padding: 6px 11px;
    }
    .nav-links {
        list-style: none;
        display: flex;
        gap: 5em;
    }


}

@media screen and (max-width: 1024px) {
    .background a {
        width: 30%;
    }

    .button-column {
        width: 30%;
    }

    .overlay-button {
        font-size: 0.35em;
        padding: 9px 12px;
    }

    .title {
        font-size: 5rem;
    }

    .small-button {
        font-size: 0.75em;
        padding: 5px 10px;
    }

    .nav-links a {
        font-size: 0.75em;
        padding: 12px 20px;
    }
}
/* ============================================================
   MÓVIL — Portrait (≤ 1024px)
   ============================================================ */

@media screen and (max-width: 1024px) and (orientation: portrait) {
    header { height: auto; padding: 12px 10px; }

    .title { font-size: 3.2rem; }

    .header-buttons {
        position: static;
        transform: none;
        margin-top: 6px;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 5px;
    }
    .header-buttons--left { position: static; }

    .small-button {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    /* Nav: fila horizontal scrollable de botones compactos */
    nav {
        margin-top: 8px;
        margin-bottom: 0;
        padding: 6px 8px;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .nav-links {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0 2px;
    }
    .nav-links li { flex-shrink: 0; }
    .nav-links a {
        width: auto;
        height: auto;
        font-size: 0.78rem;
        padding: 8px 14px;
        border-width: 2px;
        border-radius: 20px;
    }

    /* Layout de imágenes: 2 columnas en lugar de 5 */
    .background {
        flex-wrap: wrap;
        height: auto;
        overflow-x: hidden;
    }
    .background a {
        width: 50%;
        height: 30vw;
        min-height: 120px;
    }

    /* Botones overlay: rejilla 2×3 */
    .button-overlay {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 14px 12px 60px;
        background: rgba(0,0,0,0.75);
        height: auto;
        top: auto;
    }
    .button-column {
        width: 100%;
        gap: 8px;
    }
    .overlay-button {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

/* ≤ 600px portrait */
@media screen and (max-width: 600px) and (orientation: portrait) {
    .title { font-size: 2.2rem; }

    .small-button {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .nav-links a {
        font-size: 0.68rem;
        padding: 7px 11px;
    }

    .background a {
        width: 50%;
        height: 28vw;
    }

    .button-overlay {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px 8px 56px;
    }
    .overlay-button {
        font-size: 0.68rem;
        padding: 7px 10px;
    }
}

/* ≤ 420px portrait */
@media screen and (max-width: 420px) and (orientation: portrait) {
    .title { font-size: 1.8rem; }

    .header-content { flex-direction: column; align-items: flex-start; gap: 6px; }

    .small-button {
        font-size: 0.6rem;
        padding: 4px 7px;
    }

    .nav-links a {
        font-size: 0.62rem;
        padding: 6px 10px;
    }

    .background a {
        width: 50%;
        height: 26vw;
    }

    .button-overlay {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .overlay-button {
        font-size: 0.62rem;
        padding: 6px 8px;
    }
}

/* ============================================================
   MÓVIL — Landscape (altura ≤ 500px)
   ============================================================ */

@media screen and (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
    header { padding: 6px 10px; }
    .title { font-size: 1.6rem; }

    .small-button {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    nav { margin-top: 4px; padding: 4px 8px; overflow-x: auto; justify-content: flex-start; }
    .nav-links { flex-wrap: nowrap; gap: 6px; }
    .nav-links a {
        width: auto; height: auto;
        font-size: 0.65rem;
        padding: 6px 10px;
        border-radius: 16px;
    }

    .background { height: 100vh; flex-wrap: nowrap; overflow-x: auto; }
    .background a { width: 20%; height: 100%; flex-shrink: 0; }

    .button-overlay {
        display: flex;
        justify-content: space-around;
        align-items: center;
        top: 60px;
        height: calc(100% - 60px);
    }
    .button-column { width: 18%; gap: 4px; }
    .overlay-button {
        font-size: 0.6rem;
        padding: 5px 8px;
    }
}

/* landscape muy pequeño (≤ 600px ancho) */
@media screen and (max-width: 600px) and (orientation: landscape) and (max-height: 400px) {
    .title { font-size: 1.2rem; }
    .small-button { font-size: 0.6rem; padding: 3px 6px; }
    .nav-links a { font-size: 0.6rem; padding: 5px 8px; }
    .button-column { width: 28%; }
    .overlay-button { font-size: 0.58rem; padding: 4px 6px; }
}

