@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Fredoka+One|Patua+One&display=swap');

/*
Paleta de colores: 
violeta a64074
azul oscuro 235f9e
celeste 6e9ac5
celeste claro c1d9f1
gris cbc9c8
*/



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.contenedor {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    margin: auto;
}


.contenedor img {
    max-width: 100%;
}


.banner {
    position: relative;
    width: 100%;
    max-width: 100%;
}


.navegador {
    display: flex;
}

nav {
    /*position: absolute;
    top: 0%;
    left: 0%;*/
    width: 80%;

    background-color: #235f9e;

}

header nav ul li {
    list-style-type: none;


}

header nav ul {
    display: flex;
    padding: 1rem 1rem 1rem 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;

}

header nav ul li a {
    display: flex;
    padding: 0.8rem;
    /*background: #c1d9f1;*/
    margin: 0rem 1rem 0rem 0rem;
    border-radius: 1.3rem;
    color: #c1d9f1;
    border-color: #235f9e;
    border-style: solid;
    border-width: 0.1rem;
    font-family: 'Montserrat', sans-serif;


}

header nav ul li a:hover {
    border-style: solid;
    border-width: 0.1rem;
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
    cursor: pointer;
    color: #fff;
    border-color: #fff;

}



h1 {
    display: flex;
    color: #c1d9f1;
    font-family: 'Fredoka One', cursive;
    font-weight: normal;

    padding: 0.8rem 0 0 1rem;
    font-size: 3rem;
    width: 20%;
    background-color: #235f9e;


}

h2 {
    font-family: 'Fredoka One', cursive;
    font-weight: normal;
    font-size: 2rem;
    display: flex;
    margin: 1rem 1rem 4rem 1rem;
    justify-content: center;
    color: #235f9e;
}

h3 {

    font-weight: 800;
    display: flex;
    margin: 3rem 0rem 1rem 0rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    justify-content: flex-start;
    color: #c1d9f1;
    background: #235f9e;
    border-radius: 1.3rem;

}

h4 {
    display: flex;
    margin: 1rem 1rem 1rem 1rem;
    justify-content: center;
    color: #6e9ac5;
    font-weight: 800;
}

body {
    background-color: #c1d9f1;
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: #535353;
    font-family: tahoma;

}

/*
.nivel1 ul,
.nivel2 ul {
    padding: 0 1rem 1rem;
}*/

.nivel1 ul li::before {
    margin-left: 1em;
}

.nivel2 ul li::before {
    margin-left: 1em;
}

.nivel1 {
    background-color: white;
    border-radius: 1.3rem;
    margin: 0 1rem 0 0;
    padding: 0 1rem 1rem 0;
    width: 50%;
}

.nivel2 {
    background-color: white;
    border-radius: 1.3rem;
    width: 50%;
    padding: 0 1rem 1rem 0;
}

/* .nivel1 ul {
    padding: 0 0 1rem 0;
}*/


.materias {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    /*justify-content: center;*/
    align-items: stretch;
    align-content: stretch;
}


section article ul li {
    color: #235f9e;
    list-style: none;

}

section article ul li::before {
    content: "\2022";
    color: #235f9e;
    display: inline-block;
    width: 1em;
    margin-left: 2em;
}


.profile {
    /*position: absolute;
    top: 50%;
    left: 39.7%;*/
    border-radius: 7rem;
    border-style: solid;
    border-width: 0.4rem;
    border-color: white;
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: -7.3rem;

}


footer {

    color: #235f9e;
    font-size: 0.8rem;
    text-align: center;
    padding: 3rem 5rem 1rem 5rem;
}

footer p {
    font-weight: 800;
}

/*Responsive*/

@media screen and (max-width:30rem) {

    .banner {
        width: 100%;
    }



    .materias {
        flex-direction: column;
    }

    .nivel1 {
        margin: 0 0 1rem 1rem;
        width: 90%;
    }

    .nivel2 {
        margin: 0 0 1rem 1rem;
        width: 90%;
    }

    h3 {
        margin: 0 1rem 1rem 1rem;
    }

    .profile {
        margin-top: -5rem;

    }

    footer {
        padding: 3rem 1rem 1rem 1rem;
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
        width: 100%;
     justify-content: center;
        padding: 0.5rem 0 0 0rem;
    }

    .navegador {
        display: block;
    }

    nav {
        width: 100%;
    }

    header nav ul {

        justify-content: center;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    header nav ul li a {
        margin: 0 0.2rem 0 0;
        font-size: 1rem;

        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    }

    /* h1 {
        font-size: 0rem;
    }*/

    /*.contenedor img { margin: 4.5rem 0 0 0;
    }*/

    /* h2 {margin: 11rem 1rem 1rem 1rem;}*/
}
