@font-face {
  font-family: "Lato Extended";
  font-style: normal;
  font-weight: 400;
  src: url(https://du11hjcvx0uqb.cloudfront.net/br/dist/fonts/lato/extended/Lato-Regular-bd03a2cc27.woff2)
    format("woff2");
  font-display: auto;
}
@font-face {
  font-family: "Lato Extended";
  font-style: normal;
  font-weight: 700;
  src: url(https://du11hjcvx0uqb.cloudfront.net/br/dist/fonts/lato/extended/Lato-Bold-cccb897485.woff2)
    format("woff2");
  font-display: auto;
}
* {
  box-sizing: border-box;
}
body {
  font-family: "Lato Extended", Lato, sans-serif;
  display: flex;
  flex-flow: column;
  gap: 1.5em;
}

#button-holder button {
  font-family: "Lato Extended", sans-serif;
  cursor: pointer;
  color: white;
  font-size: clamp(1rem, 2vw, 1.2rem);
  padding: 0.5em 1em;
  transition: transform 0.15s;
}
#verify {
  background-color: #228b22;
}
.done #verify,
#show {
  display: none;
  background-color: var(--primary);
}
.done #show {
  display: inline;
}
.done #feedback,
.done .feedback {
  display: block;
}
#feedback,
.feedback {
  display: none;
  padding: 0.5em;
  background: lightgray;
  opacity: 0;
  animation: fade-in 0.5s forwards;
  color: black;
}
#feedback p {
  margin: 0;
  margin-top: 1em;
}
#feedback p:first-child {
  margin-top: 0;
}

#reset {
  background-color: #b33a3a;
}
#button-holder button:focus-visible,
#button-holder button:hover {
  opacity: 0.8;
}
#button-holder button:active {
  transform: translate(1px, 1px);
}

#container {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-flow: column;
  width: max-content;
  max-width: min(100%, 800px);
  margin: 0 auto;
  gap: 1rem;
}
.setup #container {
  visibility: hidden;
}
.item {
  user-select: none;
  cursor: grab;
  position: relative;
  display: block;
  border: 1px solid gray;
}
.option {
  padding: 0.5em 1em;
  background: var(--primary);
  color: white;
  display: flex;
  justify-content: center;
}
.item p {
  margin: 0;
}
.item ul,
.item ol {
  padding: 0;
}
.item:active {
  cursor: grabbing;
  box-shadow: 2px 2px 5px var(--primary);
}
.done .item {
  cursor: default;
  box-shadow: none;
}

.item.correct {
  outline: 2px solid green;
}
.item.incorrect {
  outline: 2px solid red;
}
.item.correct::after,
.item.incorrect::after {
  content: "✔";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 1rem;
  color: green;
  font-size: 2em;
  line-height: 1rem;
}
.item.incorrect::after {
  content: "✖";
  color: red;
}
.item[aria-grabbed="true"] {
  transform: rotate(2deg);
}
.move-btn {
  opacity: 0;
  position: absolute;
  right: 2px;
  border: none;
  background: none;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  padding: 0;
}
.move-btn:focus-visible {
  opacity: 1;
  width: 1.5rem;
  height: 1.5rem;
}
.move-btn svg {
  width: 100%;
  height: 100%;
}
.show .item {
  outline-color: lightblue;
}
.show .option {
  opacity: 0.8;
}
.show .item::after {
  content: "";
}

#show.revealed .reveal,
#show:not(.revealed) .hide {
  display: none;
}
@media (max-width: 700px) {
  :root {
    font-size: 14px;
  }
}
.dragging {
  opacity: 0;
  cursor: grabbing;
}
.fake {
  position: absolute;
  pointer-events: none;
  box-shadow: 2px 2px 5px var(--primary);
}
#accessible-text {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}
@keyframes fade-in {
  to {
    opacity: 1;
  }
}
