* {
    max-width: 100vw;
    box-sizing: border-box;
}
html, body {
    overflow-y: scroll;
    scrollbar-width: none;
  }
  

body{
    font-family: 'Manrope',sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    height: 100%;
    background-image: url("bg.webp");
    background-position: center;
    background-size:repeat;
    overflow-x: hidden;
}





h1 {font-weight: 800;}

h2 {font-weight: 600;}

h3 {font-weight: 500;}

section {
    width: 100%;
    min-height: 100vh; /* En lugar de height: 100vh, usa min-height */
    display: flex;
    flex-direction: column; /* Asegura que el contenido crezca hacia abajo */
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    position: relative; /* Evita superposiciones extrañas */
     /* Agrega espacio entre secciones */
}

/* Ajustes en los contenedores problemáticos */
#secondText, #thirdText, #fourthText {
    width: 80%; /* Opcional, ajusta el ancho */
    max-width: 1200px; /* Para que no sean demasiado anchos en pantallas grandes */
    text-align: center;
    margin: 50px auto; /* Espaciado entre secciones */
}

/* Si necesitas que #secondText esté alineado a la izquierda */
#secondText {
    text-align: left;
    margin-left: 5%;
    right: auto; /* Elimina right: 30% que causaba desplazamiento raro */
    
}

#thirdText {
    min-height: 100vh; /* Ajusta la altura */
    position: static;
    
}

#fourthText {
    padding-top: 10%;
    margin-bottom: 10%;
    margin-left: 15%;
    min-height: 50vh;
    font-weight: 800;
    align-items: start;
    width: 100%;
    
    
}

#fourthText h1{
    font-size: 100px; /* Ajusta el tamaño en base al ancho de la pantalla */
    width: 100%; /* Hace que cada línea de texto ocupe el 60% del contenedor */
    max-width: 1200px; /* Evita que sea demasiado ancho en pantallas grandes */
    line-height: 0.9; /* Ajusta el espaciado entre líneas */
    align-items: left;
    white-space: nowrap;
    margin: 0%;
     font-size: clamp(24px, 8vw, 80px);
}


#locations{color:#E44530;}



#mainLogo{
    position: absolute;
    bottom: 20%;
    right: 20%;
    margin-bottom: 20px;
}



#planetEarth{
    font-weight: 800;
    text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.8);
}

.quote {
    position: absolute;
    left:35%;  
    font-size: 80px;
    font-weight: 800;
    line-height: 0.9;
    text-align: left;
    font-size: clamp(24px, 8vw, 80px);
    
}

.quote span {
    display: block; /* Mantiene los saltos de línea */
}

#cityName {
    display: inline-block; /* Permite aplicar un ID sin provocar salto de línea */
}
#fifthText {
    max-width: 70%; /* Reduce el tamaño del contenedor al 80% del ancho de la pantalla */
    margin: 0 auto; /* Lo mantiene centrado horizontalmente */
    padding: 10px; /* Añade un poco de espacio interno */
    display: flex; /* Asegura alineación flexible si hay más elementos */
    justify-content: center; /* Centra la imagen dentro del contenedor */
}

#fotos{ width: 100%;
    filter: grayscale(100%);
    object-fit: cover;
        height: 300px;
        flex-shrink: 0;
    height: auto;
display: block;}

#mail{
    color: inherit;
    text-decoration: none;
}

footer{
    background-image: url("bg.webp");
    background-position: center;
    background-size:cover;
    right:10%;
    font-size: 20px;
    padding-right: 5%;
    padding-bottom: 2%;
    text-align: right;
    color:#D9D9D7;
}

@media (max-width: 1024px) {
   

    #mainLogo {
        width: 35%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    #fourthText h1 {
        font-size: 50px;
        left: 15%;
        
    }
}



@media (max-width: 820px) {
   

    #mainLogo {
        width: 35%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    #fourthText h1 {
        font-size: 50px;
        left: 15%;
        
    }
}


@media (max-width: 768px) {
   

    #mainLogo {
        width: 35%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    #fourthText h1 {
        font-size: 50px;
        left: 20%;
        
    }
}

@media (max-width: 430px) {
   

    #mainLogo {
        width: 35%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    #fourthText h1 {
        font-size: 20px;
        left: 20%;
        
    }
}



