/* NHaasGroteskDSStd-75Bd is for display (h1 & stats). Tighter than the NHaasGroteskTXPro-75Bd */
@font-face {
  font-family: "NHaasGroteskDSStd-75Bd";
  src: url("fonts/NHaasGroteskDSStd-75Bd.woff") format("woff");
  font-weight: 700;
  font-style: bold;
}
@font-face {
  font-family: "NHaasGroteskTXPro-75Bd";
  src: url("fonts/NHaasGroteskTXPro-75Bd.woff") format("woff");
  font-weight: 700;
  font-style: bold;
}
@font-face {
  font-family: "NHaasGroteskTXPro-65Md";
  src: url("fonts/NHaasGroteskTXPro-65Md.woff") format("woff");
  font-weight: 600;
  font-style: medium;
}
@font-face {
  font-family: "NHaasGroteskTXPro-55Rg";
  src: url("fonts/NHaasGroteskTXPro-55Rg.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}
.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
html {
  font-display: initial;
  font-size: 16px;
  height: 100%;
  max-height: 100vh;
  padding: 0;
  overflow: hidden;
  font-family: "NHaasGroteskTXPro-55Rg", sans-serif;
}
body {
  -webkit-user-select: none; /* make all text unselectable */
  -webkit-tap-highlight-color: transparent; /* prevent grey box on tap highlights, i think */
  -webkit-touch-callout: none; /* disable callouts */
  text-size-adjust: none;
  background-color: #fff;
  position: relative;
  overflow: hidden;
  height: 100%;
  margin: 0;
  color: #353232;
}
b,
strong,
h3 {
  font-family: "NHaasGroteskTXPro-75Bd", sans-serif;
}
a,
.inline-text-button {
  color: #ff3081;
  text-decoration: none;
  font-family: "NHaasGroteskTXPro-55Rg", sans-serif;
}
.inline-text-button {
  padding-left: 0;
  padding-right: 0;
  font-size: inherit;
}
a span,
.inline-text-button {
  border-bottom: 1px solid #ff3081;
}
a:hover,
a:focus,
.inline-text-button:hover,
.inline-text-button:focus {
  color: #308fff;
}
a:hover span,
a:focus span,
.inline-text-button:hover,
.inline-text-button:focus {
  border-bottom-color: #308fff;
}
button {
  background: none;
}
.text-icon {
  width: 1.25rem;
  height: 1.25rem;
}
#header {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
  position: absolute;
  min-height: 78px; /* magic number */
  z-index: 10;
  box-sizing: border-box;
  transition: background-color 200ms ease-out;
  width: 100%;
  /* background-color: #214c2e; */
  /* background-color: #710d19; */
  /* forest */
  /* background-color: #206827; */
  /* Liquorice or meconium? */
  background-color: #222a23;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2.5rem;
}
#header h1 {
  font-family: "NHaasGroteskDSStd-75Bd", sans-serif;
  font-size: 1.25rem;
  margin: 0;
  text-align: center;
  position: absolute;
  top: 0.5625rem;
  letter-spacing: 0.01em;
  background: -webkit-repeating-linear-gradient(
    0deg,
    #308fff,
    #51cea9,
    #d7db14,
    #f0c11d,
    #f27944,
    #eb4232 100%
  );
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  color: transparent;
  display: block;
}
#header h1::before {
  color: transparent;
  background: none;
  content: "Geogle";
  text-shadow: 0 0 2px rgb(0 0 0 / 50%);
  position: absolute;
  left: 0;
  z-index: -1;
}
#question-wrapper {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 0.625rem 16px;
  background: rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 50%);
}
#question {
  color: #f7fff7;
  font-size: 0.875rem; /* 14px; */
  line-height: 1.286; /* 20px */
  text-align: center;
  position: relative;
  animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
  will-change: opacity, left;
}
#question.show {
  animation: slideIn 600ms;
}
#question.hide {
  animation: slideOut 600ms;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    left: 100%;
  }
  100% {
    left: 0;
    opacity: 1;
  }
}
@keyframes slideOut {
  0% {
    left: 0;
  }
  100% {
    left: -100%;
    opacity: 0;
  }
}
#help {
  position: absolute;
  top: 0.375rem;
  left: 12px;
}
#refresh {
  position: absolute;
  top: 0.375rem;
  left: 50px;
  opacity: 0;
}
#controls {
  position: absolute;
  top: 0.375rem;
  right: 12px;
  display: flex;
}
#controls button:last-child {
  margin-left: 0.5rem;
}
#header button {
  padding: 2px;
  color: #f7fff8;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
#header button svg {
  width: 1.375rem;
  height: 1.375rem;
}
#info {
  position: absolute;
  z-index: 10;
  bottom: 19px;
  right: 13px;
  width: 1.5rem;
  height: 1.5rem;
  color: #ff3081;
  border-radius: 100%;
  padding: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 54%,
    rgba(255, 255, 255, 0) 55%
  );
}
#settings {
  transform: rotate(90deg);
}
#tooltip {
  z-index: 30;
  pointer-events: none;
  position: absolute;
  display: none;
  transform: translate(-50%, -100%);
  background: rgba(0, 0, 0, 0.67);
  color: white;
  font-size: 0.75rem;
  line-height: 1.25;
  padding: 4px 8px;
  border-radius: 0.25rem;
  text-align: center;
  max-width: 150px;
}
#dialog-wrapper {
  visibility: hidden;
  opacity: 0;
  z-index: 20;
  display: flex;
  transition: opacity 500ms ease-in-out;
  position: absolute;
  width: 100vw;
  height: -webkit-fill-available;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 78px 0 rgb(0 0 0); /* Obscure questions updating in the bg */
}
#dialog-country-results,
#dialog-capital-results,
#dialog-settings,
#dialog-help,
#dialog-info,
#dialog-stats {
  display: none;
}
.dialog-content {
  z-index: 30;
  position: relative;
  padding: 28px 20px 20px;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 352px;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 1);
  font-size: 0.875rem;
  line-height: 1.357; /* 19px @ 14px font size */
  text-align: center;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.5));
}
.dialog-content h1 {
  margin-top: 0;
  font-size: 1.875rem;
  font-family: "NHaasGroteskDSStd-75Bd", sans-serif;
  letter-spacing: 0.005em;
}
.dialog-content h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}
.dialog-content h4 {
  text-align: center;
  margin: 0;
  font-family: "NHaasGroteskDSStd-75Bd", sans-serif;
  font-size: 1rem;
}
.dialog-content h5 {
  margin: 0;
  font-family: "NHaasGroteskTXPro-55Rg", sans-serif;
  font-size: 0.875rem;
}
.better-list {
  display: block;
  padding-left: 1rem;
  position: relative;
}
.better-list b {
  font-family: "NHaasGroteskTXPro-55Rg", sans-serif;
  left: 0;
  position: absolute;
}
.help-wrapper {
  margin-top: 1.5rem;
  text-align: left;
}
.gradient-text {
  font-family: "NHaasGroteskTXPro-65Md", sans-serif;
  background: -webkit-repeating-linear-gradient(
    -90deg,
    #308fff,
    #51cea9,
    #d7db14,
    #f0c11d,
    #f27944,
    #eb4232 100%
  );
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  color: transparent;
  display: block;
}
.countdown-wrapper {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
#countdown div,
#stats-countdown div {
  opacity: 0.05;
  transition: opacity 150ms ease-in;
  font-family: hack, "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: 700;
}
button {
  -webkit-appearance: none;
  -webkit-text-size-adjust: 100%;
  border: none;
  margin: 0;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  font-family: "NHaasGroteskTXPro-65Md", sans-serif;
  outline: none;
}
.text-button {
  margin: 1rem 2rem;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  color: #308fff;
  font-size: 0.875rem;
}
.text-button:hover,
.text-button:focus {
  border-bottom-color: #308fff;
}
.primary-button,
.secondary-button {
  padding: 1rem;
  border-radius: 0.25rem;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1;
  transition: background-color 250ms ease-in-out, transform 150ms ease;
  border: 1px solid #308fff;
  margin-top: 0.625rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.primary-button svg,
.secondary-button svg {
  width: 1.375rem;
  height: 1.375rem;
  margin-left: 0.25rem;
}
.primary-button,
.icon-button {
  background: #308fff;
  color: #ffffff;
}
.secondary-button {
  background: #ffffff;
  color: #308fff;
}
.primary-button:hover,
.primary-button:focus {
  color: #308fff;
  background: #fff;
}
.secondary-button:hover,
.secondary-button:focus {
  color: #fff;
  background: #308fff;
}
.settings-group {
  padding-bottom: 0.75rem;
}
.settings-group + .settings-group {
  padding-top: 0.75rem;
  border-top: 1px solid #ededed;
}
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.setting p {
  font-family: "NHaasGroteskTXPro-65Md", sans-serif;
  text-align: left;
}
.setting button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 100%;
  margin-left: 12px;
}
.setting button.selected {
  pointer-events: none;
}
.setting button.disabled {
  color: #ccc6c6;
  pointer-events: none;
}
.setting button:hover,
.setting button:focus,
.setting button.selected:not(.disabled) {
  background: #b1e2fe;
}
#font-size-buttons button:nth-child(1) {
  font-size: 12px;
}
#font-size-buttons button:nth-child(2) {
  font-size: 16px;
}
#font-size-buttons button:nth-child(3) {
  font-size: 20px;
}
#game-mode-settings button {
  font-size: 0.75rem;
  text-transform: uppercase;
}
#game-mode-settings p {
  text-align: left;
  width: 55%;
}
.stats-wrapper {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
}
.stats-wrapper.stats-wrapper-guesses {
  background: #e1f7ed;
  border: 1px solid #c7e5c8;
}
.stats-wrapper.stats-wrapper-guesses h4 {
  color: #4d4747;
}
.stats-wrapper.stats-wrapper-guesses div {
  border-left-color: #cee8c8;
}
.stat {
  text-transform: uppercase;
  display: flex;
  align-items: center;
  line-height: 1;
  border-top: 1px solid #e3e3e3;
}
.stat:nth-child(1) {
  border-top: none;
}
.stat h4 {
  display: block;
  color: #4f4949;
  font-family: "NHaasGroteskTXPro-55Rg", sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.2px;
  width: 65%;
  text-align: left;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.stat div {
  width: 35%;
  border-left: 1px solid #eae6e6;
  padding: 0.5rem 0.75rem;
  color: #444242;
  font-size: 1.75rem;
  display: table;
  text-align: left;
  text-shadow: 1px 1px 3px #ffffff;
  font-family: "NHaasGroteskDSStd-75Bd", sans-serif;
}
.stat div small {
  font-size: 1.25rem;
  font-family: "NHaasGroteskTXPro-65Md", sans-serif;
}
#stat-country-avg-decimal::before,
#stat-capital-avg-decimal::before,
#stat-stats-country-avg-decimal::before,
#stat-stats-capital-avg-decimal::before {
  content: ".";
  font-size: 2rem;
}
#spectrum {
  pointer-events: none;
  position: fixed;
  z-index: 10;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 135px;
  height: 0.9375rem;
  box-shadow: 2px 2px 4px rgb(0 0 0 / 70%);
  border-radius: 0.46875rem;
  font-family: "NHaasGroteskTXPro-65Md", sans-serif;
  background: linear-gradient(
    to right,
    rgb(93, 173, 225) 0%,
    rgb(92, 210, 165) 17%,
    rgb(185, 210, 71) 33%,
    rgb(223, 220, 1) 50%,
    rgb(243, 175, 67) 67%,
    rgb(240, 113, 95) 83%,
    rgb(225, 53, 36) 100%
  );
}
#spectrum::before,
#spectrum::after {
  position: absolute;
  line-height: 1;
  bottom: 0.125rem;
  text-align: right;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 1px;
}
#spectrum::before {
  content: "COLD";
  left: 0.4375rem;
}
#spectrum::after {
  content: "HOT";
  right: 0.4375rem;
  color: white;
}
#map-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  /* Magic number: 78px (also in map SVG) */
  top: 78px;
}
#map {
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}
#map path {
  fill: #f7fff7;
  stroke: #000;
  stroke-width: 0.5;
  vector-effect: non-scaling-stroke;
  shape-rendering: crispEdges;
  stroke-linejoin: miter;
  stroke-miterlimit: 0.5;
}
.svg-pan-zoom_viewport {
  will-change: transform;
  transition: transform 100ms;
}
#graticule line {
  stroke: rgba(0, 0, 0, 0.5);
  stroke-width: 0.15;
  vector-effect: non-scaling-stroke;
  shape-rendering: crispEdges;
  stroke-linejoin: miter;
  stroke-miterlimit: 0.5;
}
/* Sparkles */
.container {
  position: absolute;
  width: 20rem;
  height: 20rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 2rem;
  height: 2rem;
  background: rgba(#000, 0.25);
  transform: rotate(45deg);
  outline: 10px solid rgba(#000, 0.1);
}
.container:nth-child(4n)::before,
.container:nth-child(7n)::before {
  display: none;
}
.particle {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}
.particle:nth-child(1) .sparkle {
  animation-delay: 50ms;
}
.particle:nth-child(2) .sparkle {
  animation-delay: 100ms;
}
.particle:nth-child(3) .sparkle {
  animation-delay: 150ms;
}
.particle:nth-child(4) .sparkle {
  animation-delay: 200ms;
}
.particle:nth-child(5) .sparkle {
  animation-delay: 250ms;
}
.particle:nth-child(6) .sparkle {
  animation-delay: 300ms;
}
.particle:nth-child(7) .sparkle {
  animation-delay: 350ms;
}
.particle:nth-child(8) .sparkle {
  animation-delay: 400ms;
}
.particle:nth-child(9) .sparkle {
  animation-delay: 450ms;
}
.particle:nth-child(10) .sparkle {
  animation-delay: 500ms;
}
.particle:nth-child(11) .sparkle {
  animation-delay: 550ms;
}
.particle:nth-child(12) .sparkle {
  animation-delay: 600ms;
}
.particle:nth-child(13) .sparkle {
  animation-delay: 650ms;
}
.particle:nth-child(14) .sparkle {
  animation-delay: 700ms;
}
.particle:nth-child(15) .sparkle {
  animation-delay: 750ms;
}
.particle:nth-child(16) .sparkle {
  animation-delay: 800ms;
}
.particle:nth-child(17) .sparkle {
  animation-delay: 850ms;
}
.particle:nth-child(18) .sparkle {
  animation-delay: 900ms;
}
.particle:nth-child(19) .sparkle {
  animation-delay: 950ms;
}
.particle:nth-child(20) .sparkle {
  animation-delay: 1000ms;
}
.sparkle {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3rem;
  background: rgba(#07b0ff, 0);
  will-change: transform, box-shadow, background-color;
  transform: rotate(45deg) scale(0.5) translateZ(0);
  animation: explode 333ms;
  box-shadow: 0 0 0 0 #fffb61;
}
@keyframes explode {
  0% {
    background-color: #faff0f;
    transform: rotate(45deg) scale(1.2) translateZ(0);
    box-shadow: 0 0 0 0 #fffb61;
  }
  40% {
    background-color: rgba(#7900ff, 0.1);
  }
  50% {
    transform: rotate(45deg) scale(1) translateZ(0);
    box-shadow: 0 0 0 10px #07b0ff;
    background-color: rgba(#0094ff, 0);
  }
  60% {
    box-shadow: 0 0 0 50px #13e614;
    transform: rotate(45deg) scale(0.5) translateZ(0);
  }
  70% {
    background-color: rgba(#9cff00, 0);
    box-shadow: 0 0 0 30px #fffb61;
  }
  100% {
    background-color: #ff4b00;
    box-shadow: 0 0 0 0 #fffb61;
    transform: rotate(45deg) scale(0.25) translateZ(0);
  }
}
/* Continent select dropdown */
.dropdown-wrapper {
  position: relative;
}
.dropdown-trigger {
  width: 100%;
  border: 1px solid #c7cbcb;
  border-radius: 6px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  line-height: 1;
  transition: background-color 250ms ease-in-out;
  display: flex;
  align-items: center;
  font-family: "NHaasGroteskTXPro-65Md", sans-serif;
  justify-content: space-between;
}
.dropdown-trigger svg {
  width: 1.375rem;
  height: 1.375rem;
}
.dropdown {
  position: absolute;
  bottom: 0;
  width: 100%;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease-in-out, box-shadow 350ms ease-in;
  box-shadow: inset 0 0 1px #5c5e5e, 3px 3px 6px rgb(0 0 0 / 0);
}
.dropdown.is-open {
  box-shadow: inset 0 0 1px #5c5e5e, 3px 3px 6px rgb(0 0 0 / 10%);
  max-height: 500px;
}
.dropdown button {
  color: #2a8ffb;
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1;
  transition: background-color 250ms ease-in-out;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  width: 100%;
  font-family: "NHaasGroteskTXPro-55Rg", sans-serif;
}
.dropdown button:hover,
.dropdown button:focus {
  color: #353232;
  background: rgba(0, 0, 0, 0.1);
}
.dropdown button:first-child {
  border-top: none;
}
.dropdown button.selected {
  color: #353232;
  font-family: "NHaasGroteskTXPro-75Bd", sans-serif;
  background: rgba(0, 0, 0, 0.1);
}
