html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: #212121;
}

body {
  position: relative;
}

html,
body,
* {
  box-sizing: border-box;
}

section {
  background-color: #212121;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;

  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
}

.content {
  display: flex;
  flex-direction: column;
}

.content .items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.item {
  background-color: #bc994e;
  color: #212121;
  width: 480px;
  transition: 1s;
  font-size: 2rem;

  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.item:hover {
  width: 640px;
  background-color: black;
  color: #bc994e;
}

.content .back {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.current {
  z-index: 999;
}

.showTop {
  animation-name: showTop;
}

.hideTop {
  animation-name: hideTop;
}

@keyframes showTop {
  from {
    top: -100vh;
    left: 0;
  }
  to {
    top: 0;
    left: 0;
  }
}

@keyframes hideTop {
  from {
    top: 0;
    left: 0;
  }
  to {
    top: 100vh;
    left: 0;
  }
}

.showRight {
  animation-name: showRight;
}

.hideRight {
  animation-name: hideRight;
}

@keyframes showRight {
  from {
    top: 0;
    left: 100vw;
  }
  to {
    top: 0;
    left: 0;
  }
}

@keyframes hideRight {
  from {
    top: 0;
    left: 0;
  }
  to {
    top: 0;
    left: -100vw;
  }
}

.showBottom {
  animation-name: showBottom;
}

.hideBottom {
  animation-name: hideBottom;
}

@keyframes showBottom {
  from {
    top: 100vh;
    left: 0;
  }
  to {
    top: 0;
    left: 0;
  }
}

@keyframes hideBottom {
  from {
    top: 0;
    left: 0;
  }
  to {
    top: -100vh;
    left: 0;
  }
}

.showLeft {
  animation-name: showLeft;
}

.hideLeft {
  animation-name: hideLeft;
}

@keyframes showLeft {
  from {
    top: 0;
    left: -100vw;
  }
  to {
    top: 0;
    left: 0;
  }
}

@keyframes hideLeft {
  from {
    top: 0;
    left: 0;
  }
  to {
    top: 0;
    left: 100vw;
  }
}
