/*changing these colors will alter colors for the whole page, without having to go through every section one-by-one.*/

:root {
  --box: #DFD6C8;
  --faded: #D7CCBB;
  --page: #D0CCBF;
  --one: #929D7B;
  --two: #E7E0D5;
  --three: #775952;
  --textcolor: #222521;
}

@font-face {
  font-family: FT88B;
  src: url('/font_files/FT88-Bold.ttf') format("truetype");
}

@font-face {
  font-family: Director;
  src: url('/font_files/Director-Regular.ttf') format("truetype");
}

@font-face {
  font-family: Righteous;
  src: url('/font_files/Righteous-Regular.ttf') format("truetype");
}

@font-face {
  font-family: Jersey;
  src: url('/font_files/Jersey20-Regular.ttf') format("truetype");
}

@font-face {
  font-family: Atkinson Hyperlegible;
  src: url('/font_files/AtkinsonHyperlegible-Regular.ttf') format("truetype");
}

::-moz-selection {
  color: var(--one);
  background-color: whitesmoke;
}

::selection {
  color: var(--one);
  background-color: whitesmoke;
}

/* Change your background image, font style and size here */
body {
  background-color: var(--page);
  font-family: 'Atkinson Hyperlegible', sans-serif;
  background-attachment: fixed;
  color: var(--textcolor);
  font-size: 0.9em;
  margin: 0 auto;
}

a:link,
a:visited {
  color: var(--one);
  text-decoration: none;
  font-weight: 900;
}

a:hover {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  font-weight: 600;
  color: var(--three);
}

footer {
  max-width: 1000px;
  width: 95%;
  margin: auto;
  text-align: center;
  background-color: var(--two);
  color: var(--three);
  overflow: auto;
  padding: 1em 0 1em 0;
}

/* ------------------------ Tab bar */

#navbar {
  height: 40px;
  background-color: var(--three);
  width: 100%;
}

#navbar ul {
  display: flex;
  padding: 0;
  margin: 0 1em;
  list-style-type: none;
  justify-content: flex-start;
}

#navbar li {
  padding-top: 10px;
  margin: 0 1em;
}

/* navigation links*/
#navbar li a {
  color: var(--page);
  font-weight: 900;
  text-decoration: none;
}

/* navigation link when a link is hovered over */
#navbar li a:hover {
  color: var(--two);
  text-decoration-line: underline;
  text-decoration-style: wavy;
  font-weight: 600;
}

#flex {
  display: flex;
}

/* -------------- Sections ------------- */

section {
  display: none;
  width: 100%;
}

section:target {
  display: block;
}

section:target iframe {
  visibility: visible;
}

/* ----------------- Inline footnotes */

label {
  cursor: pointer;
  vertical-align: super;
  line-height: 1;
  font-size: .75em;
  padding-left: .1em;
}

label:hover {
  color: var(--one);
}

label:before {
  content: "[";
}

label:after {
  content: "]";
}

label+input,
label+input+small {
  display: none;
}

input:checked+small {
  display: block;
  padding: .8em 0 1em 2.5vw;
}

hr {
  height: 1px;
  border: 0;
  background: currentColor;
  opacity: .1;
  margin: 1.2em 0;
}

img {
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Format headers */
/* Page header */
h1 {
  font-size: 4rem;
  font-family: 'Jersey', system-ui, sans-serif;
  font-weight: 900;
  color: whitesmoke;
  display: flex;
  justify-content: center;
  background-color: var(--page);
  padding: 0.2em;
  margin: 0%;
  line-height: 1.4;
}

/* Section title */
h2 {
  font-family: Director, serif;
  font-size: 2rem;
  border-bottom: 12px solid var(--two);
  margin: 0.6em 0 0 0;
  line-height: 0.6;
  overflow-wrap: normal;
}

h3 {
  font-family: Jersey, system-ui, sans-serif;
  font-size: 1.4rem;
  line-height: 1.4;
  overflow-wrap: normal;
  margin: 0;
}

/* Infobox separators */
h4,
.infobox h4 {
  font-family: FT88B, monospace;
  font-size: 1rem;
  text-align: center;
  margin: 10px 0;
  background: var(--two);
  overflow-wrap: normal;
}

/* Inset titles */
h5 {
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 0 -0.8em 0;
  overflow-wrap: normal;
  color: var(--three);
}

h6 {
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: normal;
  margin: 0;
}

#wrapper {
  min-height: 100%;
  position: relative;
}

.content {
  max-width: 1000px;
  width: 95%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  min-height: 5vh;
  background-color: var(--box);
}

.infobox {
  display: inline;
  max-width: 25%;
  width: 100%;
  padding: .5em;
  font-size: 0.9em;
  float: right;
  clear: right;
  border: 1px solid var(--one);
  background-color: var(--faded);
  outline: 2px solid var(--box);
  margin: 0 0 1em 1em;
}

.infobox img {
  display: flex;
  justify-content: center;
}

.infoboxalt {
  display: inline;
  max-width: 25%;
  width: 100%;
  padding: .5em;
  font-size: 0.9em;
  float: left;
  clear: left;
  border: 1px solid var(--one);
  background-color: var(--faded);
  outline: 2px solid var(--box);
  margin: 0 1em 1em 0;
}

.wiki {
  display: inline;
  padding: 1em;
}

p,
ul,
ol,
dl,
multicol {
  text-align: justify;
  margin-bottom: 1em;
}

blockquote {
  padding-left: 2ch;
  opacity: .7;
  margin-bottom: .6em;
  position: relative;
}

blockquote:before {
  content: "";
  position: absolute;
  left: 0;
  top: .1em;
  bottom: .1em;
  background: currentColor;
  width: 1px;
  opacity: .2;
}

.spoiler {
  background-color: var(--textcolor);
  color: var(--textcolor);
  padding: 6px;
}

.spoiler:hover {
  background-color: var(--two);
  color: var(--textcolor);
}

/* html gallery*/
/*gallery*/
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column: auto;
  grid-auto-flow: row;
  grid-gap: 5px;
  align-items: stretch;
  justify-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(255, 255, 255, .75);
}

/* The Images */
.gallery-img {
  display: flex;
  flex-direction: column;
  border: 1px solid #000000;
  width: 500px;
  height: auto;
}

.gallery figure {
  margin: 0px;
  overflow: hidden;
}


figure img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  overflow: hidden;
}


.gallery span {
  display: none;
}


.warning {
  background: #fdd5d5;
  padding: 1em;
  font-size: 1.25em;
  line-height: 1.25em;
  color: #a82929;
  border-left: 5px solid #df1924;
  margin: 1em;
}

.wikitext>details summary {
  font-size: 2em;
  color: var(--darkaccent);
  font-family: "Darumadrop One", "Monofonto", serif;
  font-weight: 900;
  text-decoration: underline;
  max-width: 100%;
}

.wikitext>details summary:hover {
  color: var(--accent);
}

/*mobile view*/

@media only screen and (max-width: 600px) {
  .wiki {
    display: flex;
    flex-direction: column;
  }

  .infobox {
    max-width: 95%;
    margin-bottom: 1em;
    font-size: 1em;
    text-align: center;
    margin-left: 0;
  }

  .wikitext {
    width: 100%;
  }

  iframe {
    border: none;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);

  }


}