@import url("https://fonts.googleapis.com/css2?family=Poiret+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap");
img {
  max-width: 100%;
}

section {
  display: flex;
  width: max-content;
  position: relative;
}

section > div {
  position: relative;
  z-index: 1;
}

.project {
  height: calc(100vh - 17px);
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
}
.project-menu {
  position: fixed;
  top: 20%;
  left: 50px;
  z-index: 20;
  display: flex;
}
.project-menu .project-btn {
  font-size: 0.875rem;
  position: relative;
  padding: 5px 0;
  margin: 10px;
  display: inline-block;
  color: #888;
  text-transform: uppercase;
}
.project-menu .project-btn:before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #000;
  -moz-transition: width 0.6s;
  -o-transition: width 0.6s;
  -webkit-transition: width 0.6s;
  transition: width 0.6s;
}
.project-menu .project-btn:hover {
  color: #000;
}
.project-menu .project-btn:hover:before {
  width: 100%;
  -moz-animation: projectLine 1.2s infinite;
  -webkit-animation: projectLine 1.2s infinite;
  animation: projectLine 1.2s infinite;
}
.project-menu .project-btn:hover .tw {
  opacity: 1;
}
.project-menu .project-btn:hover .en {
  opacity: 0;
}
.project-menu .project-btn .tw {
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  position: absolute;
  left: 50%;
  white-space: nowrap;
  opacity: 0;
}
.project-menu .project-btn .en, .project-menu .project-btn .tw {
  display: inline-block;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.project-menu .project-btn.active {
  color: #000;
}
.project-menu .project-btn.active:before {
  width: 100%;
}
.project-list {
  display: flex;
  flex-flow: row wrap;
  width: auto;
  -webkit-align-content: center;
  align-content: center;
  margin-right: 50px;
  margin-top: 120px;
}
.project-item {
  margin-left: 50px;
}
.project-item:hover .project-img img {
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
  -moz-transition: -moz-transform 4s;
  -o-transition: -o-transform 4s;
  -webkit-transition: -webkit-transform 4s;
  transition: transform 4s;
}
.project-img {
  margin: auto;
  width: 80vw;
  overflow: hidden;
}
.project-img img {
  -moz-transition: -moz-transform 4s;
  -o-transition: -o-transform 4s;
  -webkit-transition: -webkit-transform 4s;
  transition: transform 4s;
  position: relative;
  width: 100%;
}
.project-name {
  width: 80vw;
  font-size: 0.875rem;
  margin-right: -6px;
  padding-top: 15px;
  text-transform: uppercase;
}

@-moz-keyframes projectLine {
  0% {
    width: 0;
    left: 0;
    right: unset;
  }
  60% {
    width: 100%;
    left: 0;
    right: unset;
  }
  70% {
    width: 100%;
    left: unset;
    right: 0;
  }
  100% {
    width: 0;
    left: unset;
    right: 0;
  }
}
@-webkit-keyframes projectLine {
  0% {
    width: 0;
    left: 0;
    right: unset;
  }
  60% {
    width: 100%;
    left: 0;
    right: unset;
  }
  70% {
    width: 100%;
    left: unset;
    right: 0;
  }
  100% {
    width: 0;
    left: unset;
    right: 0;
  }
}
@keyframes projectLine {
  0% {
    width: 0;
    left: 0;
    right: unset;
  }
  60% {
    width: 100%;
    left: 0;
    right: unset;
  }
  70% {
    width: 100%;
    left: unset;
    right: 0;
  }
  100% {
    width: 0;
    left: unset;
    right: 0;
  }
}
@media screen and (min-width: 1101px) {
  .project-menu .project-btn:first-child {
    margin-left: 0;
  }
}
@media screen and (min-height: 501px) {
  .project-img {
    width: 75vh;
    height: 50vh;
  }
  .project-name {
    width: 75vh;
  }
}
@media screen and (max-height: 500px) {
  .project {
    width: 100vw;
    height: auto;
    margin: 100px 0 50px;
  }
  .project-menu {
    position: relative;
    top: auto;
    left: auto;
    width: 80vw;
    max-width: 1200px;
    margin: 0 auto;
  }
  .project-list {
    display: block;
    margin: 0 auto;
  }
  .project-item {
    width: 100vw;
    padding-bottom: 25px;
    margin: 0;
  }
  .project-name {
    max-width: 1200px;
    width: 80vw;
    margin: 0 auto;
    padding: 10px 0 15px;
  }
  .project-img {
    max-width: 1200px;
    width: 80vw;
  }
}
@media screen and (max-height: 500px) and (min-width: 1101px) {
  .project-item {
    width: calc(100vw - 17px);
  }
}
@media screen and (max-height: 500px) and (max-width: 1100px) {
  .project-list {
    margin: 50px;
  }
  .project-name {
    width: 100vw;
  }
  .project-img {
    width: 100vw;
  }
}
@media screen and (max-width: 1100px) {
  .project {
    height: auto;
    width: 100vw;
    margin-top: 80px;
    padding: 0;
  }
  .project-menu {
    position: relative;
    width: calc(100% - 100px);
    top: auto;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .project-list {
    margin: 0px auto;
    width: calc(100% - 100px);
  }
  .project-item {
    width: 100%;
    margin-left: 0;
    padding-bottom: 25px;
  }
  .project-img {
    height: auto;
    width: 100%;
    margin-left: 0;
  }
  .project-name {
    width: 100%;
  }
}
@media screen and (max-width: 640px) {
  .project-menu {
    width: calc(100% - 50px);
    left: 25px;
  }
  .project-list {
    margin: 0 25px;
    width: calc(100% - 50px);
  }
  .project-item {
    margin-left: 0px;
    width: 100%;
  }
  .project-name {
    padding: 10px 0 15px;
  }
}
@media screen and (max-height: 500px) and (max-width: 640px) {
  .project-menu {
    left: 25px;
    top: auto;
    margin-left: 0;
  }
  .project-list {
    margin-top: 20px;
  }

  .footer {
    position: relative;
  }
}
