/* colours */
:root{
  --primary: #fff;
  --secondary: #f1f1f1;

  --text: #000;
  --textdark: #fff;

  --body: #fff;
  --bodydark: #2d2d2d;

  --border: grey;

  --correct: #29c21b;
  --exists: #f07e21;
  --absent: #777777;

  --correctHigh: #0ea800;
  --existsHigh: #00a6ff;

  --transition-effects: color 1s ease, background-color 1s ease;

}

html {
  touch-action: manipulation;
  background: var(--body);
  color: var(--text);
  color-scheme: light;
  height: 100%;
  margin: 0;
}

html.dark {
  background: var(--bodydark);
  color: var(--textdark);
  color-scheme: dark;
}

body {
  touch-action: manipulation;
  position: relative;
  min-height: 90vh;
  height: 90vh;
  max-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

h1 {
  font-size: 25px;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande','Lucida Sans', Arial, sans-serif;
  font-weight: 700;
  text-align: center;
}

input{
  color: var(--text);
}

input.dark{
  color: var(--textdark);
}

#toast-container{
  top: 5% !important;
  /* right: auto !important; */
  bottom: auto !important;
  /* left: 7%; */
}

.page-title {
  line-height: 20px;
  margin-top: 3px;
  margin-bottom: 3px;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-size: 18px;
  /* text-transform: uppercase; */
  text-align: center;
}

/* layout styles */
nav{
  background: var(--body) !important;
  border-bottom: 2px solid var(--border) !important;
  width: 100%;
  /* max-width: 500px; */
  height: 56px;
  line-height: 56px;
}

nav .container {
  margin: 0 auto;
  max-width: 1280px;
  width: 100%!important;
}

nav.dark{
  background: var(--bodydark) !important;
  border-bottom: 2px solid var(--border) !important;
}

nav a{
  text-transform: uppercase;
  color: var(--text) !important;
}

nav.dark a{
  color: var(--textdark) !important;
}

nav a span{
  font-weight: bold;
}

nav .sidenav-trigger{
  margin: 0;
}

.sidenav{
  width: 250px !important;
}

.sidenav li>a>i.material-icons {
  float: left !important;
  height: 48px !important;
  line-height: 48px !important;
  margin: 0 12px 0 0 !important;
}

#side-menu.dark{
  background-color: var(--bodydark);
  color: var(--textdark);
}

#side-menu.dark li a{
  color: var(--textdark) !important;
}

.sidenav li>a>i.material-icons.dark {
  color: var(--textdark) !important;
}

.row {
  margin-bottom: 10px !important;
}

.page-footer {
  width: 100% !important;
  padding-top: 0px  !important;
  color: #fff !important;
  background-color: #2d2d2d !important;
}

.material-icons:after {
  content: attr(data-icon);
}

i.material-icons.dark{
  color: var(--textdark);
}

.btn-small{
  background-color: var(--correct) !important;
}

.collapsible.dark{
  background-color: var(--bodydark);
  color: var(--textdark);
}

.collapsible-header.dark{
  background-color: var(--bodydark);
  color: var(--textdark);
}

#side-menu_signin
{
  display: block;
}

#side-menu_signout
{
  display: block;
}

#game-board {
  margin-top: 5px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.letter-box {
  border: 2px solid grey;
  border-radius: 3px;
  margin: 2px;
  height: 3rem;
  width: 3rem;
  min-width: 2rem;
  max-width: 3rem;
  display: flex;
  flex: 1 1;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  font-size: 2.5rem;
  font-weight: 500;
}

@media only screen and (max-width: 440px)
{
  .letter-box {
    border: 1px solid grey;
    border-radius: 3px;
    margin: 1px;
    height: 2.75rem;
    width: 2.75rem;
    font-size: 2.25em;
  }
}

@media only screen and (max-width: 400px)
{
  .letter-box {
    border: 1px solid grey;
    border-radius: 3px;
    margin: 1px;
    height: 2.75rem;
    width: 2.75rem;
    font-size: 2.25em;
  }
}

@media only screen and (max-width: 360px)
{
  .letter-box {
    border: 1px solid grey;
    border-radius: 3px;
    margin: 1px;
    height: 2.5rem;
    width: 2.5rem;
    font-size: 2em;
  }
}

@media only screen and (max-width: 320px)
{
  .letter-box {
    border: 1px solid grey;
    border-radius: 3px;
    margin: 1px;
    height: 2.25rem;
    width: 2.25rem;
    font-size: 1.75em;
  }
}

@media only screen and (max-width: 280px)
{
  .letter-box {
    border: 1px solid grey;
    border-radius: 3px;
    margin: 1px;
    height: 2rem;
    width: 2rem;
    font-size: 1.5em;
  }
}

@media only screen and (max-width: 240px)
{
  .letter-box {
    border: 1px solid grey;
    border-radius: 3px;
    margin: 1px;
    height: 1.75rem;
    width: 1.75rem;
    font-size: 1.5em;
  }
}

.filled-box {
  border: 2px solid darkgrey;
}

.letter-row, .info-row{
  align-items: center;
  display: flex;
  justify-content: center;
}



.kb-row-play {
  /* width: 100%; */
  /* height:80px; */
  margin: 0.5rem 0;
}

.play-button {
  touch-action: manipulation;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

/* .play-icon{
  font-size: 3rem !important;
} */

#keyboard-cont {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  bottom: 0;
}

#keyboard-cont div {
  display: flex;
}

.kb-row-2 {
  margin: 0.5rem 0;
}

#keyboard-cont .kb-row-play .keyboard-button:nth-child(1),
#keyboard-cont .kb-row-play .keyboard-button:nth-child(2) {
  width: 100%;
}

.keyboard-button {
  touch-action: manipulation;
  width: 30px;
  height: 50px;
  background-color: transparent;
  border-radius: 4px;
  border: 2px solid grey;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem;
  margin: 0 2px;
  cursor: pointer;
  text-transform: uppercase;
}

@media only screen and (max-width: 320px)
{
  .keyboard-button {
    touch-action: manipulation;
    width: 22px;
    height: 40px;
    background-color: transparent;
    border-radius: 4px;
    border: 2px solid grey;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.3rem;
    margin: 0 2px;
    cursor: pointer;
    text-transform: uppercase;
  }
}

.key-container button:nth-child(11) {
  margin-left: 30px;
}

#keyboard-cont .kb-row-3 .keyboard-button:nth-child(1),
#keyboard-cont .kb-row-3 .keyboard-button:nth-child(9) {
  width: 55px;
}

@media only screen and (max-width: 320px)
{
  .key-container button:nth-child(11) {
    margin-left: 20px;
  }
  
  #keyboard-cont .kb-row-3 .keyboard-button:nth-child(1),
  #keyboard-cont .kb-row-3 .keyboard-button:nth-child(9) {
    width: 40px;
  }
}

.message-container{
  height: 30px;
  padding: 0px;
  margin-top: 5px;
  margin-bottom: 5px;
  z-index: 99;
  box-shadow: 0 3px 20px 0 rgb(0 0 0 / 15%);
}

.message-container p{
  border-radius: 10px;
  padding: 5px;
  margin: 0;
  text-align: center;
  background-color: var(--secondary);
  color: var(--text);
}

.info-ul:not(.browser-default)>li {
  list-style-type: square !important;
}

.modal {
  max-height: 90% !important;
  background-color: var(--body) !important;
  color: var(--text) !important;
}

.modal.dark {
  background-color: var(--bodydark) !important;
  color: var(--textdark) !important;
}

@media only screen and (max-width: 2560px)
{
  .modal {
    max-width: 340px !important;
}
}

@media only screen and (max-width: 992px){
  .modal {
      width: 90% !important;
  }
}


.modal-close-icon {
  background: none;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  position: absolute;
  top: 16px;
  right: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

.modal_title {
  line-height: 20px;
  margin-top: 15px;
  margin-bottom: 10px;
  padding-top: 15px;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  text-align: center;
}

.modal_subtitle {
  line-height: 15px;
  margin-top: 15px;
  margin-bottom: 10px;
  padding-top: 15px;
  letter-spacing: 0.05em;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  text-align: center;
}

.stats-modal_statistics {
  display: flex;
}

.stats-modal_statisticContainer {
  flex: 1;
  margin-left: 12px;
}

.stats-modal_statisticContainer:last-child {
  margin-right: 12px;
}

.stats-modal_statisticContainer .stats-modal_statistic {
  font-size: 27px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.05em;
  font-variant-numeric: proportional-nums;
  line-height: 36px;
}

.stats-modal_statisticContainer .stats-modal_label {
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 14px;
  letter-spacing: 0.1em;
}

#guess-dataset {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  max-height: 200px;
  margin: 0 auto;
}

#guess-dataset table caption{
  color: #000;
}

#guess-dataset .column {
  height: 150px;
  max-height: 150px;
  width: 300px;
  max-width: 300px;
}

#guess-dataset .column .data{
  color: #fff;  
  /* margin: 5px; */
}

#guess-dataset tr th{
  color: #777;
}

#guess-dataset tr td{
  max-width: 50px;
  background-color: #777;
  margin-bottom: 5px;
  /* height: fit-content; */
}

.stats-modal_guessDistribution {
  width: 90%;
  align-content: center;
}

.stats-modal_graphContainer {
  width: 100%;
  height: 18px;
  display: flex;
  align-items: center;
  padding-bottom: 4px;
  font-size: 14px;
  line-height: 20px;
}

.stats-modal_guess {
  font-weight: bold;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.1em;
}

.stats-modal_graphContainer .stats-modal_graph {
  width: 100%;
  height: 100%;
  padding-left: 4px;
}

.stats-modal_graphContainer .stats-modal_graph .stats-modal_graphBar {
  height: 100%;
  width: 0%;
  position: relative;
  background-color: var(--absent);
  display: flex;
  justify-content: center;
}

.stats-modal_graphContainer .stats-modal_graph .stats-modal_numGuesses {
  font-weight: bold;
  color: var(--text);
  font-size: 12px;
  line-height: 14px;
}

.bottom-container{
  touch-action: manipulation;
  width: 100%;
}

@media screen and (min-width: 1201px) 
{
  #banner {
    width: 100%;
    max-width: 667px !important;
    height: 104px;
    max-height: 104px !important;
    overflow: hidden;
    position: relative;
    bottom: 0;
  }
}

@media screen and (max-width: 1200px) 
{
  #banner {
    width: 100%;
    max-width: 667px !important;
    height: 104px;
    max-height: 104px !important;
    overflow: hidden;
    position: relative;
    bottom: 0;
  }
}

@media screen and (min-width: 1025px) 
{
  #banner {
    width: 100%;
    max-width: 667px !important;
    height: 104px;
    max-height: 104px !important;
    overflow: hidden;
    position: relative;
    bottom: 0;
  }
}

@media screen and (max-width: 1024px) 
{
  #banner {
    width: 100%;
    max-width: 667px !important;
    height: 104px;
    max-height: 104px !important;
    overflow: hidden;
    position: relative;
    bottom: 0;
  }
}

@media screen and (min-width: 769px) 
{
  #banner {
    width: 100%;
    max-width: 667px !important;
    height: 104px;
    max-height: 104px !important;
    overflow: hidden;
    position: relative;
    bottom: 0;
  }
}

@media screen and (max-width: 768px) 
{
  #banner {
    width: 100%;
    max-width: 667px !important;
    height: 104px;
    max-height: 104px !important;
    overflow: hidden;
    position: relative;
    bottom: 0;
  }
}

@media screen and (min-width: 481px ) 
{
  #banner {
    width: 100%;
    max-width: 460px !important;
    height: 72px;
    max-height: 72px !important;
    overflow: hidden;
    position: relative;
    bottom: 0;
  }
}

@media screen and (max-width: 480px) 
{
  #banner {
    width: 100%;
    max-width: 460px !important;
    height: 72px;
    max-height: 72px !important;
    overflow: hidden;
    position: relative;
    bottom: 0;
  }
}

@media screen and (max-width: 320px) 
{
  #banner {
    width: 100%;
    max-width: 300px !important;
    height: 46px;
    max-height: 46px !important;
    overflow: hidden;
    position: relative;
    bottom: 0;
  }
}

/* .bannerLink {
  width: 100%;
  height: 100%;
  position: absolute;
  display: block;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.bannerImage {
  width: 100%;
  height: 100%;
  position: absolute;
} */


/* animations */

.scale-board {
  animation: 0.75s linear scaling;
}


@keyframes scaling {
  0% {
      transform: scale(100%);
  }
  50% {
      transform: scale(110%);
  }
  100% {
      transform: scale(100%);
  }
}

.scale-box {
  animation: 0.3s linear scaling;
}


@keyframes scaling {
  0% {
      transform: scale(100%);
  }
  50% {
      transform: scale(110%);
  }
  100% {
      transform: scale(100%);
  }
}

.flip-box {
  -webkit-animation: flipping 0.4s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
	        animation: flipping 0.4s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@-webkit-keyframes flipping {
  0% {
      transform: rotateX(0deg);
  }
  50% {
      transform: rotateX(90deg);
  }
  100% {
      transform: rotateX(0deg);
  }
}

@keyframes flipping {
  0% {
      transform: rotateX(0deg);
  }
  50% {
      transform: rotateX(90deg);
  }
  100% {
      transform: rotateX(0deg);
  }
}

 /* @-webkit-keyframes flipping {
  0% {
    -webkit-transform: translateY(0) rotateX(0);
            transform: translateY(0) rotateX(0);
    -webkit-transform-origin: 25% 0%;
            transform-origin: 25% 0%;
  }
  50% {
    -webkit-transform: translateY(-100%) rotateX(-180deg);
            transform: translateY(-100%) rotateX(-180deg);
    -webkit-transform-origin: 25% 75%;
            transform-origin: 25% 75%;
  }
  100% {
    -webkit-transform: translateY(0) rotateX(-360deg);
            transform: translateY(0) rotateX(-360deg);
    -webkit-transform-origin: 75% 100%;
            transform-origin: 75% 100%;
  }
}

@keyframes flipping {
  0% {
    -webkit-transform: translateY(0) rotateX(0);
            transform: translateY(0) rotateX(0);
    -webkit-transform-origin: 25% 0%;
            transform-origin: 25% 0%;
  }
  50% {
    -webkit-transform: translateY(-100%) rotateX(-180deg);
            transform: translateY(-100%) rotateX(-180deg);
    -webkit-transform-origin: 25% 75%;
            transform-origin: 25% 75%;
  }
  100% {
    -webkit-transform: translateY(0) rotateX(-360deg);
            transform: translateY(0) rotateX(-360deg);
    -webkit-transform-origin: 75% 100%;
            transform-origin: 75% 100%;
  }
} */

 .shake-row {
  animation: shaking 0.5s;
}

@-webkit-keyframes shaking {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes shaking {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}