@import url('https://fonts.googleapis.com/css?family=Karla&display=swap" rel="stylesheet');
@import url('https://fonts.googleapis.com/css?family=Marcellus&display=swap" rel="stylesheet');
.style {
  margin-top: 100px;
}
.style ul {
  height: calc(100vh - 100px - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.style li:hover .style-pic {
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
.style li:hover .style-mask {
  clip-path: polygon(0% 0%, 0% 100%, 30% 100%, 10% 0%);
  -webkit-clip-path: polygon(0% 0%, 0% 100%, 30% 100%, 10% 0%);
  opacity: 0.5;
}
.style li:hover .style-text {
  left: 15%;
  bottom: 60px;
}
.style li:hover .style-describe {
  opacity: 1;
  -moz-transform: scaleY(1);
  -ms-transform: scaleY(1);
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
  -moz-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  -webkit-transition: opacity 0.5s;
  transition: opacity 0.5s;
  -moz-transition-delay: 0.5s;
  -o-transition-delay: 0.5s;
  -webkit-transition-delay: 0.5s;
  transition-delay: 0.5s;
}
.style-list {
  position: relative;
  width: 50%;
  margin: 20px;
}
.style-list:first-child {
  margin-left: 0;
}
.style-list:last-child {
  margin-right: 0;
}
.style-box {
  width: 100%;
  height: 40vh;
  min-height: 250px;
  overflow: hidden;
}
.style-pic {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  -moz-transition: -moz-transform 0.8s ease-in-out;
  -o-transition: -o-transform 0.8s ease-in-out;
  -webkit-transition: -webkit-transform 0.8s ease-in-out;
  transition: transform 0.8s ease-in-out;
}
.style-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  clip-path: polygon(0% 0%, 0% 100%, 40% 100%, 20% 0%);
  -webkit-clip-path: polygon(0% 0%, 0% 100%, 40% 100%, 20% 0%);
  -moz-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  opacity: 0.3;
}
.style-text {
  color: #fff;
  position: absolute;
  bottom: 20px;
  left: 5%;
  -moz-transform: translateY(50%);
  -ms-transform: translateY(50%);
  -webkit-transform: translateY(50%);
  transform: translateY(50%);
  -moz-transition: all 0.5s;
  -o-transition: all 0.5s;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  overflow: hidden;
}
.style-name {
  font-size: 22px;
  letter-spacing: 0.1em;
}
.style-describe {
  border-left: 2px solid rgba(199, 192, 142, 0.5);
  padding-left: 15px;
  margin-top: 10px;
  opacity: 0;
  -moz-transform: scaleY(0);
  -ms-transform: scaleY(0);
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
}

.style-list:nth-child(1) {
  opacity: 0;
  -moz-transform: translateX(50px);
  -ms-transform: translateX(50px);
  -webkit-transform: translateX(50px);
  transform: translateX(50px);
  -moz-transition: -moz-transform 1s, opacity 0.8s;
  -o-transition: -o-transform 1s, opacity 0.8s;
  -webkit-transition: -webkit-transform 1s, opacity 0.8s;
  transition: transform 1s, opacity 0.8s;
}
.style-list:nth-child(2) {
  opacity: 0;
  -moz-transform: translateX(-50px);
  -ms-transform: translateX(-50px);
  -webkit-transform: translateX(-50px);
  transform: translateX(-50px);
  -moz-transition: -moz-transform 1s, opacity 0.8s;
  -o-transition: -o-transform 1s, opacity 0.8s;
  -webkit-transition: -webkit-transform 1s, opacity 0.8s;
  transition: transform 1s, opacity 0.8s;
}
.style-name {
  -moz-transform: translateY(-30px);
  -ms-transform: translateY(-30px);
  -webkit-transform: translateY(-30px);
  transform: translateY(-30px);
  -moz-transition: -moz-transform 0.5s;
  -o-transition: -o-transform 0.5s;
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
  -moz-transition-delay: 0.5s;
  -o-transition-delay: 0.5s;
  -webkit-transition-delay: 0.5s;
  transition-delay: 0.5s;
}
.style.show .style-list:nth-child(1) {
  opacity: 1;
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -webkit-transform: translateX(0);
  transform: translateX(0);
}
.style.show .style-list:nth-child(2) {
  opacity: 1;
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -webkit-transform: translateX(0);
  transform: translateX(0);
}
.style.show .style-name {
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

@media screen and (max-width: 1600px) {
  .style {
    margin-top: 70px;
  }
  .style ul {
    height: calc(100vh - 70px - 60px);
  }
  .style-list {
    margin: 10px;
  }
}
@media screen and (max-width: 1300px) {
  .style-list {
    margin: 5px;
  }
}
@media screen and (max-width: 1100px) {
  .style ul {
    display: block;
    height: unset;
    padding: 50px 0;
  }
  .style li:hover .style-text {
    left: 5%;
  }
  .style-list {
    width: 100%;
    margin: 0 0 20px;
  }
  .style-list:first-child {
    margin: 0 0 20px;
  }
  .style-list:last-child {
    margin: 0;
  }
  .style-mask {
    clip-path: polygon(0% 0%, 0% 100%, 30% 100%, 10% 0%);
    -webkit-clip-path: polygon(0% 0%, 0% 100%, 30% 100%, 10% 0%);
  }
  .style-text {
    bottom: 60px;
  }
  .style-describe {
    opacity: 1;
    -moz-transform: scaleY(1);
    -ms-transform: scaleY(1);
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
  }

  .style-describe {
    -moz-transform: translateY(30px);
    -ms-transform: translateY(30px);
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
    -moz-transition: -moz-transform 0.5s;
    -o-transition: -o-transform 0.5s;
    -webkit-transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    -moz-transition-delay: 0.8s;
    -o-transition-delay: 0.8s;
    -webkit-transition-delay: 0.8s;
    transition-delay: 0.8s;
  }
  .style.show .style-describe {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}
@media screen and (max-width: 800px) {
  .style {
    margin-top: 60px;
  }
  .style li:hover .style-text {
    bottom: 50px;
  }
  .style .inner {
    margin: 0 20px;
  }
  .style-text {
    bottom: 50px;
  }
  .style-name {
    font-size: 18px;
  }
  .style-describe {
    margin-top: 10px;
  }
}
@media screen and (max-width: 640px) {
  .style {
    margin-top: 50px;
  }
  .style ul {
    padding: 20px 0;
  }
  .style li:hover .style-text {
    left: 30px;
  }
  .style li:hover .style-mask {
    clip-path: polygon(0% 60%, 0% 100%, 100% 100%, 100% 70%);
    -webkit-clip-path: polygon(0% 60%, 0% 100%, 100% 100%, 100% 70%);
  }
  .style-mask {
    clip-path: polygon(0% 60%, 0% 100%, 100% 100%, 100% 70%);
    -webkit-clip-path: polygon(0% 60%, 0% 100%, 100% 100%, 100% 70%);
  }
  .style-text {
    left: 20px;
    bottom: 40px;
  }
  .style-describe {
    padding-left: 10px;
  }
}
