html {
    font-size: 15px;
}

body {
    font-family: "Poppins", "varela round", "helvetica neue", Helvetica, Arial, sans-serif;
    margin: 0 auto;
}

.container {
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem;
}

header,
footer {
    background-color: #2F1000;
}

header div {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

header div p,
nav ul li a,
footer h2,
footer p,
footer .social-media li a {
    color: #fff;
}

header div img {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    background-color: #fff;
    margin-right: 1rem;
}

header nav ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
}

header nav ul li {
    padding: 0.5rem;
}

header nav ul li a {
    text-decoration: none;
}

.container .small-screen-header {
    display: none;
}

.banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    height: 30rem;
    background-image: url(b309126b0c97548b46a5.jpg);
}

.banner p {
    font-size: 1.5rem;
    color: #f72a0f;
    opacity: 0.95;
    font-style: italic;
    width: 75%;
    line-height: 2rem;
    text-align: center;
}

/*paragraphs*/
.subject p,
.contact_form .input-group label:nth-child(odd) {
    font-size: 1.2rem;
}

.study_interests_title,
.about p,
.sample-projects-header p,
.techStack-header p,
.contact-title p {
    display: flex;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem;
    color: #2F1000;
}

.study_interests {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
}

.study_interests .subject img {
    width: 100px;
    height: 100px;
    box-shadow: 0 4px 8px 0 rgba(47, 16, 0, 0.438);
    padding: 2rem;
    border-radius: 15px;
}

.about {
    display: flex;
    justify-content: center;
}

.aboutMe-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42rem;
}

.aboutMe-section .card {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;

    /*box-shadow: 0 4px 8px 0 rgba(47, 16, 0, 0.185);*/
    width: 80rem;
    margin: auto;
    text-align: center;
}

.aboutMe-section .card img {
    width: 25rem;
    height: 25rem;
}

.aboutMe-section .card ul img {
    width: 3rem;
    height: 3rem;
}

.aboutme-section-card-photo {
    text-align: justify;
}

.aboutme-section-card-content {
    text-align: justify;
}

.aboutme-section-card-photo,
.aboutme-section-card-content {
    flex: 1;
    font-size: 1.2rem;
}

.aboutme-section-card-content ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    list-style: none;
}

.aboutme-section-card-content ul li a {
    text-decoration: none;
    padding: 1.5rem;
}

.aboutme-section-card-content .contact-nat {
    text-decoration: none;
    padding: 1.2rem;
    justify-content: center;
    margin-top: 0.5rem;
    display: flex;
}

.aboutme-section-card-content .contact-nat a {
    text-decoration: none;
    padding: 1.2rem 0 1.2rem 0;
    padding-left: 2.7rem;
    padding-right: 2.7rem;
    border-radius: 5px;
    background: #f72a0f;
    color: #fff;
}

.sample-projects-header {
    display: flex;
    justify-content: center;
}

.sample-projects {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    padding: 3rem;
}

.sample-projects .card {
    box-shadow: 0 4px 8px 0 rgba(47, 16, 0, 0.185);
    max-width: 300px;
    margin: 1rem;
    margin-bottom: 3rem;
    text-align: center;
    height: 34rem;
    padding: 2rem;
    border-radius: 15px;
}

.sample-projects .card img {
    height: 18rem;
}

.techStack-header {
    display: flex;
    justify-content: center;
}

.techStack-header,
.stackData,
.stackData .languages,
.stackData .frameworks,
.stackData .databases,
.contact-title,
.contact_form {
    background-color: #f7f7f7;
}


.stackData {
    display: flex;
    align-items: normal;
    justify-content: space-around;
    height: 30rem
}

.stackData .languages {
    background-image: url(4fc368d5ba29ba94d980.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.stackData .frameworks {
    background-image: url(bf0cff8dabe0e91dd0e8.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.stackData .databases {
    background-image: url(abab536761b1343fdf25.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.stackData .languages img,
.stackData .frameworks img,
.stackData .databases img {
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 8px 0 rgba(47, 16, 0, 0.185);
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 5px;
}

.contact-title {
    display: flex;
    justify-content: center;
}

.contact_form {
    display: flex;
    justify-content: center;
}

.contact_form .input-group input:nth-child(-n + 3) {
    width: 41rem;
    padding: 0.8rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
    font-size: 1.2em;
}

.contact_form input[type=file] {
    border: 1px solid black;
}

.contact_form .submit-button input {
    width: 43rem;
    padding: 0.8rem;
    margin: 0.5rem 0.5rem 4rem 0;
    font-size: 1.2em;
}

.contact_form .input-group textarea {
    font-size: 1.2em;
    width: 42.5rem;
    height: 10rem;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
}

footer .social-media {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

footer .social-media li a {
    text-decoration: none;
    padding: 1rem;
}

/* Medium screens */
@media all and (max-width: 800px) {
    header {
        justify-content: center;
    }

    header p {
        display: none;
    }

    header nav ul {
        /* When on medium sized screens, we center it by evenly distributing empty space around items */
        justify-content: space-around;
    }

    .study_interests {
        flex-direction: column;
    }

    .sample-projects-header p {
        margin-top: 8rem;
    }

    .sample-projects .card {
        box-shadow: 0 4px 8px 0 rgba(47, 16, 0, 0.185);
        max-width: 300px;
        margin: auto;
        margin-bottom: 3rem;
        text-align: center;
        height: 34rem;
        padding: 2rem;
    }

    .techStack-header {
        margin-bottom: 3rem;
        background-color: #fff;
    }

    .stackData {
        flex-direction: column;
        margin-bottom: 5rem;
        background-color: #fff;
    }

    .stackData .languages img,
    .stackData .frameworks img,
    .stackData .databases img {
        width: 50px;
        height: 50px;
    }

    footer {
        flex-direction: column;
    }

    footer .social-media {
        flex-direction: column;
    }

}

/* Small screens */
@media all and (max-width: 500px) {

    header nav ul {
        /* On small screens, we are no longer using row direction but column */
        flex-direction: column;
        display: none;
        position: relative;
    }

    header {
        padding: 0;
        background-color: #2F1000;
    }

    .banner {
        text-align: center;
        height: 43rem;
    }

    .banner p {
        font-size: 1.5rem;
        color: #f72a0f;
        opacity: 0.97;
        font-style: italic;
        width: 75%;
        line-height: 1.8rem;
        text-align: center;
    }

    .aboutMe-section {
        height: 84rem;
    }

    .aboutMe-section .card {
        width: 22rem;
    }

    .aboutMe-section .card img {
        width: 22rem;
        height: 22rem;
    }

    .study_interests_title,
    .about p,
    .techStack-header p,
    .contact-title p {
        display: flex;
        justify-content: center;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 1.5rem;
        color: #2F1000;
    }

    .sample-projects-header p {
        margin-top: 8rem;
    }

    .container .small-screen-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-left: 0.6rem;
        padding-right: 0.2rem;
    }

    .study_interests {
        flex-direction: column;
    }

    .sample-projects {
        flex-direction: column;
    }

    .sample-projects .card {
        box-shadow: 0 4px 8px 0 rgba(47, 16, 0, 0.185);
        max-width: 300px;
        margin: auto;
        margin-bottom: 3rem;
        text-align: center;
        height: 38.5rem;
        padding: 2rem;
    }

    .stackData {
        padding: 2rem;
        height: 10rem;
    }

    .stackData .languages,
    .stackData .frameworks,
    .stackData .databases {
        background-image: none
    }

    .contact_form .input-group input:nth-child(-n + 3) {
        width: 20rem;
        padding: 0.8rem;
        margin: 0.5rem 0.5rem 0.5rem 0;
        font-size: 1.2em;
    }

    .contact_form .submit-button input {
        width: 21.7rem;
        padding: 0.8rem;
        margin: 0.5rem 0.5rem 0.5rem 0;
        font-size: 1.2em;
    }

    .contact_form .input-group textarea {
        width: 21.5rem;
        height: 10rem;
    }
}
