*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

body>header {
    width: 100%;
    height: 4.0rem;
    background-color: rgb(31, 31, 31);
    position: fixed;
    color: #fff;
}

.header-container {
    width: 60rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.header-container>div {
    height: 4rem;
    line-height: 4rem;
}

main {
    padding-top: 4rem;
}

.project-page {
    background-color: #bababa;
    height: fit-content;
    width: 60rem;
    margin: 2rem auto;
    padding: 1rem;
}

.project-page>div {
    margin-top: 2rem;
}

.projects-title {
    text-align: left;
    background-color: #e01515;
    width: fit-content;
    padding: 1.5rem;
    margin-left: 2rem;
}

.home-page {
    background-color: #a2a2a2;
    height: fit-content;
    width: 60rem;
    margin: 0 auto;
    padding: 2rem;
}

.contact-me,
.about-me {
    margin-top: 2rem;
}

.hero-section {
    height: 405px;
    background-image: url(../assets/images/hero-img.png);
    background-position: center;
    background-repeat: no-repeat;
}

.contact-me,
.about-me {
    height: 30rem;
}

.project-container {
    display: flex;
    justify-content: space-evenly;
}

.project-card {
    background-color: #fff;
    padding: 1rem;
    height: 16rem;
    margin-top: 2rem;
    width: 30%;
}

.hideAll {
    display: none;
}

.pointer {
    cursor: pointer;
}

.hero-section>h1 {
    color: #000;
}

h1 {
    color: #fff;
}

.click-home>img {
    margin-top: 1rem;
}

.header-nav>span {
    margin-left: 2rem;
}

.description-one {
    width: 100%;
    height: 20rem;
    background-color: #000;
    color: #fff;
}

.challenge {
    background-color: #959595;
    width: 100%;
    height: 20rem;
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.challenge-img {
    width: 10rem;
    height: 5rem;
    background-color: #000;
}

.result {
    background-color: #959595;
    width: 100%;
    height: 20rem;
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.result-img {
    width: 30rem;
    height: 15rem;
    background-color: #000;
}

footer {
    width: 100%;
    color: #fff;
    margin-bottom: 0;
    text-align: center;
    padding: 1rem;
    background-color: #000;
}

.form-container{
    display: flex;
    flex-direction: row;
}


@media print, screen and (max-width: 40em) {

    .header-container, main, .project-page, .home-page, .result-img{
        width: 100%;
    }

    .header-container,
    main {
        flex-direction: column;
        text-align: center;
    }

    body>header {
        height: fit-content;
    }

    .project-page {
        margin-top: 5rem;
    }

    .project-container {
        justify-content: center;
        flex-direction: column;
    }

    .project-card {
        background-color: #fff;
        height: 16.0rem;
        margin-top: 2.0rem;
        width: 90%;
    }

}