html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 23vh;
}

p {
  font-size: 1.5rem;
}

header {
  opacity: 0.5;
}

footer,
.navbar__menu-btn,
.navbar__nav,
.navbar__user-badge {
  visibility: hidden;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;

  max-width: 350px;
}

#question {
  font-size: 2rem;
}

input[name="answer"] {
  display: block;
  width: 80%;
  height: 2.8rem;
  padding: 1rem 1rem;
  border: 2px solid #e4e4e7;
  border-radius: 0.375rem;
  margin: 0 auto;
  background-color: #ffffff;

  color: #09090b;
  font-size: 1.2rem;
  text-align: center;
  outline: none;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

input[name="answer"]::placeholder {
  color: #71717a;
}

button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 80%;
  margin: 0 auto;
  height: 2.8rem;
  padding: 1rem 1rem;
  border-radius: 0.375rem;
  background-color: #18181b;

  color: #fafafa;
  font-size: 1.2rem;

  cursor: pointer;

  transition: background-color 150ms ease;
}

button[type="submit"]:disabled {
  pointer-events: none;
  opacity: 0.5;
}

#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  z-index: 9999;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;

  background: #333;
  color: white;

  animation: toast-in 0.2s ease-out;
}

.toast.hide {
  animation: toast-out 0.2s ease-in forwards;
}

.toast-fire {
  display: inline-block;
  font-size: 1.7em;
  margin-left: 0.15em;
}

.toast-x {
  display: inline-block;
  font-size: 1.4em;
  margin-left: 0.15em;
}

.rating-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
  font-size: 0.85rem;
}

.rating-display__rating {
  font-size: 1rem;
  font-weight: 500;
  color: #888;
}

.rating-display__changes {
  display: flex;
  gap: 0.3rem;
  color: #888;
  font-size: 0.8rem;
}

/* .rating-display { */
/*   display: flex; */
/*   align-items: baseline; */
/*   gap: 0.5rem; */
/*   font-size: 1rem; */
/* } */
/**/
/* .rating-display__rating { */
/*   font-size: 1.25rem; */
/*   font-weight: 600; */
/* } */
/**/
/* .rating-display__changes { */
/*   display: flex; */
/*   gap: 0.35rem; */
/*   font-size: 0.9rem; */
/* } */
/**/
/* .rating-display__correct { */
/*   color: #2e7d32; */
/* } */
/**/
/* .rating-display__incorrect { */
/*   color: #c62828; */
/* } */

.dots {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #000;
  transform: translate(-50%, -50%);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (min-width: 1024px) {
  main {
    padding-bottom: 13vh;
  }

  .rating-display {
    max-width: 450px;
  }
}
