*{
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}
body{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
.S{
    display: flex;
    justify-content: center;
    background-image: linear-gradient(180deg,#051C02, #407422);
    position: relative;
    
}
.b1{
   width: 25%;
   height:25%;
   background-color: #41084D;
   animation: position 30s ease-in-out infinite;
   position: relative;
   top: 10%;
   
}

    

@keyframes position {
    0%,5%,100%{
        
        position: relative;
        top: 5%;
    
    }
    50%,55%{
        position: relative;
        top: 70%;
    }
}

@media only screen and (max-width: 600px){
    .S{
        width: 450px;
        height: 450px;

      }

}

@media only screen and (min-width: 601px){
    .S{
        width: 500px;
        height: 500px;

      }

      
}

@media only screen and (min-width: 1200px){
    .S{
    width: 600px;
    height: 600px;
  }

  
}