/* apply styles to all */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Courier New", Courier, monospace;
    color: #fa5306;
    background-color: #f7e6ae;
}

/* header & nav style */
header {
    padding: 10px 20px;
    background-color: #fca607;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

#profile-pic {
    max-width: 6vw;
    height: auto;
    margin: auto 30px;
}

header h1 {
    color: #fa5306;
    font-weight: bold;
    font-size: 45px;
    margin-right: auto;
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

header nav ul li a {
    color: #fa5306;
    font-weight: bold;
    font-size: 20px;
    padding: 2px 30px;
    text-decoration: underline;
}

/* hero style */
.hero {
    background-image: url("../assets/images/mosaic-3394375_1920.jpg");
    background-size: 70%;
    background-position: -70% 54%;
    background-attachment: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero h2 {
    background-color:#fa5306;
    padding: 20px;
    margin: 70px 40px 20px 0px;
    color: #fca607;
    font-size: 20px;
    border-radius: 15px;
}

/* section style */
.div-flex {
    display: flex;
    margin: 5vw;
}

.title-flex {
    width: 10vw;
    text-align: right;
    margin: 3vw;
}

.content-flex {
    width: 90vw;
    justify-content: flex-start;
    font-size: 20px;
    border-left: 3px solid #fa5306;
    padding: 3vw;
}

/* work section general style */
.work-grid-container {
    display: grid;
    width: 100%;
    height: 600px;
    grid-gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.grid-item {
    border: 3px solid #fa5306;
    border-radius: 15px;
    padding: 15px;
    position: relative;
}

.project-name {
    background-color: #fca607;
    padding: 1vw;
    color: #fa5306;
    border-radius: 15px;
    max-width: 175vw;
    position: absolute;
    top: 120px;
}

#project-name-1 {
    position: absolute;
    top: 320px;
}

/* help w/ clickable background image https://stackoverflow.com/questions/30130899/html-css-clickable-background-image */
.project-image {
    background-size: 100% 100%;
    display: block;
    position: relative;
    height: 100%;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    }

/* work section project-specific */
#grid-item-1 {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    background-image: url("../assets/images/run-buddy-screenshot_REV3.jpg");
    background-size: cover;
}

#grid-item-2 {
    grid-column: 3 / span 1;
    grid-row: 1 / span 1;
    background-image: url("../assets/images/vacation-planner.jpg");
    background-size: cover;
}

#grid-item-3 {
    grid-column: 3 / span 1;
    grid-row: 2 / span 1;
    background-image: url("../assets/images/updog.jpg");
    background-size: cover;
}

/* contact section style */
#contact-flex ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#contact-flex ul li a {
    color: #fa5306;
    text-decoration: underline;
    padding: 30px;
}

/* MEDIA QUERY FOR SMALLER DESKTOP SCREENS AND SMALLER */
@media screen and (max-width: 980px) {
    header h1 {
        text-align: center;
    }

    header nav ul {
        justify-content: center;
    }

    .hero h2 {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .content-flex, #contact-flex ul {
        margin-top: 20px;
        width: 100%;
        justify-content: center;
        margin: 10px;
    }

    #contact-flex ul li a {
        padding: 30px;
    }

    .work-grid-container {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }
    
    .project-name {
        background: none;
        color: transparent;
        position: static;
        text-align: justify;
    }

    #project-name-1 {
        position: static;
    }
    
    .grid-item {
        width: 100%;
    }

    #grid-item-1 {
        grid-column: 1 / span 1;
        grid-row: 1 / span 1;
    }
    
    #grid-item-2 {
        grid-column: 1 / span 1;
        grid-row: 2 / span 1;
    }

    #grid-item-3 {
        grid-column: 1 / span 1;
        grid-row: 3 / span 1;
    }

    #grid-item-4 {
        grid-column: 1 / span 1;
        grid-row: 4 / span 1;
    }

    #grid-item-5 {
        grid-column: 1 / span 1;
        grid-row: 5 / span 1;
    }

    #grid-item-6 {
        grid-column: 1 / span 1;
        grid-row: 6 / span 1;
    }
}

/* MEDIA QUERY FOR TABLETS AND SMALLER */
@media screen and (max-width: 768px) {   
    .title-flex {
        width: 20vw;
    }
    
    .content-flex {
        width: 80vw;
    }
}

/* MEDIA QUERY FOR MOBILE PHONES AND SMALLER */
@media screen and (max-width: 575px) {
    .div-flex {
        display: flex;
        flex-flow: column wrap;
    }
    
    .title-flex {
        width: 100%;
        text-align: center;
    }
    
    .content-flex {
        text-align: center;
        border-top: 3px solid #fa5306;
        border-left: none;
        width: 100%;
        margin: 0px
    }
}