
body {
  overscroll-behavior-y: contain;
  margin: -15px 0px;
  --color-highlight: #F09192;
  --color-highlight-dark: #ffa31a;
  --color-invalid: #dcdcdc;
  --color-gray: #e6e6e6;
  --color-gray-emphasis: #d9d9d9;
  --color-dark-gray: #ccc;
  --color-text-gray: #333;
  --color-text-gray-highlight: #333;
  --color-black: black;
  --color-message-bad: black;
  --color-transparent: #00000000;
  --color-background: white;
  --link-color: var(--color-text-gray);
  --color-keys-button-middle: var(--color-black);
  --color-keys-button-middle-bg: var(--color-highlight);
  background-color: var(--color-background);

  --invert: 0;
  --bright: 1;

  --button-background: var(--color-gray);
  --button-border: var(--color-transparent);
  --button-border-middle: var(--color-highlight);
  --button-color: black;

  transition: background-color 0.15s ease-out;
}

.header {
  max-width: 500px;
  width: 95%;
  margin: 20px auto;
  text-align: center;
  border-bottom: 1px solid silver;
  padding-bottom: 40px;
  transition: filter 0.1s;
}

.h99 {
  margin-bottom: 8px;
  font-size: 1.9em;
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
  font-weight: bold;
  float: left;
}

.h98 {
  margin: 0px auto 20px auto;
  color: var(--color-dark-gray);
  font-size: 0.8em;
  line-height: 1.5em;
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
  font-weight: normal;
  float: right;
}

h1 {
 font-family: "Clear Sans", Verdana, Arial, sans-serif;
 font-size: 1.8em;
 font-weight: bolder;
 text-align: center;
}


h2 {
 font-family: "Clear Sans", Verdana, Arial, sans-serif;
 font-size: 1em;
 font-weight: 500;
 line-height: 1.8em;
 text-align: center;
 max-width: 800px;
 padding-bottom: 10px;
 border-right: 10px;
 border-right-style: solid;
 border-right-color: #fcf3cb;
 border-left: 10px;
 border-left-style: solid;
 border-left-color: #fcf3cb;
}

h2 a {
  color: var(--color-text-gray);
}

h2 a:hover:active {
  color: var(--color-highlight);
}

a,
a:visited {
  color: var(--link-color);
}

p {
  margin: 0px auto 10px auto;
}

ul {
  padding-inline-start: 20px;
}

.container {
  max-width: 500px;
  margin: -5px auto;
  margin-top: -8px;
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
  font-weight: normal;
  transition: filter 0.1s;
  font-display: swap;
}

#progress-container {
  max-width: 500px;
  width: 95%;
  height: 30px;
  margin: 0px auto;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  font-weight: ;
}

#progress-info {
  width: 37%;
}

#progress-next {
  font-size: 0.9em;
  font-weight: 300;
  line-height: 1.5em;
}

#progress-bar {
  width: 63%;
  position: relative;
  top: -2px;
}

#progress-dots {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-size: 0.7em;
}

.progress-dot {
  display: flex;
  flex-grow: 1;
}

.progress-complete,
.progress-incomplete {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, 50%);
}

#progress-current {
  display: flex;
  width: 24px;
  height: 24px;
  position: absolute;
  align-items: center;
  vertical-align: middle;
  line-height: 100%;
  left: calc(0 * 100% / 9);
  transform: translate(-50%, -50%);
  transition: left 0.25s;
  border: 2px solid var(--button-border-middle);
  color: var(--color-keys-button-middle);
  background-color: var(--color-keys-button-middle-bg);
}

#progress-current-score {
  width: 100%;
  text-align: center;
  font-size: 0.8em;
  font-weight: ;
}

.progress-complete {
  background-color: var(--color-highlight);
}

.progress-incomplete {
  background-color: var(--color-gray);
}

.progress-square {
  border-radius: 0px;
}

.entered-container {
  display: flex;
  align-items: flex-start;
  width: 90%;
  height: auto;
  max-height:90%;
  overflow: auto;
  margin: 10px auto;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--color-dark-gray);
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
  font-size: 0.9em;
}

.entered-container-expanded {
  height: 60vh;
  max-height: 400px;
  padding-bottom: 500px;
}

.entered-words {
  display: inline;
  flex-wrap: nowrap;
  max-width: 95%;
  flex-grow: 9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-black);
  transition: height 1s;
}

.entered-words-start {
  color: var(--color-dark-gray);
}

.entered-words-expanded {
  display: flex;
  flex-wrap: wrap;
  white-space: normal;
}

.entered-word {
  margin: 0px 1px;
  padding: 1px 1px;
}

.entered-word-number {
  margin: 0px 0px 10px 0px;
  flex-basis: 100%;
  font-size: 1em;
  color: var(--color-black);
}

#entered-toggle {
  display: flex;
  margin: 0px 4px;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  flex-grow: 1;
  position: relative;
  top: 0px;
  right: 0px;
  background: url(img/chevron.svg) center no-repeat;
  background-size: contain;
  outline: none;
  transition: transform 0.2s;
}

.entered-toggle-expanded {
  transform: rotate(180deg);
}

.below-entered-container {
  opacity: 1;
  margin-top: -55px;
}

.below-entered-container-hidden {
  max-height: 0px;
  overflow: hidden;
  opacity: 0;
}

#message-container {
  display: flex;
  margin-top: -30px;
}

#message {
  display: inline-block;
  position: relative;
  top: 0px;
  opacity: 0;
  height: auto;
  margin: 16px auto 8px auto;
  padding: 6px 8px;
  text-align: center;
  font-weight: 300;
  transition: opacity 0.25s;
}

.message-bad {
  color: white;
  outline: none;
  background-color: var(--color-message-bad);
  animation: shake 1s;
}

.message-good {
  color: black;
  outline: 1px solid var(--color-dark-gray);
  background-color: white;
  animation: drift 2s;
}

.message-pangram {
  color: black;
  outline: none;
  background-color: var(--color-highlight);
  animation: drift 2s;
}

#entry-container {
  display: flex;
  align-items: center;
  height: 2em;
  width: 100%;
  margin: 9px auto;
  text-align: center;
}

#entry-container-holder {
  display: inline-block;
  margin: 0px auto;
  vertical-align: middle;
  font-size: 1.8em;
}

#entry-container-holder::after {
  content: "";
  display: inline-block;
  position: relative;
  right: -4px;
  top: 6px;
  width: 2px;
  height: 1.2em;
  background: var(--color-highlight);
  animation: blink 1s step-start 0s infinite;
}

#keys-container {
  margin: 16px auto;
  width: 285px;
  height: 245px;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  text-align: center;
  align-items: center;
}

.keys {
  height: 1em;
  flex: 0 0 36%;
  font-size: 5em;
  color: var(--color-highlight);
}

.keys-spacer {
  flex-basis: calc(100% / 6);
}

.keys-letter {
  display: flex;
  height: 80px;
  flex-basis: calc(100% / 3);
  justify-content: center;
  text-align: center;
  align-items: center;
}

.keys-button {
  width: 87%;
  height: 100%;
  vertical-align: middle;
  text-align: center;
  outline: none;
  border: none;
  border-radius: 50%;
  color: var(--button-color);
  background-color: var(--button-background);
  border: 1px solid var(--button-border);
  font-size: 1.8em;
  font-weight: 700;
  transition: color 0.3s linear, width 0.1s, height 0.1s;
}

.keys-button-middle {
  background-color: var(--color-transparent);
  border: 1px solid var(--color-highlight);
  color: var(--color-highlight);
  font-size: 1.8em;
}

.keys-button:active {
  width: 68%;
  height: 80%;
  background-color: var(--color-gray-emphasis);
}

.keys-button-middle {
  border: 1px solid var(--button-border-middle);
  color: var(--color-keys-button-middle);
  background-color: var(--color-keys-button-middle-bg);
}

.keys-button-middle:active {
  background-color: var(--color-highlight-dark);
}

@keyframes keys-button-press {
  50% {
    touch-action: manipulation;
    transform: scale(0.8);
    background-color: var(--color-gray-emphasis);
  }
}

@keyframes keys-button-middle-press {
  50% {
    touch-action: manipulation;
    transform: scale(0.8);
    background-color: var(--color-highlight-dark);
  }
}

@keyframes nav-button-press {
  50% {
    background-color: var(--color-gray-emphasis)
  }
}

#buttons-container {
  max-width: 300px;
  width: 95%;
  margin: 20px auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

#buttons-container-copy {
  max-width: 400px;
  width: 95%;
  margin-top: -18px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-right: auto;
  margin-left: auto;
}


.nav-button {
  height: 50px;
  border: 1px solid var(--color-dark-gray);
  border-radius: 16px;
  padding: 12px 20px;
  outline: none;
  color: var(--color-black);
  background-color: var(--color-transparent);
  font-size: 1.2em;
}

.nav-button:hover:active {
  background-color: var(--color-gray-emphasis);
}

.word-button {
  height: 35px;
  border-radius: 16px;
  width: 200px;
  border: none;
  text-align: center;
  outline: none;
  background-color: var(--color-transparent);
  font-size: 0.9em;
  color: black;
}

.word-button:hover:active {
  background-color: var(--color-gray-emphasis);
}


#button-shuffle-container {
  width: 50px;
  height: 50px;
  position: relative;
}

#button-shuffle-img,
#button-shuffle {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0px;
  left: 0px;
}

#button-shuffle-img {
  background: url(img/shuffle.svg) center no-repeat;
  background-size: 40%;
  text-align: center;
  pointer-events: none;
}

#button-shuffle:hover:active {
  background-color: var(--color-gray-emphasis);
}

#popup-click-bg {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

.popup {
  display: flex;
  align-items: flex-start;
  position: absolute;
  width: 90%;
  max-width: 300px;
  max-height: 90%;
  height: auto;
  overflow: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-background);
  border-radius: 8px;
  border: 1px solid var(--color-dark-gray);
  box-shadow: 0 4px 24px var(--color-gray);
  z-index: 999;
}

.popup-content {
  display: flex;
  max-width: 90%;
  flex-wrap: wrap;
  flex-grow: 9;
  padding: 12px;
}

#popup-content-alt {
  width: 100%;
  height: 100%;
  text-align: center;
}

#popup-exit {
  display: flex;
  width: 12px;
  min-width: 12px;
  height: 12px;
  flex-grow: 1;
  flex-basis: 10%;
  position: relative;
  top: 15px;
  right: 15px;
  background: url(img/exit.svg) center no-repeat;
  background-size: contain;
  outline: none;
  transition: transform 0.2s;
}

#popup-exit-alt {
  position: absolute;
  width: 12px;
  min-width: 12px;
  height: 12px;
  top: 15px;
  right: 15px;
  background: url(img/exit.svg) center no-repeat;
  background-size: contain;
  outline: none;
  transition: transform 0.2s;
}

.popup-heading {
  margin: 0px auto 10px auto;
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
  font-size: 1.2em;
  flex-basis: 100%;
}

.popup-content-text {
  width: 100%;
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
  font-size: 0.9em;
  color: var(--color-text-gray);
}

.return-popup-header {
  margin-top: 35px;
}

#victory-img,
#all-img {
  margin: 50px auto 0px auto;
  width: 50%;
}

#victory-text,
#victory-countdown,
#return-text,
#return-countdown,
#all-text,
#all-countdown {
  width: 70%;
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
  color: var(--color-text-gray);
}

#victory-text,
#return-text,
#all-text {
  margin: 10px auto 20px auto;
}

#victory-countdown,
#return-countdown,
#all-countdown {
  margin: 10px auto 40px auto;
}

#victory-countdown-span,
#return-countdown-span,
#all-countdown-span {
  color: var(--color-highlight);
}

#prev-letters-container {
  margin: 10px auto 0px auto;
  text-align: center;
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--color-text-gray);
}

.prev-entered-letter {
  font-size: 1.0em;
  margin: 0px 3px;
}

#prev-stats {
  margin: 0px auto 15px auto;
  text-align: center;
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
  font-size: 0.9em;
  font-weight: 700;
  color: var(--color-text-gray);
}

#prev-words-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0px auto 16px auto;
}

.prev-entered-word,
.prev-entered-word a {
  font-size: 1.0em;
  margin: 1px 2px;
  padding: 0px 2px;
  text-decoration: none;
}

#reset-text {
  margin: 10px auto 30px auto;
  width: 70%;
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
  color: var(--color-text-gray);
}

.reset-button {
  border: 1px solid var(--color-dark-gray);
  border-radius: 8px;
  margin: 0px auto 30px auto;
  padding: 8px 16px;
  outline: none;
  color: var(--color-black);
  background-color: var(--color-transparent);
  font-size: 0.9em;
  font-weight: bold;
}

.reset-button:hover:active {
  background-color: var(--color-gray-emphasis);
}

.reset-button-action {
  color: black;
  background-color: var(--color-highlight);
}

.reset-button-action:hover:active {
  background-color: var(--color-highlight-dark);
}

.blur {
  filter: blur(8px);
}

.hidden {
  display: none;
}

.bolded {
  font-weight: 700;
}

.highlight {
  color: var(--color-highlight);
}

.highlight-background {
  background-color: var(--color-highlight);
}

.invalid {
  color: var(--color-invalid);
}

.bold {
  font-weight: bold;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@-webkit-keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

@keyframes drift {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-10px);
  }
}

#entered-toggle,
#popup-exit,
#popup-exit-alt {
  filter: invert(var(--invert));
}

#button-shuffle-img {
  filter: brightness(var(--bright));
}

.dark {
  --color-highlight: #F09192;
  --color-highlight-dark: #ffa31a;
  --color-invalid: #414141;
  --color-gray: #c6c6c6;
  --color-gray-emphasis: #d9d9d9;
  --color-dark-gray: #ccc;
  --color-text-gray: #bbb;
  --color-text-gray-highlight: #444;
  --color-transparent: #00000000;
  --color-black: rgb(250, 250, 250);
  --color-message-bad: #222;
  --color-background: black;
  --link-color: #ddd;
  background-color: var(--color-background);
  color: #ccc;

  --invert: 1;
  --bright: 1000;

  --color-keys-button-middle: var(--color-highlight);
  --color-keys-button-middle-bg: black;
  --button-background: var(--color-transparent);
  --button-border: var(--color-gray);
  --button-border-middle: var(--color-highlight);
  --button-color: black;
}





.home-container {
  width: 100%;
  display: flex;
  overflow: auto;
  min-height: 100vh;
  align-items: center;
  flex-direction: column;
  padding-top: 25px;
}

.home-banner {
  width: 100%;
  border: 2px dashed rgba(120, 120, 120, 0.4);
  display: flex;
  padding: var(--dl-space-space-threeunits);
  align-items: center;
  border-color: rgba(120, 120, 120, 0.4);
  border-style: dashed;
  border-width: 0px;
  flex-direction: column;
  justify-content: space-between;
}


.home-banner1 {
  width: 100%;
  display: flex;
  padding: var(--dl-space-space-threeunits);
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fcf3cb;
}


.home-banner2 {
  width: 100%;
  display: flex;
  padding: var(--dl-space-space-threeunits);
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f5f7fb;
}



.bee-h3 {
 font-family: "Clear Sans", Verdana, Arial, sans-serif;
 font-size: 1.8em;
 font-weight: bolder;
 text-align: center;
}


.bee-h4 {
 font-family: "Clear Sans", Verdana, Arial, sans-serif;
 font-size: 0.9em;
 font-weight: 500;
 line-height: 1.8em;
 text-align: center;
 max-width: 800px;
 padding-bottom: 10px;
 border-right: 10px;
 border-right-style: solid;
 border-right-color: #fcf3cb;
 border-left: 10px;
 border-left-style: solid;
 border-left-color: #fcf3cb;
}

.bee-h5 {
 font-family: "Clear Sans", Verdana, Arial, sans-serif;
 font-size: 1em;
 font-weight: 400;
 line-height: 1.5em;
 text-align: center;
 max-width: 800px;
 padding-bottom: 10px;
 border-right: 10px;
 border-right-style: solid;
 border-right-color: #f5f7fb;
 border-left: 10px;
 border-left-style: solid;
 border-left-color: #f5f7fb;
}

.bee-h6 {
 font-family: "Clear Sans", Verdana, Arial, sans-serif;
 font-size: 1em;
 font-weight: 400;
 line-height: 1.5em;
 text-align: center;
 max-width: 800px;
 padding-bottom: 10px;
 border-right: 10px;
 border-right-style: solid;
 border-right-color: #fcf3cb;
 border-left: 10px;
 border-left-style: solid;
 border-left-color: #fcf3cb;
}


.dropbtn {
  background-color: inherit;
  color: inherit;
  padding: 10px;
  font-size: 0.9em;
  border: none;
  cursor: pointer;
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
  font-weight: bold;
}

.dropbtn:hover, .dropbtn:focus {
  background-color: none;
}

.dropdown {
  float: right;
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 180px;
  overflow: auto;
  right: 0;
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
  z-index: 1;
  border-style: solid;
  border-color: silver;
  border-width: 1px;
  font-size: 0.9em;
  text-align: left;
  font-weight: bold;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}

.solid {
  border: 0.5px solid #bbb;
}

#snackbar {
  visibility: hidden;
  max-width: 200px;
  margin-left: -50px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 130px;
  font-size: 15px;
  font-family: "Clear Sans", Verdana, Arial, sans-serif;
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;} 
  to {bottom: 130px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 130px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 130px; opacity: 1;} 
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 130px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}