The Code

The HTML code for the fourth and final day of CoderDojo Mallow's Summer Camp is as follows:

html, body {
    /* The universe takes up all available space */
    width: 100%;
    height: 100%;
    margin: 0;
    
    /* The universe is black */
    background-color: black;
}

#sun {
    position: absolute;
    /* Positions the top-left corner of the image to be *
    /* in the middle of the box */
    top: 50%;
    left: 50%;
    
    /* Play with these numbers to see what it does */
    height: 200px;
    width: 200px;
    margin-top: -100px; 
    margin-left: -100px;
    
    Border:20px solid orange;
    Border-radius:50%;
    box-shadow: 0 0 64px yellow;
}

#earth {
    /* Style your earth */
    position:absolute;
    top:0;
    left:50%;
    
    height:50px;
    width:50px;
    margin-left:-25px;
    margin-top:-25px;
    
    Border:15px solid green;
    Border-radius:50%;
    Box-shadow: 0 0 70px blue;
    
}

#earth-orbit {
    /* For Section #2 */
    position:absolute;
    top:50%;
    left:50%;
    
    width:500px;
    height:500px;
    margin-top:-250px;
    margin-left:-250px;
    
    border:2px dotted white;
    border-radius:50%;
    
      /* ... your other orbit styles ... */

  -webkit-animation: spin-right 10s linear infinite;
     -moz-animation: spin-right 10s linear infinite;
      -ms-animation: spin-right 10s linear infinite;
       -o-animation: spin-right 10s linear infinite;
          animation: spin-right 10s linear infinite;
}

@-webkit-keyframes spin-right {
    100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    }
}

@keyframes spin-right{
    100%{
        
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    }
}