@import "fonts.css";
/* === ROOT === */
:root {
  --dgrey:#313131;
  --grey: #595959;
  --lgrey:#b2b2b2;
  --sun:  #fabe28;
  --peach:#f06543;
  --rice: #faf5ef;
  --slate: #141414;
  
  --background: black;
  --main-color: white;
  --text-color: var(--rice);;
  --link-color: #fabe28;
  --content-color: var(--dgrey);
  --tBar: var(--slate);
  --content-spacing: 5px;
  --border: 0px solid black;
}

/* === BASE === */
body {
  background: var(--background);
  color: var(--text-color);
  background-attachment: fixed;
  background-size: cover;
  letter-spacing: 0.7px;
  transition: top ease 0.5s;
  font-family: 'times new roman';
}

main {
  background-color: transparent !important;
  width: 100%;
}

li {
  margin-left: 5px;
}

ul {
  display: block;
  list-style-type: lower-greek;
  line-height: 30px;
  margin: 0;
}

/* === HEADING === */
h1 {
  font-family: 'kingjola';
  font-size: 128px;
  text-shadow: 0 0 20px;
  position: relative;
  margin: 0;
  top: 0;
}

/* === LINKS === */
a:link, a:visited {
  color: var(--lgrey)
}

a:hover {
  color: var(--rice);
  text-shadow: 0 0 20px;
}


a {
  transition: 0.3s;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  opacity: 1;
}

::-webkit-scrollbar-thumb {
  background: #111;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* === LAYOUT === */
#container {
  max-width: 850px;
  margin: 0 auto;
  border-top: none;
}

#flex {
  display: flex;
}

.layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11.25rem, 100%), 1fr));
  gap: 1rem;
}

/* === NAVIGATION === */
.titlecard {
  text-align: left;
}

nav {
  position: sticky;
}

iframe.nav {
  width: 140px;
}

/* === CONTENT === */
.title, .navtitle {
  font-weight: bold;
  padding-bottom: 100px;
  padding-top: 10px;
}

.wrapper {
  background-color: var(--content-color);
}

.contentframe {
  width: 100%;
}

iframe.contentframe {
  width: 100%;
  height: 60vh;
  max-width: 100%;
  border: none;
  overflow-x: hidden;
}

aside {
  background-color: var(--tBar);
}

/* === FOOTER === */
footer {
  border: var(--border);
  height: 25px;
  background-image: url(/assets/checkerdivider.gif);
  background-repeat: round;
}

/* === SPAN === */
span.small {
  font-size: smaller;
}

span.x-small {
  font-size: x-small;
}

/* === RESCALE === */

@media only screen and (max-width: 640px) {
  #flex {
    flex-wrap: wrap;
  }

  main {
    width: 100%;
    order: 2;
  }

  iframe.nav {
    width: 100%;
    height: 100%;
    margin-top: auto;
  }

  aside {
    display: block;
    width: 100%;
    order: 1;
    margin-left: 0;
  }

  nav ul li {
    padding-right: 10px;
  }

  nav ul > ul {
    display: none;
  }
}

@media only screen and (max-height: 640px) {
  nav ul > ul {
    display: none;
  }
}
