.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
     height: 100vh;
    justify-items: center;
    align-items: center;
}

body {
    padding: 20px;
    background-color: #15153d;
    font-family: futura;
    color: aliceblue;
    
}

header {
    padding: 51px 20px;
    align-items: center;
    font-family: futura;
    color: white;
}

nav{
   grid-column: 7 / span 6;
    text-align-last: center;
    font-family: futura;
    color: white; 
}

header nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    padding: 10px 20px;
}

h1 {
    color: white;
    text-align: center;
    padding: 40px;
font-size: 45px;
}

h2{
    font-family: futura;
}

.moonanim{
    padding-left: 350px;
}

/* Start of background-colour (.moon) to border-radius, from CodingGiant - https://www.youtube.com/watch?v=rbsbQmB3_Mc */
.moon {
    justify-self: center;
    background-color: white;
    height: 10em;
    width: 10em;
    border-radius: 50%;
}

/* All of .mooncontainer to keyframes from https://developer.mozilla.org/en-US/docs/Web/CSS/animation*/
.moon-container {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 20px;
  animation: moonCycle 29.5s infinite linear;
}

.moon-mask {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #15153d;
  border-radius: 50%;
  animation: moonMaskCycle 29.5s infinite linear;
}

@keyframes moonCycle {
  0% {
    background-color: #fff;
  }
  25% {
    background-color: #fff;
  }
  50% {
    background-color: #fff;
  }
  75% {
    background-color: #fff;
  }
  100% {
    background-color: #fff;
  }
}

@keyframes moonMaskCycle {
  0% {
    left: 100%;
  }
  25% {
    left: 50%;
  }
  50% {
    left: 0%;
  }
  75% {
    left: 50%;
  }
  100% {
    left: 100%;
  }
}
/* End of code from https://developer.mozilla.org/en-US/docs/Web/CSS/animation*/


.moonhome{
    grid-column: 4 / span 6;
    font-size: 20px;
    padding: 40px;
    text-align: center;
    font-family: souvenir light;
}

.mhj {
    font-size: 24px;
    font-family: futura;
}

.astronomy{
     grid-column: 3 / span 8;
    font-size: 20px;
    padding: 40px;
    text-align: center;
    font-family: souvenir light; 
}


.astrology{
    grid-column: 3 / span 8;
    font-size: 20px;
    padding: 40px;
    text-align: center;
    font-family: souvenir light;
}

h2{
    padding: 20px;
}
p {
    padding: 20px;
}

li{
    color: aliceblue;
    text-decoration: none;
    padding: 10px;
}

#link{
    color: aliceblue;
}