body {
    background: #1f2833;
    margin: 0;
    height: 100vh;
    line-height: 1.6;
    overflow-y: scroll; 
  font-family: 'Rubik', sans-serif;
}

nav {
    position: fixed;
    z-index: 1000;
    background-color: #1f2833;
    width: 100%;
    border-bottom: solid #66fcf1;
}

nav .menu-2 {
    text-decoration: none;
    color: #5c7288;
    list-style-type: none;
    display: flex;
    margin: 0 auto;
}

nav .menu-2 a {
    float: left;
    color: #c5c6c7;
    text-align: center;
    padding: 14px;
    text-decoration: none;
    font-size: 18px;
}

#home a:hover {
    color: #1f2833;
}

nav .menu-2 a:hover {
   color: #1f2833;
   background-color: #66fcf1;
   transition-duration: .5s;
}

#home h1 {
    margin: 0;
    position: absolute;
    top: 40%;
    left: 50%;
    margin-right: -70%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #66fcf1
}

#home p {
    margin: 0;
    position: absolute;
    top: 47%;
    left: 50%;
    margin-right: -70%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #c5c6c7;
}

#home a {
    margin: 0;
    position: absolute;
    top: 56%;
    left: 50%;
    margin-right: -70%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    background-color: #45a29e;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    padding: 10px;
}

.name {
    color:366fc1;
}

.projects {
    position: relative;
    top: 770px;
}

.projects h1 {
    text-align: center;
    color: #66fcf1;
    font-size: 40px;
}

.projects .container .card {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    margin-top: 20px;
}

.about {
    position: relative;
    text-align: center;
    top: 100px;
}

#about-me {
    font-size: 40px;
    margin-bottom: 20px;
}

.about p {
    text-align: justify;
    padding: 20px;
    color: #c5c6c7;
    text-align: justify;
    font-size: 20px;
}

.about img {
    height: 270px;
    border-radius: 10px;
    float: right;
    margin: 10px 20px 0px 10px;
}

.contact {
    position: relative;
    top: 200px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    position: relative;
    top: 100px;
    color: #c5c6c7;
    padding: 50px;
}

.contact-form button {
    background-color: #c5c6c7;
    width: 25%;
    border-radius: 4px;
}

.area {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
}

#contact-h1 {
    text-align: center;
}

.contact-h3 {
    position: absolute;
    text-align: center;
    top: 70px;
    color: #c5c6c7;
    left: 15%;
    right: 15%;
}

.card img {
    max-height: 170px;
}

@media only screen and (max-width: 376px) {
    nav .menu-2 {
        text-decoration: none;
        color: white;
        list-style-type: none;
        display: flex;
        margin: 0 auto;
    }
    
    nav .menu-2 a {
        float: left;
        color: #c5c6c7;
        text-align: center;
        text-decoration: none;
        font-size: 17px;
        padding: 5px;
        font-size: 18px;
    }

    .projects {
        position: relative;
        top: 820px;
    }

    .contact {
        top: 350px;
        margin-bottom: 200px;
    }
}

@media only screen and (min-width: 425px) {
    .projects {
        top: 1100px;
    }

    .contact {
        margin-top: 500px;
        margin-bottom: 300px;
    }

    .about img {
        height: 400px;
    }

    .about p {
        font-size: 25px;
    }

}

@media only screen and (min-width: 750px) {
    .projects {
        top: 1100px;
    }

    .projects h1 {
        font-size: 50px;
        padding: 20px;
    }
    #home h1 {
        font-size: 50px;
    }

    #home p {
        font-size: 25px;
    }

    #home a {
        font-size: 25px;

    }

    nav .menu-2 li a {
        font-size: 20px;
        margin: 0 10px;
    }

    .about {
        top: 200px;
    }

    .projects .container .card {
        margin-top: 50px;
    }

    #about-me {
        font-size: 50px;
    }

    .about p {
        font-size: 25px;
        padding: 30px;
        line-height: 50px;
    }

    .about img {
        height: 400px;
        padding: 20px;
        border-radius: 30px;
    }

    .contact {
        top: 550px;
        margin-bottom: 300px;
    }

    .contact h1 {
        font-size: 50px;
    }

    .contact h3 {
        top: 130px;
        padding: 20px;
    }
    .card img {
        min-height: 180px;
    }
}