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

.lds-hourglass {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-hourglass:after {
  content: " ";
  display: block;
  border-radius: 50%;
  width: 0;
  height: 0;
  margin: 8px;
  box-sizing: border-box;
  border: 32px solid #333;
  border-color: #333 transparent #333 transparent;
  animation: lds-hourglass 2.8s infinite;
}

@keyframes lds-hourglass {
  0% {
    transform: rotate(0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  50% {
    transform: rotate(900deg);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  100% {
    transform: rotate(1800deg);
  }
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #eee;
}

#loading {
  position: absolute;
  z-index: 9999;
  display: flex;
  width: 100%;
  height: 100%;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 400ms;
  background-color: #eee;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

* {
  font-family: "Montserrat", sans-serif;
  color: #333;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Merriweather", serif;
}

main {
  display: flex;
  width: 100%;
  height: 100%;
  flex-flow: column;
  align-items: center;
}

footer {
  padding: 20px;
}
.spacer {
  flex-grow: 1;
}
.logo {
  margin-bottom: 20px;
  margin-top: 100px;
}

@keyframes slide-in {
  0% {
    transform: translate(0, -100px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes slide-out {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(0, -100px);
    opacity: 0;
  }
}

.menu {
  display: flex;
  flex-flow: column nowrap;
  padding-top: 30px;
  padding-left: 20px;
  padding-right: 20px;
  width: 820px;
  max-width: 100%;
  align-items: center;
}

.add-person-menu {
  height: 100%;
  max-height: 100%;
}

.main-menu {
  min-height: 100%;
}

.disabled {
  display: none;
}

.slide-in {
  animation: slide-in 450ms;
}

.slide-out {
  animation: slide-out 450ms;
}

.nav-buttons {
  display: flex;
  flex-direction: column;
}

button {
  width: 300px;
  margin: 10px;
  padding: 20px 40px;
  border: none;
  outline: none;
  border-radius: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 18px;
  color: #333;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);

  background-color: #ccc;
  transition: background-color 200ms;
}

#backbutton {
  width: auto;
  border: 1px solid #ccc;
  font-size: 12px;
  padding: 5px 10px;
  background: none;
  box-shadow: none;
  margin: 5px 5px;
}

.secondary-button {
  border: 1px solid #ccc;
  font-size: 14px;
  padding: 15px 20px;
  background: none;
  box-shadow: none;
}

button:hover,
#backbutton:hover {
  cursor: pointer;
  background-color: #bbb;
}

button:active {
  background-color: #aaa;
}

input:focus {
  outline: 1px solid #777;
}

input,
textarea {
  font-size: 18px;
  padding: 12px;
  border-radius: 8px;
  margin: 0;
  border: none;
  outline: 1px solid #fff;
  transition: outline 250ms;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
}

select {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  outline: 1px solid #fff;
  padding: 12px;
}

label,
select {
  font-size: 18px;
  border-radius: 8px;
  margin: 0;
  border: none;
  transition: outline 250ms;
  margin-bottom: 8px;
}

select {
  font-size: 18px;
  padding: 12px;
  border-radius: 8px;
  margin: 0;
  border: none;
  outline: 1px solid #fff;
  transition: outline 250ms;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
  background-color: white;
}

select:focus {
  outline: 1px solid #777;
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  max-width: 700px;
  /* width: 100%; */
}

.filter-container label {
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

@media (min-width: 530px) {
  .filter-container {
    flex-direction: row;
    align-items: center;
  }

  .filter-container label {
    margin-bottom: 0;
    margin-right: 8px;
    white-space: nowrap;
  }

  .filter-container input,
  .filter-container select {
    margin-bottom: 0;
  }

  .filter-container input {
    flex: 1;
    margin-right: 16px;
  }
}

#people {
  display: flex;
  flex-flow: row wrap;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 15px;
}

.person {
  flex-grow: 1;
  width: 250px;
  height: 80px;
  margin: 7px;
  display: flex;
  flex-flow: row nowrap;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: transform 200ms, background-color 200ms;
  background-color: white;
  transform: scale(1, 1);
}

.guess-person {
  width: 350px;
  height: 80px;
  margin: 7px;
  display: flex;
  flex-flow: row nowrap;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  background-color: white;
}

.blank-person {
  flex-grow: 1;
  width: 250px;
  height: 80px;
  margin: 7px;
}

.person:hover {
  background: #eee;
  transform: scale(1.05, 1.05);
  z-index: 2;
}

.person-image-holder {
  width: 75px;
}

.person-details {
  display: flex;
  flex-flow: column nowrap;
}

.person-image {
  height: 80px;
  border-radius: 20px;
}

.person-name {
  font-weight: bold;
  font-size: 17px;
  padding: 9px;
  padding-bottom: 3px;
  margin: 0;
}

.person-type {
  font-size: 14px;
  padding-left: 9px;
  padding-bottom: 9px;
  margin: 0;
}

#quotes-area {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  margin-bottom: 40px;
}

#random-quote-area {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  min-height: 300px;
  margin-bottom: 40px;
}

.quote-line {
  width: 100%;
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
}

.quote-person {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.quote-person-image-holder {
  display: inline;
}

.quote-person-image {
  height: 52px;
  border-radius: 10px;
}

.quote-person-name {
  display: inline;
  font-weight: bold;
  font-size: 18px;
  padding: 10px;
  margin: 0;
}

.quote-input {
  width: 100%;
}

.block-input {
  pointer-events: none;
}

#quote-bank-list {
  margin-top: 10px;
  width: 100%;
  max-width: 700px;
}

.quote-bank-item {
  background: white;
  margin-bottom: 16px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 14px;
  border-radius: 12px;
  position: relative;
}

.quote-bank-item-person {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
}

.quote-bank-item-person-image {
  height: 28px;
  border-radius: 6px;
}

.quote-bank-item-person-name {
  display: inline;
  font-weight: bold;
  font-size: 14px;
  padding: 0;
  margin: 0;
  margin-left: 8px;
  margin-right: 8px;
}

#score-area {
  width: 100%;
  max-width: 200px;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}

.score {
  font-size: 24px;
  font-weight: bold;
  background-color: white;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
}

.flex-row {
  display: flex;
  flex-flow: row nowrap;
}

.quote-bank-item-line {
  margin-bottom: 9px;
}
.quote-bank-item-line:last-child {
  margin-bottom: 0;
}

.quote-bank-item-text {
  margin: 0;
  padding: 0;
  margin-top: 7px;
}

.button-container {
  position: absolute;
  top: 0;
  right: 0;
  margin: 8px;
}

.tiny-button {
  padding: 8px;
  margin: 0;
  margin-left: 3px;
  width: auto;
  font-size: 10px;
  box-shadow: none;
  background: white;
  border: 1px solid #ddd;
}

.tiny-button-secondary {
  padding: 8px;
  margin: 0;
  margin-left: 3px;
  width: auto;
  font-size: 10px;
  border: 1px solid #ddd;
  background: none;
  box-shadow: none;
}

.pre-wrap {
  white-space: pre-wrap;
}

.left {
  flex-direction: row;
}
.right {
  flex-direction: row-reverse;
}

.pager {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-flow: row nowrap;
}

.pager-button {
  width: 100px;
  border: 1px solid #ccc;
  font-size: 14px;
  padding: 10px 15px;
  background: none;
  box-shadow: none;
  margin-top: 0;
}

.quote-orders {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin-top: 5px;
}

.quote-order-button {
  width: auto;
  border: 1px solid #ccc;
  font-size: 12px;
  padding: 5px 10px;
  background: none;
  box-shadow: none;
  margin: 5px 5px;
}
.active {
  background-color: #ccc;
}

@keyframes wrong-answer-animation {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(2, 2);
  }
  100% {
    transform: scale(1, 1);
  }
}

.wrong-answer {
  color: red;
  animation: wrong-answer-animation 1s;
}

.right-answer {
  color: green;
  animation: wrong-answer-animation 1s;
}

.quiz-quote-background {
  padding: 15px;
  background-color: white;
  border-radius: 20px;
  margin-bottom: 30px;
}

.quiz-quote-text {
  text-align: center;
  font-size: 32px;
  margin: 0;
}

.quiz-quote-quote-marks {
  display: inline;
  font-weight: bold;
  font-size: 52px;
}

.quiz-input-name {
  padding: 12px;
  border: none;
  outline: none;
  transition: none;
  box-shadow: none;
  margin: 0;
}

.quiz-input-name:focus {
  outline: none;
}

.quiz-search {
  justify-content: center;
}

#input-message {
  text-align: center;
}

.hidden {
  display: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip link for accessibility */
a.visually-hidden:focus {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 8px 16px !important;
  margin: 0 !important;
  background-color: #333 !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 0 0 4px 0 !important;
  font-weight: bold !important;
  z-index: 10000 !important;
  clip: auto !important;
  overflow: visible !important;
  white-space: normal !important;
}

#input-area {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
}

@media only screen and (max-width: 500px) {
  .logo {
    margin-top: 10px;
  }
  .quiz-quote-quote-marks {
    font-size: 34px;
  }
  .quiz-quote-text {
    text-align: center;
    font-size: 28px;
    margin: 0;
  }
}
