@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  background-color: #0a0903;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* height: 100vh; */
  overflow-x: hidden;
  margin: 0;
  color: #ffeaae;
}

h1 {
  margin: 10px;
  font-size: 4rem;
}

.box {
  background-color: #ff0000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40rem;
  height: 20rem;
  margin: 1rem;
  font-size: 1.5rem;
  border-radius: 10rem;
  box-shadow: 4px 8px 10px rgba(0, 0, 0, 0.404);
  transform: translateX(100vw);
  transition: transform 0.5s ease-out;
}

.box:nth-last-of-type(even) {
  transform: translateX(-100vw);
}
.box.show {
  transform: translateX(0);
}
