/* Open source font similar to Bank Gothic */
@font-face {
  font-family: "squarish-sans";
  src: url("/static/fonts/Squarish Sans/Squarish Sans P CT Regular.woff2") format("woff2"), url("/static/fonts/Squarish Sans/Squarish Sans P CT Regular.woff") format("woff"), url("/static/fonts/Squarish Sans/Squarish Sans P CT Regular.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
:root {
  --native-button-background-color: rgb(233, 233, 237);
  --native-button-hover-background-color: rgb(208, 208, 215);
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

/* Removes browser specific button styling */
button {
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: black;
  background: #e9e9ed;
  border: 1px solid #8f8f9d;
  border-radius: 0.2em;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  text-transform: inherit;
}

button:hover {
  background: #d0d0d7;
}

button:active {
  background: #b1b1b9;
}

button:disabled {
  background: #8a8f9a;
}

/* Add focus outline */
button:focus-visible {
  box-shadow: 0 0 0 0.1em #3584e4, 0 0 0 0.2em white;
}

body {
  background-color: #5a7095;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: fit-content;
  font-family: "squarish-sans", sans-serif;
  text-transform: uppercase;
  position: relative;
}

/*
    We're using a pseudo element for the background as the background does not
    work on overflow if placed directly on the body.
*/
body::before {
  background-image: linear-gradient(to top right, #5a7095, #e8c9ce);
  display: block;
  position: absolute;
  inset: 0;
  content: "";
  z-index: -1;
}

h1,
h2 {
  margin: 0;
  padding: 2rem;
}

@media (max-width: 40rem) {
  h1,
  h2 {
    padding: 2rem 1rem;
  }
}
.header {
  height: 4rem;
  background-color: #2b3446;
  max-width: 100vw;
  max-width: 100dvw;
  width: 100%;
  overflow: auto;
  color: white;
  white-space: nowrap;
  display: flex;
  justify-content: start;
  align-items: center;
}

.header .logo {
  padding: 0.5em;
  margin: 0 1em;
}

.header .logo img {
  width: 5em;
  aspect-ratio: auto 8116/1128;
}

.header nav a {
  text-decoration: none;
  color: white;
  background-color: #232833;
  padding: 0.5em;
  margin: 0 1em;
}

@media (max-width: 40rem) {
  .header nav a {
    margin: 0 0.5em;
  }
}
.header nav a[aria-current=page] {
  background-color: black;
  /* background-color: #1defef; */
  /* color: black; */
}

.header nav a:hover {
  background-color: #e8c9ce;
}

.header .grow {
  flex-grow: 1;
}

/* Footer */
body > footer {
  width: fit-content;
  margin-inline: auto;
}

/* Language-chooser */
.language-chooser {
  /* Right align last element by letting the margin fill the empty space */
  height: 100%;
  padding: 1em;
  position: relative;
}

.language-chooser > img {
  height: 100%;
}

.language-chooser:not(:hover):not(:focus) > div {
  display: none;
}

.language-chooser > div {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 1em;
  z-index: 1;
}

.language-chooser > div > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 2rem;
  white-space: nowrap;
  color: black;
  background-color: var(--native-button-background-color);
  padding: 0.5em;
  min-width: 15em;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
}

.language-chooser > div > div:hover {
  background-color: var(--native-button-hover-background-color);
}

.language-chooser > div > div img {
  height: 1em;
  width: 3em;
}

/* Text contents */
.text-content {
  max-width: 41rem;
  margin: 2rem;
  padding: 2rem;
  background-color: rgba(67, 114, 208, 0.368627451);
  color: #020203;
  line-height: 1.5;
}

@media (max-width: 40rem) {
  .text-content {
    max-width: 100dvw;
    margin: 2rem 0;
  }
}
.text-content {
  text-transform: none;
  font-size: 1.2rem;
}

.text-content > *:first-child {
  margin-top: 0;
}

.text-content > *:last-child {
  margin-bottom: 0;
}

.text-content a {
  text-decoration: none;
  color: #00007a;
  color: #000062;
}

.text-content a:focus-visible {
  text-decoration: underline;
  outline: 1px solid black;
}

.text-content a:hover {
  text-decoration: underline;
}

.text-content a:active {
  background: #6900ff;
  color: #cdfeaa;
}

/* 404 */
.not-found {
  width: fit-content;
  margin: 3rem auto;
  text-align: center;
}

.not-found img {
  display: block;
  margin: 3rem auto;
  width: 15rem;
  max-width: calc(100vw - 6rem);
  max-width: calc(100dvw - 6rem);
  height: auto;
}

.not-found a {
  text-decoration: none;
}

.not-found button {
  display: block;
  text-transform: uppercase;
  font-family: "squarish-sans", sans-serif;
  color: black;
  font-size: 1rem;
  margin: 0 auto;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0;
}

.home * {
  box-sizing: border-box;
}

.home {
  min-width: fit-content;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  max-width: 100dvw;
}

.home h1 {
  text-align: center;
  margin: 1rem 0;
}

.home p {
  text-transform: none;
  font-size: 1.2rem;
}

.mode-list {
  display: flex;
  padding: 0.5rem 1rem;
}

@media (max-width: 40rem) {
  .mode-list {
    max-width: 100vw;
    max-width: 100dvw;
    overflow-x: auto;
    padding: 0.5rem 1rem;
  }
}
.mode-list .mode {
  flex-shrink: 0;
  position: relative;
  height: 17rem;
  width: 12rem;
  margin: 0 1rem;
  padding: 0.75rem 2rem;
  text-align: center;
  background-color: #8492cc;
  background-image: var(--background-image);
  background-size: cover;
  border: 2px solid #5767a8;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  transition: transform 0.1s linear;
  box-sizing: border-box;
}

.mode-list .mode.placeholder::before {
  position: absolute;
  inset: 0;
  content: "?";
  font-size: 14rem;
  color: rgba(255, 255, 255, 0.8);
}

.mode-list .mode:hover {
  transform: scale(1.2);
  border: 2px solid white;
}

@media (max-width: 40rem) {
  .mode-list .mode:hover {
    /* Disable scaling when overflow: scroll is enabled */
    transform: none;
  }
}
.mode-list .under-construction {
  cursor: not-allowed;
}

.mode-list .description {
  font-size: 0.8rem;
}

.guess-game {
  min-width: fit-content;
  display: grid;
  justify-content: center;
}

.guess-game {
  --guess-card-side: 8rem;
  --guess-card-font-size: 0.8rem;
  --guess-card-border-size: 3px;
  --correct-color: #538d4e;
  --correct-color-border: #357530;
  --partial-color: #b59f3b;
  --partial-color-border: #86721a;
  --incorrect-color: #AA6464;
  --incorrect-color-border: #853838;
  --irrelevant-color: #777777;
  --irrelevant-color-border: #555555;
  --back-color: #FA8E38;
  --back-color-border: #d87c55;
}

.guess-table {
  /* Your specific game should set this value, this is just a placeholder */
  --guess-table-column-count: 5;
}

.guess-game-inner {
  max-width: 100vw;
  max-width: 100dvw;
}

/* Buttons */
@keyframes shake-with-delay {
  from, 16%, to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  1.6%, 4.8%, 8%, 11.2%, 14.4% {
    -webkit-transform: translate3d(-10px, 0, 0);
    transform: translate3d(-10px, 0, 0);
  }
  3.2%, 6.4%, 9.6%, 12.8% {
    -webkit-transform: translate3d(10px, 0, 0);
    transform: translate3d(10px, 0, 0);
  }
}
:is(.guess-game-inner, .guess-game-modal-wrapper) button {
  text-transform: uppercase;
  font-family: "squarish-sans", sans-serif;
  font-size: 1rem;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  /* transition: background 250ms ease-in-out, transform 150ms ease; */
}

:is(.guess-game-inner, .guess-game-modal-wrapper) button:active {
  transform: scale(0.99);
}

@media (max-width: 40rem) {
  :is(.guess-game-inner, .guess-game-modal-wrapper) button {
    padding: 1rem 0.5rem;
  }
}
:is(.guess-game-inner, .guess-game-modal-wrapper) button:disabled {
  background: gray;
  cursor: not-allowed;
}

.guess-game-inner .main-button {
  border-radius: 0px;
  background-color: #ef6932;
  color: #ffffff;
}

.guess-game-inner .main-button:hover:enabled {
  background: #dd612e;
}

.guess-game-inner .guess-button {
  margin: 0 0.2rem;
}

.guess-game-inner .guess-button:enabled {
  animation: shake-with-delay 6s infinite;
  /* Only for the first time, the delay between runs is actually coded on the
  animation */
  animation-delay: 5s;
}

/* Text inputs */
.guess-game-inner input[type=text] {
  border: 0px;
  background-color: #2b3445;
  color: white;
  padding: 1rem 1rem;
}

.guess-game-inner input[type=text]:focus-visible {
  outline: 1px solid black;
}

@media (max-width: 40rem) {
  .guess-game-inner input[type=text] {
    padding: 1rem 0.5rem;
  }
}
.guess-game-inner input[type=text]::placeholder {
  color: #bbbbbb;
  opacity: 0.5;
}

/* Title */
.guess-game .game-title {
  display: inline-block;
  padding-right: 1em;
}

/* How to play */
.how-to-play-button {
  cursor: pointer;
  font-size: 1.3rem;
  vertical-align: text-bottom;
  width: 1.4em;
  height: 1.4em;
  background-color: transparent;
  border: 0.1em solid black;
  border-radius: 2rem;
}

.how-to-play .tab-bar {
  display: flex;
  justify-content: center;
}

.how-to-play .tab-bar button {
  border-radius: 0;
  padding: 1rem;
  background-color: #a3a3a3;
}

.how-to-play .tab-bar button:hover {
  background-color: #b1b1b9;
}

.how-to-play .tab-bar button:active {
  background-color: #d0d0d7;
}

.how-to-play .tab-bar button.selected {
  border-radius: 0;
  padding: 1rem;
  background-color: #e9e9ed;
}

.how-to-play .how-to-play-visual {
  overflow: auto;
}

.how-to-play .how-to-play-visual img {
  padding: 0.5rem;
  min-width: 40rem;
  width: 50rem;
  max-width: 100%;
  aspect-ratio: auto 862.8/553.8;
}

.how-to-play .how-to-play-textual {
  text-transform: none;
  max-width: 60ch;
}

.how-to-play .how-to-play-textual .green {
  background-color: var(--correct-color);
}

.how-to-play .how-to-play-textual .yellow {
  background-color: var(--partial-color);
}

.how-to-play .how-to-play-textual .red {
  background-color: var(--incorrect-color);
}

/* Table */
@keyframes add-row {
  from {
    grid-template-rows: 3em 0px;
  }
  to {
    grid-template-rows: 3em var(--guess-card-side);
  }
}
.guess-table {
  overflow-x: auto;
  padding: 2em;
  display: grid;
  grid-template-columns: repeat(var(--guess-table-column-count), var(--guess-card-side));
  grid-template-rows: 3em var(--guess-card-side);
  grid-auto-rows: var(--guess-card-side);
  justify-items: stretch;
  align-items: stretch;
  row-gap: 0.1em;
  column-gap: 0.2em;
  /* Minimum height so that the table size won't reduce when animating the insertion of the 1rst row */
  /* 2 * padding + header row + gap + 1rst row */
  min-height: calc(7.1em + var(--guess-card-side));
}

@media (max-width: 40rem) {
  .guess-table {
    padding: 2em 1rem;
  }
}
.guess-table.guess-table-animating {
  animation-name: add-row;
  animation-duration: 1s;
}

.guess-header-card {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: #2b3445;
  font-size: var(--guess-card-font-size);
}

.guess-card-hero {
  background-size: cover;
  text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white;
  /* To align text */
  display: flex;
  justify-content: center;
  align-items: end;
}

.guess-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s;
}

.guess-card.flipped {
  transition: none;
  transform: rotateY(-180deg);
}

.guess-card-front,
.guess-card-back {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 0.1em;
  /* font-size: var(--guess-card-font-size); */
}

.guess-card-front {
  font-size: var(--guess-card-font-size);
}

.guess-card-correct {
  background-color: var(--correct-color);
  border: var(--guess-card-border-size) solid var(--correct-color-border);
}

.guess-card-partial {
  background-color: var(--partial-color);
  border: var(--guess-card-border-size) solid var(--partial-color-border);
}

.guess-card-incorrect {
  background-color: var(--incorrect-color);
  border: var(--guess-card-border-size) solid var(--incorrect-color-border);
}

.guess-card-irrelevant {
  background-color: var(--irrelevant-color);
  border: var(--guess-card-border-size) solid var(--irrelevant-color-border);
}

.guess-card-back {
  /* The back card is... at the back */
  transform: rotate3d(1, 0, 0, 180deg);
  background-color: var(--back-color);
  border: var(--guess-card-border-size) solid var(--back-color-border);
  /* font-size: 1.2em; */
}

.guess-card-back > p {
  transform: rotate(135deg);
  font-size: 1.3em;
}

.guess-card-back::before {
  position: absolute;
  content: "?";
  font-size: 10rem;
  line-height: 0.6em; /* This is how mych of the line height that the question mark uses */
  color: rgba(0, 0, 0, 0.1);
  transform: rotate(180deg);
}

/* Guess input line and suggestions */
.guess-input-box {
  margin: 0em 2em;
  position: relative;
  display: flex;
  align-items: stretch;
}

@media (max-width: 40rem) {
  .guess-input-box {
    margin: 0 1rem;
  }
}
.guess-input-box .guess-count {
  font-size: 1.4rem;
  padding: 0 2rem;
  align-self: center;
}

@media (max-width: 40rem) {
  .guess-input-box .guess-count {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}
.guess-input-box .give-up {
  border-radius: 0;
  padding: 0.5rem;
  background-color: #e9e9ed;
  font-size: 0.8rem;
  margin: 0 2rem;
  align-self: center;
}

@media (max-width: 40rem) {
  .guess-input-box .give-up {
    margin: 0 0.5rem;
  }
}
.guess-input-box:not(:focus-within) .guess-suggestion-box {
  display: none;
}

.guess-suggestion-box {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 1px; /* To compensate for the input outline */
  z-index: 1;
  display: flex;
  flex-direction: column;
}

button.guess-suggestion {
  border-radius: 0px;
  padding: 0.5em;
  min-width: 15em;
  background-color: var(--native-button-background-color);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5em;
}

.guess-suggestion:hover {
  background-color: var(--native-button-hover-background-color);
}

.guess-suggestion.selected {
  background-color: #ef6932;
}

.guess-suggestion.selected::after {
  content: url("/static/icons/enter.svg");
  line-height: 0.5em;
}

.guess-suggestion.selected:hover {
  background-color: #dd612e;
}

.guess-suggestion img {
  width: 3rem;
  height: 3rem;
}

.guess-suggestion div {
  flex-grow: 1;
}

/* Table */
.guess-the-hero .guess-table {
  --guess-table-column-count: 5;
}

.guess-the-conversation {
  --play-foreground: white;
  --play-background: #0076d6;
}

.guess-the-conversation .conversation {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  row-gap: 0.8em;
}

.guess-the-conversation .conversation .hero-name.speaker {
  margin-left: 0.5em;
  margin-right: 0.5em;
}

.guess-the-conversation .conversation .hero-name {
  margin-left: 0.05em;
  margin-right: 0.05em;
  padding: 0.2em;
  background-color: rgba(33, 65, 130, 0.368627451);
}

.guess-the-conversation .conversation-controls {
  padding-top: 1rem;
}

.guess-the-conversation .play-button {
  font-size: 0.8rem;
  padding: 0.1em 0.4em;
  vertical-align: middle;
  border-radius: 0;
  background-color: var(--play-background);
}

.guess-the-conversation .play-all-button {
  font-size: 0.8rem;
  padding: 0.4em;
  line-height: 1;
  border-radius: 0;
  background-color: var(--play-background);
  color: white;
}

.guess-the-conversation :is(.play-button, .play-all-button) > svg {
  height: 1.6em;
  vertical-align: middle;
}

.guess-the-conversation .play-button > svg {
  width: 0.8em;
}

.guess-the-conversation .play-all-button > svg {
  width: 1.6em;
}

/* Hints */
.guess-the-conversation .hint-line {
  display: flex;
  flex-direction: row;
  margin: 1rem 2rem;
}

.guess-the-conversation .hint-line .hints-button {
  padding: 0;
  background: none;
}

.guess-the-conversation .hint-line .hints-button:disabled {
  background: none;
}

.guess-the-conversation .hint-line .lamp {
  width: 2rem;
  height: 2rem;
  vertical-align: middle;
  --progress: 0%;
}

.guess-the-conversation .hint-line .lamp.full {
  filter: drop-shadow(0px 0px 10px #ffff8c);
  /* filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); */
}

.guess-the-conversation .hint-line .lamp .progress {
  fill: #ffff8c;
  clip-path: inset(calc(100% - var(--progress)) 0 0 0);
}

.guess-the-conversation .hint-line .spacing {
  flex-grow: 1;
}

.guess-the-conversation .hint-line .revealed-hints {
  display: flex;
  flex-direction: row-reverse;
  font-size: 1.7rem;
}

.guess-the-conversation .hint-line .revealed-hints {
  font-size: 1.7rem;
}

.guess-the-conversation .hint-line .hint {
  display: inline;
  position: relative;
  inset: 0;
  margin: 0 0.15em;
  user-select: none;
}

.guess-the-conversation .hint-line .hint:focus {
  outline: 1px solid black;
}

.guess-the-conversation .hint-line .hint span {
  margin: 0;
}

.guess-the-conversation .hint-line .hint .tooltip {
  position: absolute;
  opacity: 0;
  display: none;
  user-select: text;
  --background-color: grey;
  white-space: nowrap;
  bottom: calc(100% + 1em);
  right: -1em;
  font-size: 0.9rem;
  text-align: right;
  text-transform: none;
  background-color: var(--background-color);
  border-radius: 1em;
  padding: 0.5em 1em;
}

/* Bubble "pointer" */
.guess-the-conversation .hint-line .hint .tooltip::after {
  content: "";
  position: absolute;
  right: 1.25em;
  top: 100%;
  border: 0.65em solid transparent;
  border-top-color: var(--background-color);
}

.guess-the-conversation .hint-line .hint:hover .tooltip,
.guess-the-conversation .hint-line .hint:focus .tooltip {
  opacity: 1;
  display: block;
  animation: display 0.3s;
}

@keyframes display {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.hint-select-modal-wrapper span.hint-select-title {
  display: block;
  text-align: center;
}

.hint-select-modal-wrapper .hint-select-line {
  display: flex;
  /* safe center still doesn't work in safari, but this would be an edge */
  /* case for screen with a very small width */
  justify-content: safe center;
  margin-top: 0.5em;
  margin-bottom: 2em;
}

@media not (max-width: 40rem) {
  .hint-select-modal-wrapper .hint-select-line {
    min-width: 36rem;
  }
}
.hint-select-modal-wrapper button {
  text-transform: uppercase;
  font-family: "squarish-sans", sans-serif;
  font-size: 1rem;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
}

.hint-select-modal-wrapper .hint-select-line button {
  flex-basis: 10em;
}

.hint-select-modal-wrapper .hint-select-line button:not(:first-child) {
  margin-left: 0.5em;
}

.hint-select-modal-wrapper .hint-select-line button:not(:last-child) {
  margin-right: 0.5em;
}

.hint-select-modal-wrapper .hint-select-line button.selected {
  background-color: #a3a3a3;
}

.hint-select-modal-wrapper .hint-select-select {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hint-select-modal-wrapper .hint-select-select:enabled {
  background-color: #ef6932;
}

.hint-select-modal-wrapper .hint-select-select:hover:enabled {
  background: #dd612e;
}

/* Animate on show */
.animate-on-show {
  --animate-on-show-duration: 1s;
  display: grid;
  grid-template-rows: 1fr;
  animation-name: animate-on-show;
  animation-duration: var(--animate-on-show-duration);
}

.animate-on-show > * {
  animation-name: animate-on-show-inner;
  animation-duration: var(--animate-on-show-duration);
}

@keyframes animate-on-show {
  from {
    grid-template-rows: 0fr;
  }
}
@keyframes animate-on-show-inner {
  from {
    overflow: hidden;
  }
  to {
    overflow: hidden;
  }
}
/* Confirmation Dialog */
.confirmation-dialog {
  max-width: 41rem;
}

.confirmation-dialog h2 {
  margin-bottom: 1rem;
  padding: 0;
  text-align: center;
}

.confirmation-dialog aside {
  margin: 1rem;
  text-align: center;
}

.confirmation-dialog .button-line {
  margin: 2rem 1rem 1rem 1rem;
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
}

/* This is basically the same as .guess-game-inner button */
.confirmation-dialog button {
  text-transform: uppercase;
  font-family: "squarish-sans", sans-serif;
  font-size: 1rem;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
}

.confirmation-dialog button:active {
  transform: scale(0.99);
}

.confirmation-dialog button:disabled {
  background: gray;
  cursor: not-allowed;
}

/* Contact */
.contact-container {
  width: fit-content;
  margin: 1rem auto;
  text-transform: none;
}

.contact {
  display: inline;
  white-space: nowrap;
}

.contact .contact-space {
  user-select: none;
  font-size: 0;
}

.contact .contact-filler {
  display: none;
}

/* Countdown */
.countdown-container {
  text-align: center;
  margin: 2rem auto;
  padding: 2rem;
  background-color: rgba(67, 114, 208, 0.368627451);
  display: block;
  width: fit-content;
}

.countdown-container .countdown-nowrap {
  white-space: nowrap;
}

.countdown-container .digit-container {
  position: relative;
}

.countdown-container .digit {
  /* Required to make transform work */
  display: inline-block;
}

.countdown-container .old-digit {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.countdown-container .digit.animating {
  animation: countdown-digit-popin 0.4s;
}

.countdown-container .old-digit.animating {
  animation: countdown-digit-popout 0.4s;
}

@keyframes countdown-digit-popin {
  0% {
    transform: translateY(1em) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes countdown-digit-popout {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }
  100% {
    transform: translateY(-1em) scale(0.8);
    opacity: 0;
    visibility: hidden;
  }
}
.countdown-container .countdown-timer.hidden {
  background-color: #2b3445;
}

.countdown-container .countdown-timer.hidden > * {
  visibility: hidden;
}

/* Remove default button style */
.countdown-container .hide-show-button, .hide-show-button:hover {
  background: unset;
  border: unset;
}

.countdown-container .hide-show-button > img {
  height: 0.9em;
  aspect-ratio: auto 4/3;
  vertical-align: sub;
}

/* Credits */
.credits {
  font-size: 0.8rem;
  text-align: center;
  width: fit-content;
  margin-inline: auto;
  margin-top: 1em;
  padding-bottom: 2em;
}

.credits a {
  text-decoration: none;
  color: #00007a;
}

/* End summary */
.end-summary {
  text-align: center;
  background-color: #2b3446;
  color: white;
}

.end-summary > :first-child {
  margin-bottom: 1.2rem;
}

.end-summary textarea {
  resize: none;
  background-color: cornsilk;
  border: none;
  border-radius: 0.3rem;
}

.end-summary .owdle-share-text {
  color: black;
  background-color: cornsilk;
  border: none;
  border-radius: 0.3rem;
  display: inline-block;
  padding: 0.2rem;
  text-align: start;
  white-space: pre-wrap;
}

.end-summary :is(.copy-button, .share-button) {
  cursor: pointer;
  padding: 1em;
  margin: 0.2em;
}

.end-summary :is(.copy-button, .share-button):disabled {
  cursor: not-allowed;
}

.end-summary .copy-button::before {
  content: "";
  background-image: url("/static/icons/copy.svg");
  background-size: cover;
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

.end-summary .share-button::before {
  content: "";
  background-image: url("/static/icons/share.svg");
  background-size: cover;
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

/* Error boundary */
.error-boundary {
  /* display: flex;
  flex-direction: column;
  align-items: center; */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.error-boundary .error-message {
  color: black;
  background-color: cornsilk;
  border: none;
  border-radius: 0.3rem;
  display: inline-block;
  padding: 0.2rem;
  text-align: start;
  white-space: pre-wrap;
}

/* Modal */
.modal-wrapper {
  /* pointer-events: none; */
  background-color: rgba(0, 0, 0, 0.6666666667);
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  background-color: #697FA5;
  margin: 1rem;
  padding: 1rem;
  overflow: auto;
  max-height: calc(100% - 1rem);
  /* For the close button */
  position: relative;
}

.modal > .close {
  position: absolute;
  top: 0;
  right: 0;
  background-color: transparent;
  width: 2em;
  height: 2em;
  font-size: 0.8rem;
  padding: 0.4em;
  margin: 0.4em;
  border: 0.1em solid #232833;
  border-radius: 0;
}

.modal > .close:hover {
  background-color: #232833;
  color: white;
}

/* Patch notes */
.header .patch-notes-button {
  color: white;
  background-color: #232833;
  padding: 0.5em;
  margin: 0 1em;
  border: none;
  border-radius: 0;
}

@media (max-width: 40rem) {
  .header .patch-notes-button {
    margin: 0 0.5em;
  }
}
.header .patch-notes-button:hover {
  background-color: #e8c9ce;
}

.header .patch-notes-button > label {
  cursor: inherit;
}

.header .patch-notes-button .reminder-dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-inline-start: 0.4em;
  clip-path: circle();
  background-color: orange;
  vertical-align: middle;
}

.patch-notes-modal-wrapper .modal {
  background-color: #8391AA;
}

.patch-notes-modal {
  white-space: initial;
  max-width: 41rem;
}

.patch-notes-modal > div {
  background-color: #2b3446;
  margin: 1rem;
  padding: 1rem;
  color: white;
}

.patch-notes-modal h2 {
  margin-bottom: 1rem;
  padding: 0;
  background: linear-gradient(2deg, red, yellow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.patch-notes-modal section {
  margin-top: 2em;
  text-transform: none;
}

.patch-notes-modal h3::after {
  content: "";
  display: block;
  border-top: 1px solid black;
}

.patch-notes-modal a {
  text-decoration: none;
  color: #000062;
}

.patch-notes-modal a:focus-visible {
  text-decoration: underline;
  outline: 1px solid black;
}

.patch-notes-modal a:hover {
  text-decoration: underline;
}

.patch-notes-modal a:active {
  background: #6900ff;
  color: #cdfeaa;
}

/* Socials */
.socials {
  display: flex;
  margin: 1rem auto;
  width: fit-content;
  gap: 1rem;
}

.socials img {
  width: 2rem;
  aspect-ratio: 1;
}

/* Victory screen */
.victory {
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.6666666667);
  position: fixed;
  inset: 0;
}

.victory-text {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  color: gold;
  text-shadow: 7px 7px 5px brown;
  font-weight: bold;
  animation: victory-text 3s;
  z-index: 4;
}

@keyframes victory-text {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: none;
  }
  40% {
    transform: scale(1.5) rotate(-10deg);
  }
  60% {
    transform: none;
  }
}
@keyframes firework {
  0% {
    transform: translate(-50%, 60vh);
    width: var(--point-size);
    opacity: 1;
  }
  50% {
    width: var(--point-size);
    opacity: 1;
  }
  100% {
    width: 45vmin;
    opacity: 0;
  }
}
.firework {
  /* Default values */
  --x-displacement: 0;
  --y-displacement: 0;
  --animation-delay: 0.5s;
  --color: #FF0;
  --point-scale: 1;
  --point-size: calc(var(--point-scale) * 0.5vmin);
  --particle-scale: 1;
}

.firework {
  position: absolute;
  top: 50%;
  left: 50%;
}

.firework,
.firework::before,
.firework::after {
  overflow: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) translateX(var(--x-displacement)) translateY(var(--y-displacement));
  width: var(--point-size);
  aspect-ratio: 1;
  z-index: 3;
  /* Start hidden */
  opacity: 0;
  /* "Random" backgrounds */
  background: radial-gradient(circle, var(--color) calc(var(--particle-scale) * 0.2vmin), rgba(0, 0, 0, 0) 0) 50% 0%, radial-gradient(circle, var(--color) calc(var(--particle-scale) * 0.3vmin), rgba(0, 0, 0, 0) 0) 0% 50%, radial-gradient(circle, var(--color) calc(var(--particle-scale) * 0.5vmin), rgba(0, 0, 0, 0) 0) 50% 99%, radial-gradient(circle, var(--color) calc(var(--particle-scale) * 0.2vmin), rgba(0, 0, 0, 0) 0) 99% 50%, radial-gradient(circle, var(--color) calc(var(--particle-scale) * 0.3vmin), rgba(0, 0, 0, 0) 0) 80% 90%, radial-gradient(circle, var(--color) calc(var(--particle-scale) * 0.5vmin), rgba(0, 0, 0, 0) 0) 95% 90%, radial-gradient(circle, var(--color) calc(var(--particle-scale) * 0.5vmin), rgba(0, 0, 0, 0) 0) 10% 60%, radial-gradient(circle, var(--color) calc(var(--particle-scale) * 0.2vmin), rgba(0, 0, 0, 0) 0) 31% 80%, radial-gradient(circle, var(--color) calc(var(--particle-scale) * 0.3vmin), rgba(0, 0, 0, 0) 0) 80% 10%, radial-gradient(circle, var(--color) calc(var(--particle-scale) * 0.2vmin), rgba(0, 0, 0, 0) 0) 90% 23%, radial-gradient(circle, var(--color) calc(var(--particle-scale) * 0.3vmin), rgba(0, 0, 0, 0) 0) 45% 20%, radial-gradient(circle, var(--color) calc(var(--particle-scale) * 0.5vmin), rgba(0, 0, 0, 0) 0) 13% 24%;
  background-size: calc(var(--particle-scale) * 1vmin) calc(var(--particle-scale) * 1vmin);
  background-repeat: no-repeat;
  animation: firework 2s;
  animation-delay: var(--animation-delay);
}

/* TODO: investigate why these are not showing at all */
/* .firework::before,
.firework::after
{
    position: absolute;
    Note: leaving at 50% causes layout shifts (CLS). Should probably change it to 0.
    top: 50%;
    left: 50%;
    top: 0;
    left: 0;

    content: "";
}

.firework::before {
  transform: translate(-50%, -50%) rotate(25deg) !important;
}

.firework::after {
  transform: translate(-50%, -50%) rotate(-37deg) !important;
} */
