@import url("/css/reset.css");
@import url("/css/canvas.css");
@import url("../vars.css");

.stats-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  padding: 0.35rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: var(--stats-gtc-default-size);
  width: 100vw;
  min-height: calc(var(--min-container-height) - var(--header-height));
  overflow: hidden;
}
.side-btn {
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
}
.side-btn:active {
  color: rgb(190, 190, 190);
}
.middle {
  display: grid;
  grid-template-rows: 1fr 100%;
}
.middle-top {
  text-align: left;
  padding-left: 1rem;
  font-size: 1.5rem;
  text-decoration: underline;
}
.middle-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-bottom: 72px;
  color: var(--stats-result-text);
}
.middle-top,
.middle-bottom {
  background: transparent;
  font-weight: bold;
}
.stats-grid-template {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  width: 100%;
}
.stats-grid-template.image-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.cell, .no-results {
  text-align: center;
  font-size: clamp(1.25rem, 5vw, 3.25rem);
  padding: 1rem;
}
.stats-grid-template > :nth-child(odd):last-child {
  grid-column: span 2;
}
.correct-incorrect {
  margin: 0 auto;
  color: white;
  width: 70%;
}
.correct-incorrect .cell:first-child {
  background-color: var(--stats-correct-bg-color);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
.correct-incorrect .cell:last-child {
  background-color: var(--stats-incorrect-bg-color);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}
.stats-grid-template .cell img.stat-image {
  max-width: 100%;
  max-height: 100%;
  border: 2px solid rgb(172, 146, 0);
}
.stat-wrapper {
  background-color: rgba(255, 255, 255, 0.405);
}