/*Reinicio global: Elimina el padding y margin predeterminados para todos los elementos*/
* {
    padding: 0;
    margin: 0;
}
body {
    font-family: 'Helvetica', sans-serif;
    line-height: 1.5em;
}
h1 {
    color: #11374C;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}

/*Header*/
.Header {
    min-height: 100vh;
    background-color: #186B8D;
    background-image: linear-gradient(rgba(17, 55, 76, 0.6),rgba(17, 55, 76, 0.6)), url('CEI\ final/haku chihiro full.png');
    background-position: left;
    background-size: cover;
}
nav { /*La barra de navegación utiliza flexbox para su diseño, con elementos alineados y justificados.*/
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    z-index: 1;
    width: 100%;
    padding: 20px 50px;
    max-width: 1300px;
    margin: 0 auto;
}
nav img {
    width: 130px;
    max-width: 100%; /*Hacer que la imagen sea responsivo*/
    padding-left: 1.5em;
}
.navbar_menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}
.navbar_item {
    height: 80px;
}
.navbar_links {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}
.navbar_links:hover {
    color: #C8F2B3;
    transition: all 0.3s ease;
}

@media screen and (max-width: 900px) {
    .navbar_container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0px;
        height: 80px;
        z-index: 1;
        width: 100%;
        margin-top: 20px;
    }
    .navbar_menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000%; /*Inicialmente fuera de la pantalla, arriba del navbar*/
        opacity: 1;
        transition: all 0.5s ease;
        height: 50vh;
        z-index: -1;
        background-color: #11374C;
    }
    .navbar_menu.active {
        top: 0px; /*Mostrar el menú bajándolo desde la parte superior*/
        opacity: 0.9;
        height: 45vh;
    }
    .navbar_burger .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background: #fff;
        transition: all 0.3s ease-in-out;
    }
    .navbar_burger .bar {
        display: block;
        cursor: pointer;
    }
   .navbar_item {
        width: 100%;
    }
    nav img {
        max-width: 80%;
    }
    .navbar_links {
        text-align: center;
        padding: 2rem;
        margin-left: auto;
        margin-right: auto;
        display: table;
    }
    .navbar_links:hover {
        color: #C8F2B3;
    }

/*Estilo para el estado activo de las barras del menú móvil(javascript)*/
    #mobile_menu {
        position: absolute;
        right: 5%;
        transform: translate(5%, 20%);
    }
    #mobile_menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    #mobile_menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #mobile_menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/*Header 2*/
.Text-box {
    width: 90%;
    position: absolute;
    color: #0e564a;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.Text-box img {
    width: 90%;
}
.Text-box p {
    max-width: 100vh;
    margin: 40px auto ;
    font-size: 16px;
    color: white;
}
.hero-button {
    display: inline-block;
    text-decoration: none;
    color: #11374C;
    padding: 12px 34px;
    font-size: 13px;
    background-color: #C8F2B3;
    position: relative;
    border-radius: 50px;
}
.hero-button:hover {
    background-color: #11374C;
    transition: 0.9s;
    color: #C8F2B3;
}

@media screen and (max-width: 500px){
    .Text-box h1 {
        font-size: 30px;
    }
    .nav-links ul li {
        display: block;
    }
    .nav-links {
        position: absolute;
        background: white;
        height: 100vh;
        width: 200px;
        top: 0;
        right: 0;
        text-align: left;
        z-index: 2;
    }
}

/*Personajes*/
.chihiro_haku {
    padding-top: 75px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}
.characters {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.characters img {
    margin-top: 3rem;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: -1; /*Establecer un valor de z-index negativo para colocar las imágenes detrás del resto del contenido*/
}
.characters h2{
    position: absolute;
    top: 380px;
    left: 30px;
}
.characters p{
    position: absolute;
    top: 420px;
    left: 30px;
    padding-right: 5rem;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 25px;
}
.chihiro,
.haku {
    position: relative;
    margin: 1rem;
    height: 525px;
    width: 400px;
    border-radius: 4px;
    z-index: 1; /*Establecer un valor de z-index positivo para colocar el contenido delante de las imágenes*/
}
.chihiro:hover,
.haku:hover {
    transform: scale(1.075);
    transition: 0.5s ease-in;
    cursor: pointer;
}

@media screen and (max-width: 900px) {
    .chihiro_haku {
        height: auto;
    }
}

@media screen and (max-width: 400px) and (min-width: 320px){
    .chihiro_haku {
        padding-top: 50px;
    }
    .characters h2 {
        left: 15px;
        top: 135px;
    }
    .characters p {
        left: 15px;
        top: 180px; 
        width: 195px;
    }
    .chihiro,
    .haku {
        height: 300px;
        width: 220px;
    }
}

/*Sinopsis de la película*/
.synopsis {
    margin: 75px auto 5px; 
    padding: 5% 5%;
    min-height: 90vh;
    background-image: linear-gradient(rgba(17, 55, 76, 0.6), rgba(17, 55, 76, 0.6)), url('CEI\ final/Bg.jpg'); /* Apply a background gradient and an image */
    background-position: center;
    background-size: cover; /*Asegurarse de que la imagen de fondo cubra el contenedor*/
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.synopsis h1{
    color: #fff;
}
.row {
    margin-bottom: 20px;
    margin-top: 20px;
}
.row span {
    font-weight: 700;
}
.synopsis p {
    max-width: 80vh; /*Limita el ancho máximo del párrafo*/
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 25px;
    padding-right: 0;
    order: 1; /*Especifica el orden del elemento*/
    color: #fff;
}

@media screen and (max-width: 400px) and (min-width: 320px){
.synopsis{
    display: flex;
    text-align: center;
    align-content: center;
}
}

/*Hayato Miyazaki*/
.hayato {
    padding: 75px 0;
    display: grid;
    align-items: center; /*Centra los elementos verticalmente dentro del contenedor grid*/
    grid-template-columns: 50% 40%; /*Define dos columnas en el grid con anchos especificados*/
}
.hayato img {
    width: 100%;
}
.About h2 {
    color: #11374C;
    font-size: 20px;
    font-style: normal;
    line-height: normal;
    padding-top: 10px;
    padding-bottom: 20px;
}
.About p {
    color: #1E1E1E;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 25px;
}

@media screen and (max-width: 900px) {
    .hayato {
        height: 580px;
        grid-template-columns: 100%; /*Utiliza solo una columna para pantallas más pequeñas*/
        display: block;
        text-align: center;
        align-content: center;
        padding: 50px;
        }
        .hayato img {
            width: 80%;
        }
        .About{
            margin-top: 3em;
        }
}

/*Estilos para la línea horizontal*/
hr {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #02729F;
}

@media screen and (max-width: 900px) {
    hr {
        margin: 45px auto 0;
    }
}

@media screen and (max-width: 370px) {
    hr{
        margin-top: 8em;
    }
}

/*Cita*/
.quote {
    margin: 2em;
    display: block; 
    text-align: center; /*Centra el texto horizontalmente*/
    align-content: center; /*Centra el contenido verticalmente*/
}
.quote p{
    color: #02729F;
    text-align: center;
    font-size:30px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.3em;
    padding-top: 1em;
}
h3{
    padding-top: 1.3em;
    color: #02729F;
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

/*Cita-->*/
.footer {
    padding: 15px  ;
    display: block;
    text-align: center;
    background-color: #02729F;
}
.footer p {
    font-size: 0.70em; 
    font-weight: 300;
    color: #FFF;
    margin-left: 10px;
    margin-right: 10px;
}
.footer img {
    width: 10%;
    margin: 0 10px;
}
@media screen and (max-width: 900px) {
    .footer img {
        width: 15%;
    }
}
@media screen and (min-width: 320px) and (max-width: 500px) {
    .footer img {
        width: 30%;
    }
}

/*Página de error 404*/
.error-404 {
    padding: 50px;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.error-404 img {
    max-width: 10%;
}
.error-404 h1 {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 90px;
    color: #000;
}
.error-404 p {
    padding-top: 5px;
    padding-bottom: 40px;
}
.home {
    text-decoration: none;
    color: #fff;
    padding: 12px 34px;
    font-size: 13px;
    background-color: #000;
    position: relative;
    border-radius: 50px;
    border: none;
    outline: none;
    margin-top: 20px;
}
.home:hover {
    background-color: rgb(188, 166, 210);
    color: #000;
}

@media screen and (max-width: 500px){
    .error-404 img {
        max-width: 15%;
    }
    .error-404 p{
        padding-top: 15px;
        padding-bottom: 40px;
    }
    .error-404 h1{
        font-size: 70px;
    }
    .error-404 h2{
        line-height: 1.5em;
    }
}

@media screen and (max-width: 320px) {
    .error-404 img {
        max-width: 30%;
    }
}
