body {
  background:black;
  color:white;
  font-family:Georgia;
  font-size: large;
  padding-top: 5%;
  padding-right: 10%;
  padding-bottom: 5%;
  padding-left: 9%;
}

a {
  color: white;
} 

/* unvisited link */
a:link {
  color: white;
  text-decoration: dotted underline;
}

/* visited link */
a:visited {
  color: white;
  text-decoration: none;
}

/* mouse over link */
a:hover {
  color: lightgrey;
}

/* selected link */
a:active {
  color: red;
}

p{
margin-top:0;

}

.diary {
    max-width: 900px;
    margin: 50px;
    margin-right: 160px;
    right: 170px;
    padding: 2.5%;
    border-style: dotted;
    top: 150px;
    box-sizing: border-box;
}

 #side{
  position: fixed;
  right: 4%; /* Aligns the element to the far right edge */
  top: 5%;   /* Aligns the element to the top edge */
  width: 160px;
  margin: 10px;
  margin-top: 100px;
  margin-bottom: 100px;
  padding: 1%;
  border-style: dotted;
  box-sizing: border-box;
}
    
.parent {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(5, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
}

.maincontent { grid-area: 1 / 1 / 6 / 5; }
.nav { grid-area: 1 / 5 / 3 / 6; }
.buttons { grid-area: 3 / 5 / 4 / 6; }
.links { grid-area: 4 / 5 / 5 / 6; }
.footerside { grid-area: 5 / 5 / 6 / 6; }


.maintxt {
    max-width: 900px;
    display: block;
    margin-right: 160px;
  }