
:root {
    --color-bg-incorrect: #b70000;
    --color-bg-correct: #1d7e05;
    --color-bg-partcorrect: rgb(238, 159, 0);
    --color-bg-skipped: #888;
    --color-bg-notused: #1d7e05; /*not used is success in this game*/
    --color-bg-blank: rgb(161, 161, 161);
  }
  


  #game { }

  #gamecontent { }

  #gamecanvas {
    /*border:solid 1px red;*/
    margin-bottom:0.2rem;
  }

  #gamecanvas img{
    /*-webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;*/
  }

  .hiddentile{
    background-color:var(--color-bg-blank); 

    /*transition:all 3s ease;*/
    opacity:1;
    transform: scaleX(-1) rotateY(-180deg);

  }

  .showntile{
    background-color:var(--color-bg-blank); 
    
    transition:all 1s ease-out;
    opacity:1;
    /*transform:rotate(1800deg);*/
    transform: scaleX(1) rotateY(0deg);
    transform-style: preserve-3d;



  }


  .finalimage img{
    /*
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 1s;*/

    max-height:250px;
  }


  @keyframes fadeInOpacity {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

  #guesses { }

  #search { }





/*
guesses
*/
  #guessWrapper {

    overflow:auto;
    width:65%;
   
  }


  .guess {

    border:solid 1px black;
    padding: 0.4em 0.5rem;
    margin: 0.2rem 0;  

    font-size: 0.8rem;
    height:0.9rem;

    font-family:arial;
    color:white;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    
  }

  .guess-active {
    border:solid 2px black;
  }


  .guess-bg-correct {  background-color: var(--color-bg-correct);  }
  .guess-bg-incorrect {  background-color: var(--color-bg-incorrect);  }
  .guess-bg-skipped {  background-color: var(--color-bg-skipped);  }
  .guess-bg-partcorrect {  background-color: var(--color-bg-partcorrect);  }
  .guess-bg-notused {  background-color: var(--color-bg-notused);  }

  .guess-partcorrect {
    color: var(--color-bg-correct); 
  }


  .guess.guess-bg-skipped {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: center;
  }


  .guess.guess-bg-skipped::after {
    content: 'Skipped';
  }



/*
 search box
*/
  #searchWrapper {
    margin:0.3rem 0.5rem;
  }

  #txtGuess {

  padding:0rem 2.2rem;
  margin:0;
  height:3rem;
  width:100%;

  font-size:1rem;

  }





/*
game buttons
*/
  #buttonsWrapper{
    margin:0.3rem 0.5rem;

    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-top:0.3rem;

    
  }

  #btnSkipGuess{
    text-transform: uppercase;
    padding: 0.5rem;
    text-indent: 0.25em;
    letter-spacing: 0.2em;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.5rem 0.75rem;

  }


  #btnSubmitGuess{
    text-transform: uppercase;
    padding: 0.5rem;
    text-indent: 0.25em;
    letter-spacing: 0.2em;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.5rem 0.75rem;
  }


/* input[type=button], */
   .btnSupport, .btnShare, .btnPlay, .btnStats{
  
    display: flex;
    flex-direction: row;
    justify-content:center; 

    margin: 0.7rem auto;
    text-transform: uppercase;
    padding: 0.5rem;
    text-indent: 0.25em;
    text-align: center;
    letter-spacing: 0.2em;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.3rem 0.6rem;
    
  }

  .btnStats > * {
    flex:1 1 0rem; 
  }






/*
game summary

*/

  #summaryWrapper>div{
    padding:0.1rem;
    font-family: 'PT Sans', sans-serif;

  }


  .score-wrapper {

  }


  .scorebox {
      width:1.5em;
      height:1.5em;
      border:solid 1px black;
      margin:0.05em;
  }

  .summary-answer{
    font-weight: 600;

  }

  .summary-countdownmessage{  
    padding-bottom:0 !important;

   }

  .summary-countdown {
    padding-top:0  !important;
    font-size: 1.8rem;
    font-weight: 600;
 

  }

  .summary-stats{
    display:flex;
    align-items:center;
    justify-content: center;

    font-size: 1.2rem;
    padding:0.2rem;
    cursor:pointer;
  }

  .summary-stats svg{
    
    
  }

  .summary-buttons button{
    margin:0 1rem;

  }


  /*
  Stats
  */

  .stats-info {
    display:flex;
    justify-content: space-evenly;
    align-items:flex-start;
  }

  .stats-info div{
    text-align: center;
    flex: 1 1 0px;
  }


  /* chart */

 .stats-chart {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: nowrap;

    border:solid 1px rgb(204, 204, 204);
    height:15rem;
  
 }

 .stats-bar-wrapper{
    flex: 1 0 0px;

    display: flex;
    flex-direction: column;;
    flex-wrap: nowrap;

    justify-content: flex-end;
    margin:0 0.2rem;

 }


  .stats-bar-value{
    width:100%;
    text-align:center;
    flex-grow:1;
    flex-shrink:0;
    flex-basis: 0;
    align-items:end;
    justify-content: end;
    vertical-align: end;

    display:flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items:center;

  }
  /* the actual label */
  .stats-bar-value div{
    font-size: 0.8rem;
    padding:0.2rem 0;
  }
 
  .stats-bar {
    width:100%;

  }
  .stats-bar-label{
    width:100%;
    text-align:center;
    flex-grow:0;
    flex-shrink:0;
    flex-basis: 0;

    border-top:solid 1px white;
  }

/* 
scrollbar visible on mobile
*/

  /* !important is needed sometimes */
  ::-webkit-scrollbar {
    width: 12px !important;
 }

 /* Track */
::-webkit-scrollbar-track {
   -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3) !important;
   -webkit-border-radius: 10px !important;
   border-radius: 2px !important;
 }

 /* Handle */
 ::-webkit-scrollbar-thumb {
   background: #41617D !important; 
   -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5) !important; 

 }
 ::-webkit-scrollbar-thumb:window-inactive {
   background: #41617D !important; 
 }