* {
    margin: 0;
    padding: 0;
}
/* general settings */
body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: var(--primary-color);
}

:root {
    --primary-color: #577399;
    --secondary-color: #495867;
    --tertiary-color: #F7F7FF;
    --quartiary-color: #BDD5EA;
}

/* Begin styling header */
header {
    padding: 20px 35px;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: var(--tertiary-color);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.75);
}

header a {
    text-decoration: none;
    color: var(--tertiary-color);
}

header a:hover {
    color: var(--tertiary-color);
}

.navbar ul {
    display: flex;
    margin: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    line-height: 1.3;
}

.navbar a {
    background-color: var(--primary-color);
    padding: 10px;
    margin: 5px;
    transition: all 1s ease-in-out;
}

.navbar a:hover,
a:focus {
    color: var(--tertiary-color);
    background-color: var(--quartiary-color);
    }

.navbar ul:hover {
    flex-grow: 4.3;
    transform: bottom, 4s;
}

footer {
    background: var(--secondary-color);
    padding: 40px, 45px;
    width: 100%;
    line-height: 1.3;
    text-align: left;
}

footer h2 {
    display: flex;
    justify-content: space-between;
    font-size: 28px;
    margin: 0;
    flex-wrap: wrap;
    color: var(--tertiary-color);
    padding: 10px, 5px;
}
footer h3 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 20px;
    margin: 0;
    padding: 10px, 0;
    color: var(--tertiary-color);
}
/* end header styles */

/* begin hero style */

.hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--quartiary-color);
}

/* body styles */
.flex-row {
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

section h2 {
    font-size: 30px;
    font-style: normal;
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* end body styles */

/* begin about me section */

.about-me {
    display: flex;
    background: var(--tertiary-color);
}

.about-me p {
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    font-size: 18px;
    line-height: 1.5;
    align-items: left;
}

/* end about me */
/* begin works section style */

.work {
    width: 100%;
    margin: 0, auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: var(--quartiary-color);
}
.work-card {
    margin: 20px;
    flex: 0;
    background: var(--secondary-color);
    color: var(--tertiary-color);
    align-items: center;
    width: 30%;
    font-weight: lighter;
}

.run-buddy {
    flex: 1;
    width: 45%;
    background: var(--secondary-color);
    color: var(--tertiary-color);
    font-weight: lighter;
    margin: 20px;
    align-items: center;
}

.run-buddy h3 {
    text-align: center;
    font-size: 20px;
    padding: 15px;
    line-height: 1.5;
}

.work-card h3{
    text-align: center;
    font-size: 20px;
    padding: 15px;
    line-height: 1.5;
}

.run-buddy img {
    width: 100%;
}

.work-card img {
    width: 100%;
    height: auto;
}

.work-card:hover {
    transition-property: all, 4s, ease-out;
}

/* end works section style */

/* begin contact section */

.contact {
    display: flex;
    background: var(--tertiary-color);
}

.contact ul {
    list-style: none;
}

.contact ul li a {
    text-decoration: none;
    color: var(--secondary-color);
}

.contact ul li a:hover {
    color: var(--quartiary-color);
}

/* end contact section */
/* begin resume section */

.resume {
    background: var(--quartiary-color);
    display: flex;
}

.resume h2 {
    margin-bottom: 20px;
}

.resume a {
    text-decoration: none;
    color: var(--tertiary-color);
    background: var(--primary-color);
    padding: 15px;
    font-size: 20px;
    margin-top: 20px;
    transition: all 2s ease-out;
}

.resume a:hover {
    color: var(--primary-color);
    background: var(--tertiary-color);
}

/* end resume section */
/* Media Queries section begin */
@media screen and (max-width: 980px){
    header {
        /* this will be applied on any screen smaller than 980px */
        padding-bottom: 0;
        justify-content: center;
        position: relative;
    }
    header h1 {
        width: 100%;
        text-align: center;
    }
    header nav ul {
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }
    header nav ul li a {
        font-size: 20px;
    }
    footer h2 {
        text-align: center;
        width: 100%;
    }
    section h3 {
        width: 80%;
    }
    .works {
        flex: 0 70%;
    }
    
}

@media screen and (max-width: 575px){
    header {
        /* this will be applied on any screen smaller than 980px */
        padding-bottom: 0;
        justify-content: center;
        position: relative;
    }
    header h1 {
        width: 100%;
        text-align: center;
    }
    header nav ul {
        margin-top: 15px;
        width: 50%;
        justify-content: space-between;
    }
    header nav ul li a {
        font-size: 15px;
        flex: 0 50%;
        margin-top: 15px;
    }
    .works {
        flex: 0 60%;
    }
    
}