body {
    font-family: 'Raleway', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    margin: 0;
    padding: 0;
}

h1, h2 {
    font-family: 'Lato', sans-serif;
    width: auto;
}

h1 {
    font-size: 3.8em;
    margin: 0;
}

h2 {
    color: white;
}

ul {
    padding: 0;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
}

/* -- Navbar -- */
#navbar {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 10vh;
    width: 100%;
    background-color: #F1FAEE;
}

#navbar ul {
    display: flex;
    margin-right: 2em;
}


@media (max-width: 455px) {
    #navbar ul {
        margin-right: 0;
    }
}


#navbar a {
    color: black;
    font-size: 1.2em;
    padding: 0 0.6em;
}

#navbar a:hover, #contact a:hover {
    font-weight: 700;
}

/* -- 01-Welcome -- */
#welcome-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    margin-top: 2em;
    background-color: #A8DADC;
}

span {
    border-bottom: 2px solid white;
}

#welcome-section p {
   font-style: italic;
   font-size: 1.6em;
   color: #296466;
}

/* -- 02-Projects -- */
#projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    padding: 8em 2em;
    box-sizing: border-box;
    background-color: #157A6E;
}

#projects h2 {
    font-size: 3em;
    border-bottom: 2px solid white;
    width: 14em;
    margin: 0 auto 0.9em;
    padding-bottom: 0.2em;
}

@media (max-width: 755px) {
    #projects h2 {
        width: auto;
    }
}

#projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 4rem;
    padding: 2em 4em;
}

@media (max-width: 560px) {
    #projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-tile {
    box-shadow: 2px 2px 8px rgb(76, 76, 76);
    background-color: #0F574F;
    transition: box-shadow 0.3s;
}

.project-tile:hover {
    box-shadow: 0 0 11px rgba(250, 250, 250, 0.4);
}

#projects img {
    width: 100%;
}

#projects p {
    font-size: 1.2em;
    color: white;
}

/* -- 03-Contact -- */
#contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 90vh;
    width: 100%;
    background-color: #1D3557;
}

#contact h2 {
    font-family: 'Lato', sans-serif;
    font-size: 3.8em;
}

#contact ul {
    display: flex;
}

@media (max-width: 515px) {
    #contact ul {
        flex-direction: column;
        justify-content: space-between;
        height: 18vh;
    }
}

#contact a {
    color: white;
    font-size: 1.6em;
    padding: 1em;
}