@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

* {
  box-sizing: border-box;
}

body {
  background-color: #fafafa;
  font-family: "Roboto", sans-serif;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.magic {
  background-color: #f9ce24;
  color: #fff;
  font-family: "Poppins", sans-serif;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 3px rgba(249, 202, 36, 0.5);
  position: fixed;
  top: 20px;
  z-index: 100;
}

.magic:focus {
  outline: none;
}

.magic:active {
  box-shadow: none;
  transform: translateY(2px);
}

.boxes {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  transform: translateX(-3.5px);
  transition: 0.4s ease;
}

.boxes.big {
  justify-content: space-around;
}

.box {
  position: relative;
  background-image: url("https://c.tenor.com/0ZTtHcmebhkAAAAd/pogo-pokemon-go.gif");
  background-repeat: no-repeat;
  transition: 0.4s ease;
  margin-left: -1px;
}

.boxes.big .box {
  transform: rotateZ(360deg);
}

.box::after {
  content: "";
  position: absolute;
  top: 8px;
  right: -15px;
  width: 15px;
  height: 100%;
  background-color: #f6e58d;
  transform: skewY(45deg);
  z-index: -1;
}

.box::before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 8px;
  width: 100%;
  height: 15px;
  background-color: #f9ce24;
  transform: skewX(45deg);
  z-index: -1;
}
