@font-face {
  font-family: "Aboreto";
  src: url("/fonts/aboreto.ttf");
  display: swap;
}

@font-face {
  font-family: "Charis SIL";
  font-style: normal;
  src: url("/fonts/charis-sil.ttf");
  display: swap;
}

@font-face {
  font-family: "Charis SIL";
  font-style: italic;
  src: url("/fonts/charis-sil-i.ttf");
  display: swap;
}

@font-face {
  font-family: "Red Hat Mono";
  src: url("/fonts/red-hat.ttf");
  display: swap;
}

body {
  background-image: url("/auron/background.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position-x: right;
  background-position-y: top;
  font-family: "Charis SIL", serif;
}

* {
  box-sizing: border-box;
}

*:focus, input:focus + label {
  outline: none;
}

h1, h2, h3 {
  font-family: "Aboreto", serif;
  font-weight: normal;
}

a, a:visited {
  color: rgba(255,255,255,0.7);
}

a:hover {
  color: rgba(255,255,255,0.9);
}

#collection a, #collection a:visited {
  color: rgba(0,0,0,0.6);
}

#collection a:hover {
  color: rgba(0,0,0,0.8);
}

input, button {
  font-family: "Charis SIL", serif;
}

textarea {
  font-family: "Red Hat Mono", monospace;
}

main {
  max-width: 801px;
  margin: 70px auto 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
}

.radiotab {
  position: absolute;
  opacity: 0;
}

.label {
  width: 100%;
  padding: 5px;
  background: rgba(229,229,229,0.8);
  cursor: pointer;
  color: #7f7f7f;
  transition: background .3s, color .3s;
  text-align: center;
}

.label:hover {
  background: #d8d8d8;
}

.label:active {
  background: #ccc;
}

.radiotab:checked + .label {
  background: #fff;
  color: #000;
}

.panel {
  display: none;
  padding: 10px;
  background: #fff;
  width: 100%;
}

.radiotab:checked + .label + .panel {
  display: block;
}

div#unmute {
  color: white;
  background-color: black;
  position: fixed;
  top: 0;
  width: 100%;
  text-align: center;
  border-radius: 0 0 0 20px;
  cursor: pointer;
}

div#unmute p {
  margin: 2px;
}

form#theform {
  margin-bottom: 5px;
}

form#theform .full {
  display: block;
  width: 100%;
  margin: 2px;
}

span.spoiler {
  filter: blur(0.25em);
}

span.spoiler:hover, span.spoiler:focus {
  filter: blur(0);
}

div#home, input#tabone:checked + .label {
  background-color: rgba(228,3,3,0.8);
  color: white;
}

div#story, input#tabthree:checked + .label {
  background-color: rgba(255,140,0,0.8);
  color: white;
}

div#collection, input#tabseven:checked + .label {
  background-color: rgba(255,237,0,0.8);
}

div#media, input#tabtwo:checked + .label {
  background-color: rgba(0,128,38,0.8);
  color: white;
}

div#links, input#tabfour:checked + .label {
  background-color: rgba(0,76,255,0.8);
  color: white;
}

div#guestbook, input#tabfive:checked + .label {
  background-color: rgba(115,41,130,0.8);
  color: white;
}

div#guestbook input, div#guestbook textarea, div#guestbook button {
  background-color: rgb(255,230,255);
}

div#guestbook button:hover {
  background-color: rgb(235,210,235);
}

button {
  cursor: pointer;
}

div.flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

div.flex img {
  max-width: 300px;
}

div#candles {
  text-align: center;
}

blockquote {
  padding: 2px 5px;
  text-indent: 0.5em;
  background-color: #dbc4a5;
  background: radial-gradient(ellipse, rgba(219,196,165,1) 0%, rgba(219,196,165,1) 89%, rgba(131,86,55,1) 100%);
  color: #51391f;
  border-radius: 5px;
  margin-left: 0;
  margin-right: 0;
}

figure {
  text-align: center;
  font-size: 0.9em;
  margin-left: 0;
  margin-right: 0;
}

figure img {
  max-width: 100%;
}

.flex figure {
  padding: 2px;
  /* border: 1px solid black; */
}

/* sphere */
a[href="/"]:has(img) > img:hover, a[href="/ffx"]:has(img) > img:hover {
  filter: brightness(135%);
}

@media (min-width: 600px) {
  .panel {
    order: 99;
  }

  .label {
    width: calc(100% / 6);
  }
  
  div.flex.paragrapher {
    flex-wrap: nowrap;
  }
  
  blockquote {
    margin-left: 10px;
    margin-right: 10px;
  }

  figure {
    display: table;
    margin: 0 auto;
  }

  figure figcaption {
    display: table-caption;
    caption-side: bottom;
  }
}
