@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;
  position: relative;
}
html,
body {
  padding: 0;
  margin: 0;
}
#pool {
  width: calc(100% - 4em);
  min-height: 1em;
  /*added so pool box does not adjust size when cards are removed */
  margin: 0 auto;
  margin-bottom: 2em;
  display: flex;
  gap: 0.5em;
  flex-flow: column;
  border-radius: 1em;
  border: 2px solid var(--secondary);
  padding: 1em;
  box-shadow: 0 4px 8px 0 var(--primary), 0 6px 20px 0 var(--primary);
  justify-content: space-around;
}
.card {
  border: 2px solid var(--primary);
  border-radius: 5px;
  user-select: none;
  background: white;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, scale 0.15s;
  display: grid;
  grid-template-columns: 6em 1fr;
}
.working .card:is(:hover, :focus-visible) {
  box-shadow: 2px 2px 2px #00000088;
  transform: translate(-1px, -1px);
}
.name {
  color: white;
  font-size: 1.2em;
  font-weight: bold;
}
.name-wrapper {
  background-color: var(--primary);
  max-width: 6em;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em;
  text-align: center;
}
.description {
  padding: 0.5em 1em;
  display: flex;
  align-items: center;
}
.description,
p {
  line-height: 1.5;
}
.category {
  border: 2px solid var(--secondary);
  border-radius: 0.5rem;
  cursor: pointer;
  overflow: hidden;
}
.category .card {
  flex-grow: 1;
}
.working .rank:is(:hover, :focus-visible) {
  box-shadow: 2px 2px 4px #00000088;
  transform: translate(-2px, -2px);
}
.row-holder {
  width: 100%;
  display: grid;
  grid-template-rows: repeat(3);
  box-sizing: border-box;
}
.rank {
  padding: 0.5em;
  border-bottom: 2px solid black;
  display: flex;
  align-items: center;
  transition: box-shadow 0.15s, transform 0.15s;
  min-height: 3em;
}
.rank-text {
  min-width: 7em;
  color: var(--primary);
  font-weight: bold;
}
h4 {
  font-size: 1.5em;
  text-align: center;
}
.cat-title {
  background: var(--primary);
  color: white;
  border-bottom: 2px solid black;
  padding: 10px;
  margin: 0;
  text-align: center;
  margin-top: 0;
}
.target {
  scale: 1.05;
  outline: 4px solid var(--tertiary);
  border-color: var(--tertiary);
}
button {
  font-family: "Lato Extended", sans-serif;
  cursor: pointer;
  color: white;
  font-size: 1.4em;
  padding: 0.5em 1em;
  margin: 0.5em 0.25em 0.25em 0.25em;
  transition: transform 0.1s;
  background-color: var(--primary);
}
#verify {
  background-color: #228b22;
}
#reset {
  background-color: #b33a3a;
}
button:focus-visible,
button:hover {
  opacity: 0.8;
}
button:active {
  transform: translate(2px, 2px);
}
#verify:disabled,
#verify[disabled] {
  background: gray;
  cursor: initial;
  position: static;
  opacity: 0.5;
  cursor: not-allowed;
}
#verify:disabled:active,
#verify[disabled]:active {
  transform: none;
}
.modal {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 77, 77, 0.7);
  transition: all 0.4s;
}
.modal-title {
  background-color: var(--primary);
  color: white;
  padding: 1em;
  font-size: 1.2em;
}
.modal-current {
  visibility: visible;
  opacity: 1;
}
.modal-content {
  border-radius: 4px;
  position: relative;
  width: 500px;
  max-width: 90%;
  background: #fff;
  max-height: 100%;
  display: flex;
  flex-flow: column;
}
.modal-close {
  font-size: 1.2em;
  text-decoration: none;
  cursor: pointer;
  width: max-content;
  margin: 0 auto;
  display: block;
}
#answer-desc {
  padding: 1em;
  margin: 0;
  min-height: 0;
  overflow: auto;
}
#setup-area,
.feedback {
  display: none;
}
body:not(.working) .feedback {
  display: block;
  padding: 0.5em;
  background: #ccc;
  grid-column: span 2;
}
@media (max-width: 750px) {
  #pool {
    padding: 0.5em;
  }
  .name-wrapper {
    max-width: none;
  }
  img {
    max-width: 15em;
  }
  .name {
    padding: 0.5em;
  }
  .card {
    font-size: 14px;
    display: block;
  }
  .cat-title {
    font-size: 20px;
  }
}
