/*********/
/* fonts */
/*********/
@font-face {
  font-family: Roboto;
  src: local("Roboto"), url(https://fujieigo.com/blog/wp-content/themes/fujieigo/fonts/Roboto-Regular.ttf);
}
/*************/
/* variables */
/*************/
/*****************/
/* browser hacks */
/*****************/
@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 */
/*****************/
html,
body {
  height: 100vh;
  width: 100%;
  user-select: none;
}

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

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

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

body {
  background: url(https://fujieigo.com/blog/wp-content/uploads/2024/06/generic-game-background.png) center 58%, url(https://fujieigo.com/blog/wp-content/uploads/2024/06/generic-game-background-tile.png) center repeat #01202a;
  background-size: cover, auto;
  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;
  margin-right: 0.3rem;
}

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

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;
}

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

.active {
  display: block;
}

.icon {
  height: 2rem;
  cursor: pointer;
}
.icon:hover {
  fill: rgb(100, 100, 100);
}

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

/***********/
/* prompts */
/***********/
.prompt {
  display: none;
  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;
}

.loading {
  position: absolute;
  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-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 94vh;
  background: rgba(255, 255, 255, 0.75);
  padding: 2.5rem;
  border-radius: 1rem;
}

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

.about {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.about-icon {
  height: 1rem;
}

.title {
  position: relative;
}
.title h1 {
  margin: 0;
  font-size: 3rem;
}
.title .icon {
  height: 1rem;
}
.header-image {
  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%;
}

.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;
}

.settings {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.settings h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  text-align: center;
}
.settings h4 {
  margin: 0;
}
.settings section {
  background: rgba(245, 245, 245, 0.25);
  padding: 0.5rem;
  border: 1px solid rgba(235, 235, 235, 0.5);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}
.settings section:last-child {
  margin-bottom: 0;
}
.settings section li {
  border-bottom: 1px dotted rgba(0, 0, 0, 0.5);
}
.settings .sub-setting {
  border: none;
}

.setting {
  padding: 0.5rem;
}
.setting input[type=number] {
  width: 2.2rem;
}
.setting input[type=range] {
  vertical-align: middle;
}
.setting input[type=range] + label {
  vertical-align: middle;
}

.sub-group {
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 0.3rem;
  margin: 0.5rem 0;
  list-style-position: inside;
}
.sub-group .sub-group {
  border-style: dashed;
}
.sub-group .sub-group .sub-group {
  border-style: dotted;
}

.sub-setting label:first-of-type {
  display: inline-block;
  min-width: 4.2rem;
}
.sub-setting input[type=radio] ~ input[type=number] {
  color: grey;
}
.sub-setting input[type=radio]:checked ~ input[type=number] {
  color: black;
}

.sub-setting-filter-questions {
  list-style-type: none;
  text-align: center;
}

.button-setting {
  padding-bottom: 0.5rem;
  text-align: center;
}
.button-setting button {
  min-width: 15.5rem;
}

.settings-submit {
  position: sticky;
  bottom: 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 0.5rem;
  text-align: center;
}
.options:hover .settings-submit {
  background: rgba(255, 255, 255, 0.75);
}

/**********/
/* filter */
/**********/
.filter {
  list-style: none;
  overflow-y: auto;
  max-height: 90%;
  z-index: 3;
}
.filter .close-icon {
  height: 1rem;
}

.filter-wrapper {
  margin-bottom: 0.5rem;
  /* first filter level */
}
.filter-wrapper ul {
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  margin: 0.5rem 0 0;
  list-style: none;
  text-align: left;
}
.filter-wrapper label::after {
  content: "+";
  margin-left: 0.5rem;
  color: rgba(0, 0, 0, 0.5);
}
.filter-wrapper ul {
  /* no left margin on the first (title) and second (first list entry) li */
  /* second filter level */
}
.filter-wrapper ul li {
  display: inline-block;
  vertical-align: top;
  margin-left: 0.3rem;
}
.filter-wrapper ul li:nth-child(-n+2) {
  margin: 0;
}
.filter-wrapper ul ul {
  max-width: 10rem;
  /* third filter level */
  /* fourth filter level */
}
.filter-wrapper ul ul li {
  display: block;
  margin-top: 0.5rem;
  margin-left: 0;
}
.filter-wrapper ul ul ul {
  max-width: none;
}
.filter-wrapper ul ul ul li {
  display: inline-block;
  margin-top: 0;
}
.filter-wrapper .filter-title {
  display: block;
}
.filter-wrapper .sub-group {
  display: none;
}

.filter-title {
  font-weight: bold;
}

.active-filter > label::after {
  content: "-";
}
.active-filter > .sub-group {
  display: block;
}

.filter-title label::after,
.filter-wrapper ul ul ul ul label::after {
  content: none;
}

.filter-total {
  color: gray;
  font-style: italic;
}

/* the list of questions to set the limit per category */
.limit-number {
  display: none;
}

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

.col-wrapper {
  display: flex;
}

.col {
  padding: 1%;
}

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

.col-two {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  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,
.team-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.group,
.team {
  position: relative;
  border: 0.1rem dashed rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
}
.group:hover, .group.active,
.team:hover,
.team.active {
  background-color: rgb(255, 255, 255);
  border-style: solid;
}

.point-team-list .group:hover, .mini-team-list .group:hover,
.point-team-list .team:hover,
.mini-team-list .team:hover,
.point-team-list .active,
.mini-team-list .active {
  background-color: black;
}

.result .group:hover,
.result .team:hover {
  background: none;
}

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

.winner-icon,
.icon-winner {
  display: none;
  position: absolute;
  top: -1rem;
  left: 0.1rem;
  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,
.remaining-points {
  position: absolute;
  top: 2.5rem;
  left: 0;
  width: 100%;
  margin-left: 0.5rem;
  font-size: 1rem;
  text-align: left;
  white-space: break-spaces;
  word-break: break-all;
}

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

.group-list,
.point-team-list,
.mini-team-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  border: 0.1rem dashed rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
}
.group-list li,
.point-team-list li,
.mini-team-list li {
  display: flex;
  width: 30%;
  margin: 0.25rem;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}
.group-list .sidebar-title,
.point-team-list .sidebar-title,
.mini-team-list .sidebar-title {
  width: 100%;
  margin: 0;
  padding-bottom: 0;
  background: none;
}
.group-list .score,
.point-team-list .score,
.mini-team-list .score {
  display: block;
  width: 100%;
}

/************/
/* controls */
/************/
.controls {
  display: flex;
  flex-wrap: wrap;
  margin: 0.5rem 0 0;
  list-style-type: none;
}
.controls li {
  width: 33.3%;
  text-align: center;
}
.controls li:hover {
  cursor: pointer;
}
.controls .sidebar-title {
  width: 100%;
}
.controls .icon {
  fill: white;
  width: 90%;
  vertical-align: middle;
}
.controls .icon:hover {
  fill: rgb(233, 233, 233);
}

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

.user-controls {
  display: flex;
  right: 1rem;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
}
.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 */
/****************/
.link-info {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: white;
}
.link-info .close-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
}

.qr-code {
  height: 100vh;
}

.qr-code img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: auto;
  width: auto;
  max-width: 75%;
  max-height: 75%;
  transform: translate(-50%, -50%);
}

.url {
  position: absolute;
  right: 0;
  bottom: 2.5rem;
  left: 0;
  text-align: center;
  font-size: 2rem;
}

.copy-confirm {
  display: none;
  position: absolute;
  right: 0;
  bottom: 2.5rem;
  left: 0;
  text-align: center;
  font-size: 2rem;
}

.copy-inner {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: white;
  font-size: 1.2rem;
}

/**********/
/* timers */
/**********/
.time-limit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3);
  padding: 0.5rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  text-align: center;
  cursor: pointer;
}
.time-limit .timer-pause-icon {
  fill: white;
  display: none;
  height: 1.2rem;
}

.time-hours,
.time-minutes,
.time-seconds {
  display: inline-block;
  min-width: 1.8rem;
  text-align: center;
  letter-spacing: 0.1rem;
}

.time-hours {
  min-width: 1rem;
  text-align: right;
}

.space-medium .time-limit {
  bottom: 1rem;
}

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

.timer {
  position: absolute;
  top: 3rem;
  right: 3rem;
  width: 3rem;
  height: 3rem;
}
.timer .icon {
  height: 1rem;
}
.timer:hover {
  cursor: pointer;
}

.timer-wrapper {
  position: absolute;
  top: 1rem;
  right: 10rem;
}

.space-medium .timer-wrapper {
  right: 11rem;
}

.space-large .timer-wrapper,
.space-extralarge .timer-wrapper {
  top: 1.5rem;
  right: 11rem;
}

.space-extralarge .timer-wrapper {
  right: 13rem;
}

.prompt .timer {
  top: 3rem;
  right: 0.5rem;
}

.timer-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
}

.timer-circle {
  transform: rotateY(-180deg) rotateZ(-90deg);
}
.timer-circle circle {
  stroke-dasharray: 230%;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  stroke-width: 0.1rem;
  stroke: black;
  fill: none;
  animation: countdown 10s linear;
}

@keyframes countdown {
  from {
    stroke-dashoffset: 0px;
  }
  to {
    stroke-dashoffset: 230%;
  }
}
/*************/
/* 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;
}

.mini-team-list {
  align-self: end;
  opacity: 0.5;
  font-size: 0.8rem;
  border: none;
  margin: 0 0 0.5rem;
  background: none;
  transition: opacity 0.5s;
}
.mini-team-list:hover {
  opacity: 1;
}
.mini-team-list .team {
  background: none;
  background: none;
  width: auto;
  padding: 0;
  border: none;
  margin: 0;
}
.mini-team-list .team:hover {
  background: none;
}
.mini-team-list .sidebar-title {
  display: none;
}
.mini-team-list .swatch {
  height: 1.5rem;
  font-size: 0.8rem;
}
.mini-team-list .icon-winner {
  top: -1.25rem;
  left: -0.2rem;
  width: 1rem;
}
.mini-team-list .answer-tally,
.mini-team-list .remaining-points {
  top: 1.25rem;
  margin-left: 0;
}

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

/*************************/
/* awarded points prompt */
/*************************/
.role,
.points {
  font-size: 1.8rem;
}
.role p,
.points p {
  margin: 0;
  display: inline-block;
  margin-top: 2.5rem;
}
.role .team,
.points .team {
  position: static;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 2.5rem 0 0;
  cursor: default;
  white-space: normal;
}

.points-awarded {
  font-size: 6rem;
}

.role-confirmed,
.points-confirmed {
  margin-top: 1rem;
  font-size: 1.8rem;
}

/******************/
/* 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-icon {
  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;
}

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

/***************/
/* 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 .confirm {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.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;
}

.award-points:before {
  content: "$";
}

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

.preloaded-images {
  display: none;
}

/*********/
/* fonts */
/*********/
@font-face {
  font-family: Roboto;
  src: local("Roboto"), url(https://fujieigo.com/blog/wp-content/themes/fujieigo/fonts/Roboto-Regular.ttf);
}
/*************/
/* variables */
/*************/
/*****************/
/* browser hacks */
/*****************/
@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 {
  background: url(https://fujieigo.com/blog/wp-content/uploads/2024/06/generic-game-background.png) center 58%, url(https://fujieigo.com/blog/wp-content/uploads/2024/06/generic-game-background-tile.png) center repeat #01202a;
  background-size: cover, auto;
  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;
}

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;
  cursor: pointer;
}
.icon:hover {
  fill: rgb(100, 100, 100);
}

.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;
}

.loading {
  position: absolute;
  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-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 94vh;
  background: rgba(255, 255, 255, 0.75);
  padding: 2.5rem;
  border-radius: 1rem;
}

/*********/
/* 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 h1 {
  margin: 0;
  font-size: 3rem;
}
.title .icon {
  height: 1rem;
}
.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 */
/**********/
.filter {
  list-style: none;
  overflow-y: auto;
  max-height: 90%;
  z-index: 3;
}
.filter .close-icon {
  height: 1rem;
}

.filter-wrapper {
  margin-bottom: 0.5rem;
  /* first filter level */
}
.filter-wrapper ul {
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  margin: 0.5rem 0 0;
  list-style: none;
  text-align: left;
}
.filter-wrapper label::after {
  content: "+";
  margin-left: 0.5rem;
  color: rgba(0, 0, 0, 0.5);
}
.filter-wrapper ul {
  /* no left margin on the first (title) and second (first list entry) li */
  /* second filter level */
}
.filter-wrapper ul li {
  display: inline-block;
  vertical-align: top;
  margin-left: 0.3rem;
}
.filter-wrapper ul li:nth-child(-n+2) {
  margin: 0;
}
.filter-wrapper ul ul {
  max-width: 10rem;
  /* third filter level */
  /* fourth filter level */
}
.filter-wrapper ul ul li {
  display: block;
  margin-top: 0.5rem;
  margin-left: 0;
}
.filter-wrapper ul ul ul {
  max-width: none;
}
.filter-wrapper ul ul ul li {
  display: inline-block;
  margin-top: 0;
}
.filter-wrapper .filter-title {
  display: block;
}
.filter-wrapper .sub-group {
  display: none;
}

.filter-title {
  font-weight: bold;
}

.active-filter > label::after {
  content: "-";
}
.active-filter > .sub-group {
  display: block;
}

.filter-title label::after,
.filter-wrapper ul ul ul ul label::after {
  content: none;
}

.filter-total {
  color: gray;
  font-style: italic;
}

/* the list of questions to set the limit per category */
.limit-number {
  display: none;
}

/***************************************************/
/******************** 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-layout-one {
  flex-direction: column;
  justify-content: center;
}

.col-layout-three .col-one,
.col-layout-three .col-three {
  width: 15%;
  padding: 0 1%;
}
.col-layout-three .col-two {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  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;
  list-style: none;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 1rem;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  margin: 0.5rem;
  list-style: none;
  color: black;
  text-align: center;
}
.col-layout-three .group-list {
  margin: auto 0 0;
}
.group-list li {
  flex: 1;
  position: relative;
}

.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);
}

.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;
}
.group:hover .swatch, .team:hover .swatch, .active .swatch {
  border: 0.1rem solid rgba(255, 255, 255, 0.5);
}

.winner-icon,
.icon-winner {
  display: none;
  position: absolute;
  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,
.remaining-points {
  position: absolute;
  top: 2.5rem;
  left: 0;
  width: 100%;
  margin-left: 0.5rem;
  font-size: 1rem;
  text-align: left;
  white-space: break-spaces;
  word-break: break-all;
}

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

/************/
/* controls */
/************/
.controls {
  display: flex;
  flex-wrap: wrap;
  margin: 0.5rem 0 0;
  list-style-type: none;
}
.controls li {
  width: 33.3%;
  text-align: center;
}
.controls li:hover {
  cursor: pointer;
}
.controls .sidebar-title {
  width: 100%;
}
.controls .icon {
  fill: white;
  width: 90%;
  vertical-align: middle;
}
.controls .icon:hover {
  fill: rgb(233, 233, 233);
}

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

.user-controls {
  display: flex;
}
.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 */
/****************/
.link-info {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: white;
}
.link-info .close-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
}

.qr-code {
  height: 100vh;
}

.qr-code img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: auto;
  width: auto;
  max-width: 75%;
  max-height: 75%;
  transform: translate(-50%, -50%);
}

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

.copy-confirm {
  display: none;
  position: absolute;
  right: 0;
  bottom: 2.5rem;
  left: 0;
  text-align: center;
  font-size: 2rem;
}

.copy-inner {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: white;
  font-size: 1.2rem;
}

/**********/
/* timers */
/**********/
.time-limit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3);
  padding: 0.5rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  text-align: center;
  cursor: pointer;
}
.time-limit .timer-pause-icon {
  fill: white;
  display: none;
  height: 1.2rem;
}

.time-hours,
.time-minutes,
.time-seconds {
  display: inline-block;
  min-width: 1.8rem;
  text-align: center;
  letter-spacing: 0.1rem;
}

.time-hours {
  min-width: 1rem;
  text-align: right;
}

.space-medium .time-limit {
  bottom: 1rem;
}

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

.timer {
  position: absolute;
  top: 3rem;
  right: 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}
.timer:hover {
  background: white;
}
.timer .icon {
  height: 1rem;
}
.timer:hover {
  cursor: pointer;
}
.timer:hover .timer-pause-icon {
  fill: rgb(100, 100, 100);
}

.timer-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
}
.timer:hover .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-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 */
/*************************/
.role,
.points {
  font-size: 1.8rem;
}
.role p,
.points p {
  margin: 0;
  display: inline-block;
  margin-top: 2.5rem;
}
.role .team,
.points .team {
  position: static;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 2.5rem 0 0;
  cursor: default;
  white-space: normal;
}

.points-awarded {
  font-size: 6rem;
}

.role-confirmed,
.points-confirmed {
  margin-top: 1rem;
  font-size: 1.8rem;
}

/******************/
/* 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-icon {
  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;
}

/***************/
/* 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 .confirm {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.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;
}

.award-points:before {
  content: "$";
}

.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;
}

.game-header {
  position: relative;
}
.game-header .title-image {
  position: absolute;
  top: -2rem;
  right: 0;
  max-height: 7.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;
}

/*******************/
/* question prompt */
/*******************/
.generate-question {
  width: 20rem;
  background: none;
  border: none;
  transition: opacity 1s;
}
.generate-question:hover, .generate-question.active {
  background: none;
}
.generate-question:hover .icon, .generate-question.active .icon {
  fill: rgb(100, 100, 100);
}
.generate-question.active {
  opacity: 0;
}
.generate-question .generate-question-icon {
  height: 18rem;
  width: 100%;
  margin: 0 auto;
  stroke-width: 1%;
  stroke: white;
}

.space-medium .generate-question {
  margin: 1rem;
}

.space-large .generate-question {
  margin: 1.5rem;
}

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

.question {
  z-index: 2;
  width: 68%;
  margin: 0;
  backface-visibility: hidden;
  font-size: 1.8rem;
}
.question p {
  margin: 0 0 0.5rem;
  white-space: normal;
}
.question p:last-child {
  margin-bottom: 0;
}
.question h5 {
  margin: 0;
}
.question .answer-toggle {
  /* avoids clicks in the outer region of the button not being recognised */
  margin: -0.5rem;
  padding: 0.5rem;
}

.question-wrapper {
  display: flex;
  flex-flow: wrap;
}
.question-wrapper.large {
  flex-flow: column;
}

.question-reference {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.8rem;
}

.question-title {
  flex: 1 100%;
}

.question-image {
  flex: 0 0 auto;
  order: 2;
  box-sizing: border-box;
  max-height: 20rem;
  max-width: 50%;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  align-self: center;
  cursor: zoom-in;
}
.large .question-image {
  order: 1;
  max-height: 25rem;
  max-width: 100%;
}

.zoom-wrapper {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  cursor: zoom-out;
}
.zoom-wrapper .mini-team-list {
  opacity: 1;
  position: absolute;
  top: 2%;
  left: 1%;
  padding: 0;
  margin: 0;
  color: white;
}

.zoom-close-icon {
  position: absolute;
  top: 2%;
  right: 1%;
  z-index: 4;
  width: 3rem;
  height: 3rem;
  fill: white;
}

.zoom-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0.1rem 0 0 white) drop-shadow(0 0.1rem 0 white) drop-shadow(-0.1rem 0 0 white) drop-shadow(0 -0.1rem 0 white);
}

.question-text-wrapper {
  flex: 1 1 auto;
  order: 1;
  position: relative;
  box-sizing: border-box;
  width: 49%;
  margin: 0 1% 0 0;
  text-align: left;
}
.large .question-text-wrapper {
  order: 2;
  width: 100%;
  margin: 0;
}
.question-text-wrapper img {
  max-width: 100%;
  max-height: 12rem;
}

.question-text,
.question-hint,
.question-answer {
  padding: 0.5rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.25);
  border-radius: 0.5rem;
  margin: 0 0 0.5rem;
}

.question-role {
  display: inline-block;
  display: none;
  width: 100%;
  margin-top: 0.5rem;
  font-size: inherit;
}
.question-role span {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

.hint-toggle,
.answer-toggle {
  display: flex;
  align-content: center;
}

.hint-toggle .icon,
.answer-toggle .icon {
  margin-right: 0.5rem;
}

.question-hint {
  border: 0.1rem dashed rgba(0, 0, 0, 0.25);
}

.question-hint:hover,
.question-answer:hover {
  background-color: rgb(255, 255, 255);
  border-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.hint-content,
.answer-content {
  display: none;
  padding-top: 0.5rem;
  white-space: normal;
  word-break: break-word;
}

.timer-expired {
  position: relative;
  display: none;
  border: 0.1rem dashed rgba(0, 0, 0, 0.25);
  border-radius: 0.5rem;
  margin: 0.5rem 0;
  padding: 0.5rem;
  text-align: center;
  cursor: default;
}
.timer-expired h3 {
  margin: 0 0 0.5rem;
}
.timer-expired button .icon {
  height: 1rem;
}
.timer-expired .show-answer,
.timer-expired .pick-volunteer {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.timer-expired .more-time,
.timer-expired .next-question {
  width: 47.5%;
  height: 2.5rem;
}

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

.question-bonus-time {
  width: 2.1rem;
}

.correct-icon {
  display: none;
  position: absolute;
  right: -0.3rem;
  top: -0.3rem;
  height: 2rem;
  fill: red;
}

.question-counter {
  align-self: flex-end;
  font-size: 0.8rem;
}

.finished-notification {
  display: none;
}
.finished-notification .filter-questions {
  display: inline-flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.25rem;
  border-width: 0.25rem;
  border-radius: 1rem;
  font-size: 2rem;
}
.finished-notification .filter-questions .icon {
  margin-left: 0.5rem;
  height: 2.5rem;
}

button.reset-questions {
  display: inline-flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: red;
  border-width: 0.5rem;
  border-radius: 1rem;
  color: white;
  font-size: 3rem;
}
button.reset-questions:hover {
  background: darkred;
}
button.reset-questions .icon {
  margin-left: 0.5rem;
  height: 3.5rem;
  fill: white;
}

.question-winner,
.question-winner-notification {
  display: none;
  padding: 0.5rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.25);
  border-radius: 0.5rem;
  margin: 0 auto;
}
.question-winner .swatch,
.question-winner-notification .swatch {
  margin: 0 auto;
}

.question-winner h3 {
  margin-top: 0;
}

.question-team-list,
.select-team-list {
  text-align: center;
  font-size: 1.2rem;
}
.question-team-list li,
.select-team-list li {
  display: inline-block;
  margin-bottom: 0;
}

.question-management {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.question-controls {
  padding: 0.3rem;
  border: 0.1rem dashed rgba(0, 0, 0, 0.25);
  border-radius: 0.5rem;
  margin: 0.5rem 0 0;
  list-style: none;
}
.question-controls li {
  display: inline-block;
  font-size: 0.6rem;
  vertical-align: middle;
}
.question-controls li:hover {
  cursor: pointer;
}

/*********/
/* fonts */
/*********/
@font-face {
  font-family: TitanOneRegular;
  src: local("TitanOne Regular"), url(https://fujieigo.com/blog/wp-content/themes/fujieigo/fonts/TitanOne-Regular.ttf);
}
.title h1 {
  font-family: TitanOneRegular;
}

.main-area {
  flex-direction: column;
}

.points-pool {
  margin: 3rem 0;
  font-weight: bold;
  font-size: 7rem;
  text-shadow: 5px 5px black;
}

.result {
  min-width: 30rem;
}

.event-time {
  position: absolute;
  top: 15%;
  right: 3%;
}

.share-or-steal-team-list {
  display: flex;
}
.share-or-steal-team-list li {
  margin: 0 0.25rem 0.5rem;
}
.share-or-steal-team-list .swatch {
  margin: 0 auto;
}/*# sourceMappingURL=game-bank-old.css.map */