/*********************/
/* Animations */
/*********************/
@keyframes moving-bg {
  0% {
    background-position-y: 64000px;
    }
  100% {
    background-position-y: 0;
    }
}

/*********************/
/* Fonts */
/*********************/
@font-face {
  font-family: Wizard;
  src: url(../resources/fonts/wizard-font/Wizard-ALyq7.otf)
}

body {
  background: url("../resources/palettes/267.svg");
  background-repeat: repeat;

  /* Consistent styling for image */
  background-size: 10%;
  background-position: 50% 50%;

}

body .page {
  background-color: rgba(0, 217, 115, .8);
  border: 4px ridge;
  border-color: #b700ff;
  border-radius: 16px;
  
  margin-top: 2%;
  margin-left: 15%;
  margin-right: 15%;
  padding-left: 5%;
  padding-right: 5%;
  text-align: center;
}

header {
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  -webkit-animation-delay: false;
  -webkit-animation-duration: 4500s;
  -webkit-animation-name: moving-bg;
  -webkit-animation-direction: false;
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  -moz-animation-delay: false;
  -moz-animation-duration: 4500s;
  -moz-animation-name: moving-bg;
  -moz-animation-direction: false;
  -moz-animation-timing-function: linear;
  -moz-animation-iteration-count: infinite;
  animation-delay: false;
  animation-duration: 4500s;
  animation-name: moving-bg;
  animation-direction: false;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  background: url("../resources/palettes/267.svg");
  background-size: 33px;
  border: 3px ridge #ffb852;
  border-radius: 10px;
  box-sizing: border-box;
  margin: 10px 10px 0;
  padding: 9px;
  position: relative;
}

header h1 {
  color: #efefe1;
  display: block;
  font-size: 2em;
  font-family: Wizard;
  text-shadow: 3px 1px 0 rgba(231, 58, 42, 0.4);
}

h2 {
  color: #efefe1;
  display: block;
  font-family: Wizard;
  font-size: 1em;
  text-shadow: 3px 1px 0 rgba(231, 58, 42, 0.4);
  margin-top: 0;
}

nav {
  background-color: rgba(255, 184, 82, .8);
  border: 3px ridge;
  border-radius: 16px;
  border-color: #48ff00;
  margin-top: 10%;
  margin-right: 5%;
  padding-bottom: 10%;
  overflow: auto;
}

nav .portals {
  align-items: center;
  display: flex;
  justify-content: center;
}

nav .portal {
  background: url("../resources/sprites/portal.gif");
  width: 64px;
  height: 64px;
  display: block;
}

.col.col-left {
  float: left;
  width: 25%;
}

.col.col-middle {
  align-content: center;
  width: 50%;
}

/*********************/
/* Sections */
/*********************/
main div section {
  background-color: rgba(255, 184, 82, .8);
  border: 3px ridge;
  border-radius: 16px;
  border-color: #48ff00;
  margin-top: 5%;
  color: purple;
  font-family: Wizard;
  text-shadow: 3px 1px 0 rgba(231, 58, 42, 0.4);
}

main div section .tomeposts {
  display: flex;
}

main div .tomes .tome-author {
  background: url("../resources/sprites/wizardportrait.png");
  background-size: cover;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: ridge aqua;
  margin-left: 5%;
  margin-bottom: 5%;
}

main div .tomes .tome-post {
  background-color: rgba(13, 117, 255, .4);
  background-size: 33px;
  border: 3px ridge;
  border-radius: 16px;
  border-color: #ffb852;
  color: #000000;
  font-family: Wizard;
  margin-left: 5%;
  margin-bottom: 5%;
  text-shadow: 1px 1px 4px rgba(230, 240, 70, 1);
  width: 70%;
}

footer {
  align-content: center;
  margin-top: 10%;
}

/*********************/
/* Media Overrides */
/*********************/
@media (min-width: 800px) {
  header h1 {
    font-size: 4em;
  }
  h2 {
    font-size: 2em;
  }
}