@import url(https://fonts.googleapis.com/css?family=Lato:300,100,400);

* {
  margin: 0;
  padding: 0;
  border: 0;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  list-style-type: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a.link {
  color: #c4290d;
}

html,
body {
  min-height: 100%;
}

body {
  background: #eee ;
  font: 300 20px/1.5 "Lato", sans-serif;
  color: #333;
}

header {
  background-color: white;
  padding: 0 30px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  z-index: 10;
  line-height: 2em;
}

header a {
  font-size: 20px;
}

.demo-wrapper {
  padding: 30px;
}

h1 {
  font-size: 32px;
  margin: 0;
  font-weight: 300;
  margin-bottom: 30px;
  letter-spacing: -1px;
  text-align: center;
}

.featured-items {
  height: 300px;
  overflow-x: scroll;
  overflow-y: hidden;
  margin-bottom: 30px;
  position: relative;
}

.featured-items > li {
  display: inline-block;
  vertical-align: top;
}

.portfolio-items {
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  margin-bottom: 30px;
  position: relative;
}

.portfolio-items > li {
  display: inline-block;
  vertical-align: top;
}

.item {
  width: 300px;
  height: 202px;
  margin: 50px 20px 0;
  padding: 5px;
  border-radius: 2px;
  background-color: white;
  font-size: 14px;
  opacity: 0;
  position: relative;
  top: -300px;
  box-shadow: 0px 10px 10px -5px rgba(0, 0, 0, 0.5);
  -webkit-transform: rotate(-135deg);
  -ms-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  transform: rotate(-135deg);
  -webkit-transition: all 0.3s ease, opacity 2s ease, top 1s ease;
  -o-transition: all 0.3s ease, opacity 2s ease, top 1s ease;
  transition: all 0.3s ease, opacity 2s ease, top 1s ease;
}

.itemfeatured {
  background-color: darkcyan;

}
.item:nth-child(even) {
  margin-top: 100px;
}

.item:hover {
  height: 270px;
  padding: 15px;
  -webkit-transform: translateY(-68px);
  -ms-transform: translateY(-68px);
  -o-transform: translateY(-68px);
  transform: translateY(-68px);
}

.item:hover .date {
  -webkit-transform: translate3d(0, 61px, 0);
  -ms-transform: translate3d(0, 61px, 0);
  -o-transform: translate3d(0, 61px, 0);
  transform: translate3d(0, 61px, 0);
}

.item:hover figcaption {
  -webkit-animation: show 0.25s ease-in 0.12s forwards;
  -o-animation: show 0.25s ease-in 0.12s forwards;
  animation: show 0.25s ease-in 0.12s forwards;
}

.item:hover p:nth-of-type(1) span {
  -webkit-animation: slideOut 0.25s ease-out 0.15s forwards;
  -o-animation: slideOut 0.25s ease-out 0.15s forwards;
  animation: slideOut 0.25s ease-out 0.15s forwards;
}

.item:hover p:nth-of-type(2) span {
  -webkit-animation: slideOut 0.2s ease-out 0.3s forwards;
  -o-animation: slideOut 0.2s ease-out 0.3s forwards;
  animation: slideOut 0.2s ease-out 0.3s forwards;
}

.item:hover .view {
  height: 170px;
}

.item:hover .view img {
  top: -20px;
  left: -20px;
}

.falldown {
  top: 0;
  opacity: 1;
  -webkit-transform: rotate(0);
  -ms-transform: rotate(0);
  -o-transform: rotate(0);
  transform: rotate(0);
}

figure {
  width: 100%;
  height: 100%;
  text-align: center;
}

.figure {
  width: 100%;
  height: 100%;
  text-align: inherit;
}
.view {
  overflow: hidden;
  width: 100%;
  height: 190px;
  position: relative;
}

.view img {
  width: 300px;
  height: 190px;
  -webkit-transition: width 0.3s ease;
  -o-transition: width 0.3s ease;
  transition: width 0.3s ease;
  position: absolute;
}

figcaption {
  height: 60px;
  width: 100%;
  padding: 0;
  position: absolute;
  bottom: 0;
  overflow: hidden;
  opacity: 0;
}

figcaption p {
  line-height: 25px !important;
  font: bold 12px/18px "Arial", sans-serif;
  text-transform: uppercase;
  padding: 0 10px;
  margin: 5px 0;
  width: 100%;
  background-color: #f0f0f0;
  color: #333;
}

figcaption span {
  left: -100%;
  opacity: 0;
}

figcaption a {
  color: #cc320f;
}

.date {
  z-index: 1;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
  color: #fff;
  font-weight: bold;
  text-align: center;
  border-radius: 1px;
  background-color: #cc320f;
  position: absolute;
  bottom: 30px;
  left: 15px;
  -webkit-transition: -webkit-transform 0.5s cubic-bezier(0.12, 1.6, 0.91, 0.92);
  -o-transition: -o-transform 0.5s cubic-bezier(0.12, 1.6, 0.91, 0.92);
  transition: -webkit-transform 0.5s cubic-bezier(0.12, 1.6, 0.91, 0.92);
  transition: -ms-transform 0.5s cubic-bezier(0.12, 1.6, 0.91, 0.92);
  transition: -o-transform 0.5s cubic-bezier(0.12, 1.6, 0.91, 0.92);
  transition: transform 0.5s cubic-bezier(0.12, 1.6, 0.91, 0.92);
}

@keyframes slideOut {
  0% {
    left: -100%;
    opacity: 0;
  }

  95% {
    left: 0;
    opacity: 0.2;
  }

  100% {
    opacity: 1;
    left: 0;
  }
}

@keyframes show {
  to {
    opacity: 1;
  }
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  cursor: pointer;
}

::-webkit-scrollbar-track {
  background-color: #ddd;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #c4290d;
}

@-webkit-keyframes slideOut {
  0% {
    left: -100%;
    opacity: 0;
  }

  95% {
    left: 0;
    opacity: 0.2;
  }

  100% {
    opacity: 1;
    left: 0;
  }
}

@-o-keyframes slideOut {
  0% {
    left: -100%;
    opacity: 0;
  }

  95% {
    left: 0;
    opacity: 0.2;
  }

  100% {
    opacity: 1;
    left: 0;
  }
}

@-webkit-keyframes show {
  to {
    opacity: 1;
  }
}

@-o-keyframes show {
  to {
    opacity: 1;
  }
}


.footer__menu__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 30px;
}

.footer__menu__link {
  margin: 15px;
}
.footer__menu__link img {
  width: 30px;
  height: 30px;
}
