@charset "utf-8";




body {
    font-family: montserrat,sans-serif; 
    background-color: rgb(255, 249, 241);
}


main img{
    margin-left: 3em;
    margin-top: 5em;
    width: 15em;
    height: 15em;
}

main {
    display: flex;
    flex-direction: row;
    padding-left: 25px; 
    font-size: 15px;
}

main ul li {
    color:rgb(255, 249, 241);
    font-family: montserrat;
    justify-content: center;
    text-align:left;
    padding-top: 1em;
    
}



.melipal{
    margin-top: 1em;
    margin-right: 1em;
    margin-left: 1em;
}

h1{
 margin-left: 1em;
 text-align: center;
 background-color: rgb(188, 0, 0);
 width: 10em;
 border-radius: 0.5em;
 padding-top: 0.5em;
 padding-bottom: 0.5em;
 font-size: 25px;
 text-decoration: none;
 color: rgb(255, 249, 241);
   
}


#main_content{
display: flex; 
flex-direction: row;
	
}

/**
.contenido {
    margin-top: 0em;
    list-style: none;
    background-color: #ffd085;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
    margin-bottom: 2em;
    height: 10em;
    font-size: 18px;
}
**/


nav img{
    max-width: 65%;
}




nav ul{
    margin-top:0em;
    background-color: #3a3a3a;
    list-style: none;
    padding: 0.5em;
    margin-bottom: 0em;
    display: flex; 
    justify-content: space-around; 
}
    
    

nav ul li a {
    text-decoration: none;
    color: rgb(255, 249, 241);
}

nav ul li a:hover{
    color: rgba(224, 16, 16, 0.97);
    font-weight: 750;
}

.datos {
    width: 20em;
    background-color: rgb(188, 0, 0);
    border-radius: 2em;
    margin-top: 1m;
    margin-right: 1em;
    margin-left: 1em;
    padding-top: 0.5em;
    padding-left: 2em;
    padding-right: 2em;
    height: 14em;
        
}

.materias {
    width: 20em;
    background-color: rgb(188, 0, 0);
    border-radius: 2em;
    margin-top: 2em;
    display:flex;
    flex-direction: column;
    padding-right:10em;
    padding:2em;
    margin-left:5em;
    height: 37em;
    
}

h2{
    
    color:#3a3a3a;
    text-align: center;
    background: center;
    background-color: rgb(255, 249, 241);
    justify-content:center;
    margin-top: 0.5em;
    padding-top:0.2em;
    padding-bottom:0.2em;
    border-radius: 0.5em;
    
}



h4{
    width:20em;
    color:#3a3a3a;
    text-align: center;
    background-color: rgb(255, 249, 241);
    height: 1em;
    padding-top: 0.5em;
    padding-bottom:0.5em;
    border-radius:0.5em;
    margin-top:0;
    margin-bottom: 0.5em;
    
}

p{
    color:rgb(255, 238, 213);
  
}

footer {
    margin-top: 5em;
    margin-bottom: 0em;
    background-color: #3a3a3a;
    padding:1em;
}

footer p1 {
    color: rgb(255, 249, 241);
    font-size: 10px;
    text-align:left;
}

    
	
	
@media screen and (max-width: 600px) {
  	#main_content{
		flex-direction: column;
	
	}


	main {
		flex-direction: column;
	}

	.materias {
		margin-left:1em;
    
	}
}