/* all borders on the page will be included in the size of content */
* {

    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

/* relative position so direct descendent (header) can be absolute */
body {

    position: relative;

}

/* header floating above hero image & slightly transparent so can see image through */
header {

    background-color: #9de9bf;
    color: #c56696;
    padding: 30px;
    z-index: 2;
    opacity: 0.7;
    position: absolute;
    width: 100%;

}

/* alignment & spacing of header heading */
header h1 {

    display: inline-block;
    font-size: 48px;
    line-height: 50px;
    margin-left: 50px;
    opacity: 1;
    font-weight: bold;

}

/* alignment of header navigation bar */
header nav {

    float: right;

}

/* alignment & spacing of unordered list within header navigation bar */
header nav ul {

    display: inline-block;
    line-height: 50px;
    list-style-type: none;

}

/* styling of links contained within the list item */
header nav a {

    text-decoration: none;
    color: #c56696;
    font-weight: bold;
    margin: 20px;
    opacity: 1;

}

/* color change when hover over header links */
header nav a:hover {

    color: white;

}

/* fixed positioning of hero image */
.hero {

    width: 100%;
    height: 750px;
    background-image: url("../images/dahlia5.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;

}

/* each section will take up full page */
section {

    display: block;

}

/* style of about me section */
#about-me {

    width: 100%;
    background-color: #ffc7e2;

}

/* centering both containers of about me section */
#about-me div {

    margin: 0 auto;
    text-align: center;

}

/* create space between hero image & about me first container */
#about-me-div1 {

    padding-top: 100px;

}

/* style of about me heading */
#about-me-div1 h1 {

    font-size: 48px;
    color: #194f96;

}

/* create space between about me heading & image */
#about-me-div1 img {

    padding-top: 40px;

}

/* making image round & creating a box shadow underneath */
#about-me img {

    width: 300px;
    height: auto;
    border-radius: 50%;
    filter: drop-shadow(30px 30px 60px rgba(0,0,0,.8));
    -webkit-filter: drop-shadow(30px 30px 60px rgba(0,0,0,.8));

}

/* image grows on hover */
#about-me img:hover {

    transform: scale(1.1);

}

/* style & spacing of paragraphs within sectond about me container */
#about-me-div2 {

    padding-top: 55px;
    color: #194f96;
    font-size: 20px;
    width: 80%;
    text-align: justify;
    padding-bottom: 100px;

}

/* color gradient between about me & work sections */
#about-work-gradient {

    width: 100%;
    height: 100px;
    background: linear-gradient(180deg,#ffc7e2,#194f96);

}

/* work content, divider, & heading will be in a row */
/* creating space betwen above gradient & work section */
#work {

    background-color: #194f96;
    padding-top: 100px;
    width: 100%;
}

#work nav {

    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
    background-color: #89ddff;
    color: #194f96;
    padding: 30px;
    z-index: 2;
    opacity: 0.7;
    /* position: absolute; */
    width: 100%;
}

#work nav ul {

    display: inline-block;
    font-size: 20px;
    line-height: 50px;
    list-style-type: none;
    padding: 20px;
}

/* styling of links contained within the list item */
#work nav a {

    text-decoration: none;
    /* color: #89ddff; */
    font-weight: bold;
    margin: 20px;
    opacity: 1;
    padding: 20px;
    border: 2px solid white;
    border-radius: 5px;
}

#initial {

    background-color: white;
}

/* color change when hover over header links */
#work nav a:hover {

    background-color: white;

}

/* work content (photos & links) will take up 75% of the page & each container within will take up entire work content container */
/* spacing on the left & between work section & below color gradient */
#work-content {

    /* width: 75%; */
    /* height: auto; */
    padding-bottom: 100px;
    /* margin-left: 30px; */
    display: block;

}

/* hover boxes will be hidden until hover over related image/link (see below) */
/* style of all hover boxes */
.hover-box {

    visibility: hidden;
    background-color: #89ddff;
    border: 5px solid whitesmoke;
    color: #194f96;
    padding: 20px;
}

/* this top container within work content will take up entire work content container & have space between it & the next container */
/* position relative so hover box can be absolute within */
#fanpage {

    display: block;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 0;

}

/* fanpage image will take up entire work content top container */
#fanpage img {

    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;

}

/* fanpage hover box will position on top of image & at the top left */
#fanpage-hover-box {

    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 2;

}

/* fanpage hover box will now be visible once user hovers over fanpage image */
#fanpage:hover #fanpage-hover-box {

    visibility: visible;

}

/* the fanpage image will have a border when user hovers over fanpage image */
#fanpage:hover #fanpage-img {

    border: 5px groove whitesmoke;
    /* content: url('../images/project-screenshot.png'); */
}

/* bottom container of work content will take up the entire container */
#flex-rows {

    display: block;

}

/* spacing of the second row of work content */
/* containers within will display in a row & be spaced evenly */
#flex-row1 {

    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;

}

/* first container within second row of work content */
/* position relative so hover box can be absolute within */
#contact-landing-page {

    flex: 1;
    position: relative;
    z-index: 0;

}

/* first container image will take up 90% of the container */
#contact-lp-img {

    width: 90%;
    position: relative;
    z-index: 1;

}

/* the contact landing page hover box will be positioned on top of image & to top left */
#contact-lp-hover-box {

    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 2;

}

/* contact landing page hover box will now be visible when user hovers over image */
#contact-landing-page:hover #contact-lp-hover-box {

    visibility: visible;

}

/* the image will have a border when user hovers over */
#contact-landing-page:hover #contact-lp-img {

    border: 5px groove whitesmoke;
    /* content: url('../images/randomly-generated-password.png'); */
}

/* the second container within second row of content */
/* position relative so hover box can be absolute within */
#code-refactor {

    flex: 1;
    position: relative;
    z-index: 0;

}

/* the second container image will take up the entire container & be 50px from the top */
#code-refactor-img {

    width: 100%;
    position: relative;
    top: 37px;
    z-index: 1;

}

/* the code refactor hover box will position on top of the picture & on the top right */
#code-refactor-hover-box {

    position: absolute;
    top: 37px;
    right: 0px;
    z-index: 2;

}

/* the code refactor hover box will be visibile when the user hovers over the image */
#code-refactor:hover #code-refactor-hover-box {

    visibility: visible;

}

/* the image will have a border when the user hovers over */
#code-refactor:hover #code-refactor-img {

    border: 5px groove whitesmoke;
    /* content: url('../images/deployed-weather.png'); */
}

/* the third row of work content will have containers within that are flexed in a row & spaced evenly */
#flex-row2 {

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    position: relative;
    z-index: 0;

}

/* the first container within the third row of work content will take up 50% of parent container */
/* positioned relative so hover box can be absolute within */
#dawn {

    flex: 1 0 50%;
    position: relative;
    z-index: 0;

}

/* the image within the first container will take up the entire container & positioned 50px from the top */
#dawn-img {

    position: relative;
    width: 100%;
    top: 50px;
    z-index: 1;

}

/* the hover box will position on top of image & top left */
#dawn-hover-box {

    position: absolute;
    top: 50px;
    left: 0px;
    z-index: 2;

}

/* the hover box will be visible when user hovers over image */
#dawn:hover #dawn-hover-box {

    visibility: visible;

}

/* the image will have a border when user hovers over */
#dawn:hover #dawn-img {

    border: 5px groove whitesmoke;

}

/* the second container within third row of work content will have some spacing above & take up 50% of parent container */
/* positioned relative so hover box can be absolute within */
#css-cheatsheet {

    padding-top: 50px;
    flex: 1 0 50%;
    position: relative;
    z-index: 0;

}

/* image will take up 80% of parent container & will be positioned to the right */
#cheatsheet-img {

    width: 80%;
    float: right;
    z-index: 1;

}

/* hover box will be positioned on top of image & top right */
#cheatsheet-hover-box {

    position: absolute;
    top: 50px;
    right: 0px;
    z-index: 2;

}

/* hover box will be visible when user hovers over image */
#css-cheatsheet:hover #cheatsheet-hover-box {

    visibility: visible;

}

/* the image will have a border when hover over */
#css-cheatsheet:hover #cheatsheet-img {

    border: 5px groove whitesmoke;

}

/* work divider vertically stretch the entire work section */
#work-divider {

    /* display: flex;
    align-self: stretch; */
    /* margin-left: 30px; */
    /* margin-right: 30px; */
    width: 5px;
    background-color: #89ddff;

}

/* style & alignment of work heading */
#work-heading {

    /* display: flex; */
    /* width: 24%; */
    /* height: auto; */
    /* margin-right: 30px; */
    /* justify-items: flex-start; */
    color: #89ddff;
    text-align: center;
}

#work-heading h1 {

    font-size: 60px;
}

/* color gradient between work & contact sections */
#work-contact-gradient {

    width: 100%;
    height: 100px;
    background: linear-gradient(180deg,#194f96,#89ddff);

}

/* style & spacing of contact section */
#contact {

    background-color: #89ddff;
    color: #0c4107;
    font-weight: bold;
    padding-top: 100px;
    padding-left: 30px;
    padding-bottom: 100px;
    padding-right: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

}

/* style & spacing of contact heading */
#contact h1 {

    font-size: 48px;
    line-height: 50px;
    margin-left: 50px;
    flex: 1;
    padding-bottom: 15px;
    text-align: center;

}

/* spacing of contact navigation bar */
#contact nav {

    padding-top: 15px;
    flex: 1;
    text-align: center;

}

/* style & spacing of unordered list in navigation bar */
#contact nav ul {

    list-style-type: none;
    line-height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;

}

/* styling of links contained within list item */
#contact nav a {

    text-decoration: none;
    color: #0c4107;
    font-size: 20px;
    margin: 30px;

}

/* contacts change color when user hovers over */
#contact a:hover, #number:hover {

    color: white;

}

/* color gradient between contact section & footer */
#contact-footer-gradient {

    width: 100%;
    height: 100px;
    background: linear-gradient(180deg,#89ddff,#0c4107);

}

/* display & spacing of footer */
footer {

    display: block;
    background-color: #0c4107;
    color: whitesmoke;
    font-size: 20px;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 80px;
    width: 100%;

}

/* all styling for tablet screens */
/* @media screen and (max-width: 992px) { */

    /* work heading gets smaller to stay within work section */
    /* #work-heading {

        font-size: 40px;

    }
    
}     */

/* all styling for larger phone screens & smaller */
@media screen and (max-width: 768px) {

    /* header now displayed as column so the heading & navigation bar will be on top of one another & centered */
    header {

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;

    }

    /* spacing for header heading */
    header h1 {

        flex: 1;
        padding-top: 20px;
        padding-bottom: 15px;
        align-self: center;
        margin: 0 auto;

    }

    /* spacing for header navigation bar */
    header nav {

        position: relative;
        padding-top: 15px;
        flex: 1;
        text-align: center;

    }

    /* spacing of header unordered list */
    header nav ul {

        display: flex;
        flex-direction: row;
        justify-content: space-around;

    }

    /* now work section is displayed as column so heading, divider, & work content will be stacked on top of one another instead of in a row */
    /* #work {

        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        padding: 20px;

    } */

    /* work heading will be the first container displayed & will take up entire container */
    /* #work-heading {

        order: 1;
        flex: 1;
        display: block;
        width: 100%;
        padding-top: 100px;
        margin: 0 auto;
        align-self: center;

    } */

    /* spacing & alignment of heading within work header container */
    /* #work-heading h1 {

        text-align: center;
        margin-bottom: 40px;

    } */

    /* divider will now be the second container displayed & will take up entire container */
    /* divider will now horizontally take up entire container */
    /* #work-divider {

        order: 2;
        flex: 1;
        height: 1px;
        width: 100%;
        align-self: unset;
        margin-left: 0px;
        margin-right: 0px;
        padding-bottom: 5px;

    } */

    /* work content will now be the third container displayed & will take up entire container */
    /* #work-content {

        order: 3;
        flex: 1;
        width: 100%;
        margin-top: 40px;
        margin-right: 30px;
        padding-top: 30px;
        display: flex;
        flex-direction: column;

    } */

    /* fanpage hover box will now position to top right of image & will be visible at all times */
    /* #fanpage-hover-box {

        right: 0px;
        left: auto;
        visibility: visible;

    } */

    /* the second row of work content will now be displayed as column so two containers within will be positioned one on top of the other rather than in a row */
    /* #flex-row1 {

        flex-direction: column;
        align-content: center;

    } */

    /* spacing of first container within 'second row of work content' */
    /* #contact-landing-page {
        
        padding-left: 55px;

    } */

    /* hover box will be visible at all times */
    /* #contact-lp-hover-box {

        left: 55px;
        visibility: visible;
        
    } */

    /* spacing of second container within 'second row of work content' */
    /* #code-refactor {

        margin-top: 40px;

    } */

    /* positioning of second container image */
    /* #code-refactor-img {

        top: 0px;
    } */

    /* hover box will now be visible at all times */
    /* #code-refactor-hover-box {

        top: 0px;
        visibility: visible;

    } */

    /* 'third row of work content' will now be displayed as column so two containers within will be positioned one on top of the other rather than in a row */
    /* #flex-row2 {

        flex-direction: column;
        align-content: center;

    } */
    
    /* spacing of first container within 'third row of work content' */
    /* #dawn {

        margin-bottom: 10px;
    } */

    /* spacing of first container image */
    /* #dawn-img {

        top: 0px;
        margin-top: 20px;

    } */
    
    /* hover box will now be visible at all times
    #dawn-hover-box {

        top: 20px;
        visibility: visible;

    } */

    /* spacing of second container within 'third row of work content' */
    /* #css-cheatsheet {

        margin-top: 10px;
        padding-right: 50px;
        padding-left: 40px;
        justify-content: center;

    } */

    /* second container image will now take up entire container */
    /* #cheatsheet-img {

        width: 100%;

    } */

    /* hover box will be visible at all times */
    /* #cheatsheet-hover-box {

        right: 50px;
        visibility: visible;

    } */

    /* spacing of contact section heading */
    /* #contact h1 {

        margin-left: 0px;
        
    } */

    /* contact section navigation bar items will now be displayed as a column */
    /* /* #contact a {

        display: block;

    } */

}