@import url('https://fonts.googleapis.com/css2?family=Gaegu:wght@300&family=League+Script&family=Roboto:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&family=Mali:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&family=Itim&family=Lato:wght@300&family=Mali:wght@400;700&display=swap');


*{
    margin: 0;
    box-sizing: border-box;
}
html {
    font-size:16px;
  }
p{
    font-family: 'Mali', cursive;
    text-align: left;
    font-size: 1.2rem; 
    line-height: 25px;
}
h1{
    font-family: 'Amatic SC', cursive;
    font-size:  4rem;
    color: #FF97A9;
}
h2{
    margin: 100px 0 40px 0;
    font-size: 3rem;
    color: #FF97A9;
}
h3{
    font-size: 2rem;
}
h4{
    font-size: 1.4rem;
}
span{
    font-weight: bold;
}
#toNav{
    height:60px;
    position:fixed;
    z-index:15;
    width: 30px;
    margin: 0 10px;
    cursor: pointer;
    top: 20px;
    right:3vw;
    transition: 600ms;
    transition-timing-function: cubic-bezier(0.645, 0.045,0.355,1);
}
.line{
    width: 100%;
    background: #FF97A9;
    height: 3px;
    transition: all 0.5s;
    margin: 5px 0;
}

/* NAVBAR */
.overlay{
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 10;
    background-color: #979DBC;
    overflow-y: hidden;
    transition: 0.5s;
    font-family: 'Amatic SC', cursive;
    line-height:15vh;
    font-size:  calc(2.6em + 2.6vw);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center
}
/* MENU */
.menu{
    opacity: 1;
    visibility: visible
}
#navbar > ul{
    list-style: none;
    padding: 0;
}
.menu a {
    position: relative;
    text-decoration: none;
    color: white;
}
/* CUSTOM */
body{
    background-color: #F0F0F0;
    color: #858BA9;
    font-family: 'Amatic SC', cursive;  
}
#intro{
    background-image: url("img/intro_lunarcoiris.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    min-height: 500px;
    padding: 40px 0 40px 0
}
#intro section{
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    text-align: center;
    height:90%;
    width: 80%;
    margin: auto;
    max-width: 1000px; 
}
#star{
    width: 25%;
    min-width: 140px;
}
#lunarcoiris_logo{
    width: 50%;
    z-index: 6;
    margin: 3vh;
    min-width: 250px;
}

.box, .box_legal{
    margin: 0 auto;
    padding-top: 40px;
    width:90%;
    max-width: 1200px;
    text-align: center;
}
.box_legal{
    padding-bottom: 80px;
}
.box >img{
    width: 90%;
    max-width: 600px;
}
.boxProyect{
    padding-top: 40px;
    width:90%;
    margin: 40px auto 100px;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}
.boxProyect >img{
    width: 90%;
    max-width: 600px;
}

.boxProyect >p{
    padding-top: 50px;
}

.boxProyect > p > a{
    text-decoration: none;
}

.box_legal li{
    font-family: 'Mali', cursive;
    font-size: 18px; 
    line-height: 25px;
    text-align: left;
}

.box_legal h3, h4{
    text-align: left;
}

.box_legal > h4{
    font-size: 1.8rem;
}

.box_legal a {
    text-decoration: none;
    color:  #6a7194;
}
.container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(auto, 1fr);
    grid-template-areas: 
        "logo1 logo2"
        "txt1 txt2";
    grid-column-gap: 50px;  
}
.container * img{
    width: 80%;   
}
#madrelunaLogo{
    grid-area: logo1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 40px;
}
#salaarcoirisLogo{
    grid-area: logo2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 40px;
}
#madrelunaProyect{
    grid-area: txt1;
}
#salaarcoirisProyect{
    grid-area: txt2;
}
/* CUSTOM AVATAR Y MAESTRAS */
#avatar{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap:20px
}
#avatar > div{
    height: 300px;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:space-between;
    font-size: 30px;
}
#avatar > div > img{
    width: 80%;
    opacity: 80%;
}
#avatar > div > img:hover{
    opacity: 100%;
}
.img_avatar{
    width: 80%;
    opacity: 80%;
}

.img_avatar:hover{
    opacity: 100%;
 
}
.carnet{
    width: 200px;
    margin: 60px auto 20px;
}
.container *> a{
    text-decoration-line: none;
    color: #858BA9;
    font-family: 'Mali', cursive;
    font-size: 1.2rem;
    padding: 80px 0 0 20px;
    line-height: 20px;
}
.container li{
    font-family: 'Mali', cursive;
    font-size: 18px; 
    line-height: 25px;
}

a:hover{
    color: #FF97A9;
}
.container div{
    text-align: left;
    line-height: 30px;
}
#butterfly1{
    position: relative;
    right: 25%;
    width: 10%;
    opacity: 80%;    
}
#butterfly2{
    position: relative;
    left:10%;
    width: 12%;
    opacity: 80%    
}
#butterfly1:hover, #butterfly2:hover{
    opacity: 100%;
}
#juntos{
    width: 55%;
    margin: 40px;
    opacity: 80%;
}
#juntos:hover{
    opacity: 100%;
}
.link{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.boton{
    background-image: url(img/backBoton.png);
    background-size: 100% 100%;
    color: #ffff;
    font-family: 'Mali', cursive;
    font-size: 1.4rem;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    background-color: transparent !important;
    margin-top: 30px; 
    transition-duration: 0.4s;  
}

.miniboton{
    background-image: url(img/backBoton.png);
    background-size: 100% 100%;
    color: #ffff;
    font-family: 'Mali', cursive;
    font-size: 1rem;
    padding: 10px 10px;
    border: none;
    cursor: pointer;
    background-color: transparent !important;
    transition-duration: 0.4s;  

}
.boton:hover, .miniboton:hover{
    opacity: 60%;
    color: #404458;
}
#trazo{
    width: 60%;
    margin: 80px auto 0;
}
#imagenes{
    margin: 60px 0 100px 0
}
#topfooter{
    background-image: url("img/back_foot.svg");
    background-position: bottom;
    background-repeat: no-repeat;
    width:90%;
    max-width: 1200px;
    margin: 100px auto 0;
    display: flex;
    align-items: flex-end;
    color: rgb(78, 78, 78);
    /* height: 90vh; */
    padding-bottom: 50px;
}
#topfooter > section{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 2fr 1fr;
    grid-template-areas: 
        "map form form"
        "dir txt1 txt2"; 
    gap: 60px;
    font-size: 25px;
}
#topfooter  *>p{
    font-size: 1rem;
    line-height: 16px;
}
#map{
    grid-area: map;
    width: 300px;
    height: 300px;
    margin: auto
}

#formulario{
    grid-area: form;
    font-size: 25px;
}
form{
    font-size: 2rem;
     display: flex;
     flex-direction: column;

}
form input{
    height: 40px;
    margin-bottom: 15px;
    font-size: 1rem;
    padding-left: 10px;
    border: none;
    color: rgb(78, 78, 78);
}
form div{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
textarea{
    height: 120px;
    font-size: 1rem;
    padding: 10px 0 0 10px;
    border: none;
    color: rgb(78, 78, 78);
}
.form_result{
    color: rgb(43, 149, 168);
}
.form_check{
    margin: 10px;
}
#direccion{
    grid-area: dir;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    text-align: right
}
#datosmadreluna{
    grid-area: txt1;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    text-align: right    
}
#datossalaarcoiris{
    grid-area: txt2;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    text-align: right
}
.social{
    font-size: 40px;
    padding-top: 10px
}
.social > a{
    color: #868AA6;
    margin-left: 40px;
}
#bottonfooter{
    height: 50px;
    background-color: #616579;
    color: #F0F0F0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;   
    font-size: 1.2rem;
}
#bottonfooter >a{
    color: #d9c9f7;
}
.mapboxgl-popup {
max-width: 200px;
}
.minilogo{
    position: absolute;
    width: 150px;
    left: 20px;
    top: 20px;
}

#cajacookies {
    display: none;
    background-color: #616579;
    opacity: 95%;
    color: #FF97A9;
    padding: 10px;
    position: fixed;
    bottom: 0px;
    width: 100%;
    z-index: 40;
    justify-content: space-around;
    align-items: center;
}

#cajacookies p{
    font-size: 1rem;
}

#cajacookies a {
    text-decoration: none;
    color:   #ffc3cd;
}

/* custom landing */
#coment>a>img{
    width: 250px;
    margin-top: 40px;
}

#coment{
    background-image: url("img/back_foot.svg");
    background-position: bottom;
    background-repeat: no-repeat;
    width:100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    color: rgb(78, 78, 78);
    height: 100vh;
    min-height: 800px;
}
#coment > section{
    font-size: 25px;
    margin:  20px auto;
    width: 50%;
    max-width: 1200px;

}

#coment footer{
    width: 100%;
}


@media only screen and (max-width: 900px) {
    h1{
        font-size: 2.5rem;
    }
    .container{
        grid-template-columns: 1fr;
        grid-template-rows: repeat(auto, 1fr);
        grid-template-areas: 
            "logo1"
            "txt1"
            "logo2"
            "txt2";
        grid-column-gap: 0px;
        justify-items: center;
    }
    #topfooter > section{
        grid-template-columns: 1fr;
        grid-template-rows:2fr 1fr 1fr 1fr;
        grid-template-areas: 
            "form"
            "txt1"
            "txt2"
            "map"
            "dir";
        gap: 40px;
    }
    #coment> section{
        grid-template-columns: 1fr;
        grid-template-rows:2fr;
        grid-template-areas: 
            "form";
        gap: 40px;
    }
    #topfooter{
        height: auto;
        display: block
    }
    #contacto{
        width: 90%;
        margin: auto;
    }
    #map {
        width: 90%;
        height: 80%
    } 
    .container >div{
        width: 90%;
    }

    #bottonfooter{
        font-size: 1rem;
    }
    #direccion {
       margin: auto;
    }
    #salaarcoirisLogo{
        margin-top: 40px;
    }

    #coment>a>img{
        width: 200px;
        margin-top: 30px;
    }
    #coment > section{
        width: 90%;
    }
}







