/* ======================================================
   VARIABLES
====================================================== */
:root {

    /* HEADER */
    --header-image: url('http://www.gigaglitters.com/es/creados/tl1nT2z9E4.gif');

    /* COLORES RETRO AZULES */
    --bg-color: #69e7f5;
    --main-bg: #1f4e78;
    --sidebar-bg: #163d5c;
    --box-bg: #10293d;
    --navbar-bg: #5fd3ff;

    /* TEXTO */
    --text-color: #dff9ff;
    --title-color: #8fefff;

    /* LINKS */
    --link-color: #b6f5ff;
    --link-hover: #ffffff;
}


/* ======================================================
   FUENTES
====================================================== */
@font-face {
    font-family: Nunito;
    src: url('https://sadhost.neocities.org/fonts/Nunito-Regular.ttf');
}

@font-face {
    font-family: Nunito;
    src: url('https://sadhost.neocities.org/fonts/Nunito-Bold.ttf');
    font-weight: bold;
}


/* ======================================================
   RESET
====================================================== */
* {
    box-sizing: border-box;
}


/* ======================================================
   BODY
====================================================== */
body {
    margin: 0;
    font-family: 'Nunito', sans-serif;

    color: var(--text-color);

    background-color: var(--bg-color);
    background-image: url('Fondoestrellasazules.gif');

    background-repeat: repeat;
    background-size: auto;
    background-position: top left;
    background-attachment: fixed;
}


/* ======================================================
   CONTENEDOR
====================================================== */
#container {
    max-width: 900px;
    margin: 0 auto;
}


/* ======================================================
   LINKS
====================================================== */
#container a {
    color: var(--link-color);
    font-weight: bold;
    text-decoration: none;
}

#container a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}


/* ======================================================
   HEADER
====================================================== */
#header {
    width: 100%;
    height: 120px;

    background-image: var(--header-image);
    background-size: cover;
    background-position: center;

    border-bottom: 4px solid #8fefff;
}


/* ======================================================
   BANNER
====================================================== */
.banner {
    width: 100%;
    min-height: 250px;

    margin-top: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;

    text-align: center;
    color: white;

    background-size: cover;
    background-position: center;
}

.banner img {
    max-width: 90%;
    height: auto;
}


/* ======================================================
   NAVBAR
====================================================== */
#navbar {
    width: 100%;
    height: 40px;

    background-color: var(--navbar-bg);

    border-bottom: 3px solid #8fefff;
}

#navbar ul {
    display: flex;
    justify-content: space-evenly;

    margin: 0;
    padding: 0;

    list-style-type: none;
}

#navbar li {
    padding-top: 10px;
}

#navbar li a {
    color: #003b57;
    font-weight: 800;
    text-decoration: none;
}

#navbar li a:hover {
    color: white;
}


/* ======================================================
   FLEX LAYOUT
====================================================== */
#flex {
    display: flex;
    gap: 10px;
}


/* ======================================================
   SIDEBARS
====================================================== */
aside {
    width: 200px;
    padding: 20px;

    font-size: smaller;

    background-color: var(--sidebar-bg);

    border: 2px solid #8fefff;
}


/* ======================================================
   MAIN
====================================================== */
main {
    flex: 1;
    order: 2;

    padding: 20px;

    background-color: var(--main-bg);

    border: 2px solid #8fefff;
}


/* ======================================================
   ORDEN SIDEBARS
====================================================== */
#leftSidebar {
    order: 1;
}

#rightSidebar {
    order: 3;
}


/* ======================================================
   FOOTER
====================================================== */
footer {
    width: 100%;
    height: 40px;

    padding: 10px;

    text-align: center;

    background-color: var(--box-bg);

    border-top: 3px solid #8fefff;
}


/* ======================================================
   TITULOS
====================================================== */
h1,
h2,
h3 {
    color: var(--title-color);
    text-shadow: 0px 0px 8px #6fefff;
}

h1 {
    font-size: 25px;
}


/* ======================================================
   TEXTO IMPORTANTE
====================================================== */
strong {
    color: #8fefff;
}


/* ======================================================
   CAJAS
====================================================== */
.box {
    padding: 10px;

    background-color: var(--box-bg);

    border: 2px solid #8fefff;
    border-radius: 10px;

    box-shadow: 0 0 10px rgba(143, 239, 255, 0.5);
}


/* ======================================================
   TOPBAR
====================================================== */
#topBar {
    width: 100%;
    height: 30px;

    padding: 10px;

    font-size: smaller;

    background-color: var(--box-bg);

    border-bottom: 2px solid #8fefff;
}


/* ======================================================
   RESPONSIVE
====================================================== */
@media only screen and (max-width: 800px) {

    #flex {
        flex-wrap: wrap;
    }

    aside {
        width: 100%;
    }

    main {
        order: 1;
    }

    #leftSidebar {
        order: 2;
    }

    #rightSidebar {
        order: 3;
    }

    #navbar ul {
        flex-wrap: wrap;
    }
}