/* === Hoja de Estilo Katsushika Hokusai === */
@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;
}
html {
  scroll-behavior: smooth;
}
h1{
    font-size: 3.75em;
    padding: 0;
    font-family: 'Black Han Sans', sans-serif;
}
h2{
    font-size: 3.5em;
    font-weight: bolder;
    padding: 0.5em 0;
    font-family: 'Black Han Sans', sans-serif;
}
/* == ESTILO DEL WRAPPER == */
.wrapper{
    background-color: rgb(250, 225, 185);
}
/* == ESTILO DE LA CABECERA == */
.cabecera {
    display: flex;
    flex-direction: row;
    justify-content: center;    /*Centrado horizontal*/
    align-items: center;        /*Centrado Vertical*/
    flex-flow: row wrap;        /*Para pantallas más pequeñas dividir por filas*/
    text-align: center;
}
.cab1{
    flex-grow: 1;
    background-image: url("../imagenes/sello100.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    color: rgba(0,255,255,0);
}
.cab2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 5;
    background-image: url("../imagenes/bannerHokusai2.png");
    background-size: cover;
    background-position: top;
    padding: 1em 0;
    color: rgba(38, 0, 255, 0.90);
}
/* === ESTILO "FRANJA" MENU === */
.menusup{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: black;
    color: white;
    text-align: center;
}
.menusup li{
    display: inline-block;
    margin: 0.75em 4em;
    font-size: 1em;
    text-decoration: none;
}
.menusup li:hover{
    font-size: 1em;
    background-color: white;
    color: black;
    border-radius: 0.5em;
    padding: 0;
}
.menusup a{
    color:white;
    text-decoration: none;
}
.menusup a:hover{
    font-size: 1em;
    background-color: white;
    color: black;
    border-radius: 0.5em;
    padding: 0;
}
/* === ESTILO SECCION DE LA BIOGRAFIA === */
.sector1{
    display: flex;
    justify-content: center;
    align-items: normal;
    background-image: url(../imagenes/pergamino2.jpg);
    background-size: cover;
    background-position: top;
    padding: 10px;
}
.sector1 p{
    text-align: justify;
}
/* === ESTILO SECCION GALERIAS === */
.galeria_kh{
    display: flex;
    flex-direction: column;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    background-color: black;
    background-size: cover; 
}
/* == GALERIA SUPERIOR == */
.galeria1{
    display: flex;
    flex-direction: row;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 0;
    padding: 1em; 
    height: 50vh;
    border: 3px solid white;
    border-radius: 25px;
    margin: 10px;
}
.gal11{
    flex-grow: 5;
    color:white;
    padding: 0.5em;
    border: 2px solid white;
    border-radius: 25px;
    width: 42.5%;
    height: 100%;
    background-image: url("../imagenes/fuji/fuji3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.gal11 p{
    float: inline-end;
    background-color: beige;
    border: 2px solid black;
    border-radius: 1em;
    font-size: 2em;
    text-align: center;
    padding: 0 0.2em;
}
.gal11 a{
    color: black;
    text-decoration: none;
    border-radius: 1em;
    text-align: center;
    padding: 0 0.25em;
}
.gal11 a:hover, .gal11 p:hover{
    color: white;
    background-color: black;
    border-color: white;
}
.gal12{
    flex-grow: 1;
    color:white;
    padding: 0.5em;
    border: 2px solid white;
    border-radius: 25px;
    width: 15%;
    height: 100%;
    background-image: url("../imagenes/poetics/ariwara_narihira.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.gal12 p{
    text-align: center;
    background-color: beige;
    border: 2px solid black;
    border-radius: 1em;
    font-size: 2em;
}
.gal12 a{
    color: black;
    text-decoration: none;
}
.gal12 a:hover, .gal12 p:hover{
    color: white;
    background-color: black;
    border-color: white;
}
.gal13{
    flex-grow: 5;
    color:white;
    padding: 0.5em;
    border: 2px solid white;
    border-radius: 25px;
    width: 42.5%;
    height: 100%;
    background-image: url("../imagenes/eros/the_dream_of_the_fishermans_wife.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
}
.gal13 p{
    float: inline-start;
    text-align: center;
    background-color: beige;
    border: 2px solid black;
    border-radius: 0.75em;
    font-size: 1.5em;
    color: black;
    width: 100%;
}
.gal131{
    display: flex;
    align-items: center;
    flex-flow: row;
    justify-content:space-evenly;
    width: 100%;
    height: 100%;
    border-radius: 25px;
}
.boton{
    flex-direction: row;
    align-items:center;
    width: 50%;
    height: 3.5em;
    color: black;
    font-size: 1.5em;
    background-color: rgb(255, 255, 230);
    border: 2px solid rgb(102, 51, 0);
    border-radius: 1.25em;
}
.boton1:hover{
    background-color: rgb(76, 175, 80);
    border: 2px solid white;
    color: white;
}
.boton1 a{
    text-decoration: none;
    color: black;
}
.boton1 a:hover{
    color: white;
}
.boton2:hover{
    background-color: rgb(255, 0, 0);
    border: 2px solid white;
    color: white;
}
/* == GALERIA INFERIOR == */
.galeria2{
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0;
    padding: 1em;
    overflow: hidden;
    /*border: 2px solid white;*/
}
/* == ESTILO DEL FORMULARIO == */
.formulario {
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    padding: 20px;
}
h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2em;
    text-align: center;
}
form {
    max-width: 500px;
    margin: 0 auto;
}
label {
    display: block;
    margin-top: 10px;
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-top: 5px;
}
textarea {
    resize: vertical;
    height: 100px;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

/* === 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:rgba(255,229,182,1);
    flex-grow: 1;
    padding: 0.5em 0;
}

.pieizq{
    background-color: rgba(255,229,182,1);
}

.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(0, 0, 0);
}
.pieizq a:hover{
    font-size: 1em;
    background-color: rgb(20, 25, 100);
    color: rgb(255, 255, 255);
    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:rgba(255,229,182,1);
}
address p{
    text-align: center;
    font-size: 150%;
    color: rgb(0, 0, 0);
    font-weight: bold;
}
address p:last-child{
    color: rgb(20, 40, 200);
    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: rgba(255,229,182,1);
}
.pieder{
    border-bottom-right-radius: 20px;
    padding: 0.25em 1.5em;
}
.pieder iframe{
    border-radius: 15px;  
}
/* == 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){
    h1{
        font-size: 3.75em;
    }
    .cabecera{
        flex-direction: column;
    }
    .galeria_kh{
        flex-direction: column;  
    }
    .galeria1{
        flex-direction: column;
        height: 300vh;
        flex-flow: column;
    }
    .gal11{
        width: 100%;
    }
    .gal12{
        width: 50%;
    }
    .gal13{
        width: 100%;
    }
    .formulario{
        padding: 10px;
        margin-top: -5%;
    }
    .footer{
        flex-direction: column;
    }
    address{
        border-top: 2px solid white;
        border-bottom: 2px solid white;;
    }
}
@media screen and (max-width:550px){
    h1{
        font-size: 2.5em;
    }
    .gal12{
        width: 100%;
    }
    .galeria2{
        align-items: end;
    }
    .boton{
        height: 6em;
    }
    .boton a{
        font-size: 1em;
    }
    .formulario{
        padding: 5px;
        margin-top: -30%;
    }
    form {
        max-width: 400px;
    }
}

@media  screen and (max-width: 400px){
    .formulario{
        padding: 2.5px;
        margin-top: -65%;
    }
}

/* === FIN DE LA HOJA DE ESTILO DE LA PAGINA ACERCA DE LA OBRA DE KATSUSHIKA HOKUSAI === */