/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    text-decoration: none;
}

html {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

nav {
    padding: 1em;
    text-align: right;
}

nav img {
    width: 3%;
}

article {
    text-align: center;
}

h1 {
    margin: .8em;
    font-size: 4em;
    font-weight: 800;
}

#hero {
    padding: 5em;
}

#hero img {
    margin: auto;
}

#hero p {
    margin: 2em;
    font-size: 2em;
    font-weight: 200;
    line-height: 1.3;
}

#hero a {
    position: relative;
    color: black;
    padding: 1em 2em;
    font-size: 1em;
    font-weight: 600;
}

#hero a::before {
    content: '';
    background-color: hsla(196, 61%, 58%, .75);
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 8px;
    z-index: -1;
    transition: all .3s ease-in-out;
}

#hero a:hover::before {
    bottom: 0;
    height: 100%;
}

h2 {
    margin-bottom: .8em;
    text-transform: uppercase;
    font-size: 3em;
    font-weight: 800;
}

h3 {
    margin-bottom: .8em;
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 800;
}

#work_txt {
    padding: 6em 4em;
    text-align: left;
    background-color: #F5F3F3;
}

#work_txt div {
    display: flex;
    justify-content: center;
}

#work_txt div div {
    width: 50%;
    display: inline-block;
}

#work_txt div div ul {
    list-style-type: disc !important;
}

#work_txt div div ul li {
    line-height: 1.2;
}

#work_txt div div:first-child {
    border-right: 1px solid #CECECE;
    padding-right: 3em;
}

#work_txt div div:last-child {
    padding-left: 3em;
}

h4 {
    font-size: 3em;
    font-weight: 800;
    z-index: 2;
}

#work_img {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.hyperspan {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 2;
}

#work_img div {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1em;
    flex-basis: 33.33%;
    height: 500px;
    background-size: cover;
    transition: align-items 1 ease-in-out;
    color: white;
    text-shadow: 2px 2px 5px black;
}


#work_img div::before {
    content: '';
    background-color: hsla(198, 81%, 96%, 0.75);
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0px;
    z-index: 1;
    transition: all .3s ease-in-out;
}

#work_img div:hover::before {
    height: 100%;
}

#work_img div:nth-child(1) {
    background-image: url(../img/goto.jpg);
}

#work_img div:nth-child(2) {
    background-image: url(../img/watertank.png);
}

#work_img div:nth-child(3) {
    background-image: url(../img/allaboutyarn.jpg);
}

#work_img div:nth-child(4) {
    background-image: url(../img/karahouse.png);
}

#work_img div:nth-child(5) {
    background-image: url(../img/job.jpg);
}

#work_img div:nth-child(6) {
    background-image: url(../img/hipster.jpg);
}


footer p {
    padding: 1em;
    font-size: 1em;
    text-align: center;
}




@media (max-width: 768px) {
    nav {
        padding: 1em;
        text-align: center;
    }

    nav img {
        width: 10%;
    }

    h1 {
        font-size: 2.5em;
    }

    #hero {
        padding: 0;
        margin-bottom: 10%;
    }

    #hero p {
        font-size: 1em;
        font-weight: 400;
        line-height: 1.3;
    }

    #hero a {
        margin: auto;
        width: 60%;
        position: relative;
        color: black;
        padding: 1em 2em;
        font-size: 1em;
        font-weight: 600;
    }

    #hero a::before {
        content: '';
        background-color: hsla(196, 61%, 58%, .75);
        position: absolute;
        left: 0;
        bottom: 3px;
        width: 100%;
        height: 8px;
        z-index: -1;
        transition: all .3s ease-in-out;
    }

    #hero a:hover::before {
        bottom: 0;
        height: 100%;
    }

    h2 {
        font-size: 2em;
    }

    #work_txt {
        padding: 20px;
        background-color: #F5F3F3;
    }

    #work_txt div {
        display: block;
    }

    #work_txt div div {
        width: 100%;
    }

    #work_txt div div:first-child {
        border: none;
        padding: 0;
    }

    #work_txt div div:last-child {
        padding: 0;
    }

    #work_txt div div ul li {
        line-height: 1.6;
        font-weight: 500;

    }




    h4 {
        font-size: 2em;
        font-weight: 800;
        z-index: 2;
    }

    #work_img div {
        /* Styles for smaller screens go here */
        flex-basis: 100%;
        /* For example, change flex-basis to 100% for full width on smaller screens */
        height: 300px;
        /* Adjust height as needed */
        margin-bottom: 10px;
    }
}