*, *:before, *:after{
    box-sizing:border-box;
   
}

a{
   
    transition: color 0.5s;
    font-size: 1rem;
    color: #ff1ae1;
    font-size: 1.5rem;
    font-weight: 100;
    
}
nav{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  
  margin-top: 10px;
  margin: 0auto;

}
 h2{
    color: aliceblue;
    text-align: center;
    margin-top: 20px;
 }

.ball{
    height: 100vh;
    display: grid;
    justify-content: center;
    align-items: center;
}



.container{
    background: blue;
    width: 40px;
    height: 40px;
    border-radius: 50%;
   transform-origin: center;
   animation: rotate 1s ease forwards infinite ;
}

.circle{
    background: blue;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
}

.circle:nth-child(1){  
    left: -100px;
    animation:slideleft 2s ease forwards infinite;
}

.circle:nth-child(2){  
    left: 100px;
    top:-40px;
    animation:slideright 2s ease forwards infinite;
}

@keyframes rotate{
    0%{
 transform: rotate(0deg);
    }
    50%{
        transform:rotate(0deg);

    }
    100%{
        transform: rotate(360deg);

    }
}

@keyframes slideleft{
    0%{
        background-color: rgb(212, 41, 41);
        transform: translateX(0px);
    }
    25%{
        transform: translateX(-100px);
    }
    50%{
        transform: translateX(0px);
    }
    100%{

    }
}

@keyframes slideright{
    0%{
        background-color: rgb(212, 41, 41);
        transform: translateX(0px);
    }
    25%{
        transform: translateX(100px);
    }
    50%{
        transform: translateX(0px);
    }
    100%{
        
    }
}
