@import url('https://fonts.googleapis.com/css2?family=Cormorant&family=Lora&family=Montserrat&family=Oregano&display=swap');

body {
    max-width: 1600px;
    background-color: #2D4B73;
}

h1, h2, h3, h4 {
    font-family: Oregano;
}

p, li {
    font-family: Montserrat;
    font-size: 1em;
}

header {
    background-color: whitesmoke;
    margin-left: 7%;
}

.head {
    display: flex;
    justify-content: center;
    padding-right: 150px;
    color: #2D4B73;
    font-size: 2em;
    font-family: Oregano;
    text-align: center;
}

.sidenav {
    height: 100%;
    width: 6%;
    position: fixed;
    z-index: 1;
    overflow-x: hidden;
}

nav img {
    width: 35px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.dropdown {
    position: relative;
    display: flexbox;
}

button {
    background-color: rgba(0, 0, 0, 0);;
    border: none;
    cursor: pointer;
    color: white;
    width: 100%;
    
}

button:hover {
    background-color: #100D27;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 80px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 8px 2px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #99B4BF}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu1, .menu2, .menu3, .menu4 {
    width: 100%;
    background-color: #2D4B73;
    padding-bottom: 1px;
}

nav {
    font-size: 12px;
    display: block;
    line-height: .8em;
}

nav a {
    text-align: center;
    color: white;
    text-decoration: none;
}

.menu1:hover, .menu2:hover, .menu3:hover, .menu4:hover {
    background-color: #100D27;
}

.logo {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
    width: 80px;
    height: auto;
    margin-top: 35px;
    margin-bottom: 35px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


main {
    margin-left: 7%;
    padding: 10px;
    color: #100D27;
    background-color: white;
}

main h1 {
    font-size: 2.2em;
}

#intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.photo {
    margin: 20px 0;
    text-align: center;
}

.text_intro {
    margin: 0 50px;
    display: flex;
    align-items: center;
    line-height: 1.5em;
    text-align: justify;
}

hr {
    border: 0; 
    height: 12px; 
    box-shadow: inset 0 12px 12px -12px #99B4BF;
}

#quote {
    text-align: center;
    padding: 30px;
    font-size: 1.5em;
    line-height: 1.5em;
}

#education {
    margin: 50px 0;
    background-color: whitesmoke;
    padding-bottom: 50px;
}

#education h1 {
    text-align: center;
    padding: 30px;
}

.education_grid {
    display: grid;
    grid-template-columns: 1fr 30% 1fr 30% 1fr 30% 1fr;
    grid-template-rows: ifr 1fr;
}

.education_grid p:nth-of-type(1) {
    text-align: right;
    font-style: italic;
    font-size: small;
    font-weight: bolder;
}

.education_grid p:nth-of-type(2) {
    text-align: justify;
    margin-bottom: 80px;
}

.education_grid img {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
}

.education_grid h3, h2 {
    text-align: center;
    line-height: 50%;
}

.education_grid h3 {
    line-height: 1em;
}

.bachelor, .master, .byu {
    padding: 15px;
    height: 100%;
    position: relative;
    font-size: .9em;
}
.bachelor_img, .master_img, .byu_img {
    max-width: 100%;
    max-height: auto;
}

.ipn_logo2 {
    grid-column: 2/3;
    grid-row: 1/2;
    z-index: 1;
    width: auto;
    height: 60px;
    margin: 15px 15px;
}

.bachelor_img {
    grid-column: 2/3;
    grid-row: 1/2;
    border-radius: 5%;
}

.bachelor {
    grid-column: 2/3;
    grid-row: 2/3;
}

.ipn_logo1 {
    grid-column: 4/5;
    grid-row: 1/2;
    z-index: 1;
    width: auto;
    height: 60px;
    margin: 15px 15px;
}

.master_img {
    grid-column: 4/5;
    grid-row: 1/2;
    border-radius: 5%;
}

.master {
    grid-column: 4/5;
    grid-row: 2/3;
}

.byu_logo {
    grid-column: 6/7;
    grid-row: 1/2;
    z-index: 1;
    width: auto;
    height: 60px;
    margin: 15px 15px;
}

.byu_img {
    grid-column: 6/7;
    grid-row: 1/2;
    border-radius: 5%;
}

.byu {
    grid-column: 6/7;
    grid-row: 2/3;
}

#experience {
    margin: 50px 0;
    padding-bottom: 30px;
}

#experience h1 {
    text-align: center;
    padding-top: 30px;
}

.experience_grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.experience_grid h3, h2 {
    text-align: center;
    line-height: 50%;
}

.experience_grid h4 {
    text-align: right;
    line-height: 50%;
}

.experience_grid p {
    text-align: justify;
}

.astra, .fca, .smart, .qualitas, .aba {
    background-color: #2d4b73c2;
    color: white;
    padding: 35px;
    box-shadow: 5px 5px 10px #6f7364;
}

.astra_logo {
    grid-column: 2/4;
    grid-row: 3/4;
    z-index: 1;
    width: 50%;
    height: auto;
    margin: 50px 20px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3))
}

.astra_img {
    margin-top: 30px;
    grid-column: 2/6;
    grid-row: 2/5;
    box-shadow: 5px 5px 10px #6f7364;
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 5%;
}

.astra {
    margin-top: 130px;
    grid-row: 23/24;
    grid-column: 5/10;
}

.fca_logo {
    grid-column: 2/4;
    grid-row: 3/4;
    z-index: 1;
    width: 50%;
    height: auto;
    margin: 50px 20px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3))
}

.fca_img {
    margin-top: 30px;
    grid-column: 2/6;
    grid-row: 2/5;
    box-shadow: 5px 5px 10px #6f7364;
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 5%;
}

.fca {
    margin-top: 130px;
    grid-row: 3/4;
    grid-column: 5/10;
}

.smart_logo {
    grid-column: 2/4;
    grid-row: 7/8;
    z-index: 1;
    width: 50%;
    height: auto;
    margin: 120px 0 0 20px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3))
}

.smart_img {
    margin-top: 100px;
    grid-column: 2/6;
    grid-row: 7/10;
    box-shadow: 5px 5px 10px #6f7364;
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 5%;
}

.smart {
    grid-row: 8/9;
    grid-column: 5/10;
}

.qualitas_logo {
    grid-column: 2/4;
    grid-row: 12/13;
    z-index: 1;
    width: 50%;
    height: auto;
    margin: 120px 0 0 20px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3))
}

.qualitas_img {
    margin-top: 100px;
    grid-column: 2/6;
    grid-row: 12/15;
    box-shadow: 5px 5px 10px #6f7364;
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 5%;
}

.qualitas {
    margin-top: 50px;
    grid-row: 13/14;
    grid-column: 5/10;
}   

.aba_logo {
    grid-column: 2/4;
    grid-row: 17/18;
    z-index: 1;
    width: 50%;
    height: auto;
    margin: 120px 0 0 20px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3))
}

.aba_img {
    margin-top: 100px;
    grid-column: 2/6;
    grid-row: 17/20;
    box-shadow: 5px 5px 10px #6f7364;
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 5%;
}

.aba {
    margin-top: 50px;
    grid-row: 18/19;
    grid-column: 5/10;
}

.skills {
    column-count: 2;
    column-gap: 3em;
    column-rule: 2px solid #2D4B73;
    line-height: 3em;
    padding: 50px 10px;
}

footer {
    background-color: #2D4B73;
    padding: 25px 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 1.2em;
    color: azure;
}

footer p a {
    color:#BFAE99;
    text-decoration: none;
}

footer, .social img {
    padding-top: 15px;
}

.social img {
    height: 70px;
    width: auto;
}


#project_img {
    position: relative;
}

.text_project {
    position: absolute;
    top: 30%;
    left: 55%;
    font-size: 3em;
}

#project_img img {
    width: 100%;
    height: auto;
}

#projects {
    margin-bottom: 200px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.img_sv {
    margin-top: 100px;
    grid-column: 2/6;
    grid-row: 2/5;
    box-shadow: 5px 5px 10px #6f7364;
    object-fit: cover;
    width: 100%;
    height: auto;
}

.logo_sv {
    margin: 130px 30px;
    grid-column: 2/3;
    grid-row: 3/4;
    width: 60%;
    height: auto;
    z-index: 2;
    border-radius: 10px;
}

.msg_sv {
    background-color: #2d4b73c2;
    color: white;
    padding: 35px;
    margin-top: 150px;
    box-shadow: 5px 5px 10px #6f7364;
    grid-column: 5/10;
    grid-row: 3/4;
}

.button {
    color: #3b2701d7;
    text-decoration: none;
    font-size: 18px;
    padding: 5px 30px;
    border-radius: 5px solid;
    border: solid #99B4BF;
    background: #99B4BF;
    border-radius: 10px;
    font-weight: bolder;
}

.img_pope {
    margin-top: 150px;
    grid-column: 6/10;
    grid-row: 7/10;
    box-shadow: 5px 5px 10px #6f7364;
    object-fit: cover;
    width: 100%;
    height: auto;
}

.msg_pope {
    background-color: #2d4b73c2;
    color: white;
    padding: 35px;
    margin-top: 200px;
    box-shadow: 5px 5px 10px #6f7364;
    grid-column: 2/7;
    grid-row: 8/9;
}

.img_reduction {
    margin-top: 150px;
    grid-column: 2/6;
    grid-row: 12/15;
    box-shadow: 5px 5px 10px #6f7364;
    object-fit: cover;
    width: 100%;
    height: auto;
}

.msg_reduction {
    background-color: #2d4b73c2;
    color: white;
    padding: 35px;
    margin-top: 200px;
    box-shadow: 5px 5px 10px #6f7364;
    grid-column: 5/10;
    grid-row: 13/14;
}

.img_digital {
    margin-top: 150px;
    grid-column: 6/10;
    grid-row: 17/20;
    box-shadow: 5px 5px 10px #6f7364;
    object-fit: cover;
    width: 100%;
    height: auto;
}

.msg_digital {
    background-color: #2d4b73c2;
    color: white;
    padding: 35px;
    margin-top: 200px;
    box-shadow: 5px 5px 10px #6f7364;
    grid-column: 2/7;
    grid-row: 18/19;
}


#values_img img {
    width: 100%;
    height: auto;
}

#values {
    margin-bottom: 150px;
}

#ethic {
    text-align: center;
    font-size: 4em;
}

.hard_work, .respect, .balance, .training, .humility, .service {
    padding: 45px;
    margin: 100px 30px;
    box-shadow: 5px 5px 10px #6f7364;
    border-radius: 25px;
    border-color: #2D4B73;
    border-style: solid;
    border-width: 5px;
}

.hard_work {
    background-color: #e6f705a4;
}

.hard_work img, .balance img, .humility img {
    float: right;
    margin: 20px 0 20px 15px;
}

.respect img, .training img, .service img {
    float: left;
    margin: 20px 15px 20px 0;
}

.respect {
    background-color: #05dbf77a;
}

.balance {
    background-color: #ff140381;
}

.training {
    background-color: #4a970280;
}

.humility {
    background-color: #6e05f77e;
}

.service {
    background-color: #d106767c;
}

@media screen and (max-width: 900px) {
    .head {
      font-size: 1.5em;
    }

    header {
        margin-left: 0;;
    }

    h2 {
        line-height: 1em;
    }

    .sidenav {
        width: 100%;
        overflow-x: visible;
        position: relative;
        display: block;
        left: 0px;
        padding: 0;
    }

    .sidenav_img img {
        width: 30px;
        padding: 0 20px;
    }
    
    nav {
        font-size: 10px;
        display: flex;
        line-height: 1em;
        justify-content: space-around;
        background-color: #2D4B73;
        padding: 10px 10px 6px 11px;
    }
    
    nav img {
        width: 25px;
        height: auto;
    }

    button p {
        font-size: 10px;
    }

    main {
        margin: 0;
    }

    .text_intro {
        margin: 0 20px 30px 20px;
    }

    #quote {
        padding: 30px 20px;
    }

    #intro, .education_grid, .experience_grid {
        display: block;
        height: auto;
    }

    .bachelor, .master, .byu {
        margin: 0 20px 35px 20px;
        height: 100%;
        border-radius: 5%;
    }

    .fca, .smart, .qualitas, .aba {
        margin: 0 0px 35px 0px;
        height: 100%;
    }

    .skills {
        column-count: 1;
        padding: 15px 10px;
        padding-top: 0;
    }

    .text_project {
        font-size: 1em;
        top: 20%;
        left: 60%;
    }

    #projects {
        display: block;
        height: auto;
        margin-bottom: 50px;
    }

    .msg_sv, .msg_pope, .msg_reduction, .msg_digital {
        margin-top: 0;
    }

    .img_digital, .img_pope, .img_reduction, .img_sv {
        margin-top: 100px;
    }

    .img_sv {
        margin-top: 50px;
    }

    .logo_sv {
        margin: 80px 30px;
        position: absolute;
        width: 15%;
        height: auto;
    }

    .ipn_logo1, .ipn_logo2, .byu_logo {
        margin: 20px 20px;
        position: absolute;
    }

    .fca_img, .smart_img, .qualitas_img, .aba_img {
        margin-top: 50px;
    }

    .fca_logo, .smart_logo, .qualitas_logo, .aba_logo {
        margin: 80px 20px;
        position: absolute;
        width: 25%;
        height: auto;
    }

    #ethic {
        font-size: 2.5em;
    }

    .hard_work img, .respect img, .balance img, .training img, .humility img, .service img {
        width: 30%;
        height: auto;
    } 

    .hard_work, .respect, .balance, .training, .humility, .service {
        margin: 50px 20px;
        padding: 30px;
    }

    footer {
        flex-direction: column;
    }
}