@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/comfortaa-latin-400-normal.woff2") format("woff2");
}

:root {
  --primary: #007bff;
  --secondary: #050505;
  --accent: #ff5733;
  --neutral: #6c757d;
  --base-100: #fafafa;
  --base-200: #eef2f6;
  --base-300: #ced4da;
  --base-content: #050505;
  --primary-content: #fafafa;
  --secondary-content: #fafafa;
}

:root[data-theme="dark"] {
  --primary: #FFD700;
  --secondary: #FF8C00;
  --accent: #FF5733;
  --neutral: #525f75;
  --base-100: #232937;
  --base-200: #1e2431;
  --base-300: #1b202b;
  --base-content: #d1d5db;
  --primary-content: #050505;
  --secondary-content: #050505;
}

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

html {
  min-height: 100%;
  background-color: var(--base-200);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath fill-opacity='.025' fill-rule='evenodd' d='m0 38.59 2.83-2.83 1.41 1.41L1.41 40H0zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/svg%3E");
  color: var(--base-content);
  font-family: "Comfortaa", "Quicksand", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: inherit;
  color: var(--base-content);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.navbar {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  min-height: 4rem;
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.brand-wrap {
  flex: 1 1 auto;
}

.brand {
  margin: 0;
  text-align: left;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--primary);
  white-space: nowrap;
  font-weight: 400;
}

.brand span {
  color: var(--accent);
}

.brand:hover {
  color: var(--accent);
}

.brand:hover span {
  color: var(--primary);
}

.brand-wrap h1 {
  margin: 0;
  display: none;
  text-align: left;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--secondary);
  font-weight: 400;
}

.settings {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: .5rem;
  padding: 0 .5rem;
}

.swap {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--base-content);
  display: grid;
  place-items: center;
}

.swap svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-dark,
.motion-off,
:root[data-theme="dark"] .theme-light,
:root[data-reduceMotion="false"] .motion-off,
:root[data-reduce-motion="false"] .motion-off {
  display: none;
}

:root[data-theme="dark"] .theme-dark,
:root[data-reduceMotion="true"] .motion-off,
:root[data-reduce-motion="true"] .motion-off {
  display: block;
}

:root[data-reduceMotion="true"] .motion-on,
:root[data-reduce-motion="true"] .motion-on {
  display: none;
}

.tool-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.hidden {
  display: none !important;
}

.panel {
  width: auto;
  max-width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 1rem;
  background: white;
  padding: 1.25rem 0;
}

:root[data-theme="dark"] .panel {
  background: var(--base-100);
}

.currentChoicesContainer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.25rem;
  position: relative;
}

.input {
  min-height: 3rem;
  border: 1px solid var(--neutral);
  background: var(--base-100);
  color: var(--base-content);
  border-radius: .75rem;
  padding: .25rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.75rem;
  outline: none;
}

.input::placeholder {
  color: color-mix(in srgb, var(--base-content), transparent 50%);
}

.question {
  width: 100%;
}

.btn {
  min-height: 3rem;
  min-width: 3rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-content);
  position: relative;
  z-index: 20;
  grid-column: span 3;
}

.btn-secondary {
  min-height: 2rem;
  height: 2rem;
  padding: 0 .75rem;
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--secondary-content);
}

.choices {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  overflow: visible;
  padding: 1.25rem 0;
}

.add {
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  min-height: 1.5rem;
  border-radius: 9999px;
  margin: .875rem .5rem .5rem;
  padding: 0;
  background: var(--base-300);
  color: var(--base-content);
  font-size: .875rem;
}

.results {
  max-width: 100%;
  flex: 1 1 auto;
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  gap: 1rem;
  overflow: visible;
}

.decision {
  position: relative;
  display: flex;
  height: 100%;
  min-width: 0;
  max-width: 20rem;
  flex-direction: column;
  overflow: hidden;
  border-radius: .75rem;
  background: var(--base-300);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neutral), transparent 85%);
  transition: all .5s ease;
}

.decision .input {
  margin: .25rem;
  width: calc(100% - .5rem);
}

.column {
  display: flex;
  min-height: 5rem;
  height: 100%;
  flex: 1 1 auto;
  align-items: flex-end;
  justify-content: center;
  color: #000;
}

.bar {
  position: relative;
  z-index: 20;
  display: flex;
  width: 100%;
  flex-direction: column;
  border-radius: .75rem;
  transition: all .3s ease;
}

.percentage {
  margin: .5rem;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.75rem;
  opacity: 0;
}

.winnerText {
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.winner:not(.hidden) .winnerText,
.winner .winnerText {
  display: flex !important;
}

.winner-title {
  margin: .5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  text-align: center;
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.indecisionButton {
  min-height: 2rem;
  height: 2rem;
  margin: .5rem 0;
  background: var(--neutral);
  color: #fff;
}

.winner {
  min-width: 10rem;
  box-shadow: 0 0 3px 5px #FFD700;
}

.shrug {
  width: 100%;
  flex: 1 1 auto;
  align-self: center;
  text-align: center;
  font-size: 4.5rem;
  line-height: 1;
}

.save-row {
  width: 100%;
  max-width: 1024px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0 3rem;
}

.savedQuestions {
  width: 100%;
  max-height: 8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  overflow-y: auto;
}

.savedQuestions::-webkit-scrollbar-button {
  display: none !important;
}

.savedQuestion {
  min-height: 2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-radius: .75rem;
  background: var(--base-300);
  color: var(--base-content);
  padding: 0 .5rem;
  font-size: .875rem;
}

.savedQuestionDelete {
  min-height: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: inherit;
}

.shortcuts {
  display: flex;
  flex-flow: row wrap;
  gap: 1rem;
  margin: .5rem 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .75rem;
  line-height: 1rem;
  color: var(--base-content);
}

.shortcuts > div + div {
  border-left: 1px solid var(--accent);
  padding-left: 1rem;
}

.flyingDecision {
  position: absolute;
  z-index: 10;
  color: #000;
  transition: all 1s ease-out;
  min-height: 3rem;
  border-radius: .75rem;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.bottomcontent {
  display: flex;
  justify-content: center;
  margin: 5rem 0;
}

.prose {
  max-width: 65ch;
  color: var(--base-content);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.75;
}

.prose h1 {
  font-size: 2.25em;
  line-height: 1.111;
  margin: 0 0 .888em;
  font-weight: 800;
}

.prose h2 {
  font-size: 1.5em;
  line-height: 1.333;
  margin: 2em 0 1em;
  font-weight: 700;
}

.article-index {
  width: min(1024px, calc(100% - 2rem));
  margin: 0 auto 5rem;
}

.article-index h2 {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 400;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.article-card {
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: .75rem;
  background: var(--base-100);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neutral), transparent 75%);
  padding: 1rem;
}

.article-card strong {
  color: var(--primary);
  font-weight: 400;
}

.article-card span {
  margin-top: .75rem;
  color: var(--base-content);
  font-size: .875rem;
  line-height: 1.5;
}

.article-page {
  min-height: auto;
  justify-content: flex-start;
}

.article-main {
  width: min(760px, calc(100% - 2rem));
  margin: 3rem auto 5rem;
}

.article-meta {
  margin: 0 0 1rem;
  color: var(--secondary);
}

.related-links {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--neutral), transparent 60%);
}

.related-links h2 {
  margin-top: 0;
}

.related-links ul {
  padding-left: 1.25rem;
}

.related-links a,
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: .18em;
}

footer {
  padding: 2.5rem;
  background: var(--neutral);
  color: #fff;
}

footer nav {
  display: grid;
  gap: .25rem;
}

footer .copyright {
  padding-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .brand-wrap h1 {
    display: block;
  }

  .panel {
    box-shadow: 0 0 20px 1px rgb(0 0 0 / 10%);
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  .panel {
    max-width: 90%;
    margin-left: 2.5rem;
    margin-right: 2.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 767px) {
  .navbar {
    align-items: flex-start;
    padding-top: .75rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  .currentChoicesContainer {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
  }

  .save-row {
    padding: 0 1rem;
  }

  .shortcuts {
    justify-content: center;
    padding: 0 .75rem;
  }
}

:root[data-reduceMotion="true"] .flyingDecision,
:root[data-reduce-motion="true"] .flyingDecision {
  display: none;
}

:root[data-reduceMotion="true"] *,
:root[data-reduceMotion="true"] *::before,
:root[data-reduceMotion="true"] *::after,
:root[data-reduce-motion="true"] *,
:root[data-reduce-motion="true"] *::before,
:root[data-reduce-motion="true"] *::after {
  animation-duration: .001ms !important;
  transition-duration: .001ms !important;
}
