* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-width: 1080px;
}

:root {
    --main-white: #f0f0f0;
    --main-red: #be3144;
    --main-blue: #45567d;
    --main-gray: #303841;
}

body {
    font-family: 'Poppins', sans-serif;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    overflow-x: hidden;
}

.nav-link {
    text-decoration: none;
    color: var(--main-white);
    font-size: 23px;
}

.nav-link:hover {
    background-color: var(--main-blue);
}

nav > ul {
    list-style-type: none;
}

.button {
    padding: 22.5px 21px;
}

#welcome-section {
    width: 100%;
    height: 130vh;
    background-color: #000;
    background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);
    color: var(--main-white);
}

#my-intro > span {
    font-weight: lighter;
    font-style: italic;
    color: var(--main-red);
}

#my-intro {
    width: 100%;
    height: auto;
    line-height: 1.7em;
    font-size: 2.3rem;
    display: block;
    position: relative;
    top: 45%;
    left: auto;
    right: auto;
    text-align: center;
}

#navbar {
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: center;
    width: 100%;
    height: 4.5rem;
    background-color: var(--main-red);
    border-bottom: 1px solid black;
    z-index: 2;
    padding: 0 15px;
}

nav > ul {
    display: flex;
    flex-direction: row;
    justify-content: right;
    width: 400px;
}

#projects {
    background-color: var(--main-blue);
    width: 100%;
    max-height: 180vh;
    height: 100%;
    min-height: 80%;
    color: var(--main-white);
    padding: 0 30px 70px 30px;
}

.heading {
    width: 100%;
    text-align: center;
    padding-top: 100px;
    font-size: 30px;
}

.border {
    border-bottom: 2px solid white;
    max-width: 690px;
    margin: 0 auto 0 auto;
    padding-top: 5px;
}

.project {
    width: 350px;
    height: 350px;
}

img {
    width: 100%;
    height: 100%;
    margin-bottom: -5px;
}

@media (max-width: 1125px) {
    img {
        width: 80%;
        height: 80%;
    }

    .name {
        padding: 0.9em 0;
        text-align: center;
        font-size: 0.5rem;
        height: 2em;
        width: 80%;
    }
}

.project-tile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    column-gap: 1em;
    row-gap: 6em;
    width: 100%;
    max-width: 1100px;
    margin: 50px auto 6rem auto;
}

.name {
    background-color: var(--main-gray);
    padding: 0.9em 0;
    text-align: center;
    font-size: 1.3rem;
    height: 3em;
    min-height: 3em;
    max-width: 100%;
    min-width: 70%;
    min-height: 1.6em;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

@media (max-height: 600px) {
    img {
        width: 70%;
        height: 70%;
    }
    .name {
        padding: 0.4em 0;
        text-align: center;
        font-size: 0.8rem;
        height: 1.6em;
        width: 70%;
    }
    .project-tile {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        column-gap: 1em;
        row-gap: 0em;
        width: 100%;
        height: 100%;
        max-width: 1100px;
        margin: 50px auto 7rem auto;
    }
    
}

.for-fit {
    object-fit: cover;
}

.project:hover .code {
    color: #ff7f50;
}

.code {
    color: var(--main-gray);
    transition: color 0.3s ease-out;
}

#contact {
    background-color: var(--main-gray);
    width: 100%;
    height: 91.7vh;
    color: var(--main-white);
}

.third-page-headings {
    width: 100%;
    height: auto;
    line-height: 3.4em;
    text-align: center;
    position: relative;
    top: 35%;
}

.third-page-headings > h1 {
    font-size: 3.7em;
}

.third-page-headings > p {
    font-style: italic;
    font-weight: lighter;
    font-size: 1.2em;
}

#profile-link {
    color: white;
}


footer {
    font-weight: 300;
    display: flex;
    justify-content: space-evenly;
    padding: 2.7rem 0;
    border-top: 4px solid var(--main-red);
    position: relative;
    bottom: -65%;
    width: 100%;
    min-width: 1080px;
    height: 50px;
    font-size: large;
    background-color: var(--main-gray);
}

a {
    text-decoration: none;
    color: var(--main-white);
    text-shadow: 2px 2px 1px #1f1f1f;
}

.fa-free-code-camp::before {
    content: "";
}

.social-links {
    position: relative;
    top: 40%;
    font-size: 1.8em;
    height: 4rem;
    width: 40vw;
    min-width: 900px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

a:hover {
    margin-top: 20px;
    transition: all 0.3s ease-in;
}

a:not(:hover) {
    transition: all 0.3s ease-out;
}