  * {
      padding: 0;
      margin: 0;
      box-sizing: border-box;
  }

  body {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
  }

  .main {
      background-color: #EEF0EF;
      width: 400px;
      height: 600px;
      position: relative;
      display: flex;
      justify-content: center;
  }


  .blockYellow {
      width: 200px;
      height: 200px;
      position: absolute;
      top: 100px;
      background-color: #DDCBAD;
      border: 8px #000 solid;
      animation: Yellow1 2s;
  }

  .blockYellow::before {
      content: '';
      width: 48%;
      height: 100%;
      border-left: 8px #000 solid;
      border-right: 8px #000 solid;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
      animation: Yellow2 2.5s;
  }

  .blockYellow::after {
      content: '';
      width: 8px;
      height: 100%;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
      background-color: #000;
  }

  .blockRed {
      width: 100%;
      height: 200px;
      position: absolute;
      bottom: 0;
      background-color: #FE0000;
      display: flex;
      justify-content: center;
  }

  .blockRed::before {
      content: '';
      width: 100%;
      height: 96px;
      border-top: 8px #000 solid;
      position: relative;
      top: 100px;
      animation: Red1 2.5s;
  }

  .blockRed::after {
      content: '';
      box-sizing: border-box;
      width: 30%;
      height: 100px;
      border-left: 8px #000 solid;
      border-right: 8px #000 solid;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 100px;
      animation: Red2 2.5s;
  }

  @keyframes Yellow1 {
      0% {
          transform: scale(0.5);
          top: 400px;
          border-radius: 500px;
      }

      100% {
          transform: scale(1);
      }
  }

  @keyframes Yellow2 {
      0% {
          width: 0;
      }

      100% {
          width: 48%;
      }
  }

  @keyframes Red1 {
      0% {
          width: 0;
      }

      100% {
          width: 100%;
      }
  }

  @keyframes Red2 {
      0% {
          width: 100%;
      }

      100% {
          width: 30%;
      }
  }