
body {
  background-color: white;
  color: white;
  font-family: Cormorant;
}

/*I created a name "box" for a div in html file. Always put a dot before name of class: .box
Grid-gap to define gap between each box.
Grid-template-(columns or rows) is for defining the lenght of each column or row(lenght of column 1, lenght of column 2 etc)
*/
.box{
  max-width: 1000px;
  margin: 70px auto;
  display: grid;
  grid-gap: 10px;
  grid-template-columns: 150px auto;
  
}

header, nav, main, footer, postspace{
  border: 2px solid white;
}



/*For all the grid elements and text*/

header{
  padding: 20px;
  font-size: 50px;
  text-align: center;
  
  background-color: rgba(0, 0, 0, 0.3);
  
  animation-name: colorchange;
  animation-duration: 8s;
  animation-iteration-count: infinite;
  
  position: relative;
  
  grid-row:1/2;
  grid-column: 1/3;
}

nav{
  background-color: rgba(0, 0, 0, 0.3);
  grid-row:2/3;
  grid-column: 1/2;
  height: max-content;
  text-align: center;
}

main{
  font-size: 19px;
  padding: 0px 20px 20px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  grid-row:2/3;
  grid-column: 2/3;
}

postspace{
  font-size: 19px;
  padding: 0px 20px 20px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  grid-row:3/4;
  grid-column: 1/3;
}

footer{
  text-align: right;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  grid-row:4/5;
  grid-column: 1/3;
}



/*Fonts*/

.fredericka-the-great-regular {
  font-family: "Fredericka the Great", serif;
  font-weight: 400;
  font-style: normal;
}

.cormorant-uniquifier {
  font-family: "Cormorant", serif;
  font-weight: 200;
  font-style: normal;
}



/*For all links*/

a:link {
  color: White;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: Lightgray;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: red;
  background-color: transparent;
  text-decoration: none;
}

a:active {
  color: Purple;
  background-color: transparent;
  text-decoration: none;
}



/*For Animations*/

/*@keyframes colorchange{*/
/* 0%{background-color: rgba(0, 0, 0, 0.2); transform: rotate(0deg); font-size: 50px;} */
/* 25%{background-color: rgba(255, 0, 0, 0.2); transform: rotate(5deg); font-size: 60px;} */
/* 50%{background-color: rgba(0, 0, 0, 0.2); transform: rotate(0deg); font-size: 50px;}*/
/* 75%{background-color: rgba(255, 0, 0, 0.2); transform: rotate(-5deg); font-size: 60px;}*/
/* }*/
 
@keyframes link{
 0%{color: red}
 33%{color: green}
 66%{color: rgb(0, 255, 255)}
 100%{color: red}
}