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

/* etiquetas */

body {
	font-family: 'Work Sans', sans-serif;
}

header {
    width: 100%;
	text-align: center;
	padding: 2em;
    background-image: url("../img/patron.jpg");
	background-repeat: repeat;
    background-size: 15rem;
    background-color: #64229d;
}

h1 {
	font-family: 'Poller One', cursive;
	font-size: 3em;
    color: #fff;
}

.menu-ham {
    display: none;
}

nav {
	background: #000;
	display: flex;
	justify-content: center;
}

nav ul{
	margin: 0;
	padding: 0;
}

nav ul li {
	font-size: 1rem;
    display: inline-block;
    text-decoration: none;
    padding: 1rem;
}

nav ul li:hover {
	background: #333;
	transition: background 0.5s; 
}

a {
	color: #ddd;
	text-decoration: none;
}

h2 {
    color: #4f187e;
	font-family: 'Poller One', cursive;
	letter-spacing: 0.2em;
    margin: 1rem;
}

h3 {
    font-size: 1em;
    font-weight: normal;
    color: #aaa;
}

h4 {
    font-size: 1.4rem;
    font-weight: lighter;
    letter-spacing: 0.05em;
    margin: 1.5rem 1.5rem 0 1.5rem;
}

h5 {
    font-size: 1.2rem;
    color: #4f187e;
    margin: 1.5rem;
}

aside div a {
	margin: 0.5rem;
	color: #999;
	display: flex;
	justify-content: flex-start;
}

aside div a:hover{
	color: #000;
	transition: color .8s;
	background-color: #ccc;
	transition: background-color .8s;
}


aside div a img {
	width: 3rem;
    height: 3rem;
	border-radius: 100%;
}

aside div a p {
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	padding: 1rem;
	display: inline;
	border-radius: 100%;
}

hr {
	border-top: 0.08rem solid #ccc;
	box-shadow: none;
	text-decoration: none;
}

footer {
    font-size: 0.7em;
    width: 100%;
	text-align: center;
    padding: 1rem;
    background-color: #000;
}

footer p {
	margin: 1.5rem;
    color: #fff;
}

/* clases */

.contain {
	background: #fff;
	max-width: 80rem;
	margin: auto;
	display: flex;
	justify-content: flex-start;
	flex-flow: row wrap;
}

.caja75{
	width: 75%;
	display: flex;
	justify-content: center;
    flex-flow: column wrap;
}

.caja25{
	width: 25%;
}

.perfil {
	text-align: center;
    padding: 2rem;
}

.materias {
    text-align: center;
}

.niveles {
    display: flex;
    justify-content: space-around;
}

.nivel {
    font-size: 0.8rem;
    background: #dedede;
    width: 33%;
    text-align: center;
    box-shadow: 5px 5px 5px #d6d6d6;
    border-radius: 0.3rem;
    margin: 2rem;
    padding: 1rem;
}

.nivel ul li {
    margin: 0.5rem;
    text-decoration: none;
    list-style-type: none;
}

/* id's */

#gonn {
	width: 15rem;
	border-radius: 100%;
    border: 0.3rem solid #4f187e;
    /*margin: 3rem 3rem 0 3rem;*/
}

#nav-phone {
    display: none;
}


@media only screen and (max-width: 37rem) {
    
    .menu-ham {
        display: block;
        width: 100%;
        background: #000;
        text-align: left;
    }
    
    #boton-ham {
        display: inline-block;
    }
    
    #boton-ham img {
        width: 2.5rem;
        padding: 0.3rem;
    }
    
    #nav-phone{
        display: block;
    }
    
    nav ul li {
        font-size: 1rem;
        display: block;
        text-decoration: none;
        padding: 1rem;
    }
    
    #nav-web {
        display: none;
    }
    
    .contain {
        flex-flow: wrap column;
        max-width: none;
    }
    
    .perfil {
        padding: 0;
        padding-top: 1rem;
    }
    
    .caja75 {
        width:100%;
    }
    
    .caja25 {
        width: 100%;
        display: flex;
        justify-content: space-around;
        flex-flow: wrap row;
    }
    
    .caja25 div a p{
        display: none;
    }
    
    .caja25 hr{
        display: none;
    }
    
    .materias {
        width: 100%;
    }
    
    .nivel {
        margin: 0.5rem 0;
        width: 90%;
        box-shadow: none;
        box-sizing: border-box;
    }
    
    .nivel ul li {
        font-size: 1rem;
    }
    
    .niveles {
        display: flex;
        justify-content: center;
        align-content: center;
        flex-flow: wrap column;
        width: 100%;
        box-sizing: border-box;
    }
    
    h3 {
        margin-bottom: 0.5rem;
    }
    
    h4 {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }
    
    h5 {
        font-size: 1.2rem;
        margin: 1rem;
        margin-bottom: 2rem;
    }
    
    aside div a img {
        width: 4rem;
        height: 4rem;
        border-radius: 100%;
        margin: 1rem;
    }
    
    #gonn{
        width: 10rem;
    }
    
    #marta {
        border: 0.2rem solid #03a2c9;
    }
    
    #juan {
        border: 0.2rem solid #0faa71;
    }
    
    #caro {
        border: 0.2rem solid #f43896;
    }
    
    footer p {
        font-size: 1rem;
    }
}