@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    transition: 1s all;
}

body{
    font-family: 'Poppins', sans-serif;
    background-color:rgb(1, 1, 70);
    
}

h1 {
    padding: 0.5rem;
    color:coral;
    font-size:1.5rem;
    text-align: center;
} 

h2 {
    color:coral;
    font-size: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
}

h3 {
    padding: 1rem;
    color:rgb(255, 248, 220);
    text-align: center;
}

h4 {
    padding: 1rem;
    color:cornsilk;
}

/*nav bar*/
header {
    color: cornsilk;
    width: 100%;
}

header nav{
    width:90%;
    margin: 20px auto;
    max-width: 1000px;
    background-color: #010146;
    justify-content: center;
    display: flex;
}

.menu-bar{
    display: none;
}

header nav ul{
    overflow: hidden;
    list-style: none;
    text-align: center;
    
}

header nav ul li{
    float: left;    
}

header nav ul li a{
    color:cornsilk;
    padding: 20px;
    display: inline-block;
    text-decoration: none;
} 

header nav ul li span{
    margin-right: 10px;
}

header nav ul li a:hover{
    background-color: #1f4da0;
}

.imagen{
    padding: 1rem;
    display:block;
    margin:auto;
    border-radius: 10rem;
    width: 100px;
    box-shadow: 0 0 0 2px coral;
}


.inicio{
    justify-content: center;
    display:flex;
    padding: 1rem;
    width: 100%;
}

.cbc{
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nivel1{
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nivel2{
    width: 25%;
    display: flex; 
    flex-direction:column; 
    align-items: center;
}

.nivel3{
    width: 25%; 
    display: flex;
    flex-direction: column;
    align-items: center;
}


main section article p {
    padding: 1rem;
    color: cornflowerblue;
    font-size: 2rem;
}

main section article ul {
    padding: 2rem;
    color: cornflowerblue;
}

main section aside {
    padding: 1rem;
    color: cornflowerblue;
    font-size: 1.5rem;
}

.portfolio{
    text-align: center;   
}

.jpl:hover{
    background-color: peru;
    padding: 0.3rem;
    border-radius: 0.5rem;
    color: #fff;
    }

a{
    text-decoration:none;
    font-size: 1rem;
    color: cornsilk;
}



/*footer*/
footer p{
    font-size: 0.5rem;
    padding: 1rem;
    background-color: rgb(1, 1, 70);
    color: #ff7f50;
    text-align: center;
}


/*solo cuando es mayor a 768 px*/
@media screen and (max-width:48rem){
    .inicio{
        display: flex;
        flex-direction: column;
    } 
    
    header nav{
        width: 30%;
        height: 100%;
        margin:0;
        position: fixed; 
        left: -100%;
        background: rgba(1, 1, 70, 0.9)
    }
    
    header nav ul li{
        display: block;
        float: none;
        border-bottom: 1px solid rgba(255, 248, 220, .3);
        width:auto;
    }
    
    
    .menu-bar{
        display: block;
        width: 100%;
        background:red;
    }
    
    .menu-bar .btn-menu{
        display: block;
        padding: 20px;
        background-color: #1f4da0;
        color: cornsilk;
        text-decoration: none;
        font-weight: bold;
        font-size: 1rem;
        box-sizing: border-box;
    }
    
    .menu-bar span{
        float: right;
        font-size: 1.5rem;
        color: coral;        
    }
    
    .imagen{
        margin-top:1rem;
    }
    
    
    .cbc{
        width: 100%;
    }
    
    .nivel1{
        width: 100%;
    }
    
    .nivel2{
        width: 100%;
    }
    
    .nivel3{
        width: 100%;
    }
    
    .banner{
        width: auto;
    }  

    }