html {
	box-sizing: border-box;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	overflow: -moz-scrollbars-vertical; 
    overflow-y: scroll;
}

* {
	position: relative;
}

* , * :before, * :after {
	box-sizing: inherit
}

body {
	margin: 0;
	padding: 0;
	color: black;
	background: white;
	font-family: sans-serif;
	line-height: 1.4;
	font-weight: 400;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

a {
	color: black;
	text-decoration: none
}

a:hover, a:focus {
	outline: none;
	color: #0000cc !important;
}

img {
	vertical-align: top;
	max-width: 100%;
	border: 0;
}

p {
	font-size: .813em
}

h1, h2, h3, p {
	font-weight: 400;
	margin-top: 0
}

h2 {
	margin-bottom: 0;
	font-size: 1.125em
}

h3 {
	color: black;
	margin-top: 0;
	line-height: 1.2
}

.top {
	position: fixed;
	z-index: 10;
	overflow: hidden;
	width: 100%;
	text-align: center;
	background: white;
}

.top {
	height: 150px
}

.top .select {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
}

.header {
	max-width: 1180px;
	margin: 0 auto;
}

.company {
	width: 100%;
	max-width: 440px;
	cursor: pointer;
	padding: 0 1em
}

.select ul {
	list-style: none;
	text-align: center;
	padding-left: 0
}

.select ul li {
	display: inline-block;
	font-size: .875em
}

.select ul li a {
	display: inline-block;
	padding: .5em
}

.select ul li a.selected:after, 
.select ul li a:after {
	display: block;
	content: '';
	border-bottom: solid 1px #0000cc;
	transform: scaleX(0);
	transition: transform 300ms ease-in-out;
	padding-top: 4px
}

.select ul li a.selected:after, 
.select ul li a:hover:after {
	transform: scaleX(1);
}

.select ul li a.selected, 
#about ul li:first-child a, 
#home .select ul li:first-child a, 
#team .select ul li:nth-child(2) a, 
#projects .select ul li:nth-child(3) a, 
#contact .select ul li:nth-child(4) a {
	font-weight: bold;
	color: #0000cc;
}

.subject {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	padding: 150px 1em 1em;
	text-align: center
}

.list {
	position: relative;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	padding: 150px 5px 0;
}

.picture {
	display: inline-block;
	position: relative;
	-ms-flex: 0 0 100%;
	-webkit-flex: 0 0 100%;
	flex: 0 0 100%;
	overflow: hidden;
	height: 92vw;
	outline: none;
	background: white;
	border: 3px solid transparent;
}

.picture img {
	position: absolute;
	height: 100%;
	min-height: 100%;
	width: 100%;
}

.picture:hover img {
	opacity: 1
}

.picture .caption {
	opacity: 0;
	position: absolute;
	bottom: -14px;
	margin: 0;
	padding: 1em;
	text-transform: uppercase
}

a .caption {
	color: black!important;
}

a .caption h2 {
	font-size: 1.125em;
	line-height: 1.1;
	margin: 0 0 5px 0;
}

.caption p {
	font-size: .625em;
	line-height: 1;
	margin: 0;
	letter-spacing: 2px;
	opacity: 0;
}

.picture:hover .caption {
	width: 100%;
	padding: 10px;
	background-color: hsla(0,0%,73.3%,0.8);
	margin: 0;
	opacity: 1;
	-webkit-transform: translate3d(0, -10px, 0);
	transform: translate3d(0, -10px, 0)
}

.picture:hover .caption p {
	opacity: 1
}

@media screen and (min-width: 591px) {
	.picture {
		height: 49vw;
	}
	
	.picture {
		-ms-flex: 1 1 50%;
		-webkit-flex: 1 1 50%;
		flex: 1 1 50%
	}
}

@media screen and (min-width: 1024px) {
	.picture {
		-ms-flex: 1 1 33.3333%;
		-webkit-flex: 1 1 33.3333%;
		flex: 1 1 33.3333%;
		height: 33vw;
	}
}

@media screen and (min-width: 1280px) {
	.picture {
		-ms-flex: 1 1 25%;
		-webkit-flex: 1 1 25%;
		flex: 1 1 25%;
		height: 24.8vw
	}
}

@media screen and (min-width: 1440px) {
	.picture {
		-ms-flex: 1 1 20%;
		-webkit-flex: 1 1 20%;
		flex: 1 1 20%;
		height: 19.9vw
	}
}

@media screen and (min-width: 1600px) {
	.picture {
		-ms-flex: 1 1 16.6666%;
		-webkit-flex: 1 1 16.66666%;
		flex: 1 1 16.66666%;
		height: 16.6vw
	}
}

@media screen and (min-width: 380px) {
	.select ul li a {
		padding: .5em 1.25em
	}
}

@media screen and (min-width: 768px) {
	.select ul li {
		font-size: .938em
	}
	
	.select ul li a {
		padding: .5em 1.875em 1em
	}
	
	.company {
		padding: 1em 0 0
	}
}

#myBtn {
	display: none;
	position: fixed;
	bottom: 20px;
	right: 30px;
	z-index: 99;
	font-size: 18px;
	border: none;
	outline: none;
	background-color: hsla(0,0%,73.3%,1);
	color: white;
	cursor: pointer;
	padding: 10px;
	border-radius: 20px;
}

#myBtn:hover {
	background-color: hsla(240,100%,40%,0.8);
}

}