/*reglas generales*/
* {
    margin: 0 auto;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    width: 100%;
}

/*Encabezado*/

header {
    text-align: center;
    background-color: orangered;
    height: 40px;
}

#iconoHeader {
    width: 40px;
    display: inline;
}

header > h1 {
    display: inline;
    font-family: "Play", sans-serif;
}

/*Formulario búsqueda*/
form#peaksSearchEngine {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #ababab;
}

form#peaksSearchEngine > label,
form#peaksSearchEngine > input,
form#peaksSearchEngine > select {
    width: 50%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    background-color: #ababab;
}

form#peaksSearchEngine > button {
    display: block;
    width: 50%;
    height: 30px;
    font-weight: bold;
    font-size: 18px;
    background-color: #000;
    color: #ffa500;
}

/*Main*/
#mainContainer {
    /* min-height: 466px; */
    min-height: calc(100vh - 180px);
    background-color: #ababab;
    
}
/*map*/
#map {
    height: 300px;
    width: 100%;
}

/* LOADING... ANIMATION */
.loader {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 100px;
}

.lodader,
.loader h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    font-weight: 500;
    color: #000;
    font-weight: bold;
    text-shadow: 1px 1px 2px #ffa500;
    z-index: 1;
}

.loader span:nth-child(1) {
    border-radius: 34% 66% 65% 35% / 35% 32% 68% 65%;
    box-shadow: 3px 3px 3px #ffa500;
}

.loader span:nth-child(2) {
    animation-direction: reverse;
    border-radius: 44% 56% 34% 66% / 68% 61% 39% 32%;
    box-shadow: 3px 3px 3px #ffa500;
}

.loader span:nth-child(3) {
    animation-duration: 1s;
    border-radius: 75% 25% 65% 35% / 68% 73% 27% 32%;
    box-shadow: 3px 3px 3px #ffa500;
}

.loader span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #000;
    pointer-events: none;
    animation: animate 0.2s linear infinite;
    background-color: #ffd700;
    opacity: 0.2;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }
    0% {
        transform: rotate(360deg);
    }
}

/*Resultados búsqueda*/
.mountainCard {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #969696;
    border-radius: 20px;
}

main {
    background-color: #ababab;
    margin-bottom: 0;
}

.mountainCardTxt {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 15px;
}

.mountainCardTxt > h3,
.mountainCardTxt > p {
    padding-left: 10px;
}

.mountainCard > img {
    width: 100%;
    border-radius: 0 0 20px 20px;
}

/*Ficha monte*/
.mountainBigCard {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.mountainBigCard > section {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 15px;
}

.mountainBigCard h2,
.mountainBigCard p {
    padding-left: 10px;
}

.mountainBigCard img {
    width: 100%;
}

.mountainBigCard > .favSection,
.mountainBigCard > .mountainHeader {
    width: 50%;
}

.mountainBigCard > .favSection {
    text-align: center;
}

.mountainBigCard > .favSection > img {
    height: 40px;
    width: 40px;
}

/*weather*/
.currentWeather {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.currentWeather > h4 {
    background-color: #ffa500;
    font-size: 16px;
    display: block;
    width: 100%;
}

.currentWeather > p {
    display: block;
    width: 50%;
    background-color: #ababab;
}

.weatherForecast {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.weatherForecast > h4 {
    background-color: #ffa500;
    font-size: 16px;
    display: block;
    width: 100%;
}

.weatherForecast > section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.weatherForecast > section > p {
    display: block;
    width: 50%;
    background-color: #ababab;
}

.weatherForecast > section > p.dayOfWeek {
    background-color: #ffd700;
    width: 100%;
}

.weatherForecast > section > p.weatherCode,
.currentWeather > p.weatherCode {
    font-size: 30px;
    width: 100%;
    display: block;
    text-align: center;
}

/*footer*/
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffa500;
    height: 50px;
}
footer > p {
    display: block;
}

/*
MEDIA QUERIES:
previo: moviles inferior 375px (tamaño M)
1er MQ: móviles superior a 375px
*/
@media only screen and (min-width: 400px) {
}

/*
2º MQ: tablets
*/
@media only screen and (min-width: 768px) {
    /* La gente del monte no usa tablets */
}

/*
3º MQ: desktop
*/
@media only screen and (min-width: 1280px) {
    /* Formularios */
    form#peaksSearchEngine > label,
    form#peaksSearchEngine > input,
    form#peaksSearchEngine > select {
        width: 12%;
    }

    form#peaksSearchEngine > button {
        width: 12%;
    }

    #mainContainer {
        /* min-height: 466px; */
        min-height: calc(100vh - 120px);
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    /*Resultados búsqueda */
    .mountainCard {
        height: 100%;
        width: 20%;
        margin: 15px 2.5% 0 2.5%;
        display: flex;
        flex-direction: column;
    }

    .mountainCard > img {   
        border-radius: 0 0 20px 20px;
    }

    /*Ficha monte*/
    .mountainBigCard {
        margin-top: 25px;
        width: 80%;
        background-color: #969696;
        border-radius: 20px;
    }

    .mountainBigCard>.mountainText {
        width: 50%;
    }

    #map {
        width: 50%;
    }

    .mountainBigCard h2 {
        font-size: 40px;
    }

    .mountainBigCard p {
        font-size: 30px;
    }

    .apartadoFotos {
        display: flex;
        flex: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .imageContainer {
        width: 40%;
        height: 300px;
        border-radius: 20px;
        overflow: hidden;
        position: relative; /* Agregamos una posición relativa para alinear verticalmente la imagen */
        margin: 20px auto;
      }
      
      .imageContainer > img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Hace que la imagen llene el contenedor manteniendo su relación de aspecto */
        object-position: center; /* Centra la imagen tanto vertical como horizontalmente */
      }
      

    .mountainBigCard > .favSection,
    .mountainBigCard > .mountainHeader {
        width: 50%;
    }

    .mountainBigCard > .favSection {
        text-align: center;
    }

    .mountainBigCard > .favSection > img {
        height: 40px;
        width: 40px;
        border-radius: 0;
    }

    /*weather*/
    .currentWeather {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .currentWeather > h4 {
        display: block;
        width: 100%;
    }

    .weatherForecast>section>p, .currentWeather>p {
        font-size: 12px;
        padding: 0;
        border-left: 1px solid #373737;
        text-indent: 5px;
        background-color: #969696;
    }

    .currentWeather > p {
        display: block;
        width: 5%;
    }

    .weatherForecast {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .weatherForecast > h4 {
        display: block;
        width: 100%;
    }

    .weatherForecast > section {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 14%;
    }

    .weatherForecast > section > p {
        display: block;
        width: 50%;
    }

    .weatherForecast > section > p.dayOfWeek {
        width: 100%;
    }
}

/*
PALETA DE COLORES (CHAT GPT):
Negro: #000000
Naranja: #FFA500
Blanco: #FFFFFF
Gris oscuro: #333333
Naranja claro: #FFD700
*/
