body, html {
    height: 100%;
    width: 100%;
    margin: auto;
    font-family: 'Heebo', sans-serif !important;
}
body {
    justify-content: center;
    background-color: #9bc4ff;
    font-size: 18px !important;
    align-items: center;
}
#all {
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    font-weight: 700;
    justify-content: space-between;
}
#top {
    height: 70px;
}
#main {
    display: flex;
    align-items: center;
    flex-direction: column;
}
#bottom {
    height: 140px;
    padding-bottom: 25px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
}
.grid-container {
    background-color: #6488fc;
    padding: 15px;
    border-radius: 12px;
    font-weight: 300;
    width: 345px;
    height: 345px;
    position: relative;
    box-sizing: content-box;
}
.grid-item {
    position: absolute;
    border-radius: 12px;
    background-color: #9bc4ff;
    border: 5px solid #9bc4ff;
    box-sizing: border-box;
    width: 75px;
    height: 75px;
    overflow: hidden;
    line-height: 19px;
    display: flex;
    text-align: center;
    align-items: center;
    box-shadow: 3px 3px 4px 0px #00000075;
    justify-content: center;
    cursor: pointer;
    transition: left 500ms linear, top 500ms linear, opacity 350ms linear, background 250ms linear, color 250ms linear;
}
.grid-item-white {
  background-color: #fff;
}
.grid-item[row="0"],.solved-row[row="0"] {
    top: 15px;
}
.grid-item[row="1"],.solved-row[row="1"] {
    top: 105px;
}
.grid-item[row="2"],.solved-row[row="2"] {
    top: 195px;
}
.grid-item[row="3"],.solved-row[row="3"] {
    top: 285px;
}
.grid-item[col="0"] {
    left: 15px;
}
.grid-item[col="1"] {
    left: 105px;
}
.grid-item[col="2"] {
    left: 195px;
}
.grid-item[col="3"] {
    left: 285px;
}
.hint-connector {
    position: absolute;
    width: 15px;
    height: 25px;
    background-color: #9bc4ff;
    z-index: 1;
    transition: left 500ms linear, top 500ms linear, opacity 500ms linear;
}
.hint-connector[row="0"] {
    top: 40px;
}
.hint-connector[row="1"] {
    top: 130px;
}
.hint-connector[row="2"] {
    top: 220px;
}
.hint-connector[row="3"] {
    top: 310px;
}
.hint-connector[col="0"] {
    left: 90px;
}
.hint-connector[col="1"] {
    left: 180px;
}
.hint-connector[col="2"] {
    left: 270px;
}
.fade-out {
    opacity: 0;
}
.solved-row {
    position: absolute;
    border-radius: 12px;
    width: 345px;
    height: 75px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    cursor: default;
    grid-column-end: span 4;
    flex-direction: column;
    line-height: 19px;
    color: #fff;
    background-color: #0019d0;
    transition: opacity 350ms linear;
}
.solved-row + .solved-row {
    background-color: #384be5;
}
.solved-row + .solved-row + .solved-row {
    background-color: #5869e7;
}
.solved-row + .solved-row + .solved-row + .solved-row {
    background-color: #7b8bff;
}
.solved-heading {
    font-weight: 600;
}
.selected-item {
    background-color: #3154c4;
    color: white;
}
.logo-bar {
    font-size: 25px;
    width: 375px;
    text-align: center;
    border-bottom-color: white;
    border-bottom-style: solid;
    border-width: 1px;
    margin-bottom: 20px;
    padding-top: 15px;
    color: white;
}
.logo-image {
    height: 20px;
    padding: 0px 3px;
    vertical-align: baseline;
}
.buttons-container {
    display: flex;
    width: 375px;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    gap: 20px;
}
.unclickable {
    box-shadow: none;
    color: #717070;
}
.mistake-container {
    width: 375px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: solid 1px #506087;
}
#mistake-counter {
    display: flex;
    align-items: center;
}
#mistake-text {
    padding-left: 10px;
}
.mistake-circle {
    width: 15px;
    height: 15px;
    background-color: black;
    border-radius: 50%;
    margin: 3px;
}
#reveal-answers-text {
    padding-top: 10px;
}
.dialog {
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #00000060;
    display: flex;
    flex-direction: column;
}
.dialog-frame {
    background-color: #f8f8f8;
    box-shadow: 0 4px 23px 0 #000000c8;
    width: 80%;
    max-width: 500px;
    max-height: 90%;
    padding: 20px;
    border-radius: 10px;
    margin: auto;
    display: flex;
    flex-direction: column;
    box-sizing: content-box;
}
.dialog-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    overflow-y: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black var(--top-mask-size, 0), black calc(100% - var(--bottom-mask-size, 0)), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, black var(--top-mask-size, 0), black calc(100% - var(--bottom-mask-size, 0)), transparent 100%);
    --top-mask-size: 0px;
    --bottom-mask-size: 0px;
}
.dialog-content.dialog-fade-top {
    --top-mask-size: 120px !important;
}
.dialog-content.dialog-fade-bottom {
    --bottom-mask-size: 120px !important;
}
.dialog-close-button {
    text-align: left;
    cursor: pointer;
}
.dialog-title {
    font-size: 20px;
    color: #2e71df;
    font-weight: 700;
    line-height: 35px;
    text-align: center;
}
.dialog-text {
    font-size: 14px;
    line-height: 22px;
}
.dialog-buttons {
    padding-top: 40px;
    align-self: center;
}
.dialog-text ul {
    font-size: 14px;
    padding-right: 20px;
    margin: 8px 0;
}
.dialog-loading {
    padding-bottom: 10px;
}
.btn-primary {
    --bs-btn-bg: #3f51b5;
    --bs-btn-border-color: #3f51b5;
    --bs-btn-hover-bg: #303f9f;
    --bs-btn-hover-border-color: #303f9f;
    --bs-btn-active-bg: #283593;
    --bs-btn-active-border-color: #283593;
    font-family: 'Heebo';
    font-size: 16px;
    border-radius: 4px;
    box-shadow: 0 4px 4px 0 rgba(0,0,0,.14),0 6px 2px -4px rgba(0,0,0,.2),0 2px 10px 0 rgba(0,0,0,.12);
}
.btn-primary:active {
    transform: scale(0.98);
}
.prev-games-title {
  padding: 20px 0;
  font-size: 17px;
  color: #5b99fe;
  font-weight: 600;
  padding-bottom: 3px;
}
.prev-games-form-items {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
}
.stats-wrapper {
  padding-bottom: 20px;
}
.stats-title {
  font-size: 17px;
  text-align: center;
  color: #5b99fe;
  font-weight: 600;
  padding: 40px 0 3px 0;
}
.stats-histogram {
  display: grid;
  grid-template-columns: 40px 40px 1fr 7px 45px;
  column-gap: 7px;
  row-gap: 5px;
  font-size: 13px;
  padding: 0 15px;
}
.stats-column-heading {
  line-height: 15px;
  align-self: end;
  text-align: center;
}
.stats-column-heading:nth-child(3) {
  text-align: right;
}
.stats-num-guesses {
  text-align: center;
}
.stats-bar {
  background-color: #4b8bf2;
  text-align: left;
}
.stats-spacer-row {
  grid-row-start: 6;
  grid-column: 1 / span 5;
  height: 8px;
}
.stats-bar-text {
  color: #f8f8f8;
  font-weight: 400;
  padding-left: 5px;
}
.highlighted-bar {
  background-color: #1852b0;
}
.stats-brace {
  grid-column-start: 4;
  border-style: solid none solid solid;
  border-width: 1.5px;
}
.stats-summary {
  grid-column-start: 5;
  align-self: center;
}
.stats-wins-total {
  grid-row: 2 / span 4;
}
.stats-losses-total {
  grid-row: 7 / span 3;
}
.stats-header-filler {
  grid-column: 4 / span 2;
  grid-row-start: 1;
}
.stats-quads-histogram {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 7px;
  row-gap: 0;
  font-size: 13px;
  padding: 0 60px;
}
.stats-quad-title {
  font-size: 14px;
  line-height: 16px;
  padding-top: 7px;
}
.alert {
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: column;
  transition: visibility 1s;
}
.alert-content {
  background-color: #670bbb;
  color: #fff;
  box-shadow: 0 4px 23px 0 #000000c8;
  width: 80%;
  padding: 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
}
.alert-text {
  font-size: 12pt;
  text-align: center;
}
.reveal-answers-mode {
  display: none;
}