* {
	box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
	font-size: 16px;
	width: 100vw;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

nav#navbar {
    width: 100%;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex-direction: row;
    font-family: 'Montserrat', sans-serif;
    background-color: #fafafa;
    color: #22313F;
    z-index: 50;
}

header#title {
    width: 45%;
    font-size: 1.75em;
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    padding: .45em;
}

ul.nav-list {
    width: 55%;
    font-size: 1.5em;
    padding: .5em;
    margin:0;
    font-family: 'Open Sans', sans-serif;
    text-align: right;
}

li {
	display: inline-block;
	list-style: none;
}

a {
    text-decoration: none;
    color: #22313F;
    padding: .5em;
}

a.nav-link {
    position: relative;
    padding-bottom: .2em;
    margin: 0 auto;
    padding-right: 1.5em;
}

a.nav-link:before {
    content: "";
    position: absolute;
    width: 67%;
    height: 2.5px;
    bottom: 0;
    left: .5em;
    background-color: #22313F;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all .5s ease-in-out 0s;
    transition: all .5s ease-in-out 0s;
}

a#about:before {
    width: 60%;
    left: .45em;
}

a.nav-link:hover, a.nav-link:focus, a.nav-link:active  {
    color: #22313F;
}

a.nav-link:hover:before, a.nav-link:focus:before, a.nav-link:active:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

main {
	margin-left: 0;
    margin-top: 3.5em;
    font-family: 'Open Sans', sans-serif;
    background-color: #fafafa;
    line-height: 150%;
}

section#welcome-section {
	background-color: #565656;
    color: #d3d4d4;
    min-height: 100vh;
    margin-left: 0;
    padding-left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;   
    border-bottom: 2px solid #22313F;
    z-index: 25;
}

article.welcome {
    background-color: #22313F;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: flex-start;
    flex-direction: row;
    padding: 6em 1em;
    width: 60%;
    min-width: 610px;
    border-radius: 5px;
}

.welcome-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 25em;
    max-width: 29em;
    width: 75%;
    padding: 1em;
}

div.welcome-text p {   
    margin: 0 ;
    padding: .25em;
    justify-content: left;
}

div.overlay-image {
    position: relative;
    width: 100%;
    max-width: 325px;
}

.overlay-image .image {
    display: block;
    width: 100%;
    max-width: 325px;
    height: auto;
}

.overlay-image .hover {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
}

.overlay-image:hover .hover, .overlay-image:focus .hover {
    opacity: 1;
}

h2 {
	font-weight: normal;
	text-align: center;
}

section#projectExamples {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    height: auto;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

header {
    width: 100%;
}

header#projects-head h2 {
    color: #22313F;
    margin: 1em auto;
    padding: 1em;
    font-size: 1.75em;
}

h3.project-gallery-title {
    width: 100%;
    text-align: center;
    font-size: 1.25em;
    color: #22313F;
    display: block;
}

div.project-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1500px;
    margin: 2.5em auto 2em auto;
}

article.project {
    width: 33%;
    max-width: 325px;
    min-width: 300px;
    margin: 1em;
    margin-bottom: 2em;
    overflow: hidden; 
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

figure.project-gallery-fig {
    margin: 0;
    padding: 0;  
    position: relative;
    width: 100%;
    height: auto;
}

.overlay.visible {
    opacity: 1;
}

.overlay.hidden {
    opacity: 0;
}

.overlay {
    background: #22313F; 
    opacity: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -moz-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
}

img.project-thumbnail {
    display: block;
    width: 100%;
    height: auto; 
}

.overlay.clicked {
    opacity: 1;
}

.project-text, .live-link {
    color: #fff;
    font-size: .9em;
}
h3.project-text {
    text-align: center;
    margin: 0 auto;
    color: #d3d4d4;
    padding-top: .5em;
}

p.project-text {
    text-align: left;
    margin: 0;
    margin-bottom: .2em;
    padding: .5em;
    text-indent: 2em;
    color: #d3d4d4;
}

p.project-text.tech {
    padding: 0;
    text-indent: 0;
    text-align: center;
    margin: 0 auto;
}

div.projectLinks {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.projectLink, .connect {
    background-color: #22313F;
    color: #fff;
    border: 1px solid #D3D4D4;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1.75px 1.75px .25px #D3D4D4;
    height: 3.25em;
    width: 6.25em;
    margin: 1em;
    margin-bottom: .5em;
    font-size: 1em;
    -webkit-transition: all .2s ease-in-out 0s;
    transition: all .2s ease-in-out 0s;
}

button.info {
    height: 1.75em;
    font-size: .95em;
    width: 2.75em;
    padding: 0em;
    margin: .35em 0 .35em .5em;
    cursor: pointer;
}

i.fa.fa-info-circle, i.fa.fa-close {
    font-size: 1.5em;
    z-index: 1;  
}

.projectLink:hover, .connect:hover, .projectLink:focus, .connect:focus {
	background-color: #565656;
}

.projectLink:active, .connect:active {
	box-shadow: .5px .5px .25px #D3D4D4;
}

a.gitHubLogoWhite, a.live-link {
    display: inline-block;     
    position: relative;    
    z-index: 1; 
    padding: 1.65em; 
    padding-left: 4em;    
    margin: -2em; 
}

a.live-link {
    padding: 1em;
}

a.gitHubLogoWhite {
    background-image: url('images/GitHub-Mark-Light-32px.png');
    background-repeat: no-repeat;
    background-position: center;
    width: 32px;
    height: 32px;
    vertical-align: middle;  
    display: inline-block;  
    -webkit-transition: all .5s ease-in-out 0s;
    transition: all .5s ease-in-out 0s;
}
a.gitHubLogoWhite:focus, a.live-link:focus {
	border: none;
}

section#connect {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background-color: #22313F;
    color: #d3d4d4;
    display: flex;
    flex-direction: column;  
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

header#connect-head h2 {
    margin: 1em auto;
    padding: 1em;
    font-size: 1.75em;
}

div.contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

div.contact-info h3 {
    font-size: 1.25em;
}

div.contact {
	line-height: 110%;
    text-align: center;
    border: 1px solid #d3d4d4;
    border-radius: 10px;
    width: 235px;
    padding: .5em;
    margin: 2em;
    background-color: #565656;
    color: #fff;
}

a.contactLink, a.linkedIn-white {
    display: inline-block;     
    position: relative;    
    z-index: 1;     
    padding: 2em;     
    margin: -2em; 
    color: #fff;
}

a.linkedIn-white {
    background-image: url('images/In-White-34px-R.png'); 
    background-repeat: no-repeat;
    background-position: center;
    height: 34px;
    width: 43px;  
    display: inline-block;  
}

@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media screen and (max-width: 1340px) {
    article.welcome {
        width: 75%;
    }
    div.project-gallery {
        width: 100%;
    }
    article.project {
        margin: .25em;
        margin-bottom: .5em;
    }
}

@media screen and (max-width: 785px) {
    header#title {
        visibility: collapse;
        width: 0%;
    }

    ul.nav-list {
        width: 100%;
        font-size: 1.25em;
        padding-top: 1em;
        text-align: center;
    }

    h1#name, h2.welcome {
        font-size: 1.25em;
    }

    div.welcome-text p {
        font-size: .85em;
    }

    section#projectExamples {
        padding: 1em 0;
    }

    header#projects-head h2{
        margin: 2em 0;
        font-size: 1.25em;
    }

    div.contact-info {
        font-size: .85em;
    }

    header#connect-head {
        font-size: .75em;
    }

}

@media screen and (max-width: 620px) {
    ul.nav-list {
        width: 100%;
        font-size: 1em;
        padding-top: 1em;
        text-align: center;
    }

    article.welcome {
        min-width: 90%;
        flex-wrap: wrap;
        padding: 1em;
    }

    .welcome-text {
        min-width: 18em;
    }

    div.welcome-text p {
        font-size: .85em;
    }

    h1#name, h2.welcome {
        font-size: 1em;
    }

    div.contact {
        margin: 1em;
    }
}
