/* Paleta de colores.
   Se declaran como variables dentro de esta sección (:root)
   precedidas por dos guiones. Para llamarlas se usa
   var(--nombrevariable). */

:root {
    --col1b: #1F020E;
    --col2b: #471025;
    --col3b: #6E1F3D;
    --col4b: #962D54;
    --col1r:#38042E;
    --col2r:#681A3A;
    --col3r:#993047;
    --col4r:#C94653;
    --test: #FF00FF;
}

/* Fuentes */

  /* math */
  @font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/opensans/v40/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWxU6FxZCJgvAQ.woff2) format('woff2');
    unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0330, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2034-2037, U+2057, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2102, U+210A-210E, U+2110-2112, U+2115, U+2119-211D, U+2124, U+2128, U+212C-212D, U+212F-2131, U+2133-2138, U+213C-2140, U+2145-2149, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B6, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
  }
  /* symbols */
  @font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/opensans/v40/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqW106FxZCJgvAQ.woff2) format('woff2');
    unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8B1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA88, U+1FA90-1FABD, U+1FABF-1FAC5, U+1FACE-1FADB, U+1FAE0-1FAE8, U+1FAF0-1FAF8, U+1FB00-1FBFF;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/opensans/v40/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWt06FxZCJgvAQ.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/opensans/v40/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWuU6FxZCJgg.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* math */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/opensans/v40/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTVOmu0SC55K5gw.woff2) format('woff2');
    unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0330, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2034-2037, U+2057, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2102, U+210A-210E, U+2110-2112, U+2115, U+2119-211D, U+2124, U+2128, U+212C-212D, U+212F-2131, U+2133-2138, U+213C-2140, U+2145-2149, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B6, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
  }
  /* symbols */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/opensans/v40/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTUGmu0SC55K5gw.woff2) format('woff2');
    unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8B1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA88, U+1FA90-1FABD, U+1FABF-1FAC5, U+1FACE-1FADB, U+1FAE0-1FAE8, U+1FAF0-1FAF8, U+1FB00-1FBFF;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/opensans/v40/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu0SC55K5gw.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-stretch: 100%;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/opensans/v40/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-mu0SC55I.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngMUXZYTXPIvIBgJJSb6ufD5qWr4xCCQ_k.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/robotoslab/v34/BngMUXZYTXPIvIBgJJSb6ufN5qWr4xCC.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }


/* -------------------------------------------------------------------- */
/* ---------- CONGIGURACIÓN GLOBAL DE ELEMENTOS INDIVIDUALES ---------- */
/* -------------------------------------------------------------------- */


/* Desactivar formato por defecto de los enlaces (quitar subrayado y color azul) */

a {
    text-decoration: none;
    color: #FFFFFF;
}

/* Imágenes generales */

img.main {
    width: 85%;
    max-width: 600px;
}

/* Párrafos */

p {
    line-height: 1.6;
    margin-bottom: 1.5em;
}

/* Títulos principales */

h1 {
    width: 80%;
    font-size: 24px;
    font-family: 'Roboto Slab';
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-image: linear-gradient(to right, var(--col3b), var(--col3b), rgba(0,0,0,0));
    border-left: 5px solid var(--col4b);
    padding: 0.3em;
    margin-top: 1.5em;
    margin-bottom: 1.2em;
    clear: both;
}

/* Títulos secundarios */

h2 {
    width: 80%;
    font-size: 24px;
    font-family: 'Roboto Slab';
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-image: linear-gradient(to right, var(--col1b), var(--col1b), rgba(0,0,0,0));
    border-left: 5px solid var(--col4b);
    padding: 0.3em;
    margin-top: 1.5em;
    margin-bottom: 1.2em;
    clear: both;
}

/* Títulos aún más secundarios (que se llaman cuaternarios? ah yeah) */

h4 {
    width: 70%;
    font-size: 22px;
    margin-top: 1em;
    margin-bottom: 1em;
    padding-bottom: 0.2em;
    padding-left: 0.2em;
    border-bottom: 2px solid var(--col4b);
    border-left: 2px solid var(--col4b);
}


/* ----------------------------------------------- */
/* ---------- CONFIGURACIONES DE LAYOUT ---------- */
/* ----------------------------------------------- */


/* Configuración global (tooooodo el HTML) 
   Incluye fuente por defecto y fondo de mosaico */

html {
    font-family: 'Open Sans', sans-serif;
    color: #FFFFFF;
    background-image: url(images/main/bg.png);
    background-repeat: repeat;
}

/* Configuración del cuerpo. Hace que toda la página se rija por flexbox.
   Ancho máximo de la página: 1680px (algo menos que una pantalla FullHD
   1080p y exactamente igual a algunos monitores antiguos: 1680x1050) */

body {
    display: flex;
    flex-direction: column;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0;
}

/* configuración de la cabecera y barra de navegación (header y navbar).
   Consta del contenedor <header> en modo flex que contiene la imagen y la
   lista con los elementos de la barra <navbar>. */

header {
    display: flex;
    justify-content: space-between;
    background-image: url(images/main/bannerbg.png);
    background-size: cover;
    background-position: center;
    height: 100px;
    padding-left: 15px;
    padding-right: 25px;
    margin: 0;
    align-items: center;
}

header img {
    display: flex;
    height: 100px;
}

navbar {
    display: flex;
}

navbar div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    padding: 1em;
    margin-left: 1em;
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,0);
    background-color: rgba(0,0,0,0.4);
    animation-name: navhoverret;
    animation-duration: 0.3s;
}

navbar div i, navbar div img {
    width: 30px;
    height: auto;
}

navbar div a {
    color: #FFFFFF;
    font-weight: 500;
    font-size: 20px;
    margin-left: 0em;
}

navbar div:hover {
    border: 2px solid #FFFFFF;
    animation-name: navhover;
    animation-duration: 0.3s;
    transform: rotate(5deg);
}

@keyframes navhover {
    from {border: 2px solid rgba(0,0,0,0); transform: rotate(0deg);}
    to {border: 2px solid #FFFFFF; transform: rotate(5deg);}
}

@keyframes navhoverret {
    from {border: 2px solid #FFFFFF; transform: rotate(5deg);}
    to {border: 2px solid rgba(0,0,0,0);}
}

/* Estilo de la sección principal <main> (justo debajo de la cabecera) */

main {
    display: flex;
    flex-direction: column;
    width: 60%;
    box-sizing: border-box;
    background-color: var(--col1b);
    color: white;
    height: auto;
    padding: 1em;
    padding-left: 3em;
    padding-right: 3em;
    float: left;
}

/* En la página principal, no mostrar barra lateral */

main.index {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
}

/* Estilo de la sección lateral <sidebar> (En todas las páginas menos index */

sidebar {
    width: 40%;
    box-sizing: border-box;
    height: auto;
    background-color: var(--col2b);
    padding: 1em;
    padding-left: 3em;
    padding-right: 3em;
    float: right;
}

/* La animación esa to guaparda del principio de la página
   Pues básicamente elegir cuál mostrar según si es móvil o no
   Por cierto, el formato de animación es APNG (PNG animado)
   Es una de las opciones de exportación de After Effects.
   Muy recomendado para web en lugar del anticuado GIF */

.title_desktop, .title_mobile {
    display: none;
}

@media only screen and (max-width: 799px) {
    .title_mobile { display: inline }
}

@media only screen and (min-width: 800px) {
    .title_desktop { display: block }
}


/* Nueva página principal, otra vez, wiiii!! 
   Consiste en un grid CSS de 3x3 con seis elementos.
   fíjate en este esquema cutre:
   
       1     2     3      Mucho mejor, eh? :)
    ╔═══════════╤═════╗
    ║           │  4  ║
    ║     1     ├─────╢
    ║           │  5  ║
    ╟─────┬─────┼─────╣
    ║  2  │  3  │  6  ║
    ╚═════╧═════╧═════╝
    ╔════════╦════════╗   * 7 y 8 son del
    ║   7    ║    8   ║   elemento "below"
    ╚════════╩════════╝   */

.herocontainer {
    margin: 0 auto;
    display: grid;
    max-width: 1280px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    aspect-ratio: 3/2;
}

.herocontainer > * {
    border: 2px solid var(--col4b);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.herocontainer > *::before {
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 100%;
    background-color: rgba(228, 67, 161, 0.295);
    transition: height 0.3s ease-out;
}

.herocontainer > *:hover {
    border: 2px solid white;
    transition: 0.3s ease-in-out;
}

.herocontainer > *:hover::before {
    height: 100%;
}

.herocontainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elem1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.elem2 {
    grid-column: 1;
    grid-row: 3;
}

.elem3 {
    grid-column: 2;
    grid-row: 3;
}

.elem4 {
    grid-column: 3;
    grid-row: 1;
}

.elem5 {
    grid-column: 3;
    grid-row: 2;
}

.elem6 {
    grid-column: 3;
    grid-row: 3;
}

/* Dos botones de la parte inferior: Música y Cinefórum.
   (Corresponden a los botones 7 y 8 del esquema superior)
   Consisten en un flexbox (below) con los elementos: left y right */

.below {
    display: flex;
    flex-direction: row;
    margin: 30px auto;
    max-width: 1280px;
    gap: 30px;
}

.below > .left, .below > .right {
    display: flex;
    flex: 1;
    box-sizing: border-box;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--col4b);
    border-radius: 10px;
}

.below img {
    width: 100%;
}

/* Estilo de la sección secundaria en la página principal */

secondary {
    display: flex;
    background-color: var(--col2b);
    color: white;
    height: auto;
}

leftcont, rightcont {
    flex: 1;
    box-sizing: content-box;
    padding: 1em;
    padding-left: 3em;
    padding-right: 3em;
}

/* Pie de página */

footer {
    width: 100%;
    box-sizing: border-box;
    background-color: #000000;
    text-align: center;
    padding: 0.5em;
    float: left;
}

/* Iconitos del footer. Usa la biblioteca de FontAwesome */

a.icon {
    font-size: 2.5em;
    color: #A0A0A0;
    margin-right: 0.2em;
}

a.icon:hover {
    color: var(--col4);
}

/* Línea horizontal (para delimitar secciones de una página */

line {
    border-top: 3px solid #FFFFFF;
    margin-top: 2em;
    margin-bottom: 2em;
}

/* Botón grande y ancho */

button {
    display: block;
    text-decoration: none;
    width: 80%;
    font-size: 20px;
    color: #FFFFFF;
    background-image: linear-gradient(to bottom, var(--col4b), var(--col4b), var(--col2b));
    padding: 0.7em;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-right: 1.5em;
    border: 2px solid var(--col4b);
    border-radius: 0.5em;
}

button:hover {
    border: 3px solid #FFFFFF;
}

/* Botón general.
   Incluye animación y es de un tono rosado */

a.btn {
    display: inline-block;
    text-decoration: none;
    font-size: 20px;
    background-image: linear-gradient(to bottom, var(--col3b), var(--col3b), var(--col2b));
    padding: 0.5em;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-right: 1.5em;
    border: 2px solid var(--col4b);
    border-radius: 0.5em;
    animation-name: btnbighoverret;
    animation-duration: 0.3s;
}

a.btn:hover {
    border: 2px solid #FFFFFF;
    margin-left: 15px;
    animation-name: btnbighover;
    animation-duration: 0.3s;
}

@keyframes btnbighover {
    from {border: 2px solid var(--col4b); margin-left: 0px;}
    to {border: 2px solid #FFFFFF; margin-left: 15px;}
}

@keyframes btnbighoverret {
    from {border: 2px solid #FFFFFF; margin-left: 15px;}
    to {border: 2px solid var(--col4b); margin-left: 0px;}
}

/* Tarjetas de información para cinefórum
   Imagen vertical a la izquierda, bullet points a la derecha */

div.movie {
    margin-bottom: 1em;
    margin-right: 1em;
    padding: 10px;
    border: 2px solid #FFFFFF;
    background-image: linear-gradient(to right, var(--col2b), var(--col3b));
    float: left;
    width: 96%;
    max-width: 860px;
}

div.movie img {
    margin-right: 30px;
    float: left;
    height: 300px;
}

@media only screen and (max-width: 799px) {
    div.movie img {
        float: none;
    }
}

/* Tarjetas de información (para ponentes, por ejemplo)
   Consta de un DIV denominado "card" que contiene una imagen
   ("img"), título ("h3") y descripción ("p"). Usa un container flexbox
   para la imagen y título */

div.card {
    margin-bottom: 1em;
    margin-right: 1em;
    padding-right: 1em;
    border: 2px solid #FFFFFF;
    background-image: linear-gradient(to right, var(--col2b), var(--col3b));
    float: left;
    width: 96%;
    max-width: 860px;
}

div.imgcont {
    display: flex;
    height: 100px;
    margin: 1em;
    align-items: center;
}

div.imgcont img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    float: left;
    margin-right: 20px;
}

div.imgcont h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0.6em;
    margin-bottom: 10em;
    vertical-align: middle;
    margin-bottom: 0.4em;
}

div.card p {
    vertical-align: middle;
    margin: 1em;
}

/* Clicables de artículos en las secciones de noticias y eventos */

a.article, a.event {
    position: relative;
    margin-bottom: 1.5em;
    margin-right: 1.5em;
    padding: 1em;
    border: 2px solid #FFFFFF;
    background-image: linear-gradient(to right, var(--col3r), var(--col4r));
    overflow: hidden;
    float: left;
    width: 90%;
    max-width: 960px;
}

div.subart {
    display: flex;
    align-items: center;
    margin: 0px;
    padding-right: 15px;
    background-image: linear-gradient(to right, var(--col2r), var(--col3r));
    overflow: hidden;
}

a.article div.subart img {
    width: 140px;
    height: 140px;
    float: left;
    margin-right: 15px;
}

a.event div.subart img {
    width: 100px;
    height: 140px;
    float: left;
    margin-right: 15px;
}



li {
    padding-bottom: 0.3em;
}

/* Desplegables de torneos */
/* Meter 33 torneos de golpe haría que la página quedase larguísima */
/* (gracias Xabi) así que los torneos de cada día, en su propio dropdown. */

drop1, drop2, drop3 {
    display: none;

}

img.torneos {
    width: 100%;
    max-width: 900px;
}

/* Autores de los artículos de prensa */

h2.author {
    font-size: 16px;
    font-family: 'Roboto Slab', sans-serif;
    border: none;
    border-left: 3px solid #C0C0C0;
    padding-left: 0.5em;
    font-style: italic;
    color: #C0C0C0;
}

/* Vídeo de YouTube */
iframe.yt {
    width: 70%;
    aspect-ratio: 16/9;
    padding: 0.7em;
    background-image: linear-gradient(var(--col2b), var(--col3b));
}

/* Texto justificado en la sección de artículos */
p.just {
    text-align: justify;
    margin-bottom: 1.5em;
}

/* Imágenes alineadas horizontalmente */
div.halign {
    text-align: center;
}

/* -------------------------------------------------------------------------- */

/* Método responsivo para dispositivos móviles.
Cada sección pasa a tener una anchura de 100% */

@media only screen and (max-width: 799px) {

    maincontainer {
        display: block;
    }

    secondary {
        flex-direction: column-reverse;
    }

    leftcont {
        padding: 1em;
        padding-left: 1.8em;
        padding-right: 1.8em;
    }
    
    rightcont {
        padding: 1em;
        padding-left: 1.8em;
        padding-right: 1.8em;
    }
    
    /* Imágenes ponentes */
    
    div.card {
        width: 95%;
    }

    div.imgcont {
        height: 120px;
    }

    div.imgcont img {
        width: 120px;
        height: 120px;
    }
    
    div.imgcont h3 {
        font-size: 22px;
    }
    
    /* Las imágenes se muestran al 100% del ancho de página */
    
    img.main {
        width: 100%;
        max-width: none;
    }
    
    /* los botones tienen un ancho de 90% en vez de 70% */
    /* y además, son un poco más gruesos para que sean fáciles de tocar */
    
    a.btn {
        width: 90%;
        padding-bottom: 1em;
        padding-top: 1em;
        margin-bottom: 1em;
    }
    
    li.nav {
        float: none;
    }

    main {
        width: 100%;
        padding: 1em;
        padding-left: 1.8em;
        padding-right: 1.8em;
    }
    
    sidebar {
        width: 100%;
        padding: 1em;
        padding-left: 1.8em;
        padding-right: 1.8em;
    }
    
    /* Banners y textos de juegos de torneos */

    img.torneos {
        width: 100%;
    }

    /* Artículos */

    div.subart h3 {
        font-size: 20px;
        vertical-align: middle;
        max-height: 100px;
    }

    /* Vídeos de YouTube */

    iframe.yt {
        width: 90%;
        aspect-ratio: 16/9;
    }

    /* Cambios en la nueva página principal */

    herocontainer {
        display: flex;
        align-items: center;
        flex-direction: column;
        margin-top: 2em;
    }
    
    centerelem {
        display: none;
    }

    subelem {
        border-bottom: 2px solid var(--col4b);
        margin-bottom: 2em;
    }

    /* Cambios en el header/navbar */

    header {
        display: flex;
        height: auto;
        flex-direction: column;
        padding-top: 10px;
        padding-bottom: 10px;
        background-image: url(images/main/bannerbg_mobile.png);
        background-position: center;
        background-repeat: no-repeat;
    }

    header img {
        height: 150px;
    }

    navbar {
        flex-direction: column;
        width: 250px;
    }

    navbar div {
        background-color: rgba(0,0,0,0.5);
        margin-bottom: 0.7em;
    }

}