html {
  --flow-small: 10px;
  --flow-medium: 20px;
  --black: #161b27;
  --true-black: #111;
  --main-color: #00a5d6;
  --secondary-color: #273582;
  --text-gray: #4a5056;
  --gray: #9da4b2;
  --yellow: #ffce00;
  --green: limegreen;
  --red: red;
  --border: 2px solid RGBA(0, 0, 0, 0.4);
  --radius: 5px;
  --inner-padding: 5px;
  background: #252525;
  font-size: 1.8em;
}

.open-sans-variable {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-display: swap;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

@font-face {
  font-family: "Courier New";
  font-weight: 200;
  font-display: swap;
  font-style: normal;
}

.container {
  display: grid;
  gap: 0 2rem;
  grid-template-columns: 1fr 1fr 1fr;
}

body.app {
  font-family: "Open Sans", sans-serif;
}

body.darkmode {
  background: #252525;
  color: white;
  --border: 1px solid RGBA(255, 255, 255, 0.2);
}

h1 {
  text-align: center;
  font-size: 1.2rem;
  border-bottom: 1px solid white;
  padding-bottom: 5px;
  margin-top: 0.3em;
  font-weight: 600;
}

h4 {
  text-align: center;
  margin-top: -1em;
  font-size: 0.5rem;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
  margin-block-end: 3em;
}

h5 {
  text-align: center;
}

.wealth-o-meter.panel-header {
  grid-column-start: 1;
  grid-column-end: 2;
}

.panel-header {
  margin: 0;
  text-align: center;
  grid-row-start: 1;
  grid-row-end: 2;
}

.panel-header.intro {
  font-size: 0.5rem;
  color: var(--gray);
  display: inline-block;
}

.panel-header.title {
  color: white;
  font-size: 1rem;
}

.panel-header.subtitle {
  font-size: 0.5rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}

.interaction-pane {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 2;
  grid-row-end: 7;
  display: flex;
  flex-flow: column;
}

.buttons {
  text-align: center;
}

button {
  background: transparent;
  width: 100%;
  min-width: 10em;
  max-width: 500px;
  max-height: 3.2rem;
  margin: 0 0.3em 0.3em 0;
  display: inline-block;
  box-sizing: border-box;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  color: white;
  padding: 0.8rem 1.2em;
  font-size: 0.8rem;
  border: var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  line-height: 1rem;
  justify-content: center;
}

@media all and (max-width: 30em) {
  button {
    display: block;
    margin: 0.4em auto;
  }
}

button:hover {
  background-color: white;
  color: var(--main-color);
}
button:active {
  color: #bbbbbb;
  border-color: #bbbbbb;
}

button.joy:disabled {
  pointer-events: none;
  color: #ccc;
  background: transparent;
  border-color: red;
}

button.joy.joyous {
  font-family: "Courier New";
  font-size: 0.6rem;
  border-color: green;
}
button.joy.cooldown {
  font-family: "Courier New";
  font-size: 0.6rem;
}

button.work:disabled {
  pointer-events: none;
  color: #ccc;
  background: transparent;
  border-color: green;
}

.store {
  grid-column-start: 2;
  grid-column-end: 3;
}

.store.panel-header {
  word-wrap: break-word;
  grid-row-start: 1;
  grid-row-end: 2;
  text-align: center;
}

.store.purchase {
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  grid-row-start: 2;
  grid-row-end: 7;
}

.store.purchase.item.failure {
  border-color: red;
}

.store.purchase.item.success {
  border-color: green;
}

button.store {
  min-height: 2rem;
  max-height: 2rem;
  font-size: 0.5rem;
}

button.store.inactive {
  pointer-events: none;
  color: #ccc;
  background: transparent;
  border-color: red;
  opacity: 0%;
}

button.store:disabled {
  pointer-events: none;
  color: #ccc;
  background: transparent;
  border-color: red;
}

span.superscript {
  font-size: 50%;
  vertical-align: super;
}

.info-panel {
  grid-row-start: 2;
  grid-row-end: 7;
  grid-column-start: 3;
  grid-column-end: 4;
  margin: 0;
  padding: 0 1rem 0 1rem;
}

.info-panel.inactive {
  opacity: 0%;
}

.info-panel.name {
  font-size: 0.6rem;
  margin-bottom: 0.3rem;
}

.info-panel.description {
  padding: 0.2rem 1rem 0.2rem 1rem;
  font-size: 0.5rem;
  border: var(--border);
  border-radius: var(--radius);
  border-color: var(--gray);
}

.footer {
  position: fixed;
  bottom: 0;
  font-size: 0.7rem;
  font-weight: 200;
  color: var(--gray);
}

ul.footnote {
  list-style-type: none;
  padding: 0.2rem;
  text-align: left;
  margin-top: 0;
  font-size: 0.3rem;
  counter-increment: section;
}
