:root {
  --main-text-color: #e3e3e3;
  --dark-color: #4d2221;
  --background-size: 800px;
  --header-color: 51, 51, 117;
}

@font-face {
    font-family: 'Christana';
    font-style: normal;
    font-weight: 400;
    src: local('Christana'), url('../fonts/Christana.woff') format('woff');
}

@font-face {
    font-family: 'Comic Relief';
    font-style: normal;
    font-weight: 400;
    src: local('Comic Relief'), url('../fonts/ComicRelief-Regular.ttf') format('truetype');
}

@keyframes xscroll {
    from {
        background-position-x: 0;
    }
    to {
        background-position-x: var(--background-size);
    }
}

@keyframes diagscroll {
    from {
        background-position-x: 0;
        background-position-y: 0;
    }
    to {
        background-position-x: var(--background-size);
        background-position-y: var(--background-size);
    }
}

html, body {
  height: 100%;
}

html {
  color: var(--main-text-color);
  display: flex;
  justify-content: center;
  font-family: Christana;
}

p, dl {
  font-family: "Comic Relief", sans-serif;
}

dl {
  max-width: 80ch;
}
dt {
  font-weight: bold;
  margin-bottom: 10px;
}
dd {margin-bottom: 25px;}

body {
  display: flex;
  flex-direction: column;
  width: 60%;
  margin: 0;
  background: #6e4ab4;
}

header {
  background: linear-gradient(
    transparent,
    rgba(var(--header-color), 0.1), 
    rgba(var(--header-color), 1)
  );
  
  height: 8.5em;
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  justify-content: center;
}
header a {
  color: var(--main-text-color);
  display: flex;
}

nav {
  background: var(--dark-color) 
    linear-gradient(#733529, #4d2221);
  
  -webkit-box-shadow:inset 0 3px 0 0 #89544c;
  -moz-box-shadow:inset 0 3px 0 0 #89544c;
  box-shadow:inset 0 3px 0 0 #89544c;
}

nav ul {
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav li {
  list-style: none;
  font-size: larger;
  text-align: center;
  display: flex;
}
nav li a {
  text-decoration: none;
  color: var(--main-text-color);
  padding: 0.5em 0.75em;
  border-top: 3px #89544c solid;
}
nav li a:hover {
  color: var(--dark-color);
  background: var(--main-text-color);
  border-top: 3px var(--main-text-color) solid;
}
nav li::before {
  border-top: 3px #89544c solid;
}
#selected {
  background: linear-gradient(#b05cdd, #724eb6);
  border-top: 3px #bd75e3 solid;
  color: var(--main-text-color);
  
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

main {
  padding-top: 2em;
  background: #b4afb5 url(../images/stripes_grey.png);
  color: var(--dark-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}
main p {
  margin-top: 0;
  text-align: center;
  width: 80%;
  flex: 1;
  font-size: large;
}

section {
  background: #dcd8de88;
  border-left: #dcd8deaa dashed 5px;
  border-right: #dcd8deaa dashed 5px;
  display: flex;
  justify-content: center;
  margin: 1.5em 4em;
  padding: 1.5em 5%;
}
article {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
}

footer {
  text-align: center;
  padding-bottom: 1em;
}
footer a {
  color: #724eb6;
  text-decoration: none;
}
footer a:hover {
  color: #b05cdd;
}

a.hidden {
  text-decoration: none;
  color: var(--dark-color);
}

.hidden {display: none;}

audio {
  box-shadow: none;
}

@media only screen and (max-width: 1320px) {
  header img.decor {
    display: none;
  }
  
  nav li {
    font-family: "comic relief";
    font-size: medium;
  }
}

@media only screen and (max-width: 800px) {
  body {
    width: 90%;
  }
  section {
    background: transparent;
    border: none;
  }
}

@media only screen and (max-width: 500px) {
  body {
    width: 100%;
  }
  nav li{
    font-size: small;
  }
}