/*      ROOT       */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --border: steelblue;
  --accents: lightcyan;
}

/*      FONTS       */
@font-face {
  font-family: "DS-Font";
  src: url("./fonts/nds-true-bios.ttf") format("truetype");
}

@font-face {
  font-family: "Wii-Font";
  src: url("./fonts/WiiSans-Regular-4.otf") format("opentype");
}

/*      BASE       */

body {
  background-image: url("../images/links/bk024.gif");
  font-size: 1.65rem;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
}

p,
li {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
  font-family: "DS-Font";
}

p {
  text-align: center;
}

a {
  color: black;
}

a:hover {
  color: darkslategray;
}

h1,
h2,
h3 {
  font-family: "Wii-Font";
}

h1 {
  font-size: 3em;
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff,
    2px 2px 0 #fff;
  color: steelblue;
  text-align: center;
}

h2 {
  font-size: 2em;
  color: black;
}

h3 {
  color: darkslategray;
}

ul {
  list-style-position: inside;
  list-style-type: "\2765   ";
}

hr {
  border: 2px dashed var(--border);
}

/*      SECTIONS       */
header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: fit-content;
}

main {
  display: flex;
  flex-direction: column;
  gap: 2.5em;
}

/*      FORMATTING UTILITIES       */

.pad-10 {
  padding: 10px;
}

.category-title {
  font-size: 50px;
}

.back-button {
  padding: 1em;
}

.bordered {
  outline: 1px solid var(--accents);
  outline-offset: -3px;
  border-radius: 0.4em;
  border: 5px double var(--border);
  background-color: #f6fbfd;
}

.buddy-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 25%;
}

/*      COMPONENTS       */
/*      Main      */
.container {
  margin-left: auto;
  margin-right: auto;
  margin-top: 1em;
  margin-bottom: 1em;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 3em;
}

.actual-content {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 3em;
}

/*      Link blocks      */
.link-block {
  padding: 10px;
}

.link-block > h2 {
  padding-bottom: 10px;
}

/*      Sidebar      */
.right-bar {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

/*      toc      */
.toc > ol {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: space-evenly;
}

.toc > ol > li {
  display: inline-block;
  flex-basis: 0;
  flex: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.toc > ol > li:hover {
  background-color: white;
}

.toc > ol > li a {
  display: block;
  padding: 1em;
  text-align: center;
}

/*      MEDIA QUERY       */
@media screen and (max-width: 1000px) {
  .actual-content {
    grid-template-columns: 1fr;
  }
}
