* {
  margin: 0px;
  padding: 0px;
}

body {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: 100vh;
  white-space: nowrap;
  background-color: #ffffd6;
  font-family: "Press Start 2P", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 70px;
}

.game {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 50vw;
  height: 50vh;
  gap: 0 25px;
}

.second {
  position: relative;
  width: 6vw;
  height: 13vh;
}

.second span {
  position: absolute;
}

.second span:nth-child(1) {
  z-index: 1;
  animation: switch1 3s infinite steps(1);
}

.second span:nth-child(2) {
  z-index: 2;
  animation: switch2 3s infinite steps(1);
}

.second span:nth-child(3) {
  z-index: 3;
  animation: switch3 3s infinite steps(1);
}

@keyframes switch1 {
  0% {
    opacity: 1;
  }
  33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes switch2 {
  0% {
    opacity: 0;
  }
  33% {
    opacity: 1;
  }
  66% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes switch3 {
  0% {
    opacity: 0;
  }
  66% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
