/* ++++++++++++++++++++++++++++++++++++++++ */
/* ++++++++++++ Basic Elements ++++++++++++ */
/* ++++++++++++++++++++++++++++++++++++++++ */
body, div, a, p, img, input, textarea, select, button {
	font-family: 'Asap', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	letter-spacing: 0.2px;
	
	/* fixing too heavy fonts in Chrome & Firefox */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a:not(.btn) {
	color: #4D4D4D;
	cursor: pointer;
}

a:not(.btn):hover, a:hover>h3 {
	color: #0080FF !important;
	text-decoration: none;
}

h2 {
	font-size: 16px;
	font-weight: 700;
}

h2, h3 {
	color: black;
	font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 600 !important;
}

.container {
	max-width: 860px;
	min-width: 300px;
}

@media only screen and (min-width: 768px) and (min-height: 800px) {
 .fixed {
	position: fixed;
 }
}

@media only screen and (min-width: 768px) {
 .fixed {
	max-width: 250px; /* 33% of .container width (750px) */
 }
}

@media only screen and (min-width: 992px) {
 .fixed {
	max-width: 286.66px; /* 33% of .container width (860px) */
 }
}


/* ++++++++++++++++++++++++++++++++++++++++ */
/* ++++++++++++++++ ABOUT +++++++++++++++++ */
/* ++++++++++++++++++++++++++++++++++++++++ */

#about {
	letter-spacing: 0.4px;
}

@media only screen and (min-width: 768px) {
 #about {
	height: 800px;
 }
}

@media only screen and (max-width: 767px) {
 #about {
	background: #FFFFFF;
	box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.10), 0px 1px 4px 0px rgba(0,0,0,0.10);
 }
}

#about .fixed {
	padding-bottom: 40px;
}

#about #logo {
	display: block;
	margin: 40px 0px;
}

#about h2 img, #contactModal h2 img {
	height: 16px;
	width: 16px;
	margin-top: -3px;
	margin-right: 8px;
}

#about h1 {
	display: inline-block;
	margin: 0;
	font-size: 30px;
	font-family: 'Josefin Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 400;
	background: -webkit-linear-gradient(left, #5324B3 0%, #4CA6FF 48%, #90D900 100%);
	/* background: -moz-linear-gradient(left, #5324B3 0%, #4CA6FF 48%, #90D900 100%); */ /* Firefox doesn't support background-clip:text; */
	background: linear-gradient(left, #5324B3 0%, #4CA6FF 48%, #90D900 100%);
	-webkit-background-clip: text;
	   -moz-background-clip: text;
			background-clip: text;
	-webkit-text-fill-color: transparent;
	   -moz-text-fill-color: transparent;
			text-fill-color: transparent;
}

#about h2 {
	margin: 40px 0px 0px 0px;
}

#about p {
	margin: 10px 0px 0px 0px;
	line-height: 18px;
}


/* ++++++++++++++++++++++++++++++++++++++++ */
/* +++++++++++++++ PROJECTS +++++++++++++++ */
/* ++++++++++++++++++++++++++++++++++++++++ */

@media only screen and (max-width: 767px) {
 #projects {
	margin-top: 15px;
 }
}

#projects .mobile-link {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	z-index: 10;
	background-color: none;
}

@media only screen and (min-width: 500px) {
 #projects .mobile-link {
	display: none;
 }
}

#projects h2 {
	margin: 66px 0px;
	text-align: center;
	opacity: 0.3;
}

@media only screen and (max-width: 767px) {
 #projects h2 {
	display: none;
 }
}

#projects .preview {
	position: relative;
	overflow: hidden;
	margin-bottom: 60px;
	max-width: 540px;
	height: auto;
	
	/* Rectangle: */
	background: #FFFFFF;
	box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.03), 0px 1px 4px 0px rgba(0,0,0,0.10), 0px 2px 8px 0px rgba(0,0,0,0.10);
	border-radius: 5px;
}

@media only screen and (max-width: 767px) {
 #projects .preview {
	 margin-left: auto;
	 margin-right: auto;
 }
}

@media only screen and (max-width: 767px) {
 #projects .preview {
	margin-bottom: 30px;
	
	box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.10), 0px 1px 4px 0px rgba(0,0,0,0.10);	 
	border-radius: 5px;
 }
}

#projects h3, #projectModal h3 {
	display: block;
	margin: 0px;
	font-size: 14px;
	color: rgba(0, 0, 0, 0.3);
	transition: color 0.5s ease-out;
}

#projects .description {
	position: absolute;
	bottom: 0;
	max-height: 50px;
	padding: 15px 20px 20px;
	background-color:  white;
	-webkit-border-radius: 0px 0px 5px 5px;
	   -moz-border-radius: 0px 0px 5px 5px;
			border-radius: 0px 0px 5px 5px;
	transition: max-height 1s cubic-bezier(0.2, 0.2, 0, 1.0);
}

.description h3::after {
	content: url('../graphics/project-link-arrow.svg');
	width: 19px;
	height: 15px;
	float: right;
	margin-top: 2px;
}

#projects .label, #projectModal .label {
	font-size: 12px;
	padding: .3em .6em .3em;
	font-weight: 400;
	border: 1px solid #B3B3B3;
	margin-right: 5px;
}

#projects img, #projectModal img {
	margin-bottom: 50px;
	width: 100%;
	height: auto;
	max-height: 300px;
	-webkit-border-radius: 5px 5px 0px 0px;
	   -moz-border-radius: 5px 5px 0px 0px;
			border-radius: 5px 5px 0px 0px;
	transition: all 1s cubic-bezier(0.2, 0.2, 0, 1.0);
	-webkit-filter: grayscale(0%); /* Chrome, Safari, Opera */
    filter: grayscale(0%);
}

@media only screen and (min-width: 500px) {
 #projects .preview:hover > .description {
	max-height: 300px;
 }

 #projects .preview:hover > .description h3 {
	color: rgba(0, 0, 0, 1);
 }

 #projects .preview:hover > img {
	transform: scale(1.2,1.2);
	-webkit-filter: grayscale(100%);
    filter: grayscale(100%);
 }

 #projects .preview:hover {
	box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.05), 0px 4px 14px 0px rgba(0,0,0,0.10);
 }
}

#projects footer {
	margin-bottom: 50px;
	font-size: 11px;
	text-align: center;
	color: #a0a0a0;
}

/* ++++++++++++++++++++++++++++++++++++++++ */
/* ++++++++++++ PROJECT MODAL +++++++++++++ */
/* ++++++++++++++++++++++++++++++++++++++++ */

#projectModal .modal-body {
	padding: 0px;
}

#projectModal .description {
	padding: 15px 20px 20px;
}

#projectModal img {
	margin-bottom: 0 !important;
}

/* ++++++++++++++++++++++++++++++++++++++++ */
/* +++++++++++++++ CONTACT ++++++++++++++++ */
/* ++++++++++++++++++++++++++++++++++++++++ */

input, textarea {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background-color: #EEE;
	
	-webkit-border-radius: 5px;
	   -moz-border-radius: 5px;
			border-radius: 5px;
}

input {
	-webkit-appearance: none;
	   -moz-appearance: none;
			appearance: none;
}

textarea {
	height: 200px;
	resize: vertical;
}

#nameTextfield, #subjectTextfield {
	margin-bottom: 0;
	border-bottom: 1px solid #DDD !important;
	-webkit-border-radius: 5px 5px 0px 0px;
	   -moz-border-radius: 5px 5px 0px 0px;
			border-radius: 5px 5px 0px 0px;
}

#emailTextfield, #messageTextfield {
	margin-top: 0;
	-webkit-border-radius: 0px 0px 5px 5px;
	   -moz-border-radius: 0px 0px 5px 5px;
			border-radius: 0px 0px 5px 5px;
}

#messageTextfield {
	height: 250px;
}

#emailTextfield {
	margin-bottom: 15px;
}

.form-buttons {
	text-align: right;
	margin-top: 15px;
}

.contact-badge {
	display: inline-block;
	text-align: left;
	float: left;
	padding-top: 6px;
	margin: 3px 0px 0px 0px;
	font-size: 10px;
}

.contact-badge.unavailable {
	color: #E62600;
}

.contact-badge.limited {
	color: #E5A542;
}

.contact-badge.available {
	color: #669900;
}

@media only screen and (max-width: 500px) {
 .form-buttons {
	 text-align: left;
 }	
 
 .contact-badge {
	display: block;
	float: none;
	margin: 0px 0px 15px 0px;
 }
}

/* ++++++++++++++++++++++++++++++++++++++++ */
/* +++++++++++++++ MODALS +++++++++++++++++ */
/* ++++++++++++++++++++++++++++++++++++++++ */

.modal-content {
	box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.10), 0px 2px 8px 0px rgba(0,0,0,0.20);
	border-radius: 5px;
	border: none;
}

.modal-header {
	padding-top: 20px;
	padding-left: 20px;
}

.btn {
	border: none;
	outline: none !important;
}

.modal h2 {
	margin: 0;
}