body,
html {
  height: 100%;
}
body {
  background-attachment: fixed;
  background-position: center 0;
  background-color: #334;
  margin: 0;
  font-family: "Helvetica Neue", sans-serif;
  text-align: center;
}
a {
  color: #06f;
  text-decoration: none;
}
a:hover {
  color: #06f;
  text-decoration: underline;
}
header {
  z-index: 1;
  position: fixed;
  bottom: 50%;
  display: block;
  width: 100%;
}
header h1 {
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
  text-rendering: optimizelegibility;
  text-shadow: 1px 1px 1px #333;
  color: white;
  text-decoration: none;
  font-family: "Lato", "Helvetica Neue", sans-serif;
}
#about {
  position: relative;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
#about .intro {
  position: fixed;
  text-align: left;
}
.block,
.dud {
  display: inline-block;
  width: 30%;
  height: 300px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
  vertical-align: middle;
  position: relative;
}
.dud {
  border: 3px solid;
  cursor: default;
  padding: .03%;
  width: 21%;
  font-size: 50px;
  color: white;
  background-color: rgba(30, 30, 200, 0.7);
}
/*///////////////////////////////////////////////*/
/* Extra small devices (phones, less than 768px) */
/*///////////////////////////////////////////////*/

h1:after {
  /*	content: "";
	display: block;*/
}
/* Extra Small devices ONLY (phones, less than 768px) */
@media (max-width: 768px) {
  body {
    background-image: url(../img/smbike.jpg);
  }
  header h1 {
    font-size: 250%;
  }
  .buffer {
    height: 150px;
  }
  .role {
    font-size: 150%;
  }

  .role:before,
  .role:after {
    font-weight: 300;
  }
  nav a {
    display: none !important;
  }
  #about .intro {
    position: fixed;
    top: 55%;
    left: 10%;
    right: 10%;
    text-align: left;
  }
  #about .intro p:not(:first-child) {
    display: none;
  }
  .block.a,
  .block.b,
  .block.c,
  .block.d,
  .block.e,
  .block.f,
  .block.g,
  .block.h,
  .block.i {
    width: 100%;
  }
  #contact,
  #resume {
    margin: 0 5%;
    width: auto;
  }

  .dud {
    display: block;
    height: 150px;
    width: 100%;
    font-size: 40px;
    position: absolute;
    top: 0;
  }
}
/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
  body {
    background-color: black;
    background-image: url(../img/smbike.jpg);
  }
  header h1 {
    display: inline-block;
    font-size: 400%;
  }
  .role {
    font-size: 200%;
  }
  #about {
    position: relative;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }
  #about .intro {
    position: fixed;
    top: 55%;
    left: 25%;
    right: 25%;
    text-align: left;
  }
  #portfolio .buffer {
    height: 36px;
  }

  .block.a {
    background-color: red;
    width: 24%;
  }
  .block.b {
    background-color: blue;
    width: 40%;
  }
  .block.c {
    background-color: green;
    width: 36%;
  }
  .block.d {
    background-color: orange;
    width: 33%;
  }
  .block.e {
    /*background-color: gray;*/
    padding: 50px;
    width: 21%;
    font-size: 50px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
  }
  .block.f {
    background-color: yellow;
    width: 46%;
  }
  .block.g {
    background-color: yellow;
    width: 42%;
  }
  .block.h {
    background-color: yellow;
    width: 38%;
  }
  .block.i {
    background-color: yellow;
    width: 20%;
  }
  #contact {
    margin-left: 35%;
  }
  #resume {
    margin-left: 15%;
  }
  #resume,
  #contact {
    width: 50%;
  }
}
/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* "laptop" style here*/
}
/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /*desktop styles here*/
}
header.stick {
  position: absolute;
  bottom: 0;
}
header.fixed {
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.97);
  position: fixed;
  top: 0;
  height: 2.4em;
  border-bottom: 2px solid #333;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
header.fixed h1 {
  float: left;
  font-size: 1.2em;
  font-weight: 400;
  padding: .25em .5em;
}
header.fixed nav {
  float: right;
  margin: 0 .5em;
}
header.fixed nav a {
  font-size: 1em;
  padding: .5em;
  position: relative;
  background-color: transparent;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  float: left;
  box-sizing: border-box;
  height: 2.4em;
  font-weight: 300;
}
header.fixed nav a:hover {
  border-bottom: 0.2em solid #06f;
  background-color: #000000;
}
header.fixed p {
  display: none;
}
.role {
  color: white;
  text-align: center;
  margin: 0;
  font-family: "Lato", "Helvetica Neue", sans-serif;
  text-shadow: 1px 1px 1px #333;
}
.role:before {
  content: '{ ';
  color: #06f;
  font-weight: 100;
  margin-right: .1em;
}
.role:after {
  content: ' }';
  color: #06f;
  font-weight: 100;
  margin-left: .1em;
}
.page-content {
  margin-top: -36px;
  position: relative;
  font-size: 0;
  width: 100%;
  overflow: hidden;
}
.block figure {
  margin: 0;
  background-color: white;
  border: 3px solid white;
  height: 320px;
}
/* remove block masking
.block:before {
    display: block;
    height: 100%;
    background-color: rgba(0,0,0,.3);
    width: 100%;
   	content: "";
    position: absolute;
}*/
.block figcaption {
  color: black;
  background: white;
  font-size: 14px;
  font-weight: bold;
  position: relative;
  -webkit-opacity: 0;
  -moz-opacity: 0;
  opacity: 0;
  bottom: 0;
  display: block;
  height: 20px;
  width: 100%;
}
.block:hover {
  position: relative;
  overflow: visible;
  margin-top: -10px;
}
.block:hover figure {
  width: 120%;
  position: absolute;
  left: -10%;
  z-index: 200;
  overflow: hidden;
  animation-name: bigimage;
  animation-duration: .5s;
}
.block:hover figcaption {
  -webkit-opacity: 1;
  -moz-opacity: 1;
  opacity: 1;
}
@keyframes bigimage {
  from {
    left: 0;
  }
  to {
    left: -10%;
  }
  from {
    width: 100%;
  }
  to {
    width: 120%;
  }
}
.block .flash object {
  display: none;
}
.block:hover .flash img {
  display: none;
}
.block:hover .flash object {
  display: block;
}
.block:hover figure figcaption {
  z-index: 300;
  position: absolute;
}
.show {
  display: block;
}
nav {
  margin-top: 50px;
}
nav a {
  color: white;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
  border-radius: 7px;
  display: inline-block;
}
nav a:hover {
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.8);
  animation-duration: .7s;
  animation-name: fadeIn;
}
@keyframes fadeIn {
  from {
    background-color: rgba(0, 0, 0, 0.5);
  }
  to {
    background-color: rgba(0, 0, 0, 0.8);
  }
}
nav.fixed {
  position: absolute;
  top: 10px;
  right: 10px;
}
#about p {
  background-color: black;
  color: white;
  display: inline-block;
  white-space: nowrap;
  padding: 3px 7px;
  margin: .45em 0 0 0;
  font-size: 1em;
  animation-name: hide, about;
}
#about p:after {
  content: '';
  display: block;
}
#about .intro > :nth-child(1) {
  animation-duration: 2s, 2s;
  animation-delay: 0s,2s;
}
#about .intro > :nth-child(3) {
  animation-duration: 4s, 2s;
  animation-delay: 0s, 4s;
}
#about .intro > :nth-child(5) {
  animation-duration: 6s, 2s;
  animation-delay: 0s, 6s;
}
#about .intro > :nth-child(7) {
  animation-duration: 8s, 2s;
  animation-delay: 0s,8s;
}

#about .intro > :nth-child(9) {
  /*animation-duration: 15s, 0s;*/
  animation-duration: 0s, 0s;
  animation-delay: 0s,8s;
  position: absolute;
  width: 100%;
}

@keyframes hide {
  from {
    margin-left: -175%;
  }
  to {
    margin-left: -175%;
  }
}
@keyframes about {
  0% {
    margin-left: -175%;
  }
  1% {
    margin-left: -175%;
  }
  100% {
    margin-left: 0%;
  }
}


#resume,
#contact {
  padding-top: 75px;
}

#resume .content,
#contact .content {
  background: white;
}

#resume,
#contact,
footer {
  position: relative;
  left: 0%;
  text-align: left;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#contact h2,
#contact p {
  color: black;
  display: inline-block;
  padding: 3px 7px;
  margin: 7px 0;
}
#resume h2 {
  color: black;
  padding: 3px 7px;
  margin: 7px 0;
}

#resume h3 {
  margin: 7px 0 3px 5px;
}

#resume h3 ~ p {
  margin-top: 3px;
}

#resume p {
  background-color: white;
  color: black;
  padding: 3px 7px;
  margin: 7px 0;
}
#resume a.pdf {
  margin-top: 10px;
  position: relative;
  color: white;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  display: inline-block;
}
#resume a.pdf:hover {
  color: #06f;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.8);
  animation-duration: .7s;
  animation-name: fadeIn;
}
/*arrows*/
.arrow {
  width: 20px;
  height: 20px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
}
.arrow:before,
.arrow:after {
  content: '';
  border-color: transparent;
  border-style: solid;
  position: absolute;
}
.arrow-down:before {
  border: none;
  background-color: #06f;
  height: 50%;
  width: 30%;
  top: 0;
  left: 35%;
}
.arrow-down:after {
  left: 0;
  top: 50%;
  border-width: 10px 10px;
  border-top-color: #06f;
}
footer {
  margin-top: 100px;
  text-align: center;
  padding: 5px 10px;
  position: relative;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
}
footer span {
  margin: 0 10px;
}
.social a {
  margin: 0 10px;
}
#contact input[type=button] {
  width: 50%;
}
#contact input[type=button]:disabled {
  color: gray;
}
#contact input[type=button]:disabled:hover {
  cursor: default;
  color: gray;
}
#contact form {
  padding-bottom: 10px;
  margin-bottom: 25px;
}
#contact form p {
  display: block;
}
#contact form p label {
  width: 10%;
  display: inline-block;
  font-weight: bold;
}
#contact form p input {
  width: 20em;
  max-width: 90%;
  border: 0;
  border-bottom: 1px solid #ccc;
  height: 100%;
}
#contact form p textarea {
  min-height: 200px;
  width: 99%;
  border: 1px solid #ccc;
  max-width: 99%;
}
#contact form .btns {
  text-align: right;
  margin: 0 7px;
}
#contact input[type=button] {
  border: 1px solid;
  color: #06f;
  width: 100px;
  font-weight: bold;
  background: white;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  padding: 7px;
  margin: 0 0 0 10px;
  cursor: pointer;
}
#submit[type=button]:hover {
  color: green;
}
#clear[type=button]:hover {
  color: red;
}
input:focus {
  /* outline: none; */
}
textarea:focus {
  /* outline: none; */
}
#formResults {
  text-align: center;
  display: none;
  background: white;
  padding: 3px 7px;
}
/*placeholder*/
form .error::-webkit-input-placeholder {
  color: red;
}
form .error:-moz-placeholder {
  color: red;
}
form .error::-moz-placeholder {
  color: red;
}
form .error:-ms-input-placeholder {
  color: red;
}
/*
hr {
	width: 100%;
	border: 3px dashed white;
    position: relative;

}

.justsomeextraspace {

}*/
/*
* + * {
	border: 1px solid red;
}*/


.more {
  display: none;
  width: 100%;
  text-align: center;
  color: #06f;
  font-size: 48px;
  text-align: center;
  background: none !important;
  position: fixed;
  bottom: 3em;
}

.more > i {
  color: #06f;
  font-size: 48px;
}

.chevron::before {
  position: absolute;
  content: '';
  display: inline-block;
  left: 0.15em;
  position: relative;
  top: 0.15em;
  vertical-align: top;
  border-radius: 25%;
  border-color: #06f;
  background: #06f;
  height: 1.5em;
  width: 1em;
  max-width: 0px;
  transform: rotate(135deg);
}

.chevron::after {
  position: absolute;
  content: '';
  display: inline-block;
  left: 0.15em;
  position: relative;
  top: 0.15em;
  vertical-align: top;
  border-radius: 25%;
  border-color: #06f;
  background: #06f;
  margin-left:-1.5px;
  height: 1.5em;
  width: 1em;
  max-width: 0px;
  transform: rotate(-135deg);
}