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

* {
  box-sizing: border-box;
}

body {
  background-color: #7c7ae9;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow-x: hidden;
}

a {
    text-decoration: none;
}
h1 {
  margin: 10px;
}

.box {
  background-color: steelblue;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 200px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.3);
  transform: translateX(400%);
  transition: transform 0.4s ease;
}

.box:nth-of-type(even) {
  transform: translateX(-400%);
}

.box.show {
  transform: translateX(0);
}

.box h2 {
  font-size: 45px;
  text-align: center;
}

.rose {
  background-color: rgb(255, 163, 250);
}

.purple {
  background-color: rgb(170, 84, 223);
}

.magenta {
  background-color: rgb(248, 55, 219);
}

.aqua {
  background-color: rgb(101, 231, 215);
}

.red {
  background-color: rgb(242, 0, 0);
}

.orange {
  background-color: rgb(254, 142, 72);
}

.lime {
  background-color: rgb(171, 233, 47);
}

.yellow {
  background-color: rgb(227, 233, 50);
}

.green {
  background-color: rgb(28, 186, 28);
}

.blue {
  background-color: rgb(52, 52, 215);
}

.brown {
  background-color: rgb(113, 51, 51);
}
 
