@charset "utf-8";

@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  src: url(/fonts/inconsolata-latin-300-normal.woff2) format('woff2'), url(/fonts/inconsolata-latin-300-normal.woff) format('woff');
}

@font-face {
  font-family: "TB UD Gothic";
  src: url("/fonts/ffx.ttf");
  display: swap;
}

body {
  font-family: "TB UD Gothic", sans-serif;
  font-weight: bold;
  font-size: 0.8em;
  text-align: center;
  background-image: url("/zanarkand.webp");
  background-size: auto;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #cfcecc;
  line-height: 1.5rem;
  letter-spacing: 0.5px;
  margin: 8px;
}

body * {
  margin: 0;
  font-size: 1em;
  font-style: normal;
  list-style-type: none;
  text-decoration: none;
}

div:not(.e-content):not(.subtitle):not(.invisible), .choices {
  width: fit-content;
  background: rgba(54,45,88,1);
  background: linear-gradient(0deg, rgba(54,45,88,1) 0%, rgba(70,59,127,1) 100%);
  border-width: 3px;
  border-style: double;
  border-color: #6a619a;
  padding: 12px 30px;
  margin: 20px auto;
}

div.invisible {
  padding: 12px 30px;
  margin: 20px auto;
  display: flex;
  gap: 10px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

div:not(.e-content), .choices, .battle {
  text-align: left;
}

div:not(.e-content) {
  max-width: 340px;
}

div.dialog {
  text-align: center;
}

div.fullwidth, div.invisible {
  max-width: 900px;
}

div#table-wrapper {
  max-width: 100%;
}

div:not(.e-content) *, .choices * {
  text-shadow: 0px 0px 0 #000, 1px 0px 0 #000, 0px 1px 0 #000, 1px 1px 0 #000;
}

p.title {
  text-align: center;
}

h1, h2, em, a, .crit .name, .crit .hp-value, .yellow {
  color: #eeb206;
}

a:hover {
  color: #fac638;
}

h1, h2 {
  text-align: center;
}

.fullwidth h1, .fullwidth h2 {
  text-align: left;
}

li, .choices td {
  position: relative;
}

li:hover:before, .choices .select:before {
  position: absolute;
  left: -35px;
  content: url("/pointer.png");
}

li:hover:has(li:hover):before {
  content: "";
}

.subtitle, .battle {
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  padding: 0;
}

.battle {
  margin: 0 auto;
  border-collapse: collapse;
}

.big, .subtitle {
  max-width: 100%;
}

.subtitle {
  background: transparent;
  border: none;
  margin: 20px auto;
  font-size: 1rem;
}

.al-bhed, .pink, i {
  color: #f375e5;
}

.blue {
  color: #95b4d0; # not right
}

.choices {
  text-align: left;
}

.choices tr > * + * {
  padding-left: 80px;
}

.battle td {
  padding: 0 5px;
}

.battle td.hp.label {
  color: #69d2a7;
}

.battle td.mp.label {
  color: #c8a8f4;
}

.battle td.value {
  text-align: right;
}

.battle td.name {
  padding-right: 100px;
}

.battle progress {
  width: 100%;
  height: 5px;
  position: relative;
  bottom: 10px;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid black;
}

.battle progress[value]::-webkit-progress-bar {
  background-color: #000;
}

.battle progress[value]::-webkit-progress-value {
  background-color: #eeb206;
}

.battle progress[value="100"]::-webkit-progress-value {
  background-color: #ff5f01;
}

code {
  background-color: #f2f2f2;
  font-family: "Inconsolata", mono;
  color: #000;
  text-shadow: none !important;
  font-weight: normal;
  font-size: 0.9em;
}

p, ul {
  margin: 5px 0;
}

blockquote {
  margin: 10px 20px;
}

details {
  margin: 5px 0;
}

blockquote, details {
  text-align: justify;
  background-color: rgba(54,45,88,1);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid #6a619a;
}

details > summary {
  cursor: pointer;
}

details[open] > summary {
  border-bottom: 1px solid #6a619a;
}

details > summary:before {
  content: "[click to show] ";
  font-size: 0.8em;
  color: #eeb206;
}

details[open] > summary:before {
  content: "[click to hide] ";
}

details blockquote {
  margin: 0;
  border-radius: 0;
}

blockquote.quote p:first-child:before {
  content:"“"
}

blockquote.quote p:last-child:after {
  content:"”"
}

img {
  max-width: 100%;
}

small {
  font-size: 0.8em;
}

img.metaimg{
  display: block;
  margin: 5px auto;
}

del {
  color: #9c9a96;
}

hr {
  border: 1px solid #6a619a;
  margin: 10px 0;
}

/* form#theform {
   min-width: 400px;
   } */

form#theform > * {
  display:block;
}

form#theform input, form#theform textarea {
  width:95%;
  margin: 10px;
}

form#theform input, form#theform textarea, form#theform button {
  background-color: rgba(54,45,88,1);
  color: #cfcecc;
}

form#theform input::placeholder, form#theform textarea::placeholder {
  color: #cfecc;
  opacity: 1;
}

form#theform button {
  cursor: pointer;
}

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