body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .animated-element {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #3498db;
    color: white;
    padding: 20px;
    font-size: 20px;
    border-radius: 5px;
    animation: flyAndRotate 5s linear forwards;
  }
  
  @keyframes flyAndRotate {
    0% {
      top: 0;
      left: 0;
      transform: rotate(0deg);
    }
    100% {
      top: calc(100% - 40px);
      left: calc(100% - 100px);
      transform: rotate(2520deg);
    }
  }
  