@font-face {
  font-family: Roboto;
  src: local("Roboto"), url("https://fujieigo.com/blog/wp-content/themes/fujieigo/fonts/Roboto-Regular.ttf");
}
@supports (-ms-ime-align: auto) {
  body {
    overflow: hidden;
  }
}
.ie-check {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: white;
}

.no-display {
  width: 75%;
  margin: 30px auto 0;
}
.no-display img {
  max-width: 100%;
}

/*******************/
/* password prompt */
/*******************/
.post-password-form {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  transform: translate(-50%, -50%);
  margin: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.5rem;
  background: white;
  text-align: center;
  font-size: 1.2rem;
  color: black;
}

/*****************/
/* general style */
/*****************/
* {
  transition: background-color 0.3s ease;
}
*:hover {
  transition: background-color 0.3s ease;
}

html,
body {
  height: 100vh;
  width: 100%;
  user-select: none;
}

html {
  font: 16px Roboto, sans-serif;
}

body {
  margin: 0;
  overflow: hidden;
}

strong,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Roboto, sans-serif;
  font-weight: 700;
}

::-webkit-scrollbar {
  width: 0.5em;
}

::-webkit-scrollbar-track {
  background-color: rgba(211, 211, 211, 0.5);
}

::-webkit-scrollbar-thumb {
  background-color: darkgrey;
  outline: 1px solid slategrey;
}

input,
select {
  font-family: Roboto, sans-serif;
}

div {
  box-sizing: border-box;
}

text {
  fill: black;
  font-size: 0.5rem;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(230, 230, 230);
  margin: 0 auto;
  padding: 0.5rem;
  border: 0.05rem solid rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  font: 14px Roboto, sans-serif;
}
button:active {
  border-top-color: rgba(0, 0, 0, 0.25);
  border-right-color: rgba(0, 0, 0, 0.25);
}
button:focus {
  outline: none;
}
button:hover {
  background: rgb(255, 255, 255);
  cursor: pointer;
}
button:hover .icon {
  fill: rgb(100, 100, 100);
}
button span {
  display: inline;
}
button .icon {
  height: 1rem;
}
button .icon ~ span {
  margin-left: 0.25rem;
}

input::file-selector-button {
  display: inline-flex;
  align-items: center;
  background: rgb(230, 230, 230);
  margin: 0 auto;
  padding: 0.5rem;
  border: 0.05rem solid rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  font: 14px Roboto, sans-serif;
  margin-right: 0.5rem;
}
input::file-selector-button:active {
  border-top-color: rgba(0, 0, 0, 0.25);
  border-right-color: rgba(0, 0, 0, 0.25);
}
input::file-selector-button:focus {
  outline: none;
}
input::file-selector-button:hover {
  background: rgb(255, 255, 255);
  cursor: pointer;
}
input::file-selector-button:hover .icon {
  fill: rgb(100, 100, 100);
}
input::file-selector-button span {
  display: inline;
}
input::file-selector-button .icon {
  height: 1rem;
  margin-right: 0.3rem;
}

.text-small {
  font-size: 12px;
}

.text-large {
  font-size: 20px;
}

.clear-fix:after {
  content: ".";
  visibility: hidden;
  display: block;
  height: 0;
  clear: both;
}

.active {
  display: block;
}

.icon {
  height: 2rem;
}

.button-text,
.button-input {
  width: 100%;
}

/***********/
/* prompts */
/***********/
.prompt {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 94vh;
  overflow: auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  box-shadow: 0.25rem 0.25rem 0 0 rgba(0, 0, 0, 0.25);
  margin: 0.5rem;
  color: black;
  font-size: 0.8rem;
  text-align: center;
}
.prompt::-webkit-scrollbar-track, .prompt::-webkit-scrollbar-thumb {
  border-radius: 0 0.5rem 0.5rem 0;
}
.prompt .close-button {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  background: none;
}
.prompt .close-button .icon {
  height: 2rem;
}

/*********/
/* about */
/*********/
.title-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  background: rgba(173, 216, 230, 0.8);
}

.title {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}
.title .icon {
  height: 1rem;
}

.title-header {
  margin: 0;
  font-size: 3rem;
}
.settings .title-header {
  display: none;
  position: relative;
  font-size: 3rem;
}
.set-up .settings .title-header {
  display: block;
}
.title-header .title-image {
  position: absolute;
  top: -2rem;
  right: 0;
  max-height: 7.5rem;
}

.about-icon {
  height: 1rem;
}

.title-image {
  display: block;
  height: 25rem;
  filter: drop-shadow(0.3rem 0.3rem rgba(0, 0, 0, 0.25));
}

.about-image {
  position: absolute;
  right: -2.5rem;
  bottom: 0;
  height: 25rem;
  filter: drop-shadow(0.3rem 0.3rem rgba(0, 0, 0, 0.25));
}

.info-icon {
  height: 1rem;
}

.start {
  padding: 1rem;
  margin-bottom: 1rem;
  background: red;
  border-width: 0.5rem;
  border-radius: 1rem;
  color: white;
  font-size: 3rem;
}
.start:hover {
  background: darkred;
}

.skip-demo {
  display: block;
  border-width: 0.2rem;
  padding: 0.5rem 1rem;
  background: darkgray;
  font-size: 1.5rem;
}
.skip-demo:hover {
  background: gray;
}

.demo {
  display: none;
  position: absolute;
  top: 15%;
  left: 3%;
}

.end-demo-button {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.data-upload {
  margin-bottom: 0.5rem;
}
.data-upload input[type=file] {
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed;
  border-radius: 0.5rem;
  padding: 0.25rem;
}

header .version {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
}

/***********/
/* options */
/***********/
.options {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.5rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  margin: 0.5rem;
  min-height: 3rem;
  min-width: 3rem;
  max-height: 96%;
  font-size: 0.8rem;
  transition: background-color 0.5s ease;
  overflow-y: auto;
}
.options:hover {
  background: rgb(255, 255, 255);
}
.options:hover section {
  background: rgba(245, 245, 245, 0.5);
}
.options h3 {
  margin: 0 0 0.5rem;
  text-align: center;
}
.options .version {
  display: flex;
  align-content: center;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.space-medium .options {
  margin: 1rem;
}

.space-large .options {
  margin: 1.5rem;
}

.space-extralarge .options {
  margin: 1.5rem 3rem;
}

.options-icon {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.version .icon {
  margin-left: 0.3rem;
}

/**********/
/* filter */
/**********/
/***************************************************/
/******************** main body ********************/
/***************************************************/
.main {
  display: flex;
  height: 100vh;
  flex-direction: column;
  justify-content: space-around;
  padding: 2rem;
  color: white;
}

.col-wrapper {
  display: flex;
  height: 100vh;
}

.col {
  padding: 1%;
  position: relative;
}

.col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.col-layout-one {
  flex-direction: column;
  justify-content: center;
}

.col-layout-two .col-one {
  width: 20%;
  padding: 0 1%;
}
.col-layout-two .col-two {
  width: 80%;
}

.col-layout-three .col-one,
.col-layout-three .col-three {
  width: 15%;
  padding: 0 1%;
}
.col-layout-three .col-two {
  width: 70%;
}

/**************************************************/
/******************** side bar ********************/
/**************************************************/
.sidebar {
  position: relative;
  width: 18rem;
  height: 100vh;
  font-size: 1.2rem;
}

.space-medium .sidebar {
  width: 13rem;
}

.space-large .sidebar {
  width: 13.5rem;
}

.space-extralarge .sidebar {
  width: 18rem;
}

.sidebar-title h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  text-align: center;
  text-shadow: 1px 1px 0 black;
}

.sidebar ul {
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.5rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  margin: 0.5rem;
  min-height: 2rem;
  list-style: none;
  text-align: left;
}

.space-medium .sidebar ul {
  margin: 1rem;
}

.space-large .sidebar ul {
  margin: 1.5rem;
}

.space-extralarge .sidebar ul {
  margin: 1.5rem 3rem;
}

/**************/
/* point list */
/**************/
.group-list {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  list-style: none;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  list-style: none;
  color: black;
  text-align: center;
}
.col-layout-two .col-one .group-list {
  flex-direction: column;
}
.group-list li {
  flex: 1;
  position: relative;
  margin: 0 0.5rem;
}

.col-layout-two .col-one .group-score-list {
  width: calc(100% - 1rem);
  margin: 0.5rem auto;
}
.col-layout-two .col-one .group-score-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 2rem);
  padding: 0 0.5rem;
}
.col-layout-two .col-one .group-score-list .swatch {
  margin: 0;
}
.col-layout-two .col-one .group-score-list .score::after {
  content: " points";
}
.group-score-list::before {
  content: "- points -";
  flex-basis: 100%;
  margin-bottom: 0.25rem;
  color: rgba(0, 0, 0, 0.25);
  text-shadow: 1px 1px rgba(255, 255, 255, 0.5);
}
.col-layout-two .group-score-list::before {
  flex-basis: auto;
}

.group-winner-selection-list,
.group-multi-choice-winner-selection-list {
  background: none;
}
.group-winner-selection-list .swatch,
.group-multi-choice-winner-selection-list .swatch {
  cursor: pointer;
}
.group-winner-selection-list .swatch:hover,
.group-multi-choice-winner-selection-list .swatch:hover {
  border: 0.1rem solid rgba(255, 255, 255, 0.5);
}

.swatch {
  display: flex;
  width: 2rem;
  height: 2rem;
  background: gray;
  border: 0.1rem solid rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  margin: auto;
  text-align: center;
  color: black;
  font-size: 1.2rem;
  text-shadow: 1px 1px white;
  line-height: 2rem;
  justify-content: center;
  align-items: center;
}
.active .swatch {
  border: 0.1rem solid rgba(255, 255, 255, 0.5);
}

.winner-icon,
.icon-winner {
  display: none;
  position: absolute;
  z-index: 1;
  top: -1.6rem;
  left: calc(50% - 1.4rem);
  fill: yellow;
  stroke: black;
  stroke-width: 0.5;
  transform: rotate(-10deg);
}
.winner-icon:hover,
.icon-winner:hover {
  fill: yellow;
}
.winner .winner-icon,
.winner .icon-winner {
  display: block;
}

.color-undefined {
  background: lightgray;
}

.no-team .swatch {
  background: lightgreen;
}

.group-0 .swatch,
.team-0 .swatch {
  background: red;
  color: white;
  text-shadow: 1px 1px black;
}

.group-1 .swatch,
.team-1 .swatch {
  background: blue;
  color: white;
  text-shadow: 1px 1px black;
}

.group-2 .swatch,
.team-2 .swatch {
  background: yellow;
}

.group-3 .swatch,
.team-3 .swatch {
  background: pink;
}

.group-4 .swatch,
.team-4 .swatch {
  background: purple;
  color: white;
  text-shadow: 1px 1px black;
}

.group-5 .swatch,
.team-5 .swatch {
  background: orange;
}

.group-6 .swatch,
.team-6 .swatch {
  background: green;
}

.group-7 .swatch,
.team-7 .swatch {
  background: maroon;
  color: white;
  text-shadow: 1px 1px black;
}

.group-8 .swatch,
.team-8 .swatch {
  background: lightskyblue;
  color: white;
  text-shadow: 1px 1px black;
}

.answer-tally {
  width: 100%;
  min-height: 1.2rem;
  font-size: 1rem;
  text-align: left;
  white-space: break-spaces;
  word-break: break-all;
  text-align: center;
}

.remaining-points {
  top: 50%;
  transform: translateY(-50%);
}

/************/
/* controls */
/************/
.controls {
  display: flex;
  flex-wrap: wrap;
  margin: 0.5rem 0 0;
}

.user-controls li {
  width: 20%;
}

.user-controls {
  display: flex;
  margin: auto 0 0;
}
.user-controls button {
  opacity: 0.5;
  transition: opacity 0.5s;
  aspect-ratio: 1/1;
  width: 3rem;
  margin: 0;
  border-radius: 50%;
}
.user-controls button:hover {
  opacity: 1;
}
.user-controls button:hover:disabled {
  opacity: 0.25;
}
.user-controls button .icon {
  height: 100%;
  width: 100%;
  margin-right: 0;
}
.user-controls button:disabled {
  opacity: 0.25;
}
.user-controls .user-controls-reset {
  margin-left: auto;
}

.zoom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 11rem;
  margin: 0.5rem;
}

.space-medium .zoom-controls {
  margin: 1rem;
}

.space-large .zoom-controls {
  width: 10.5rem;
  margin: 1.5rem;
}

.space-extralarge .zoom-controls {
  width: 12rem;
  margin: 3rem;
}

/****************/
/* link sharing */
/****************/
.qr-code img {
  max-width: 75%;
  max-height: 75%;
}

.url {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 2rem;
}
.url .copy-icon {
  padding-right: 0.5rem;
}

.copy-confirm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: white;
  font-size: 1.2rem;
}

/**********/
/* timers */
/**********/
.timer {
  padding: 0.5rem;
  border-radius: 0.5rem;
}
.timer:hover {
  cursor: pointer;
}
.timer:hover .timer-pause-icon {
  fill: rgb(100, 100, 100);
}
.timer:hover {
  background: white;
}
.timer .timer-number {
  font-size: 1.2rem;
}

.timer-short {
  position: absolute;
  top: 3rem;
  right: 3rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}
.prompt .timer-short {
  right: 0.5rem;
}
.timer-short .icon {
  height: 1rem;
}
.timer-short .timer-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.timer:hover .timer-short .timer-number {
  color: rgb(100, 100, 100);
}

.timer-circle {
  transform: rotateY(-180deg) rotateZ(-90deg);
  width: 100%;
  height: 100%;
}
.timer-circle circle {
  stroke-linecap: round;
  stroke-width: 0.1rem;
  stroke: black;
  fill: none;
}
.timer:hover .timer-circle circle {
  stroke: rgb(100, 100, 100);
}

.timer-long {
  position: relative;
  width: fit-content;
  min-width: 5.5rem;
  margin: 0 auto;
  text-align: center;
}
.timer-long .timer-number {
  display: block;
  text-align: center;
  margin-bottom: 0.25rem;
}
.timer-long .icon {
  height: 1rem;
}

.timer-bar-bg {
  position: relative;
  height: 4px;
  background: #ddd;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
}

.timer-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #2196f3;
  width: 0;
  transition: width 0.3s linear;
}

.timer-flash {
  animation: flash-complete 0.4s ease-out;
}

@keyframes flash-complete {
  0% {
    background-color: rgba(255, 255, 255, 0.8);
  }
  100% {
    background-color: transparent;
  }
}
.skip-timer {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
}
.skip-timer svg {
  margin: 0;
}

/*************/
/* edit mode */
/*************/
.edit-mode-cursor,
.edit-space-panel {
  display: none;
  position: absolute;
}

.edit-mode-cursor {
  width: 1.5rem;
  z-index: 1;
}

.edit-space-panel {
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.5rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
}
.edit-space-panel h2 {
  margin: 0.5rem 0;
  text-align: center;
}

/***********************************************/
/****************** grid list ******************/
/***********************************************/
.grid-list {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  max-height: 100vh;
  overflow-x: auto;
  width: calc(100% - 12rem);
  margin: 0 3.5rem;
  padding: 0;
  list-style: none;
  font-size: 2.5rem;
}
.grid-list li {
  position: relative;
  width: calc(16.6% - 1.6rem);
  height: 5rem;
  height: calc(16.6% - 1.6rem);
  margin: 0.5rem;
  border: 0.3rem solid white;
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: top 1s, left 1s, transform 1s;
  transform-style: preserve-3d;
  perspective: 50%;
}
.grid-list li:hover .question-side {
  background: darkred;
}
.grid-list div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  height: 100%;
  width: 100%;
  backface-visibility: hidden;
}

.coordinate-grid {
  padding: 5rem 0 0 5rem;
  justify-content: flex-start;
}
.coordinate-grid .coordinate {
  border: 0.3rem solid white;
  border-radius: 0.5rem;
  background: blue;
  color: white;
  cursor: default;
  backface-visibility: visible;
  transition: none;
}
.coordinate-grid .coordinate-x {
  bottom: calc(100% + 1rem);
  left: -0.25rem;
  width: calc(100% + 0.5rem);
  height: 4rem;
}
.coordinate-grid .coordinate-y {
  top: -0.25rem;
  right: calc(100% + 1rem);
  width: 4rem;
  height: calc(100% + 0.5rem);
}

.grid-list .question-side {
  background: red;
}
.grid-list .result-side {
  background: darkred;
  transform: rotateY(180deg);
  font-size: 1rem;
}
.grid-list .result-side .reward-image {
  max-width: 100%;
  max-height: 80%;
}
.grid-list .result-side .reward-name {
  display: block;
  height: 20%;
}

/***********/
/* tooltip */
/***********/
.tooltip {
  position: relative;
  vertical-align: middle;
}

.tooltip-icon {
  height: 1rem;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  background: rgba(255, 255, 255, 0.75);
  min-width: 3.5rem;
  max-width: 10rem;
  height: fit-content;
  border: 0.05rem solid rgba(0, 0, 0, 0.5);
  border-radius: 0.25rem;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: normal;
  text-align: center;
  transform: translateX(-50%);
  transition: visibility 0s 0.5s, opacity 0.5s;
}
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s;
}
.tooltip-text:before, .tooltip-text:after {
  position: absolute;
  top: calc(100% - 0.025rem);
  left: 50%;
  height: 0;
  width: 0;
  border: 0.5rem solid transparent;
  border-top-color: #e6e6e6;
  margin-left: -0.5rem;
  content: " ";
  pointer-events: none;
}
.dark-mode .tooltip-text:before, .dark-mode .tooltip-text:after {
  border-top-color: rgb(29, 29, 29);
}
.tooltip-text:before {
  left: calc(50% - 0.07rem);
  border: 0.57rem solid transparent;
  border-top-color: rgba(0, 0, 0, 0.5);
}

.main-area {
  display: flex;
  flex-grow: 1;
  align-items: center;
  text-align: center;
}

/***********/
/* Results */
/***********/
.result .reward-image {
  max-width: 100%;
  max-height: 80%;
}
.result .reward-name {
  max-height: 20%;
}

/*************************/
/* awarded points prompt */
/*************************/
/******************/
/* time up prompt */
/******************/
.time-up button {
  width: 100%;
}
.time-up .filter-questions {
  margin-bottom: 0.5rem;
}
.time-up .more-time {
  display: grid;
  margin-bottom: 0.5rem;
}

.finish-game {
  background: red;
  margin-bottom: 0.5rem;
  border-width: 0.5rem;
  border-radius: 1rem;
  color: white;
  font-size: 1.8rem;
}
.finish-game:hover {
  background: darkred;
}
.finish-game:hover .icon {
  fill: white;
}
.finish-game .icon {
  fill: white;
  height: 1.4rem;
}
.finish-game .icon:hover {
  fill: white;
}

/********************/
/* game over prompt */
/********************/
.game-over {
  font-size: 1rem;
}
.game-over .team-name {
  display: inline-block;
  margin-left: 0.5rem;
}

.winner-wrapper {
  display: none;
}

.reset-game {
  background: red;
  margin-bottom: 0.5rem;
  border-width: 0.5rem;
  border-radius: 1rem;
  color: white;
  font-size: 1.8rem;
}
.reset-game:hover {
  background: darkred;
}
.reset-game:hover .icon {
  fill: white;
}
.reset-game .icon {
  fill: white;
  height: 1.4rem;
}
.reset-game .icon:hover {
  fill: white;
}

/***********************/
/* notification prompt */
/***********************/
.notification {
  opacity: 0;
  top: auto;
  bottom: 0;
  transform: translate(-50%, 0);
  box-shadow: none;
  white-space: nowrap;
}

.space-medium .notification {
  bottom: 1rem;
}

.space-large .notification,
.space-extralarge .notification {
  bottom: 1.5rem;
}

.notification .icon {
  height: 1rem;
}

/****************/
/* progress bar */
/****************/
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.loading {
  position: fixed;
  z-index: 5;
  top: -1rem;
  bottom: -1rem;
  left: -1rem;
  right: -1rem;
  background: rgba(245, 245, 245, 0.5);
  color: black;
  text-align: center;
  text-shadow: 1px 1px white;
}

.loading-title {
  margin-top: 0;
}

.loading-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 94vh;
  width: 30%;
  background: rgba(255, 255, 255, 0.75);
  padding: 2.5rem;
  border-radius: 1rem;
}
.loading-content .loading-info {
  position: relative;
}
.loading-content .loading-info:after {
  position: absolute;
  animation: ellipsis 1s infinite;
  content: "";
}

.loading-icon {
  height: 1rem;
  animation: spin 3s infinite linear;
}

.progress-bar-wrapper {
  position: relative;
  background: lightgray;
  margin: 0.5rem 0;
  border: 0.1rem solid rgba(0, 0, 0, 0.5);
  border-radius: 0.3rem;
}

.progress-bar {
  background: darkblue;
  width: 0%;
  height: 1.2rem;
  padding: 0.1rem 0;
  border-radius: 0.2rem;
  transition: width, 0.5s;
}

.progress-bar-amount {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 1px 1px black;
}

@keyframes ellipsis {
  0% {
    content: "";
  }
  25% {
    content: ".";
    /* ascii code for period */
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}
/*************/
/* lazy load */
/*************/
.lazy-loading {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 5;
}
.lazy-loading .loading-icon {
  height: 0.5rem;
  margin-right: 0.25rem;
}

/***************/
/* information */
/***************/
.info {
  z-index: 3;
  max-height: 90%;
  overflow-y: auto;
  text-align: left;
}

h4 .icon {
  height: 0.8rem;
}

.compatibility ul {
  display: flex;
  justify-content: space-around;
  margin: 0;
  padding: 0;
  list-style: none;
}
.compatibility li {
  position: relative;
}
.compatibility .tick-icon {
  fill: blue;
}
.compatibility .question-icon {
  fill: orange;
}
.compatibility .cross-icon {
  fill: red;
}
.compatibility .tooltip {
  position: absolute;
  right: -0.75rem;
  top: -0.75rem;
}
.compatibility .tooltip-text {
  font-size: 0.7rem;
}

.result .result-winner-notification .team {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 3.5rem);
  font-size: 1.6rem;
}
.result .winner-notification-string {
  flex-grow: 1;
}
.result .team {
  opacity: 0;
  text-align: center;
}
.result .timer {
  top: 0.5rem;
}

.point-list {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  list-style: none;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
}
.point-list li {
  background: #f0d36d;
  background: linear-gradient(0deg, #cab25b 0%, #f0d36d 49%, #fce982 51%, #fce982 100%);
  padding: 0.5rem 0;
  border: 1px solid rgba(168, 147, 74, 0.5);
  border-top-color: rgba(255, 255, 255, 0.5);
  border-right-color: rgba(255, 255, 255, 0.5);
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 900;
  text-shadow: 1px 1px 0 rgb(255, 255, 255);
}
.point-list li:before {
  content: "$";
}
.point-list .taken {
  background: darkgoldenrod;
  text-decoration: line-through;
}

.mini-point-list {
  columns: 4;
  width: 20rem;
  padding: 0;
  font-size: 0.7rem;
}

.preloaded-images {
  display: none;
}

/***********/
/* options */
/***********/
.set-up {
  position: absolute;
  top: 3rem;
  right: 3rem;
  bottom: 3rem;
  left: 3rem;
  z-index: 1;
  overflow: auto;
  padding: 1rem;
  font-size: 1.2rem;
}
.set-up select,
.set-up input {
  font-size: 1.2rem;
}

.settings-wrapper .settings {
  position: absolute;
  z-index: 1;
  background: rgba(229, 229, 229, 0.5);
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: 0.5rem;
}
.settings-wrapper .game-header {
  display: none;
}
.settings-wrapper .settings-header {
  margin: 0.25rem;
  font-size: 1.4rem;
}
.settings-wrapper .settings-header .icon {
  display: none;
}
.settings-wrapper .submit-load-page-list,
.settings-wrapper .submit-user-editable-settings {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border-radius: 0.5rem;
}

.field-wrapper {
  display: flex;
  margin-bottom: 0.5rem;
}
.field-wrapper * {
  flex-grow: 1;
}
.field-wrapper label {
  max-width: 40%;
}
.field-wrapper select,
.field-wrapper input {
  min-width: 60%;
}

.submit-user-editable-settings {
  font-size: 1.2rem;
  font-weight: bold;
}

/********/
/* dice */
/********/
/* parent wrapper: gives overall perspective for 3D */
.dice-wrapper {
  perspective: 56.25rem;
  /* ~900px at 16px base (900 / 16 = 56.25rem) */
  perspective-origin: 50% 50%;
}

/* dice root: size is a rem-valued CSS variable */
.dice {
  --size: 6.25rem;
  /* default if not overridden (100px at 16px base) */
  --dot-size: calc(var(--size) * 0.2);
  /* dot is 20% of cube size (like 20px / 100px) */
  position: relative;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  transition-property: transform;
  transition-duration: 1s;
  /* overwritten inline by JS */
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: 50% 50%;
  margin: 0.5rem;
  display: inline-block;
  box-sizing: border-box;
}

/* faces: full-size panels that sit half the size out on Z */
.face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 0.375rem;
  /* 6px ~ 0.375rem */
  border: none;
  box-shadow: inset 0 0 0 0.0625rem #e5e5e5;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* place faces exactly at translateZ = half the cube size */
.face-1 {
  transform: translateZ(calc(var(--size) / 2));
}

.face-2 {
  transform: rotateY(90deg) translateZ(calc(var(--size) / 2));
}

.face-3 {
  transform: rotateY(-90deg) translateZ(calc(var(--size) / 2));
}

.face-4 {
  transform: rotateX(90deg) translateZ(calc(var(--size) / 2));
}

.face-5 {
  transform: rotateX(-90deg) translateZ(calc(var(--size) / 2));
}

.face-6 {
  transform: rotateY(180deg) translateZ(calc(var(--size) / 2));
}

/* dots scale by --dot-size and are centered using transform */
.dot {
  position: absolute;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background-color: #f25f5c;
  box-shadow: inset 0.125rem 0.125rem #d90429;
  /* ~2px inset */
  transform: translate(-50%, -50%);
  /* center on top/left coords */
  box-sizing: border-box;
  pointer-events: none;
}

/* dot position rules (percent coordinates) */
.face-2-dot-1,
.face-3-dot-1,
.face-4-dot-1,
.face-5-dot-1,
.face-6-dot-1 {
  top: 20%;
  left: 20%;
}

.face-4-dot-3,
.face-5-dot-3,
.face-6-dot-4 {
  top: 20%;
  left: 80%;
}

.face-1-dot-1,
.face-3-dot-2,
.face-5-dot-5 {
  top: 50%;
  left: 50%;
}

.face-4-dot-2,
.face-5-dot-2,
.face-6-dot-3 {
  top: 80%;
  left: 20%;
}

.face-2-dot-2,
.face-3-dot-3,
.face-4-dot-4,
.face-5-dot-4,
.face-6-dot-6 {
  top: 80%;
  left: 80%;
}

.face-6-dot-2 {
  top: 50%;
  left: 20%;
}

.face-6-dot-5 {
  top: 50%;
  left: 80%;
}

/* rolling / flair helpers */
.dice.rolling {
  box-shadow: 0 0.75rem 1.875rem rgba(0, 0, 0, 0.25);
  will-change: transform;
}

.dice.active-flair {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.active-face-1 {
  transform: rotateX(720deg) rotateZ(-720deg);
}

.active-face-3 {
  transform: rotateY(-450deg) rotateZ(-1440deg);
}

.active-face-4 {
  transform: rotateY(810deg) rotateZ(720deg);
}

.active-face-5 {
  transform: rotateX(-810deg) rotateZ(-1080deg);
}

.active-face-2 {
  transform: rotateX(450deg) rotateZ(-720deg);
}

.active-face-6 {
  transform: rotateX(-900deg) rotateZ(1080deg);
}

.dice.active-flair {
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flashcards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  list-style: none;
}

.flashcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flashcard-image-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 8rem;
  height: 8rem;
}

.flashcard-image {
  max-width: 100%;
  max-height: 100%;
}

/*********/
/* fonts */
/*********/
/* fredoka-regular - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400;
  src: url("https://fujieigo.com/blog/wp-content/themes/fujieigo/fonts/fredoka-v14-latin-regular.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fredoka-700 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 700;
  src: url("https://fujieigo.com/blog/wp-content/themes/fujieigo/fonts/fredoka-v14-latin-700.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/**************/
/* animations */
/**************/
@keyframes idle {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.2rem);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes active {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes attacked {
  0% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-1rem);
  }
  100% {
    transform: translateX(0);
  }
}
body,
strong,
h1,
h2,
h3,
h4,
h5,
h6,
select,
input,
button {
  font-family: "Fredoka", sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  margin: 0;
  background: url(https://fujieigo.com/blog/wp-content/uploads/2025/01/game-fruit-catcher-background.png) center/cover no-repeat;
  font-size: 16px;
}

.game {
  flex: 1 1 65%;
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.players {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  height: 100%;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0 1rem;
  list-style: none;
  font-size: 2rem;
  color: black;
  text-shadow: 1px 1px white;
}

.player {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
  padding: 0.5rem;
  margin: 0;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
}
.player:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0.5rem rgba(255, 255, 0, 0.75);
}
.player .flashcard,
.player .health-bar,
.player .avatar {
  transition: all 0.25s;
}

.active .flashcard,
.active .health-bar,
.shielded .flashcard,
.shielded .health-bar,
.zombie .flashcard,
.zombie .health-bar {
  opacity: 0.25;
}

.zombie .avatar {
  opacity: 0.25;
}

.player-number-image {
  max-width: 3rem;
}

.flashcard {
  display: flex;
  flex-direction: column;
  margin-bottom: auto;
}

.flashcard-image-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

.flashcard-image {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.health-bar {
  position: relative;
  width: 100%;
  height: 2.8rem;
  background: darkgray;
  border-radius: 0.3rem;
  border: 0.1rem solid white;
  margin-bottom: 0.25rem;
  color: white;
  text-shadow: 1px 1px black;
}

.health-bar-hp {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: red;
  border-radius: 0.2rem;
  transition: background-color 0.3s, width 0.5s ease-out;
}

.health-bar-hp-value {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.shield {
  background: url(https://fujieigo.com/blog/wp-content/uploads/2025/11/game-character-battle-shield.png) no-repeat center/cover;
  aspect-ratio: 544/660;
  padding: 1rem;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 1px 1px black;
}

.avatar {
  display: flex;
  align-items: flex-end;
}

.avatar-image {
  display: block;
  max-width: 100%;
  min-height: 20vh;
  max-height: 33vh;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: bottom center;
  align-self: flex-end;
  animation: idle 2s infinite;
}
.active .avatar-image {
  animation: active 1s ease infinite;
}
.attacked .avatar-image {
  animation: attacked 1s ease;
}
.player:nth-child(1) .avatar-image .character-image {
  animation-delay: 0s;
}
.player:nth-child(2) .avatar-image {
  animation-delay: 0.33s;
}
.player:nth-child(3) .avatar-image {
  animation-delay: 0.25s;
}
.player:nth-child(4) .avatar-image {
  animation-delay: 0.13s;
}
.player:nth-child(5) .avatar-image {
  animation-delay: 0.17s;
}
.player:nth-child(6) .avatar-image {
  animation-delay: 0.19s;
}
.player:nth-child(7) .avatar-image {
  animation-delay: 0.27s;
}
.player:nth-child(8) .avatar-image {
  animation-delay: 0.3s;
}
.player:nth-child(9) .avatar-image {
  animation-delay: 0.22s;
}

.player-number-image,
.flashcard-image,
.avatar-image {
  display: block;
  height: auto;
  width: auto;
}

.group-selection {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.active .swatch {
  box-shadow: 0 0 0.5rem rgba(255, 255, 0, 0.75);
  animation: pulsing-glow 1s infinite;
}

.score {
  margin-top: 0.5rem;
  text-shadow: 1px 1px white;
}

@keyframes pulsing-glow {
  0% {
    box-shadow: 0 0 0.5rem rgba(255, 255, 0, 0.75);
  }
  50% {
    box-shadow: 0 0 3rem rgb(255, 255, 0);
  }
  0% {
    box-shadow: 0 0 0.5rem rgba(255, 255, 0, 0.75);
  }
}
.menu {
  position: relative;
  display: flex;
  order: 3;
  flex: 0 0 12%;
  min-height: 3rem;
  align-items: center;
  justify-content: space-around;
  padding: 1rem;
}
.menu button {
  font-size: 2rem;
}
.menu button.active {
  box-shadow: 0 0 0.5rem rgba(255, 255, 0, 0.75);
}

.icon-wrapper .icon {
  height: 1.6rem;
  margin-right: 0.25rem;
}

@keyframes moving-fruit {
  0% {
    transform: rotate(12deg);
  }
  50% {
    transform: rotate(-12deg);
  }
  100% {
    transform: rotate(12deg);
  }
}
.user-controls {
  flex: 0 0 10%;
  min-height: 3rem;
  padding: 1rem;
}
.user-controls button {
  height: fit-content;
}
.user-controls button:not(:last-child) {
  margin-right: 0.25rem;
}

.end-demo-button {
  position: absolute;
  top: 5rem;
  left: 1rem;
}

.timer {
  top: 1rem;
  right: 1rem;
  width: 8rem;
  height: 8rem;
}
.timer .skip-timer-icon,
.timer .timer-pause-icon {
  height: 3rem;
}

.timer-round .timer-number {
  font-size: 3.5rem;
}

.timer-game-time {
  display: none;
}

.group-list {
  flex: 0 0 13%;
  order: 2;
  min-height: 3rem;
}

.action-button {
  font: 2rem "Fredoka", sans-serif;
}

.reset-groups-button {
  position: absolute;
  left: 1rem;
}

.prompt {
  min-width: 25%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-shadow: 1px 1px black;
  font-size: 5rem;
}
.prompt button {
  display: block;
  margin-top: 0.25rem;
}/*# sourceMappingURL=game-character-battle.css.map */