@charset "UTF-8";
/* Copyright © 2022-now Flac Studio. All rights reserved. https://flac-studio.fr/
<><><><><><><><><><><><><><><><> */
/* easeInOutQuint */
:root {
  --white: white;
  --black: black;
  --main-color: rgb(5, 115, 65);
  --font-size: 1rem;
  --font-size-l: calc(var(--font-size) * 2);
  --line-height: 1.35;
  --spacing: 1rem;
  --spacing-l: calc(var(--spacing) * 2);
  --spacing-text-y: calc(var(--spacing) * 0.75);
}

@media only screen and (min-width: 768px) {
  :root {
    --spacing: 1rem;
  }
}

html {
  font-size: clamp(16px, calc(1vh + 1vw), 20px);
}

html body {
  display: block;
  position: relative;
  line-height: var(--line-height);
  font-feature-settings: 'kern' 1;
  font-kerning: normal;
  font-family: system-ui, sans-serif;
  background-color: #5f5656;
  transition: background-color 200ms ease-in-out;
}

html body.switch-loading {
  animation: glow-loading 800ms ease-in-out infinite forwards;
}

@keyframes glow-loading {
  0% {
    background-color: #5f5656;
  }
  50% {
    background-color: #947a7a;
  }
  100% {
    background-color: #5f5656;
  }
}

h1 {
  font-weight: bold;
}

h1 span.red {
  color: red;
}

h1 span.green {
  color: green;
}

p strong {
  font-weight: 600;
}

.main-container {
  display: flex;
  width: 100%;
  height: 100vh;
  justify-content: center;
  padding: var(--spacing);
  box-sizing: border-box;
}

.main-container.statistics {
  display: block;
}

.main-container .client-container {
  max-width: calc(100vw - 2rem);
}

.intro-wrapper form {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing);
}

.intro-wrapper form label {
  position: relative;
  display: flex;
  gap: var(--spacing);
  width: 100%;
  justify-content: space-between;
}

.intro-wrapper form label select {
  width: 12rem;
}

.client-container {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
  text-align: center;
  border: 1px solid black;
  border-radius: var(--spacing);
  padding: var(--spacing);
  box-sizing: border-box;
  background-color: whitesmoke;
}

.client-container .game-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
}

.client-container .game-wrapper .progress-bar {
  display: flex;
  position: relative;
  height: 2rem;
  border: 1px solid black;
  background-color: black;
  box-sizing: border-box;
}

.client-container .game-wrapper .progress-bar .progress-bar-cell {
  display: inline-block;
  position: relative;
  flex-grow: 1;
  height: 100%;
  background-color: white;
  margin-right: 1px;
}

.client-container .game-wrapper .progress-bar .progress-bar-cell:last-of-type {
  margin-right: 0;
}

.client-container .game-wrapper .progress-bar .progress-bar-cell.cell-active {
  background: red;
}

.client-container .game-wrapper .finish-block {
  display: none;
  width: 600px;
  max-width: 100%;
}

.switch-end-quizz .client-container .game-wrapper .finish-block {
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
  padding: var(--spacing);
  box-sizing: border-box;
  border: 1px solid black;
  border-radius: var(--spacing);
}

.switch-end-quizz .client-container .game-wrapper .finish-block h3 {
  font-weight: bold;
}

.switch-end-quizz .client-container .game-wrapper .finish-block h3 span {
  color: red;
}

.switch-end-quizz .client-container .game-wrapper .finish-block h4 {
  font-weight: bold;
}

.switch-end-quizz .client-container .game-wrapper .finish-block ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
}

.switch-end-quizz .client-container .game-wrapper .finish-block ul li {
  padding: var(--spacing-text-y) var(--spacing);
  box-sizing: border-box;
  background-color: #ffd2d2;
  border-radius: var(--spacing);
}

.client-container .game-wrapper .question-block {
  display: flex;
  position: relative;
  flex-direction: column;
  gap: var(--spacing);
  border: 1px solid black;
  border-radius: var(--spacing);
  padding: var(--spacing);
  box-sizing: border-box;
}

.client-container .game-wrapper .question-block .prompt {
  width: 400px;
  max-width: 100%;
}

.client-container .game-wrapper .question-block .button-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
  padding: var(--spacing);
  box-sizing: border-box;
  border: 1px solid black;
  border-radius: var(--spacing);
  height: fit-content;
  width: 400px;
  max-width: 100%;
}

.client-container .game-wrapper .question-block .button-container .button {
  display: block;
  border: 1px solid black;
  border-radius: var(--spacing);
  padding: var(--spacing);
  box-sizing: border-box;
  width: 100%;
  text-align: center;
}

.client-container .game-wrapper .question-block .button-container .button:hover {
  background-color: black;
  color: white;
  cursor: pointer;
}

.client-container .game-wrapper .question-block .button-container .button:active {
  background-color: red;
}

.admin-ui {
  top: 0;
  left: 0;
  padding: 0.75rem var(--spacing);
  font-size: calc(var(--font-size) * 0.75);
  position: fixed;
  width: fit-content;
  height: fit-content;
  background-color: rgba(0, 0, 0, 0.2);
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

form select,
form button,
form a {
  font-size: 0.9rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

form button {
  cursor: pointer;
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
}

form button:hover {
  background: #449a48;
}

form a {
  text-decoration: none;
  background: #eee;
}

form a:hover {
  background: #e0e0e0;
}

/* tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.9rem;
  table-layout: fixed;
  /* columns share equal width */
}

table th,
table td {
  width: 33.333%;
  /* one-third each */
  padding: 0.4rem 0.6rem;
  border: 1px solid #ddd;
  text-align: left;
  overflow-wrap: break-word;
  /* avoid overflow */
}

table thead {
  background: #f2f2f2;
}

table thead th {
  font-weight: 600;
}

table tbody tr:nth-child(even) {
  background: #fbfbfb;
}

/* keep percent column tight */
td:nth-child(3) {
  white-space: nowrap;
}
