@import "https://fonts.googleapis.com/css2?family=Baskervville:ital,wght@0,400..700;1,400..700&family=Texturina:ital,opsz,wght@0,12..72,100..900;1,12..72,100..900&display=swap";

/* src/style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  --primary-color: #111;
  --background-color: #eee;
  --small-font: .8rem;
  --big-font: 1.2rem;
  --bigger-font: 1.6rem;
  --title-font: 2rem;
  background-color: var(--background-color);
  color: var(--primary-color);
  background-image: radial-gradient(circle at 20% 80%, #8b45131a 0%, #0000 50%), radial-gradient(circle at 80% 20%, #8b45131a 0%, #0000 50%);
  font-family: Baskervville, serif;
  font-size: 16px;
}

body.dark {
  --primary-color: #eee;
  --background-color: #111;
}

.overlay {
  position: fixed;
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.flash-message {
  display: block;
  text-align: center;
  background-color: var(--primary-color);
  opacity: .9;
  color: var(--background-color);
  width: 50%;
  margin-bottom: 1rem;
  padding: 1rem;
  font-size: 1rem;
}

.main-view {
  display: flex;
  justify-content: center;
}

.side-view {
  margin-top: 7rem;
}

.container {
  max-width: 600px;
  margin-right: 2rem;
}

.main-header {
  font-family: Texturina, Times New Roman, serif;
  font-size: var(--title-font);
  border-bottom: 4px solid #8b0000;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: .2rem;
  font-weight: bold;
}

.description {
  width: 60ch;
  min-height: 300px;
  font-size: 1.2rem;
}

.description p {
  margin-bottom: 1rem;
}

.battle-meter {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid var(--primary-color);
  background: var(--background-color);
  border-radius: 0;
  width: 300px;
  height: 16px;
  padding: 0;
}

.battle-meter::-webkit-meter-bar {
  background: var(--background-color);
  border: none;
  border-radius: 4px;
}

.fit {
  width: 100%;
}

.battle-meter::-webkit-meter-optimum-value {
  background: var(--primary-color);
  border-radius: 4px;
}

.battle-meter::-webkit-meter-suboptimum-value {
  background: var(--primary-color);
  border-radius: 4px;
}

.battle-meter::-webkit-meter-even-less-good-value {
  background: var(--primary-color);
  border-radius: 4px;
}

.battle-meter:-moz-meter-optimum::-moz-meter-bar {
  background: var(--primary-color);
}

.battle-meter:-moz-meter-sub-optimum::-moz-meter-bar {
  background: var(--primary-color);
}

.battle-meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
  background: var(--primary-color);
}

.small-title {
  font-size: 1rem;
  font-weight: bold;
}

.image {
  float: right;
  background-color: #0000;
  width: 128px;
  height: 128px;
  margin: 16px;
}

.game-content {
  display: flex;
  flex-direction: row;
  margin-top: 2em;
}

.choices {
  width: 100%;
}

.choices .choice {
  display: block;
  border: none;
  border-bottom: solid 1px var(--primary-color);
  background-color: #0000;
  margin-bottom: .4rem;
  transition: transform .2s;
  font-family: Baskervville, serif;
  font-size: 1.2rem;
  transform: translateX(0);
}

.choices .choice:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
  transition: transform .3s;
  transform: translateX(10px);
}

.sidebar {
  width: 200px;
  margin-left: 16px;
}
