/* Hoja de Estilo Filmografía David Lynch */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}
h1{
    font-size: 5em;
    /*text-shadow: 0px 0px 5px rgb(255, 255, 0);*/
}
h2{
    font-size: 5em;
    /*font-weight: bolder;
    padding: 0.5em 0;*/
    /*font-family: 'Black Han Sans', sans-serif;*/
    /*text-shadow: 0px 0px 5px rgb(255, 255, 0);*/
}
.wrapper{
    background-color: rgb(205, 255, 235);

    display: flex;
    /*justify-content: center;*/    /*Centrado horizontal*/
    justify-content: center;
    align-items: center;        /*Centrado Vertical*/
    flex-flow: row wrap;        /*Si la anchura es menor, los elementos pasan de fila a columna*/
}
.cabecera {
    width: 100%;
    display: flex;
    justify-content: center;    /*Centrado horizontal*/
    align-items: center;        /*Centrado Vertical*/
    flex-flow: row wrap;        /*Si la anchura es menor, los elementos pasan de fila a columna*/
    /*column-gap: 0.5%; */
    /*padding: 5px 2px; */
    border: 2px solid navy;
    /*border-radius: 5px;*/
    text-align: center;
    /*height: 10em;*/
}
.cab1{
    /*display: flex;
    justify-content: center;
    align-items: center;*/
    flex-grow: 1;
    background-image: url("../imagenes/fractal.jpg");
    background-size: cover;
    background-position: center;
    /*border: 2px solid rgb(205,0,0);*/
    /*border-radius: 5px;*/
    padding: 0.5em 0;
    text-align: center;
    color: rgba(0,255,255,0.5);
    height:auto;
}
.cab2{
    /*display: flex;
    justify-content: center;
    align-items: center;*/
    flex-grow: 5;
    background-image: url("../imagenes/fractal.jpg");
    background-size: cover;
    background-position: center;
   /*border: 2px solid rgb(205,0,0);*/
    /*border-radius: 5px;*/
    padding: 0.5em 0;
    text-align: center;
    color: rgba(0,255,255,0.5);
    height:auto;
}
/*  "JUST IN CASE" EL LOGOTIPO DE LA IZQUIERDA ES DIFERENTE DEL DE LA DERECHA...
.cab3{
    flex-grow: 1;
    background-image: url("../imagenes/fractal.jpg");
    background-size: cover;
    background-position: center;
    padding: 0.5em 0;
    text-align: center;
    color: rgba(0,255,255,0.5);
    height: 10em;
}*/
/* === INICIO ESTILO "FRANJA" MENU === */
.menusup{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: rgb(0, 51, 124);
    border: 2px solid rgb(0, 51, 124);
    color: rgb(3, 201, 136);
    /*border-radius: 5px;*/
    text-align: center;
    /*height: 7.5em;*/
    width: 100%;
}
.menusup li{
    display: inline-block;
    margin: 0.75em 2em;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
}
.menusup li:hover{
    /*font-size: 1.5em;*/
    background-color: rgb(3, 201, 136);
    color: rgb(0, 51, 124);
    border-radius: 1.5em;
    /*padding: 0.25em;*/
}
.menusup a{
    color: rgb(3, 201, 136);
}
.menusup a:hover{
    /*font-size: 1.25em;*/
    background-color: rgb(3, 201, 136);
    color: rgb(0, 51, 124);
    border-radius: 1.5em;
    /*padding: 0.25em;*/
}

/* === INICIO ESTILO SECCION FOTOS DAVID LYNCH Y VIDEO HUMO === */
.fotosdl{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    flex-flow: row;
    width: 100%;
}
.humo{
    /*border: 2px solid red;*/
    border-radius: 1.5em;
    background-color: black;
}

.galeria1, .galeria2{
    display: flex;
    align-items: center;
   /* border: 2px solid lime; */
    border-radius: 1.5em;
    width: 500px;
    height: auto;
}

.galeria1{
    margin:0 0;
    overflow: hidden;
    }
    .slider1{
    position: relative;
    width: 500%;
    margin: 0;
    left: 0;
    text-align: left;
    font-size: 0;
    animation: galeria_izq 10s infinite;
    animation-play-state: running;
    
    }
    .slider1:hover{
    animation-play-state: paused;
    }
    .slider1 a img{
    width: 20%;             /*20% al haber 5 fotos (100%/5=20%) */
    float: left;
    }
    @keyframes galeria_izq{
     0%   { left: 0%; }           /*empieza en posicion inicial*/
     20%  { left: 0%; }      /*cambio de la primera a la segunda img*/
     25%  { left: -100%; }   /*se queda parado*/
     45%  { left: -100%; }   /*cambio de la segunda a la tercera img*/
     50%  { left: -200%; }   /*se queda parado*/
     70%  { left: -200%; }   
     75%  { left: -300%; }
     95%  { left: -300%; }
     100% { left: -400%; }     /*Vuelve a mostrar la primera img para que no haya un salto repentino a la primera img*/
    }
.galeria2{
        margin:0 0;
        overflow: hidden;
        }
        .slider2{
        position: relative;
        width: 500%;
        margin: 0;
        left: 0;
        text-align: left;
        font-size: 0;
        animation: galeria_der 10s infinite;
        animation-play-state: running;
        animation-direction: reverse;
        }
        .slider2:hover{
        animation-play-state: paused;
        }
        .slider2 a img{
        width: 20%;             /*20% al haber 5 fotos (100%/5=20%) */
        float: left;
        }
        @keyframes galeria_der{
        0%   { left: 0%; }           /*empieza en posicion inicial*/
        20%  { left: 0%; }      /*cambio de la primera a la segunda img*/
        25%  { left: -100%; }   /*se queda parado*/
        45%  { left: -100%; }   /*cambio de la segunda a la tercera img*/
        50%  { left: -200%; }   /*se queda parado*/
        70%  { left: -200%; }   
        75%  { left: -300%; }
        95%  { left: -300%; }
        100% { left: -400%; }     /*Vuelve a mostrar la primera img para que no haya un salto repentino a la primera img*/
        }

/* === ESTILO SECCION DE LA FILMOGRAFIA DE DAVID LYNCH == */
.sector1{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background-color:dodgerblue;*/ /*  rgb(46, 92, 184);  rgb(51, 102, 204); rgb(0, 60, 179); */
    background-image: /* url(../imagenes/blueVelvet3.jpg);*/ url(../imagenes/espiral.jpg);
    background-size: cover;
    background-position: center;
    opacity: 1;
    border: 2px solid rgb(0, 51, 124);
    /*border-radius: 5px;*/
    color: rgb(3, 201, 136);
}
.sector1 img{
    opacity: 1;
}
.sector1 li{
    font-size: 3em;
    margin: 0.5em 0;
    text-decoration: none;
    list-style-type: none;   
}
/*
.sector1 li:first-child, .sector1 li:nth-child(3), .sector1 li:nth-child(5), .sector1 li:nth-child(7), .sector1 li:nth-child(9), .sector1 li:last-child{
    background-color: dodgerblue;
}
.sector1 li:nth-child(2), .sector1 li:nth-child(4), .sector1 li:nth-child(6), .sector1 li:nth-child(8), .sector1 li:nth-child(10){
  background: lightgreen;
}
*/
/*
===== VERSION ANTERIOR EN LA QUE SE HACÍA CLICK SOBRE LA IMAGEN ====
 .sector1 li:first-child a img:hover, .sector1 li:nth-child(2) a img:hover, .sector1 li:nth-child(3) a img:hover, .sector1 li:nth-child(4) a img:hover, .sector1 li:nth-child(5) a img:hover, .sector1 li:nth-child(6) a img:hover, .sector1 li:nth-child(7) a img:hover, .sector1 li:nth-child(8) a img:hover, .sector1 li:nth-child(9) a img:hover, .sector1 li:nth-child(10) a img:hover, .sector1 li:last-child a img:hover{
    width:  5%;
    height: 5%;
 }
*/
.sector1 li a{
    color: rgb(3, 201, 136);
    text-decoration: none;
}
.sector1 li a:hover{
    background-color: rgb(3, 201, 136);
    color: rgb(0, 51, 124);
    border-radius: 1.5em;
}

.film1, .film3, .film5, .film7, .film9, .film11{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: rgba(20, 66, 114, 1);
    /* border: 2px solid rgb(255, 255, 0); */
    /*border-radius: 5px;*/

}
.art11, .art31, .art51, .art71, .art91, .art111{
   /* border: 2px solid red; */
    border-radius: 5px;
    margin-left: 10px;
}
.art12, .art32, .art52, .art72, .art92, .art112{
    /* border: 2px solid lime; */
    border-radius: 5px;
    padding: 0.25em 0.75em;
    text-align: justify;
    color: rgba(3, 201, 136,1);
}
.film2, .film4, .film6, .film8, .film10{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: rgb(32, 82, 149);
    /* border: 2px solid rgb(0, 255, 0); */
    /*border-radius: 5px;*/
}
.art21, .art41, .art61, .art81, .art101{
    /* border: 2px solid rgb(255, 0, 0); */
    border-radius: 5px;
    padding: 0.25em 0.75em;
    text-align: justify;
    color: rgba(0,255,255,1);
}
.art22, .art42, .art62, .art82, .art102{
    /* border: 2px solid rgb(0, 200, 255); */
    border-radius: 5px;
    margin-right: 10px;
}
/* === ESTILO DE LOS ENLACES DE LOS TRAILERES DE LAS PELICULAS (hover) === */
.peli img:hover{
    opacity: 0.25;
}

/* === CONFIGURACIÓN DEL ÁREA DE LAS RRSS === */

.footer{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;   
}
.pieizqbig{
    display:flex;                /*Voy a "incrustar" un div dentro de éste para poder */
    flex-direction: row;         /*centrar, vertical y horizontalmente las RRSS */
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;  
    /*border-bottom-left-radius: 20px;*/
    background-color:rgb(32,82,149);
    flex-grow: 1;
    padding: 0.5em 0;
}

.pieizq{
    background-color: rgb(32, 82, 149);
}

.pieizq ul{
    margin-top: 10%;
    font-size: 1em;
    font-weight: bold;
    list-style-type: none;
  /*  margin-left: 10%; */
}
.pieizq a{
    text-decoration: none;
    color: rgb(3, 201, 136);
}
.pieizq a:hover{
    font-size: 1em;
    background-color: rgb(3, 201, 136);
    color: rgb(0, 51, 124);
    border-radius: 0.5em;
    padding: 0;
}
.pieizq a:visited {
    color: rgb(0, 51, 0);
}
.pieizq img{
    margin-right: 10px;
}

/* === ESTILO DEL ÁREA DE LA  DIRECCIÓN ==== */
address {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(20,66, 114);
}
address p{
    text-align: center;
    font-size: 150%;
    color: rgb(3, 201, 136);
    font-weight: bold;
}
address p:last-child{
    color: yellow;
    font-size: 75%;
    margin-top: 2em;
    font-weight: lighter;
}
/* === ESTILO DEL ÁREA DEL MAPA === */
.pieder{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    background-color: rgb(32,82,149);
}
.pieder{
    border-bottom-right-radius: 20px;
    padding: 0.25em 1.5em;
}
.pieder iframe{
    border-radius: 20px; 
}
iframe {
    border: 1px solid black;
    width: 90%; /* takes precedence over the width set with the HTML width attribute */
}
/* == ESTILO DE LA SUELA == */
.suela{
    height: 10vh;
    background-color: black;
}
/* ESTILO PARA LA FLECHA "Volver al Inicio" FLOTANTE */
#backToTop {
    position: fixed;
    right:25px;
    bottom: 25px;
    display: none; /* Inicialmente oculta */
    width: 50px;
    height: 50px;
    background-color: #000;
    color: #ff0;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000; /* Asegurarse de que esté por encima de otros elementos */
}

#backToTop:hover {
    background-color: #333;
}

#backToTop span {
    font-size: 25px; /* Tamaño de la flecha */
}

/* == MEDIA QUERY ==*/
@media screen and (max-width:900px){ 
    .fotosdl{
        flex-direction: column;
        /*height: auto;*/
    }
    .galeria1 .galeria2 .humo{
        height: auto;
    }
    .footer{
        flex-direction: column;
    }

    address{
        border-top: 2px solid white;
        border-bottom: 2px solid white;;
    }
    .menu_sup{
        height: 100px;
    }
    .menu_sup li {
        font-size: 100%;
        padding: 15px 0;
        padding-left: 30px;
        margin-left: 10px;
        margin-right: 10px;
    }
    h1{
        font-size: 2.5em;
        /*text-shadow: 0px 0px 5px rgb(255, 255, 0);*/
    }
    h2{
        font-size: 2.5em;
        /*font-weight: bolder;*/
        /*padding: 0.5em 0;
        font-family: 'Black Han Sans', sans-serif;*/
        /*text-shadow: 0px 0px 5px rgb(255, 255, 0);*/
    }
    .sector1 li{
        font-size: 1.5em;
        margin: 0.5em 0;
        text-decoration: none;
        list-style-type: none;   
    }
}
/* === FIN DE LA HOJA DE ESTILO DE LA PAGINA ACERCA DE LA FILMOGRAFÍA DE DAVID LYNCH === */