body{
  margin: 0;
  background-color: #000;
  color: #eee;
  font-family: monospace;
  font-size: 18px;
}

header{
  width: 1140px;
  max-width: 80%;
  margin: auto;
  height: 50px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.navbar{
  width: 1200px;
  height: 75px;
  margin: auto;
}

.icon{
  width: 200px;
  float: left;
  height: 70px;
}

.menu{
  width: 400px;
  float: left;
  height: 70px;
}

ul{
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
}

ul li{
  list-style: none;
  margin-left: 62px;
  margin-top: 27px;
  font-size: 14px;
}

ul li a{
  text-decoration: none;
  color: #fff;
  padding: 5px 20px;
  font-family: Arial;
  font-weight: bold;
  border: 1px solid transparent;
  transition: 0.5s ease-in-out;
}

ul li a:hover{
  text-decoration: underline;
  color: #D3D3D3;
}

nav {
  &.primary-navigation {
    margin: 0 auto;
    display: block;
    text-align: center;
    font-size: 16px;

    ul li {
      list-style: none;
      margin: 0 auto;
      border-left: 2px solid #FF0000;
      padding: 0 30px;
      position: relative;
      text-decoration: none;
      text-align: center;
      font-family: arvo;
    }

    li a {
      color: #FFD700;
    }

    li a:hover {
      color: #fff;
    }

    li:hover {
      cursor: pointer;
    }

    ul li ul {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      padding-left: 0;
      left: 0;
      display: none;
      background: #000000;
      background-color: rgba(0, 0, 0, 0.2);
    }

    ul li:hover > ul,
    ul li ul:hover {
      visibility: visible;
      opacity: 1;
      display: block;
      min-width: 250px;
      text-align: left;
      padding-top: 20px;
      box-shadow: 0px 3px 5px -1px #000000
    }

    ul li ul li {
      clear: both;
      width: 100%;
      text-align: left;
      margin-bottom: 20px;
      border-style: none;
    }

    ul li ul li a:hover {
      padding-left: 10px;
      border-left: 2px solid #FF0000;
      transition: all 0.3s ease;
    }
  }
}

a {
  text-decoration: none;

  &:hover {
    color: #fff
  }
}

ul li ul li a {
  transition: all 0.5s ease;
}

.main{
  height: 100vh;
  margin-top: -50px;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

.main .list .item{
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 0;
}

.main .list .item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main .list .item .content{
  position: absolute;
  top: 20%;
  width: 1140px;
  max-width: 80%;
  left: 50%;
  transform: translateX(-50%);
  padding-right: 30%;
  box-sizing: border-box;
  color: #fff;
  text-shadow: 0 5px 10px #0004;
}

.main .list .item .title,
.main .list .item .topic{
  font-size: 5em;
  font-weight: bold;
  line-height: 1.3em;
}

.main .list .item .buttons{
  display: grid;
  grid-template-columns: repeat(2, 130px);
  grid-template-rows: 40px;
  gap: 5px;
  margin-top: 20px;
}

.main .list .item .buttons button{
  cursor: pointer;
  border: none;
  background-color: #eee;
  letter-spacing: 3px;
  font-family: Arial;
  font-size: 15px;
  font-weight: 500;
  border-radius: 20px;
}

.thumbnail{
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 20px;
}

.thumbnail .item{
  width: 150px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
}
.thumbnail .item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.thumbnail .item .content{
  color: #fff;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}

.thumbnail .item .content .title{
  font-weight: 500;
}

.arrows{
  position: absolute;
  top: 80%;
  right: 52%;
  z-index: 100;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
}

.arrows button{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eee4;
  border: none;
  color: #fff;
  font-family: monospace;
  font-weight: bold;
  transition: .5s;
}

.arrows button:hover{
  cursor: pointer;
  background-color: #fff;
  color: #000;
}

.main .list .item:nth-child(1){
  z-index: 1;
}

.main .list .item:nth-child(1) .content .title, .main .list .item:nth-child(1) .content .des, .main .list .item:nth-child(1) .content .buttons {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent .5s 1s linear 1 forwards;
}

@keyframes showContent{
  to{
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 1;
  }
}
.main .list .item:nth-child(1) .content .title{
  animation-delay: 1.2s!important;
}
.main .list .item:nth-child(1) .content .topic{
  animation-delay: 1.4s!important;
}
.main .list .item:nth-child(1) .content .des{
  animation-delay: 1.6s!important;
}
.main .list .item:nth-child(1) .content .buttons{
  animation-delay: 1.8s!important;
}

.main.next .list .item:nth-child(1) img{
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage .5s linear 1 forwards;
}

@keyframes showImage{
  to{
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.main.next .thumbnail .item:nth-last-child(1){
  overflow: hidden;
  animation: showThumbnail .5s linear 1 forwards;
}
.main.prev .list .item img{
  z-index: 100;
}
@keyframes showThumbnail{
  from{
    width: 0;
    opacity: 0;
  }
}

.main.next .thumbnail{
  animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
  from{
    transform: translateX(150px);
  }
}

.main .time{
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 3px;
  background-color: #800000;
  left: 0;
  top: 0;
}

.main.next .time, .main.prev .time{
  animation: runningTime 3s linear 1 forwards;
}

@keyframes runningTime{
  from{ width: 100%}
  to{width: 0}
}

.main.prev .list .item:nth-child(2){
  z-index: 2;
}

.main.prev .list .item:nth-child(2) img{
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}

@keyframes outFrame{
  to{
    width: 150px;
    height: 220px;
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
  }
}

.main.prev .thumbnail .item:nth-child(1){
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail .5s linear 1 forwards;
}

.main.next .arrows button, .main.prev .arrows button{
  pointer-events: none;
}
.main.prev .list .item:nth-child(2) .content .author, .main.prev .list .item:nth-child(2) .content .title, .main.prev .list .item:nth-child(2) .content .topic, .main.prev .list .item:nth-child(2) .content .des, .main.prev .list .item:nth-child(2) .content .buttons {
  animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
  to{
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}

@media screen and (max-width: 678px) {
  .main .list .item .content{
    padding-right: 0;
  }
  .main .list .item .content .title{
    font-size: 30px;
  }
}
