/* Color Palette
#2B2D42 - dark blue
#8D99AE - light blue
#EDF2F4 - blue/white
#EF233C - red
#E37222 - tahiti gold
#AD5210 - some shade of gold
*/

/* Global styles
-------------------------*/
/* apply a natural box layout model to all elements, but allowing components to change */
html, body {
	overflow-x: hidden;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
}
h1, h2 {
  font-family: 'Caveat', cursive;
  font-weight: 400;
}
h1 {
  font-size: 5em;
}
h2 {
  font-size: 2em;
  margin-top: 0;
}
h3 {
  margin: 0;
}
a {
  color: #FB8C3C;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
  color: #A86227
}
.content-wrap {
  max-width: 950px;
  margin: 0 auto;
  padding: 60px 50px;
  overflow: hidden;
}
.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.red {
  color: #F00;
}
.green {
  color: rgb(8, 65, 8);
}
.blue {
  color: rgb(28, 28, 97);
}

span.redbold {
  color: #FF0000;
  font-weight: bold;
}

/* Offsite links
--------------------*/
a[target="_blank"] {
  background: url(../images/offsite_arrow.svg) no-repeat right 3px;
  background-size: 14px auto;
  padding-right: 24px;
  transition: padding-right .2s;
}
a[target="_blank"]:hover {
  padding-right: 20px;
}
/* exclude footer items from external links effects */
.contact-info a[target="_blank"] {
  background: none;
  padding-right: 3px;
}
.contact-info a[target="_blank"]:hover {
  padding-right: 3px;
}
.col-narrow a[target="_blank"] {
	background: none;
}

/* Download button */
.btn {
  text-decoration: none;
  background: #EF233C;
  color: white;
  padding: 10px;
  display: inline-block;
}


/* back to top
-------------------------*/
#return-to-top {
	position: fixed;
	bottom: 5px; /*	(original) bottom: 20px; */
	right: 10px; /* (ideal) right: 67px;  (original) right: 20px; */
	background: rgb(0, 0, 0);
	background: rgba(109, 56, 6, 0.89);
	width: 50px;
	height: 50px;
	display: block;
	text-decoration: none;
	-webkit-border-radius: 35px;
	-moz-border-radius: 35px;
	border-radius: 35px;
	display: none;
	-webkit-transition: all 0.3s linear;
	-moz-transition: all 0.3s ease;
	-ms-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}

#return-to-top i {
	color: #fff;
	margin: 0;
	position: relative;
	left: 16px;
	top: 13px;
	font-size: 19px;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-ms-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}

#return-to-top:hover {
	background: rgba(100, 10, 50, 0.9);
}
#return-to-top:hover i {
	color: #fff;
	top: 5px;
}

/* Header and Footer
-------------------------*/
header, footer {
  background: rgba(43, 45, 66, 0.75);
  color: #DBDEE3;
}
/* header */
header {
  padding-top: 50px;
  position: relative;
}
header h1, header h2 {
  color: #EDF2F4;
  margin: 0;
}
.about-img {
  border-radius: 50%;
  margin-left: -5%;
}


/* footer */
footer {
  text-align: center;
}
.contact-info a {
  padding: 10px;
  display: inline-block;
}
.contact-info a:hover {
  color: #EDF2F4;
}

span#dev span {
	color: #F00;
	font-size: 1em;
}


/* Navigation
-------------------------*/
nav {
  text-align: center;
  background: white;
  position: fixed;
  top: 0;
  width: 100%;
  /*z-index: 100;*/
}
nav a {
  display: inline-block;
  padding: 15px 20px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
}

/* Projects
-------------------------*/
.project {
  background: #EDF2F4;
}
h3 ~ p {
  margin: 0;
}
.project-block {
  height: 300px;
}
.project-thumbnail {
  margin-top: 5%;
  width: 240px;
  height: 240px;
}
.project-description {
  margin-bottom: 25px;
  margin-top: 10%;
}
.project-description p:first-of-type {
  margin-top: 0;
}
.project-separator {
  border-bottom: 1px solid rgba(167,0,0,.75);
  margin-bottom: 2%;
}

/* Blog
-------------------------*/

/* All posts */
.blog-post {
  background: #EDF2F4;
}
.blog-post h3 {
  font-size: 30px;
}
h3 ~ p {
  margin: 0;
}
.blog-post-block {
  height: 300px;
}
.blog-post-thumbnail {
  margin-top: 5%;
  width: 240px;
  height: 240px;
}
.blog-post-description {
  margin-bottom: 25px;
  margin-top: 10%;
}
.blog-post-description p:first-of-type {
  margin-top: 0;
}
.blog-post-separator {
  border-bottom: 1px solid rgba(167,0,0,.75);
  margin-bottom: 2%;
}

/* single post */
.lilbox {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.428571429;
  color: #333;
  word-break: break-all;
  word-wrap: break-word;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.blog-title {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 2.7em;
}

/* Contact
-------------------------*/
.contact-main {
  background: linear-gradient(rgba(141, 153, 174, 0.95), rgba(141, 153, 174, 0.75)), url(../images/main-bg.jpg) no-repeat fixed;
  background-size: cover;
}
p + h3 {
  margin-top: 30px;
}


/* Media Queries
-------------------------*/
@media (min-width: 900px) {
  .col-narrow {
    width: 30%;
    float: left;
  }
  .col-wide {
    width: 70%;
    float: left;
    padding-left: 20px;
  }
  #about .col-wide {
    padding-left: 30px;
	  border-left: 1.5px solid gold;
	  margin-left: 2%;
  }
}
@media (max-width: 899px) {
  h2 {
    font-size: 1.8em;
  }
  h3 {
    font-size: 1.5em;
  }
  header {
    text-align: center;
  }
  header h2 {
    font-size: 1.25em;
    margin-top: -8%;
  }
  header p {
    text-align: left;
    font-size: .96em;
  }
  nav a {
    padding-right: 3px;
    padding-left: 3px;
    font-size: .9em;
  }
  .content-wrap {
    max-width: 975px;
    padding: 25px 20px;
  }
  .col-narrow, .col-wide {
    width: 100%;
  }
  .col-narrow {
    margin-top: 1%;
  }
  .col-wide {
    padding-left: 0;
  }
  .project h3 {
    line-height: 1em;
    font-size: 1.2em;
    font-weight: bold;
  }
  .project p {
    font-size: 1em;
  }
  .project-block {
    height: auto;
    margin-bottom: 5%;
  }
  .project-thumbnail {
    margin-top: 1%;
    width: 100%;
  }
  .project-description {
    margin-bottom: 5px;
    margin-top: 1%;
  }
  .about-img {
    width: 200px;
  }
  footer, footer p {
    font-size: .85em;
  }
  footer h2 {
    margin-bottom: 1%;
  }
}

