h1 {
  font-size: 3em;
  margin: 1em 0 .5em 0;
}

#app {
  width: 80%;
  word-break: break-word;
}

footer {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 1em;
}

footer a, .credits a {
  text-decoration: underline;
}

a {
  text-decoration: none;
  color: #202020;
}

a:hover, a:focus {
  text-decoration: none;
  color: #000;
}

.enter > * {
  margin: .4em 0 .6em 0;
}

.button {
  border: solid 1px #202020;
  border-bottom-width: 5px;
  font-size: 2em;
  padding: .5em .75em;
  margin-bottom: .3em;
  background: #fff;
}

.button:hover, .button:focus {
  box-shadow: 0 1px 3px #202020;
}

.button:active {
  top: 5px;
}

.input-player-name {
  font-size: 2em;
  height: 2em;
}

#app > * {
  height: 100vh;
}

.controls {
  justify-items: start;
}

.question {
  display: flex;
  flex-direction: column;
  font-size: 1.5em;
  align-items: center;
  margin: .5em 0;
}

.question * {
  padding: .2em;
}

.question img {
  max-width: 500px;
  max-height: 50%;
}

.question blockquote {
  padding-left: 1em;
}

ul.choices {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5em;
}

ul.choices li {
  list-style-type: none;
  font-size: 1.3em;
}

ul.choices li button {
  width: 100%;
  height: 100%;
}

#player-name {
  margin: 0;
  padding: .3em;
  text-align: center;
  color: #fff;
}

.player-1 {
  background: #fc4349;
}

.player-2 {
  background: #1e60a2;
}

.tile {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

#az-kviz:has(g.tile.active) .tile:not(.active) {
  opacity: 0.3;
}

.timer {
  position: relative;
  height: 10px;
}

.timer .progress-bar, .timer .progress-shade {
  top: 0;
  height: 10px;
  width: 100%;
  position: absolute;
}

.timer .progress-shade {
  background-color: #fff;
  margin-left: 0%;
  width: 100%;
  animation: timer 45s linear;
}

@keyframes timer {
  from  {
    width: 100%;
    left: 0%;
  }
  to {
    width: 0%;
    left: 100%;
  }
}

.timer .progress-bar.player-1 {
  background-color: #fc4349;
  background-image: linear-gradient(to right, #fc4349, #1e60a2);
}

.timer .progress-bar.player-2 {
  background-color: #1e60a2;
  background-image: linear-gradient(to right, #1e60a2, #fc4349);
}

.zmdi {
  padding: 0 .25em;
}

.choices .zmdi {
  opacity: 0;
  animation: show 600ms 100ms cubic-bezier(0.38, 0.97, 0.56, 0.76) forwards;
}

@keyframes show {
  100% {
    opacity: 1;
    transform: none;
  }
}

#next {
  align-self: end;
  font-size: 2em;
  min-height: 1.5em;
  padding: 0 1em;
}

.note {
  font-size: 1.3rem;
  margin: 1em 0;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.note *:first-child > i {
  font-size: 2em;
}

.note a {
  text-decoration: underline;
}

.guess {
  margin-bottom: .5em;
  font-size: 1.5em;
}

.sortable-list {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  max-width: 100%;
  font-size: 1.3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .125);
}

.sortable-list li {
  list-style-type: none;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .125);
  margin-bottom: -1px;
  gap: .5rem;
}

.sortable-list li div {
  flex-basis: 100%;
}

.sortable-list li div.sort-value {
  flex-basis: 20%;
}

.sortable-list li:first-child {
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.sortable-list li:last-child {
  border-bottom-right-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.sortable-list li.dragging {
  background: #eee;
}

#verdict #az-kviz {
  display: flex;
  pointer-events: none;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

#shine {
  transform-box: fill-box;
  transform-origin: center center;
  animation: rotate linear 60s infinite;
}

.questions-picker .chosen-single {
  line-height: 2em;
  height: 2em;
}

.rc-modal-panel i.zmdi-close {
  cursor: pointer;
  font-size: 2em;
}

.credits {
  padding-top: .5em;
}

#advanced-options label {
  cursor: pointer;
  padding: 1em;
}

#advanced-options-items {
  max-height: 0px;
  overflow: hidden;
  transition: max-height .25s ease-in-out;
}

#advanced-options.shown #advanced-options-items {
  max-height: 100vh;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  background-color: #202020;
  border-radius: 20px;
  transition: all 0.3s;
}

.switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  background-color: white;
  top: 1px;
  left: 1px;
  transition: all 0.3s;
  cursor: pointer;
}

input[type='checkbox'].checked + .switch::after {
  transform: translateX(20px);
}

.offscreen {
  position: absolute;
  left: -9999px;
}

#lang-switch span {
  display: inline-block;
  padding: 0 4px;
  vertical-align: top;
}

#lang-switch {
  position: fixed;
  top: 1em;
  right: 1em;
}

#play, #verdict {
  display: flex;
  gap: 2rem;
  flex-direction: row;
  align-items: flex-start;
}

#play > *, #verdict > * {
  flex: 1;
  width: 50%;
  height: 100%;
}

@media (max-width: 950px) or (orientation: portrait) {
  #play, #verdict {
    flex-direction: column;
    align-items: center;
  }
  #play > *, #verdict > * {
    width: 100%;
    height: auto;
  }
}

#winner {
  display: flex;
  align-items: center;
  flex-direction: column;
  row-gap: 1em;
  justify-content: center;
  padding-bottom: 2em;
}

#question-box {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: .5rem 1rem;
}

.questions-upload-tab a {
  text-decoration: underline;
}

.questions-upload-tab a:hover, .questions-upload-tab a:focus {
  text-decoration: none;
}

.slider {
  font-size: 1.5em;
  gap: .5em;
}

.slider .player-1 {
  accent-color: #fc4349;
}

.slider .player-2 {
  accent-color: #1e60a2;
}
