* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    font-size: 3rem;
    font-family: 'Nunito';
  }
  
  body {
    min-height: 100vh;
    display: flex;
    flex-flow: column nowrap;
    background-color: rgb(226, 238, 148);
  }
  
  main {
    flex-grow: 1;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
  
  div {
    width: 200px;
    height: 200px;
    border: 1px solid #000;
    display: grid;
    place-content: center;
  }
  
  div:first-child {
    background-color: rgba(144, 44, 203, 0.958);
  }
  
  div:nth-child(2) {
    background-color: rgb(255, 153, 0);
    border-radius: 25%;
  }
  
  div:last-child {
    background-color: rgb(48, 21, 222);
    border-radius: 50%;
  }
  
  div:hover {
    background-color: rgb(178, 52, 216);
    transition: all 2s 0.5s;
  }
  
  div:last-child:hover {
    transform: rotate(180deg);
  }
  
  .animate {
    animation: 5s ease-in-out 1s 2 normal forwards slide;
  }
  
  @keyframes slide {
    0% {
      transform: translateX(0);
    }
  
    33% {
      transform: translateX(300px) rotate(180deg);
    }
  
    66% {
      transform: translateX(-300px) rotate(-180deg);
    }
  
    100% {
      transform: translateX(0);
      background-color: rgb(212, 49, 131);
    }
  }