html,
body {
  height: 100%;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

#container {
  display: flex;
  background-color: rgb(18, 18, 19);
  align-items: center;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

#game {
  width: 95%;
  max-width: 500px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(58, 58, 60);
}

#help,
#stats {
  /* color: rgb(58, 58, 60); */
  color: rgb(135,206,235);
  font-size: 1.5rem;
  cursor: pointer;
}

.title {
  /* color: gainsboro; */
  color: turquoise;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  font-size: 2.3rem;
  font-weight: bold;
  margin: 0.4rem 0 0.4rem 0;
  text-align: center;
}

@media only screen and (max-width: 480px) {
  .title {
    font-size: 1.5rem;
  }
}

#board-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
  flex-direction: column;
}

#final-score {
  color: gainsboro;
}

#board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* 4 digits */
  grid-gap: 5px;
  padding: 10px;
  box-sizing: border-box;
}

.row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 5px;
}

.square {
  border: 2px solid rgb(58, 58, 60);
  display: inline-block;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 50px;
  cursor: pointer;

  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  line-height: 2rem;
  font-weight: bold;
  vertical-align: middle;
  box-sizing: border-box;
  color: gainsboro;
  text-transform: uppercase;
  user-select: none;
}

.square.incorrect-letter {
  background-color: rgb(58, 58, 60);
  border-color: rgb(58, 58, 60);
}

.square.correct-letter {
  background-color: rgb(181, 159, 59);
  border-color: rgb(181, 159, 59);
}

.square.correct-letter-in-place {
  background-color: rgb(83, 141, 78);
  border-color: rgb(83, 141, 78);
}

@media only screen and (max-width: 400px) {
  .square {
    min-width: 13vw;
    min-height: 13vw;
  }
}

#keyboard-container {
  height: 150px;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 8px;
  touch-action: manipulation;
}

.keyboard-row button {
  font-size: 20px;	
	
  font-family: inherit;
  font-weight: bold;
  border: 0;
  padding: 0;
  margin-right: 6px;
  height: 58px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  background-color: rgb(129, 131, 132);
  color: rgb(215, 218, 220);
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
}

.keyboard-row button.wide-button {
  flex-grow: 1.5;
}

.keyboard-row button.incorrect-letter {
  background-color: rgb(58, 58, 60);
}

.keyboard-row button.correct-letter {
  background-color: rgb(181, 159, 59);
}

.keyboard-row button.correct-letter-in-place {
  background-color: rgb(83, 141, 78);
}

.spacer-half {
  flex-grow: 0.5;
}

.spacer-seven {
  flex-grow: 7;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: rgb(18, 18, 19);
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  color: gainsboro;
  max-width: 500px;
  
  /* FK: add animation */
  animation-name: animatetop;
  animation-duration: 0.8s
}

.win-modal-content {
  background-color: rgb(18, 18, 19);
  margin: 5% auto;
  padding: 10px;
  width: 90%;
  color: gainsboro;
  max-width: 150px;
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* FK: add animation */
  animation-name: animatetop;
  animation-duration: 0.8s
}

.lose-modal-content {
  background-color: rgb(18, 18, 19);
  margin: 5% auto;
  padding: 10px;
  width: 90%;
  color: gainsboro;
  max-width: 150px;
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* FK: add animation */
  animation-name: animatetop;
  animation-duration: 0.8s
}

/* FK: Add Animation */
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

.modal-content hr {
  border: 1px solid rgb(58, 58, 60);
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#examples {
  width: 80%;
}

.hidden {
  display: none;
}

/*FK: added*/
.popupwin {
  visibility: hidden;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}



/* #total {display:inline-block; margin-right:80px;}  */
/* #wins {display:inline-block;}  */
/* #total-played {display:inline-block; margin-left:40px; margin-right:110px;}  */
/* #total-wins {display:inline-block;}  */

#total {display:inline-block; width:20%; padding:2px} 
/* #wins {display:inline-block;  width:20%; padding:2px}   */
#winpct {display:inline-block; width:20%; padding:2px} 
#streak {display:inline-block; width:20%; padding:2px}
#max_Streak {display:inline-block; width:20%; padding:2px} 

#total-played {display:inline-block; width:20%; margin-left:20px;} 
/* #total-wins {display:inline-block; width:20%;} */
#win-pct {display:inline-block; width:20%; padding:10px;} 
#current-streak {display:inline-block; width:20%;}
#max-streak {display:inline-block; width:20%;}  

/* https://stackoverflow.com/questions/9067892/how-to-align-two-elements-on-the-same-line-without-changing-html */

/* .stats-class { */
  /* display: flex; */
  /* justify-content: space-between; */
/* } */


.chart-container {
  width: 300px;
}


#messages.shown{
    opacity: 1;
}

#banner, #answer-banner {
    position: fixed;
    height: 70vh;
    width: 70%;
    background-color: rgba(0,0,0,0.8);
    z-index: 99;
    left: 15%;
    top: 20%;
    border-radius: 10px;
    color: yellow;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    display: none;
    font-size: 16px;
    text-align: center;
}
.banner-msg{
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.share {
    height: 30px;
    width: auto;
    padding: 10px;
    background: #a52a2a;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
	
	background-color: rgb(129, 131, 132);
    color: rgb(215, 218, 220);
}
.divider{
    height: 2px;
    width: 100%;
    display: block;
    background-color: #fff;
    margin: 10px 0 10px 0;
}



