<link href="https://fonts.googleapis.com/css?family=Montserrat:400,600" rel="stylesheet">

/* general */

*{
    margin: 0;
    padding: 0;

    
}

html{
    font-size: 100%;
}

body{
    font-size: 1rem;
    background: #dfe5df;
    display: inline-block;
    /*display: block;*/


}




a{
    text-decoration: none;
}

ul li{
    list-style: none;
}

/* cabecera */

nav{
    width: 100%;
    /*padding: 1rem;*/
}

.menu{
    position: absolute;
    position: fixed;
    top: 0;

    
}

.menu ul{
    display: flex;
    justify-content: space-around;
    align-content: space-between;
    
}

.menu ul li{
    width: 25%;
}

header{
    padding: 0;
}

header a{
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 00;
}

nav ul{
    /*margin: 0;*/
    /*padding-right: 27rem; */
    /*padding-left: 25rem;*/
    border-bottom:2px solid rgb (0,0,0,0);
    margin: 0 auto;
    width: 32em;
    padding: 0px;
    
}

nav ul li{
    text-align: center;
    background: rgba(0, 0, 0, 0);
    list-style:none;
    border-bottom: 2px solid #d4d1d1

}

nav ul li a{
    color: #fff;
    display: block;
    padding: 0.4rem;
    font-size: 1rem;
    background: #687b6a;
    border-bottom: 2px solid rgba(0, 0, 0, 0);
}

nav ul li a:hover{
    color: #687b6a;
    border-bottom: 2px solid #d4d1d1;
}

nav ul li:hover{
    text-align: center;
    color: #fff;
}
    
    
/* main */

main{
    width: 100%;
    display: table;
}

.titulo{
    font-size: 2rem;
    padding: 0.5rem;
    color: #526d58;
    background: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5rem;
}

.subtitulo{
    padding-bottom: 0.1rem;
    padding-top: 0.7rem;
    border-bottom: 2px solid #ffffff; margin-right: 25rem; margin-left: 25rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #47643e;
}


.texto{
    font-family: 'Montserrat', sans-serif;
    font-size: rem;
    color: #000000;
   }
    

/* LOS NIVELES */


.subtitulo1{
    padding-bottom: 0.1rem;
    padding-top: 0.7rem;
    border-bottom: 2px solid #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #47643e;
    display: block;
    
}

.catedra{
    font-family: 'Montserrat', sans-serif;
    font-size: rem;
    color: #000000;
    display: flex;
    /*justify-content: space-around;*/
    width: 100%;
    color: #526d58;
    font-weight: 300;
    font-size: 0.8rem;
    
    

        
}

.Titulito{
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #000000;
    
    

        
}

.columnas {
    width: 30%;
    position: relative;
    top: 0rem;
    margin: 0 auto;
    float: left




}


.section-materias{
    margin: 0 auto;
    width: 80%;
    display: flex;
}













/* footer */

footer{
    padding: 0.2rem; 
    font-size: 0.8rem;
    color: #5d5d5d;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    background: #ccc;
    margin-top: rem;
   
    
    

    
}

/*MEDIA QUERY MOBILE*/
@media only screen and (max-width: 600px) {
    body {
        display: inline-block;
    }

    img{
    	width: 100%;
    }

    nav ul{
    	width: 100%;
    }

    nav ul li a{
	    /*padding: 2rem;*/
		/*font-size: 2rem;*/
    }

    header{
    	margin-bottom: 2rem;
    }

    .titulo-principal{
	    text-align: center;
    }

    .subtitulo{
    	padding: 0px;
    	margin: 0px; 
    }

    .section-materias{
    	display: block;
    }

    .columnas{
    	width: 100%;
    }
}



/* GRUPO */



.fixed{
    position: fixed;
    left: -4.1rem;
    top: 20%;
    border-top: 5px solid #687b6a;
    border-bottom: 5px solid #687b6a;
    border-right: 5px solid #687b6a;
    transition: all 0.3s linear;

}

.fixed:hover{
    position: fixed;
    left: 0;
    top: 20%;
    transition: all 0.3s linear;
}

.fixed a{
    color: white;
    font-family: 'Roboto', sans-serif;
}

.fixed a:hover{
    color: black;
    font-family: 'Roboto', sans-serif;
}

.fixed div{
    background: #8e9d90;
    padding: 1rem;
    padding-right: 1.5rem;
    border-top: 2px solid black;

}

.fixed div:hover{
    background: #687b6a;
    padding: 1rem;
    padding-right: 1.5rem;
    border-top: 2px solid black;  
}

.fixed p{
    font-family: 'Roboto', sans-serif;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.color{
    background: rgba(0, 0, 0, 0.67);
}