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: inline-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: inline-flex;
  flex-direction: column;
}

header {
  display: inline-flex;
  align-items: center;
  justify-content: space-between; 
  border-bottom: 1px solid rgb(58, 58, 60);
}


.swal-title {
  margin: 0px;
  font-size: 20px;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.21);
  margin-bottom: 28px;
}
.swal-text {
  background-color: #058226 ; 
  font-size: 20px;
  /** padding: 17px; **/
  border: 1px solid #F0E1A1;
  display: block;
  margin: 22px;
  text-align: center;
  color: #FFFFFF;
}


.swal-content{
  max-height: 12em;  /* To be adjusted as you like */
  overflow-y: scroll;
  width: 100%;
}

#help,
#clue {
  color: rgb(58, 58, 60);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

.title {
  color: black;
  /** font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif; **/
  font-size: 3.0rem; 
  font-weight: bold;
  margin: 0.4rem 0 0.4rem 0; 
  /** margin: 0 auto; **/
  text-align: center;
    background-color: greenyellow;
}
th {
  border-radius: 25px;
  background-color: navy;
}

@media only screen and (max-width: 480px) {
  .title {
    font-size: 1.5rem;
  }
}

#board-container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
  flex-direction: column;
float: left;
}

#final-score {
  color: gainsboro;
}

#board {
  display: inline-grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 2px;
  padding: 2px; */
  /* box-sizing: border-box; */
  float: left;
}

#pattern-container {
  display:  inline-flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1; 
  overflow: hidden;
  flex-direction: column;
  float: left;
}

#pattern {
  display: inline-grid; 
  grid-template-columns: repeat(5,1fr);
  grid-column-gap: 31px;
  grid-row-gap: 0px;
  /*padding: 10px; */
  float: left;
}

.ptn {
  /* border: 2px solid rgb(58, 58, 60); */
   border-radius: 50%;
  min-width: 30px;
  min-height: 30px;
  font-size: 18px;
  font-weight: bold;
  background-color: rgb(138,43,226);
  color: rgb(255,255,255);
  text-transform: uppercase;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  float: left;
}


.row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 5px;
}

.square {
  border: 2px solid rgb(58, 58, 60);
  min-width: 56px;
  min-height: 56px;
  display: inline-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; */
  float: left;
  color: black / ** gainsboro **/ ;
  text-transform: uppercase;
  user-select: none;
}

.square.black-tile-letter {
  background-color: rgb(58, 58, 60);
  border-color: rgb(58, 58, 60);
  color: white;
}

.square.yellow-tile-letter {
  background-color: rgb(181, 159, 59);
  border-color: rgb(181, 159, 59);
    color: white;
}

.square.green-tile-letter{
  background-color: rgb(83, 141, 78);
  border-color: rgb(83, 141, 78);
    color: white;
}

.square.yellow-black-tile-letter {

  background: linear-gradient(to right bottom, #B59F3B  50%, #3A3A3C 50.3%);
  color: white;
   /* background-color: blue;
    border-color: rgb(181, 159, 59);
    color: white; */
}

@media only screen and (max-width: 400px) {
  .square {
    min-width: 15vw;
    min-height: 15vw;
  }
}

#keyboard-container {
  height: 168px; 
  grid-row-gap: 0px;
  align-items: center;
  padding-left: 16px;
}

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

.keyboard-row button {
  font-family: inherit;
  font-weight: bold;
  border: 0;
  padding: 0;
  margin-right: 6px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  background-color: rgb(129, 131, 132);
  color: rgb(215, 218, 220);
  flex-grow: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
    vertical-align: middle;
  text-transform: uppercase;

}

.keyboard-row button.wide-button-enter {
  flex-grow: 1.5;
  background-color: rgb(0,255,0);
  color: rgb(0,0,0);
}

.keyboard-row button.wide-button-del {
  flex-grow: 1.5;
  background-color: rgb(255,0,0);
  color: rgb(0,0,0);
}

.keyboard-button:hover {
  transform: scale(2);
  background-color: rgb(0,0,255);
}

.keyboard-row button.black-tile-letter {
  background-color: rgb(58, 58, 60);
}

.keyboard-row button.yellow-tile-letter  {
  background-color: rgb(181, 159, 59);
}

.keyboard-row button.green-tile-letter {
  background-color: rgb(83, 141, 78);
}

/** .keyboard-row button.family-letter {
    background: linear-gradient(to right bottom, #B59F3B  50%, #3A3A3C 50.3%);
} **/

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

.dim {
    /* For Internet Explorer */
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, .3);
      
    /* For other browsers */
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .3);
}

.grayit {
  filter: grayscale(100%) opacity(50%) blur(5px);
}

.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;
  font-size: 1.3em;
  max-width: 500px;
  max-height: 28em;
  overflow-y: scroll;
}

.modal-content hr {
  border: 1px solid rgb(255,255,255);
      color: gainsboro;
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: green;
  /* text-decoration: none; */
  cursor: pointer;
}

#sollu-example{
    display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  
}


#green-tile{
  width: 50px;
  height: 50px;
  background-color: rgb(83, 141, 78);
  border-color: rgb(83, 141, 78); 
  border: white solid 1px;
  outline: white solid 1px;
}
#yellow-tile{
  width: 50px;
  height: 50px;
  background-color: rgb(181, 159, 59);
  border-color: rgb(181, 159, 59);
  border: white solid 1px;
  outline: white solid 1px;  
}
#yellow-black-tile{
  width: 50px;
  height: 50px;
  background: linear-gradient(to right bottom, #B59F3B  50%, #3A3A3C 50.3%);
  border: white solid 1px;
  outline: white solid 1px;  
}

#black-tile{
  width: 50px;
  height: 50px;
  background-color: rgb(58, 58, 60);
  border-color: rgb(58, 58, 60);
  border: white solid 1px;
  outline: white solid 1px;  
}

.hidden {
  display: none;
}
