a {
  text-decoration: none;
}
body {
  padding: 0;
  margin: 0;
}
div {
  padding: 0;
  margin: 0 auto;
}
.width {
  width: 960px;
}

/*class to define currently chosen item*/

.focus {
  display: inline-block;
}
.focus:hover .overlay {
  display: none;
}
header {
  background: url("../img/header-back.png");
  background-size: cover;
  height: 200px;
  width: 100%;
  top: 0;
  position: fixed;
  z-index: -1;
}
.header-container {
  -webkit-animation-name: bounceInDown;
  -moz-animation-name: bounceInDown;
  -o-animation-name: bounceInDown;
  animation-name: bounceInDown;
  -webkit-animation-duration: 1s;
  -moz-animation-duration: 1s;
  -o-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  -moz-animation-fill-mode: both;
  -o-animation-fill-mode: both;
  animation-fill-mode: both;
}
.logo {
  width: 50%;
  margin: 40 auto;
  text-align: center;
  background-color: #ddd;
  border: 4px solid black;
}
.logo-name {
  font-family: 'Fredericka the Great', cursive;
  font-size: 70px;
}
.logo-title {
  font-family: 'Coda', cursive;
  font-size: 10px;
  letter-spacing: 5px;
  margin-bottom: 5px;
}
.portfolio {
  background-image: url("http://api.thumbr.it/whitenoise-361x370.png?background=ffffffff&noise=ababab&density=20&opacity=20");
  background-color: #FFFFFF;
  margin: 200px auto 0 auto;
  border-top: 5px solid rgb(208, 208, 208);
  box-shadow: 0px 0px 2px black;
  position: relative;
  overflow: hidden;
  padding: 20px;
  min-height: 330px;
}
.portfolio-holder article {
  overflow: hidden;
  padding: 0px;
  background: #d0d0d0;
  border: 5px solid #F1F1F1;
  float: left;
  width: 300px;
  height: 300px;
  margin: 0 0 5px 5px;
  position: relative;
  z-index: 3;
}
article:hover, article:active {
  bottom: 60%;
  cursor: pointer;
}
.portfolio-holder article:nth-child(3n+1) {
  clear: left;
  margin-left: 0;
}
.hide {
  opacity: 0;
  display: hidden;
}
article img {
  width: 100%;
  -webkit-filter: grayscale(100%);
}
article p {
  display: none;
}
article:hover {
  border: 5px solid rgba(76, 76, 76, .95);
  /*border-radius: 5%;*/
}
article:hover img {
  transition: all 1s;
  -webkit-filter: grayscale(0);
}
article:hover .overlay {
  top: 60%;
}
.overlay {
  position: absolute;
  bottom: 0;
  top: 100%;
  background: rgba(42, 42, 42, .8);
  font-size: 15px;
  overflow: hidden;
  text-align: left;
  /* fix text transition issue for .left and .right but need to overwrite left and right properties in .right */
  width: 100%;
  -moz-transition: top 0.2s, right 0.2s, bottom 0.2s, left 0.2s;
  -webkit-transition: top 0.2s, right 0.2s, bottom 0.2s, left 0.2s;
  transition: top 0.2s, right 0.2s, bottom 0.2s, left 0.2s;
  padding-left: 20px;
  color: white;
  font-family: sans-serif;
  font-weight: bold;
}
.overlay h2, .info-box h2 {
  text-shadow: 2px 2px 2px #000, -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000, 1px 1px 1px #000;
  margin-top: 40px;
  line-height: 5px;
  color: rgb(255, 157, 0);
}
.overlay h3 {
  text-shadow: 2px 2px 2px #000, -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000, 1px 1px 1px #000;
  font-weight: normal;
}
.info-box {
  display: none;
  color: rgba(42, 42, 42);
  padding: 6px;
  width: 750px;
  height: 288px;
  font-family: sans-serif;
  font-size: 14px;
  background: rgba(0, 0, 0, 0);
  position: relative;
}
.close {
  color: rgb(209, 107, 107);
  text-shadow: 2px 2px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 1px #000, 1px 1px 2px #000;
  position: absolute;
  right: 0;
  top: 0;
  font-size: 25px;
}
.close:hover {
  cursor: pointer;
  color: rgb(135, 67, 67);
}
.close:active {
  top: 1px;
  right: -1px;
}

/*classes for injected description*/

#info div {
  width: 400px;
  margin: 25px 0 0 25px;
  vertical-align: top;
  display: inline-block;
}
#info img {
  width: 300px;
  box-shadow: 0px 0px 5px black;
}
#info h2 {
  margin: 8px 0;
  color: rgb(255, 255, 255);
}
#info p {
  vertical-align: top;
}
#info a {
  color: #3968A3;
}
#info li {
  display: list-item;
}
#info h4 {
  padding: 0;
  margin: 0;
}
#info .btn-holder {
  position: absolute;
  bottom: 0;
  right: 0;
}
#info .btn {
  border-radius: 5px;
  font: 14px/20px helvetica, arial, sans-serif;
  color: #000000;
  background: #9D9D9D;
  padding: 10px 20px 10px 20px;
  font-weight: bold;
  -moz-transition: .2s;
  -webkit-transition: .2s;
  transition: .2s;
  box-shadow: 0px 0px 0px 1px rgb(98, 98, 98);
  float: right;
  margin-right: 5px;
}
#info .btn:hover {
  background: #3968A3;
  color: white;
  box-shadow: 0px 0px 0px 1px black;
}
footer {
  border-top: 5px solid rgb(208, 208, 208);
  box-shadow: 0px 0px 2px black;
  background: #2A2A2A;
  height: 370px;
  font-family: sans-serif;
  font-size: 14px;
}
footer h2 {
  font-family: sans-serif;
  font-weight: bold;
  font-size: 20px;
  color: rgb(209, 107, 107);
  text-align: left;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.footer-container > div {
  width: 29%;
  padding-left: 40px;
  vertical-align: top;
  float: left;
  color: white;
}
.footer-mid form div {
  margin: 10px 0px;
}
.footer-mid label {
  font-family: sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: white;
  text-align: left;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.footer-mid input {
  background: #fffee9;
  border: 0;
  border-radius: 5px;
  font: 14px/20px helvetica, arial, sans-serif;
  line-height: 20px;
  height: 30px;
  width: 90%;
  padding: 5px;
}
.footer-mid textarea {
  background: #fffee9;
  border: 0;
  border-radius: 5px;
  font: 14px/20px helvetica, arial, sans-serif;
  line-height: 20px;
  height: 80px;
  width: 90%;
  padding: 5px;
  resize: none;
}
.footer-mid input[type='submit'] {
  background: #fffee9;
  border: 0;
  border-radius: 5px;
  font: 14px/20px helvetica, arial, sans-serif;
  font-weight: bold;
  line-height: 20px;
  height: 30px;
  width: 20%;
  padding: 5px;
}
.footer-mid .button input {
  width: 20%;
  transition: all .2s;
  background: #9d9d9d;
  box-shadow: 0px 0px 0px 1px black;
}
.footer-mid .button input:hover {
  cursor: pointer;
  background: #FAF356;
}
.footer-mid .button input:active {
  vertical-align: top;
  padding: 4px 7px 3px;
}
.footer-right .contact-icons {
  float: left;
  width: 40px;
  height: 40px;
  float: left;
  position: relative;
}
.footer-right .contact-icons a {
  position: absolute;
  float: left;
  width: 40px;
  height: 40%;
  display: inline-block;
}
.footer-right .contact-li {
  background-size: cover;
  background-image: url('../img/linkedin.png');
  transition: all 1s;
}
.footer-right .contact-li:hover {
  background-size: cover;
  background-image: url('../img/linkedinh.png');
}
.footer-right .contact-email {
  background-size: cover;
  margin-left: 10px;
  background-image: url('../img/email.png');
  transition: all 1s;
}
.footer-right .contact-email:hover {
  background-image: url('../img/emailh.png');
}

@-webkit-keyframes bounceInDown {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-2000px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateY(30px);
  }
  80% {
    -webkit-transform: translateY(-10px);
  }
  100% {
    -webkit-transform: translateY(0);
  }
}
@-moz-keyframes bounceInDown {
  0% {
    opacity: 0;
    -moz-transform: translateY(-2000px);
  }
  60% {
    opacity: 1;
    -moz-transform: translateY(30px);
  }
  80% {
    -moz-transform: translateY(-10px);
  }
  100% {
    -moz-transform: translateY(0);
  }
}
@-o-keyframes bounceInDown {
  0% {
    opacity: 0;
    -o-transform: translateY(-2000px);
  }
  60% {
    opacity: 1;
    -o-transform: translateY(30px);
  }
  80% {
    -o-transform: translateY(-10px);
  }
  100% {
    -o-transform: translateY(0);
  }
}
@keyframes bounceInDown {
  0% {
    opacity: 0;
    transform: translateY(-2000px);
  }
  60% {
    opacity: 1;
    transform: translateY(30px);
  }
  80% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
@media screen and (max-width: 1100px) and (orientation: landscape) {
  .width {
    width: 625px;
  }
  .logo {
    width: 80%;
  }
  .portfolio-holder article:nth-child(3n+1) {
    clear: none;
    margin: 0 0 5px 5px;
  }
  .portfolio-holder article:nth-child(2n+1) {
    clear: left;
    margin-left: 0;
  }
  .info-box {
    width: auto;
  }
  #info div {
    margin: 0px 0 0 10px;
    width: auto;
  }
  #info p {
    width: 290px;
  }
  footer {
    height: 500px;
  }
  .footer-container > div {
    width: 100%;
  }
}
@media screen and (min-width: 320px) and (max-width: 800px), (orientation: portrait){
  .width {
    width: 300px;
  }
  .logo {
    width: 95%;
  }
  .logo-name {
    font-size: 50px;
  }
  .portfolio article {
    height: 100px;
    width: 95%;
  }
  .portfolio article .overlay {
    top: 0;
  }
  .portfolio article:hover .overlay {
    top: 0;
  }
  .portfolio-holder article:nth-child(2n+1) {
    clear: none;
    margin: 0 0 5px 5px;
  }
  .portfolio-holder article:nth-child(n) {
    clear: all;
    margin: 0 0 5px 5px;
  }
  .info-box {
    height: auto;
    width: auto;
  }
  .info-box .close {
    top: 10px;
  }
  #info div {
    margin:10px 0 0 0;
    width: auto;
  }
  footer {
    height: 600px;
  }
  .footer-container > div {
    width: 100%;
    padding: 0;
  }
  .footer-mid .button input {
    width: 90%;
  }
}
