:root {
    --header-image: url('../assets/images/SealHobbies.png');
    --body-bg-image: url('../assets/images/pattern2.png');
    --content: #ffffff;
}

@font-face {
    font-family: 'VCR OSD Mono';
    src: url('../assets/fonts/DotGothic16-Regular.ttf') format('truetype');
}

body {
    font-family: 'VCR OSD Mono', monospace;
    margin: 0;
    background-color: #c7f3e2;
    color: #0b3d60; 
    background-image: var(--body-bg-image), linear-gradient(to bottom, rgba(232, 236, 214, 0.63), #cefbffad);
    background-repeat: repeat, no-repeat;
    background-position: 0 0, center;
    background-size: 0.6vw, cover;
    background-attachment: scroll, fixed;
    animation: pattern-drift 100s linear infinite;
}

@keyframes pattern-drift {
    from {
        background-position: 0 0, center;
    }

    to {
        background-position: 100vw 100vh, center;
    }
}

/* === 2. CURSORES ESTÁNDAR === */

body {
  cursor: url('../assets/images/spheal_01.png'), auto;
}

a:hover, button:hover {
  cursor: url('../assets/images/spheal_02.png'), pointer;
}

a:active, button:active {
  cursor: url('../assets/images/spheal_01.png'), pointer;
}

/* === CONTENEDOR PRINCIPAL DE LA VENTANA === */
.pixel-window {
    background-color: #d7e0e5; /* Gris azulado clarito del borde exterior */
    padding: 3px;
    border: 2px solid;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #9aa4ac;
    border-bottom-color: #9aa4ac;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1); /* Pequeña sombra exterior */
    margin-bottom: 20px; /* Espacio entre ventanas */
    font-family: 'VCR OSD Mono', monospace; /* Usa tu fuente pixelada */
}

/* === BARRA SUPERIOR AZUL === */
.title-bar {
    background-color: #4db3f6; /* El azul pastel vibrante */
    color: white;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #2b7bb5;
    border-bottom-color: #2b7bb5;
    margin-bottom: 4px;
}

.title-text {
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* === BOTONES DE LA BARRA (Minimizar, Maximizar, Cerrar) === */
.title-controls {
    display: flex;
    gap: 2px; /* Separación entre botoncitos */
}

.win-btn {
    background-color: #d7e0e5;
    border: 2px solid;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #9aa4ac;
    border-bottom-color: #9aa4ac;
    color: #555;
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* Efecto al hacer clic en los botoncitos */
.win-btn:active {
    border-top-color: #9aa4ac;
    border-left-color: #9aa4ac;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

/* === ÁREA DEL CONTENIDO (Blanca y hundida) === */
.window-content {
    background-color: #ffffff;
    padding: 10px;
    border: 2px solid;
    /* Los colores invertidos hacen que parezca hundido hacia adentro */
    border-top-color: #9aa4ac;
    border-left-color: #9aa4ac;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    color: #333;
}

button,
input,
select,
textarea {
    font: inherit;
}

.center-image {
    display: block;
    margin: 0 auto;
}

.content-image {
    max-width: 100%;
    height: auto;
}

.severino-figure {
    margin: 0;
    text-align: center;
}

.severino-figure figcaption {
    margin-top: 0.5rem;
    color: #c07535;
    font-size: 0.8rem;
    font-style: italic;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

#container {
    max-width: 950px;
    margin: 0 auto;
    margin-top: 1%;
    margin-bottom: 1%;
    padding: 12px 12px;
    /* background-color: #c2f3fa;
    border: 0.2px solid #789259; */
}

#container a:hover {
    color: #00bfff;
}

#aviso-construccion {
    background-color: #f5efb9;
    color: #286400;
    text-align: center;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px dashed #00bcd4;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
}

#header {
    width: 100%;
    background-color: #e0f7fa;
    aspect-ratio: 1597 / 377;
    height: auto;
    margin-bottom: 10px;
    background-image: var(--header-image);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border: 1.5px solid #90ac70;
}

#aviso-construccion,
#navbar,
main,
footer,
.sidebar-section,
.box,
#topBar {
    border: 1.5px solid #90ac70;
}

#navbar {
    height: 40px;
    background-color: #006699;
    width: 100%;
}

#navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
}

#navbar li {
    padding-top: 10px;
}

#navbar li a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

#navbar li a:hover {
    color: #b2ebf2;
    text-decoration: underline;
}

#flex {
    display: flex;
}

aside {
    width: 235px;
    font-size: smaller;
}

main {
    background-color: #f0fffc;
    flex: 1;
    padding: 20px;
    order: 2;
}

#leftSidebar {
    order: 1;
    margin-right: 8px;
}

#rightSidebar {
    order: 3;
    margin-left: 8px;
}

footer {
    background-color: #e9f8e0;
    width: 100%;
    min-height: 2.5vw;
    padding: 0.5vw 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 10px;
    color: #0b3d60;
}

footer p {
    margin: 0;
    font-size: 1.0rem;
}

h1, h2, h3 {
    color: #007399;
    margin-top: 0;
}

h1 {
    font-size: 25px;
}

strong {
    color: #007399;
}

.box {
    background-color: #e6f7ff;
    border: 1px solid #33ccff;
    padding: 10px;
}

.box ul {
    padding-left: 10px;
}

.sidebar-index {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.sidebar-index li {
    margin-bottom: 8px;
}

.sidebar-index a {
    text-decoration: none;
}

.sidebar-index span {
    color: #0b3d60;
}

.sidebar-section {
    
    background-color: #f8fff0;
    padding: 20px;
    padding-bottom: 30px;
    margin-bottom: 8px;
}

.botones-idioma {
    display: flex;
    gap: 0.8vw;
    align-items: center;
    flex-wrap: wrap;
}

.botones-idioma a {
    display: inline-flex;
    text-decoration: none;
}

.botones-idioma img {
    width: 1.2vw;
    height: auto;
    display: block;
    border: 0.0625vw solid #000000;
}

#topBar {
    width: 100%;
    height: 30px;
    padding: 10px;
    font-size: smaller;
    background-color: #cceeff;
    color: #0b3d60;
}

/* === CONTENEDOR DEL FONDO ANIMADO === */
.burbujas-fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* === ESTILO DE LA BURBUJA (IMAGEN PERSONALIZADA) === */
.burbuja-flotante {
    position: absolute;
    bottom: -160px; 
    background-image: url('../assets/images/bubble.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: flotarHaciaArriba linear infinite;
}

/* === TAMAÑOS, POSICIONES Y VELOCIDADES ACTUALIZADOS === */
/* Izquierda (de 5% a 25% de la pantalla) */
.b1 { width: 90px; height: 90px; left: 8%;  animation-duration: 8s; animation-delay: 2s; } /* Rápida */
.b2 { width: 60px; height: 60px; left: 18%; animation-duration: 5s; animation-delay: 0s; } /* Súper rápida */
.b5 { width: 110px; height: 110px; left: 12%; animation-duration: 15s; animation-delay: 7s; } /* Normal */
.b7 { width: 140px; height: 140px; left: 5%;  animation-duration: 20s; animation-delay: 4s; } /* Lenta y gigante */
.b9 { width: 70px; height: 70px; left: 22%; animation-duration: 9s; animation-delay: 9s; } /* Rápida */

/* Derecha (de 75% a 95% de la pantalla) */
.b3 { width: 150px; height: 150px; left: 82%; animation-duration: 18s; animation-delay: 3s; } /* Normal y gigante */
.b4 { width: 50px; height: 50px; left: 92%; animation-duration: 6s; animation-delay: 1s; } /* Súper rápida */
.b6 { width: 100px; height: 100px; left: 88%; animation-duration: 11s; animation-delay: 5s; } /* Media-rápida */
.b8 { width: 85px; height: 85px; left: 78%; animation-duration: 7s; animation-delay: 8s; } /* Rápida */
.b10{ width: 120px; height: 120px; left: 95%; animation-duration: 14s; animation-delay: 11s; } /* Normal */

/* === LA ANIMACIÓN DE SUBIR Y BALANCEARSE === */
@keyframes flotarHaciaArriba {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-50vh) translateX(30px);
    }
    100% {
        transform: translateY(-120vh) translateX(-30px);
        opacity: 0;
    }
}

@media only screen and (max-width: 800px) {
    #container {
        margin-top: 0;
        padding: 0 8px;
    }

    #aviso-construccion {
        font-size: 12px;
        padding: 8px;
    }

    #header {
        margin-bottom: 8px;
    }

    #flex {
        flex-wrap: wrap;
    }

    main,
    aside {
        width: 100%;
        padding: 14px;
    }

    #leftSidebar {
        order: 2;
        margin-right: 0;
    }

    #rightSidebar {
        order: 3;
        margin-left: 0;
    }

    main {
        order: 1;
        margin-bottom: 10px;
    }

    #navbar ul {
        flex-wrap: wrap;
    }

    #navbar li {
        padding-top: 8px;
    }
}