* {
  margin: 0;
  padding: 0;
}

@keyframes animateGreen {
  from {background-color: rgb(200,200,200);}
  to {background-color: rgb(133,196,67);}
}

@keyframes animateYellow {
  from {background-color: rgb(200,200,200);}
  to {background-color: yellow;}
}

@keyframes animateGray {
  from {background-color: rgb(200,200,200);}
  to {background-color: rgb(120,120,120);}
}

html,
body {
  height: 100%;
  font-family: "Lucida Grande", Geneva, Verdana, sans-serif;
  background-color: white;

}

table thead {
    font-size:.75rem;
}
table th {
    max-width: 50px;
}

table td {
    word-wrap: break-word;
    max-width: 50px;
}

.gameFeedback {
    position: fixed;
    font-family: inherit;
    font-weight: bold;
    font-size: 1.5rem;
    display: none;
    /*width:70%;*/
    height:100%
    border: 0;
    padding: 0;
    background-color: rgba(255,108,12,0.70); 
    z-index: 1;
    text-align: center;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

table, th, td {
    border: 2px solid black;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-collapse: collapse;
}

#helpOverlay{
    position: fixed;
    display: none;
    max-width:500px;
    font-size:1rem;
    background-color: rgba(0,168,225,0.95);
    text-align: center;
    justify-content: center;
    align-items: center;
    z-index: 2;

}

#leaderboardOverlay{
    position: fixed;
    width:100%;
    display: none;
    max-width:500px;
    font-size:1rem;
    background-color: rgba(0,168,225,0.95);
    text-align: center;
    justify-content: center;
    align-items: center;
    z-index: 2;

}

#loginDiv {
    display: grid;
    grid-template-columns: 115px 150px;
    grid-template-rows: 30px 30px;
    grid-gap: 1px;
    font-size: 1.2rem;
}

input {
    font-size: 1.2rem;
}


#loginOverlay{
    position: fixed;
    display: none;
    max-width:500px;
    font-size:1rem;
    background-color: rgba(0,168,225,0.95);
    text-align: center;
    justify-content: center;
    align-items: left;
    z-index: 2;

}

#game {
    width: 100%;
    height: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

#game-title {
    width: 100%;
    justify-content:center;
    color: rgb(133,196,67);
    font-size: 2.0rem;
    font-weight: bold;
    text-align: center;
    font-family: "Lucida Grande", Geneva, Verdana, sans-serif;
    border-bottom: 1px solid black;
    border-top: 1px solid black;
    display: flex;
    align-items: center;
}



#board-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

#board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 1px;
    box-sizing: border-box;
    justify-content: center;
}

.square {
    border: 2px solid black;
    min-width: 50px;
    min-height: 50px;
    font-size: 48px;
    display: flex;
    font-weight: bold;
    color: rgb(200,200,200);
    text-transform: uppercase;
    justify-content: center;
    align-items: center;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 8px;
  touch-action: manipulation;
}

.keyboard-row button {
  font-family: inherit;
  font-weight: bold;
  border: 0;
  padding: 0;
  height: 58px;
  cursor: pointer;
  background-color: rgb(200, 200, 200);
  color: black;
  flex-grow: 1;
  text-transform: uppercase;
  margin-right: 6px;
  border-radius: 4px;
  user-select: none;
}

.keyboard-row button.wide-button {
  flex-grow: 1.5;
}

.spacer-half {
  flex-grow: 0.5;
}

.helpButton {
  vertical-align:middle;
  background-color: white;
  border:1px solid black;
  /*line-height:58px;*/
  width:20px;
  height:20px;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  margin: 10px;
}

.helpButtonIcon {
  vertical-align:middle;
  background-color: white;
  border:1px solid black;
  width:15px;
  height:15px;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  margin: 1px;
}

#helpoffset {
    visibility: hidden;
}
