/* Variables & imports */

@font-face {
  src: url(../fonts/AveriaSerifLibre-Light.ttf);
  font-family: AveriaSerifLibre-Light;
}

/* Main */

* {
  margin: 0;
  padding: 0;
}

body > img {
  position: fixed;
  z-index: -2;
}

html, body, main {
  height: 100%;
}

body {
  background-color: #2f2f2f;
  position: sticky;
}

main {
  overflow: auto;
  position: sticky;
  z-index: -1;
}

main > div {
  position: relative;
  margin-top: 5em;
  margin-bottom: 3em;
  margin-left: 1em;
  margin-right: 1em;
  padding-top: 1em;
  padding-bottom: 1em;
  padding-left: 1.2em;
  padding-right: 1em;
}

/* Text elements */

h1, h2, h3, h4, h5, h6,
p, li, a,
label, input {
  font-weight: normal;
  font-family: 'Times New Roman', Times, serif;
  color: #c9c9c9;
}

p, li, a {
  font-size: large;
}

li {
  margin-left: 1em;
}

h1 {
  font-size: xx-large;
}

input {
  background: #2f2f2f;
  border-color: #141414;
  color: #c9c9c9;
  padding: 0.1em 0.2em 0.1em 0.2em;
}

ul > div {
  margin: 0.5em 0 1em 0.5em;
  border-radius: 1em;
  border-style: solid;
  border-width: 0.15em;
  border-color: #c9c9c9;
  padding: 0.3em 0.7em 0.3em 0.7em;
  width: max-content;
  max-width: 90%;
}

/* Header footer */

header, footer {
  background: #141414;
  display: flex;
  position: fixed;
  width: 100%;
}

header {
  top: 0;
  height: 4em;
}

footer {
  bottom: 0;
  height: 2em;
}

header > div {
  display: flex;
  margin-left: 3em;
}

header > #ristell {
  margin-left: 0;
}

footer > div {
  flex: 1;
  justify-content: center;
  display: flex;
}

header > div > a {
  text-decoration: none;
  font-size: 2em;
  margin-top: 0.4em;
  font-family: AveriaSerifLibre-Light;
}

header > #ristell > a {
  font-size: 1.6em;
  margin-top: 1.15em;
}

header > a {
  margin-top: 0.5em;
  margin-left: 0.5em;
}

footer > div > a,
footer > div > p {
  text-decoration: none;
  margin-top: 0.35em;
  font-family: AveriaSerifLibre-Light;
}

header > a > img {
  width: 50px;
}

footer > div > a > img {
  width: 25px;
  margin-top: -0.2em;
  margin-right: 0.2em;
}

/* Classes */

.panel {
  background: #141414;
  opacity: 0.8;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

main > div > .panel {
  border-color: #c9c9c9;
  border-radius: 1em;
  border-style: double;
}

/* Media overrides */
@media screen and (max-width: 33em){
  main > div {
    margin: 0;
    margin-top: 4em;
    margin-bottom: 1.9em;
    padding-left: 1em;
  }

  main > div > .panel {
    border-style: none;
    border-radius: 0;
  }

  header > div {
    margin-left: 1em;
  }

  header > #ristell {
    margin-right: 1em;
  }

  header > div > a {
    font-size: 1.5em;
    margin-top: 0.75em;
  }

  header > #ristell > a {
    font-size: 1.2em;
    margin-top: 1.9em;
  }

  footer > div > a,
  footer > div > p {
    font-size: 0.9em;
    margin-top: 0.5em;
  }

  footer > div > a > img {
    margin-top: -0.3em;
  }
}