body *, html * {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
}

body {
  background-image: url(../img/small_steps.png);
}

main{
  max-width: 1200px;
  width: 95%;
  margin: 200px auto 20px;
}

header {
  color: #fff;
  /*background-color: #769FBE;*/
  background-position: center;
  background-image: url(../img/headerback.jpg);
  border-bottom: solid 5px #a6c5dc;
  height: 190px;
  width: 100%;
  position:fixed;
  top: 0;
  z-index: 99999;
  transition: 1s;
}

#smart-head.hidden{
    top: -195px;
    position: fixed;
  }

/*h1 {
  font-weight: 600;
  padding: 10px 40px;
  margin: 0;
}*/

#logo{
  margin: 5px auto;
  /*position: absolute;*/
  display: block;
  text-indent: -9999px;
  background: url(../img/black_top.svg);
  background-size: contain;
  width: 150px;
  height: 150px;
}

header #hambtn {
  display: none;
}

nav {
  width: 100%;
  height: 2.125em;
  border-top: solid 1px #fff;
  background-color: #a6c5dc;
  text-align: center;
}

nav ul{
  width: 75%;
  margin: 0 auto;
}

nav ul li {
  float: left;
  list-style: none;
  line-height: 1.5em;
  margin: 3px 20px 0;
  width: 26%;
}
nav ul li a {
  color: #fff;
  background-color: #487191;
  border-radius: 20px 20px 0 0;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  border-bottom: solid 2px #fff;
}

nav ul li a:hover {
  color: #487191;
  background-color: #fff;
  border-bottom: solid 2px #487191;
}

h2 {
  margin-top: 20px;
  font-weight: 600;
}

#hbody h2{
  color: #fff;
  background-color: #487191;
  padding-left: 1em;
  line-height: 2em;
  border-radius: 15px 0 0 0;
  height: 2em;
  margin: .75em 0 0;  
}
#hbody p{
  padding-bottom: 30px;
  line-height: 1.75em;
}

#abody p,
#abody li,
.dis-body p,
.dis-body li {
  line-height: 1.75em;
}

/*========= Gallery CSS =========*/

#hbody img {
  background-color: #487191;
  border-radius: 25px;
}

#hbody .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

#hbody .container li {
  width: 300px;
  height: 300px;
  color: green;
  list-style-type: none;
  margin-bottom: 15px;
}

/*======== Gallery Titles ========*/

#hbody .gtitle {
  color: #fff;
  background-color: #487191;
  padding-left: 1em;
  line-height: 2em;
  border-radius: 15px 0 0 0;
  height: 2em;
  margin: 1em 0 0;
}

/*======== Gallery Spinner ========*/

.back{
  /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&amp;1+50,0+100 */
background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(50%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,0) 100%); /* IE10+ */
background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,0) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 ); /* IE6-9 */

  padding: 15px 15px 0;
  margin-top: 0;
}
#hbody .imgspin figure {
  margin: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
}

#hbody .imgspin figure img {
  display: block;
  position: relative;
  z-index: 10;
}

#hbody .imgspin figure figcaption {
  display: block;
  position: absolute;
  padding-top: 3em;
  border-radius: 25px;
  z-index: 5;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box
}

/*#hbody .imgspin figure h4{
  width: 80%;
}*/

/************* MAKE THE WHOLE SPINNER CLICKABLE *************/

#hbody .imgspin figure a {
  display: block;
  width: 300px;
  height: 300px;
  position: absolute;
  top: 0;
  left: 0;
  text-decoration: none;
}

#hbody .imgspin figure h4 {
  color: #fff;
  font-size: 1.5em;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  border-radius: 10px;
  padding: 5px;
  width: 80%;
  margin: 80px auto 20px;
  text-decoration: none;
  background-color: #487191;
}


#hbody .imgspin figure p {
  display: block;
  font-size: 1em;
  line-height: 1.25em;
  width: 80%;
  margin: 0 auto 20px;
  color: #487191;
  text-align: left;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
}

#hbody .imgspin figure figcaption {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 90px 25px;
  background-color: #769FBE;
  text-align: center;
  backface-visibility: hidden;
  -webkit-transform: rotateY(-180deg);
  -moz-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  transition: all .5s;
}

#hbody .imgspin figure img {
  backface-visibility: hidden;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  transition: all .5s;
}

#hbody .imgspin figure:hover img, figure:hover img {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

#hbody .imgspin figure:hover figcaption, figure:hover figcaption {
  -webkit-transform: rotateY(0);
  -moz-transform: rotateY(0);
  transform: rotateY(0);
}

/*======== About Styles ========*/

#abody h2 {
  font-size: 3em;
  line-height: 1.5em;
  color: #fff;
  background-color: #769FBE;
  text-align: center;
  border-radius: 15px 0 0 0;
}

#abody .ainfo {
  list-style-type: none;
  background-color: #a6c5dc;
  border-radius: 0 0 15px 0;
  font-size: 1.25em;
  line-height: 1.75em;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
}

#abody .ainfo a,
#abody .ainfo a:link,
#abody .ainfo a:visited {
  color: #000;
  text-decoration: none;
}

#abody .atitle {
  color: #fff;
  background-color: #487191;
  padding-left: 1em;
  line-height: 2em;
  border-radius: 15px 0 15px 0;
  height: 2em;
  margin: 1em 0 0;
}

#abody h4 {
  color: #487191;
  font-size: 1.25em;
  font-weight: bold;
  margin: 5px 0;
}

#abody .when,
#abody .knowledge,
#abody .info {
  margin: 5px;
  padding-left: 15px;
}

#abody main ul {
  list-style-type: none;
  padding-left: 30px;
}

.profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
}

#abody .resume{
  width: 60%;
  text-align: center;
  border: 5px solid #a6c5dc;
  background-color: #487191;
  border-radius: 25px;
  line-height: 3em;
  font-size: 1.25em;
  padding-left: 0;
  margin: 15px auto;  
}

#abody .resume a{
  color: #fff;
  width: 100%;
  border-radius: 20px;
  display: inline-block;
  text-decoration: none;
}

#abody .resume a:hover{
  color: #487191;
  background-color: #fff;
}

/*======== Contact Styles ========*/

footer {
  background-color: #769FBE;
  padding: 20px;
}

footer form {
  width: 80%;
  margin: 10px auto;
  padding: 10px 20px;
  background: #f4f7f8;
  border-radius: 8px;
}

footer h3 {
  text-align: center;
  color: #fff;
  background-color: #487191;
  border-radius: 25px 0 25px 0;
  line-height: 1.5em;
  font-size: 1.25em;
  padding-left: 20px;
  margin-bottom: 10px;
}

footer input[type="text"],
footer input[type="date"],
footer input[type="datetime"],
footer input[type="email"],
footer input[type="number"],
footer input[type="search"],
footer input[type="tel"],
footer input[type="time"],
footer input[type="url"],
footer textarea,
footer select {
  background: rgba(255,255,255,0.1);
  border: none;
  font-size: 16px;
  height: 30px;
  margin: 0;
  outline: 0;
  padding: 15px;
  width: 100%;
  background-color: #e8eeef;
  color: #8a97a0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
  margin-bottom: 10px;
}

footer input[type="radio"],
footer input[type="checkbox"] {
  margin: 0 4px 8px 0;
}

footer select {
  padding: 6px;
  height: 30px;
  border-radius: 2px;
}

footer button {
  padding: 10px;
  line-height: 1em;
  color: #FFF;
  background-color: #769FBE;
  font-size: 1em;
  text-align: center;
  font-style: normal;
  border-radius: 5px;
  height: 35px;
  width: 50%;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.1) inset;
  margin-bottom: 10px;
}

footer button:hover {
  color: #487191;
  background-color: #a6c5dc;
}

footer fieldset {
  margin-bottom: 15px;
  border: none;
}

footer legend {
  font-size: 1em;
  margin-bottom: 10px;
}

footer label {
  display: block;
  margin-bottom: 8px;
}

footer label.light {
  font-weight: 300;
  display: inline;
}

footer .number {
  background-color: #769FBE;
  color: #fff;
  height: 30px;
  width: 30px;
  display: inline-block;
  font-size: 0.8em;
  margin-right: 4px;
  line-height: 30px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
  border-radius: 100%;
}


/*======== Form Success Styles ========*/

#sbody main {
  height: 500px;
}

#sbody .atitle{
  color: #fff;
  font-size: 2em;
  background-color: #487191;
  padding-left: 1em;
  line-height: 2em;
  border-radius: 15px 0 15px 0;
  height: 2em;
  margin: 1em 0 0;  
}

#sbody div .success {
  font-size: 1.5em;
  text
}

#sbody .back {
  margin-bottom: 40px;
}

.return{
  width: 35%;
  margin: 100px auto 0;
  background-color: #a6c5dc;
  border-radius: 25px;
  border: 5px solid #487191;
  text-align: center;
  line-height: 2em;
  font-size: 1.5em;
}

.return a{  
  text-decoration: none;
  color: #fff;
}

/*======== Single Page Styles ========*/

/*#a6c5dc light blue
#487191 dark blue
.project is nav div
.promenu is nav*/

.dis-body .projects {
  margin: 0 auto;
  max-width: 606px;
  height: 40px;
  display: block;
}

.dis-body .promenu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  position: absolute;
}

.dis-body .promenu li{
  display: inline-block;
  float: left;
  margin-right: 1px;
}

.dis-body .promenu li a {
  display: inline-block;
  width:200px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  color: #fff;
  background: #a6c5dc;
  text-decoration: none;
}

/*Hover state for top level links*/
.dis-body .promenu li:hover a {
  background: #487191;
  width:200px;
}

/*Style for dropdown links*/
.dis-body .promenu li:hover ul a {
  background: #fff;
  color: #000;
  width: 200px;
  height: 40px;
  line-height: 40px;
}

/*Hover state for dropdown links*/
.dis-body .promenu li:hover ul a:hover {
  background: #a6c5dc;
  width: 200px;
  height: 40px;
  color: #fff;
}

/*Hide dropdown links until they are needed*/
.dis-body .promenu li ul {
  display: none;
}

/*Make dropdown links vertical*/
.dis-body .promenu li ul li {
  display: block;
  float: none;
}

/*Prevent text wrapping*/
.dis-body .promenu li ul li a {
  width: 200px;
  min-width: 100px;
  padding: 0 20px;
}

/*Display the dropdown on hover*/
.dis-body .promenu ul li a:hover + .nhidden,
.dis-body .promenu ul li .nhidden:hover {
  display: block;
  width: auto;
  height: 40px;
}

.dis-body .atitle{
  color: #fff;
  font-size: 2em;
  background-color: #487191;
  padding-left: 1em;
  line-height: 2em;
  border-radius: 15px 0 15px 0;
  height: 2em;
  margin: 1em 0 0;  
}

.dis-body img{
  border-radius: 35px;
  padding-right: 10px; 
  margin: 30px 0;
  overflow: auto;
  float: left;
  width: 60%;
}

.dis-body .description {
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&amp;1+50,0+100 */
  background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(50%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,0) 100%); /* IE10+ */
  background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,0) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 ); /* IE6-9 */
  border-radius: 25px;
  padding: 15px;
  margin-top: 30px;
  width: 40%;
  float: left;
}

.dis-body .description h3{
  color: #fff;
  background-color: #487191;
  border-radius: 25px;
  line-height: 1.5em;
  font-size: 1.25em;
  padding-left: 20px;
  margin-bottom: 10px;
}

.dis-body .description .slink{
  width: 60%;
  text-align: center;
  border: 5px solid #a6c5dc;
  background-color: #487191;
  border-radius: 25px;
  line-height: 1.5em;
  font-size: 1.25em;
  padding-left: 0;
  margin: 15px auto;
}

.dis-body .description .slink a{
  text-decoration: none;
  display: inline-block;
  color: #fff;
  width: 100%;
}

.dis-body .description .slink a:hover{
  color: #487191;
  background-color: #a6c5dc;
  border-radius: 25px;
}

.dis-body main{
  margin-top: 220px;
  margin-bottom: 50px;
}

.dis-body footer{
  clear: left;
  width: auto;
}

/*======== Lightbox Styles ========*/

#lightbox {
    position:fixed; /* keeps the lightbox window in the current viewport */
    top:0px; 
    left:0;
    z-index: 9999999;
    width:100%; 
    height:100%; 
    background-color: rgba(72, 113, 145, .45);; 
    text-align:center;
}

#lightbox p {
    text-align:right; 
    color:#fff; 
    margin-right:20px; 
    font-size:12px; 
}

#lightbox #content img {
    box-shadow:0 0 25px #111;
    -webkit-box-shadow:0 25px 25px #111;
    -moz-box-shadow:0 25px 25px #111;
    width: auto;
    max-width:600px;
    position: absolute;
    margin: 0;
    top: 50%;
    left: 50%;
    padding: 0;
    transform: translate(-50%, -50%);
    float: none;
}




/*======== Media sizes ========*/


@media screen and (max-width: 480px) {
  #lightbox #content img {
    max-width:310px;
}



main,
.dis-body .projects{
  margin-top: 120px;
}



  footer form {
    width: 100%;
  }



nav {
  height: 220px;
  border: solid 5px #fff;
  border-right: none;
  border-radius: 15px 0 0 15px;
  top: 90px;
}

nav.active {
  right: 0;
  width: 50%;
  transition-duration: 1s;
}

nav ul {
  top: -10px;
}

nav li {
  padding: 20px 0 0;
}

header #hambtn {
  position: absolute;
}

}

@media screen and (max-width: 640px) {

  #lightbox #content img {
    max-width:340px;
}

/*====== Second Nav ======*/
  .dis-body .projects {
    width: 306px;
  }
  .dis-body .promenu{
    width: 100%;
    height: 54px;
    margin: 0 auto;
    font-size: 1em;
  }
  
  .dis-body .promenu li a,
  .dis-body .promenu li:hover a,
  .dis-body .promenu li:hover ul a,
  .dis-body .promenu li:hover ul a:hover,
  .dis-body .promenu li ul li a{
    width: 100px;
    height: 50px;
    padding: 10px 0;
    line-height: 1em;
  }

  .dis-body .promenu ul > li + li + li a,
  .dis-body .promenu ul > li + li + li a:hover,
  .dis-body .promenu ul > li + li + li ul li a{
    padding-top: 17px;
  }


}

@media screen and (max-width: 750px) {

  #lightbox #content img {
    max-width:390px;
  }

  main,
  .dis-body main{
    margin-top: 140px;
  }

    header{
    background-color: #769FBE;
    background-image: none;
    height: 100px;
  }

  #logo{
  width: 80px;
  height: 80px;
}

header #hambtn {
  display: block;
  position: fixed;
  top: 5px;
  right: 5px;
  background-color: #a6c5dc;
  color: #fff;
  width: 75px;
  height: 75px;
  text-align: center;
  line-height: 73px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 1.5em;
  text-decoration: none;
  /*padding-right: 5%;*/
}

nav {
  width: 400px;
  height: auto;
  border-top: solid 5px #fff;
  border-left: solid 5px #fff;
  border-radius: 15px 0 0 0;
  position: fixed;
  right: -400px;
  background-color: #a6c5dc;
  text-align: center;
  transition-duration: 1s;
  z-index: 9999;
}

nav.active {
  right: 0;
  width: 50%;
  transition-duration: 1s;
}

nav ul{
  position: relative;
  width: 100%;
}

nav ul li {
  list-style: none;
  line-height: 1.75em;
  width: 100%;
  margin: 20px;
  float: none;
}
nav ul li a {
  color: white;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  border-bottom: solid 2px #fff;
}

nav ul li a:hover {
  color: #487191;
  border-bottom: solid 2px #487191;
}

}

@media screen and (max-width: 800px) {

  #sbody main{
    height: 700px;
    margin-top: 150px;
  }

  #sbody header{
  }

  #sbody footer {
    height: 250px;
  }

  .dis-body img{
    width: 100%;
    padding: 0;

  }

  .dis-body .description{
    width: 100%;
  }

}
















