* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    background-color: white;
    position: relative;
    align-items: center;
    text-align: center;
    justify-content: center;
   
       
      
      
}

.bg-untilted {
    position: absolute;
    inset: 0;                  /* fill parent */
    background-image: url('grayscale2.png');
    background-size: cover;    /* fill entire rect */
    background-position: center;
    background-repeat: repeat;
    background-size: 200px 200px; /* adjust size of tiles */
    z-index: -1;               /* behind content */
    border-radius: inherit;    /* matches the panel shape */
}

.bg-tilted {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('grayscale2.png');
    background-repeat: repeat;
    background-size: 200px 200px; /* adjust size of tiles */
    transform: rotate(30deg); /* adjust the angle you want */
    z-index: -1; /* behind content */
}



#mainContainer
{
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: space-around;
    align-items: center;
    display: flex;
    flex-direction: row; /* Center vertically and horizontally */
    background-color: rgba(0, 0, 0, 0.0); /* Semi-transparent black background */
    backdrop-filter: blur(5px); /* Apply blur effect to the background */
  
}

.adBlock{
    height: 100%;
    width: 15%;
    background-color: white;
    display: none;
}

@media (min-width: 769px) {
    .adBlock{
        display: block; /* Display the ad columns on wider screens */
    }
}

.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column; /* Center vertically and horizontally */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    backdrop-filter: blur(5px); /* Apply blur effect to the background */
    z-index: -100; /* Ensure the overlay is on top of other elements */
    opacity: 0;
}


.overlayOut {
    display: none;
    position: fixed;
    height:300px;
    width: 200px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column; /* Center vertically and horizontally */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    backdrop-filter: blur(5px); /* Apply blur effect to the background */
    z-index: -100; /* Ensure the overlay is on top of other elements */
    opacity: 0;

}

.overlayCountdown{
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column; /* Center vertically and horizontally */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    backdrop-filter: blur(5px); /* Apply blur effect to the background */
    z-index: -100;
    opacity: 0;
    
}

#overlayIntro
{
    justify-content: space-evenly;
}
.arrowLeft {
    
    width: 60px;
    height: 20px;
    background: green;
    position: absolute;
    left: -110px;
    animation: moveArrow 2s infinite ease-in-out;
  }

  /* Arrowhead */
  .arrowLeft::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -20px;
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 25px solid green;
  }

  @keyframes moveArrow {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(30px); }
    100% { transform: translateX(0); }
  }

  #arrowLB
{
    left:-120px;
}



#overlayMessage{
 
    width: 100%;
    height: 100%;
 
    
}

.arrowRight {
    
    width: 60px;
    height: 20px;
    background: green;
    position: absolute;
    right: -90px;
    animation: moveArrow 2s infinite ease-in-out;
  }

.arrowRight::after {
  content: '';
  position: absolute;
  top: -15px;
  left: -20px; /* places the triangle on the left side */
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-right: 25px solid green;
}



.overlayPause{
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column; /* Center vertically and horizontally */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    backdrop-filter: blur(5px); /* Apply blur effect to the background */
    z-index: -100;
    opacity: 0%;
}



.centered-panel {
    position: relative;
    display:flex;
    flex-direction: column;
    height: 100%; /* 50% of the height of the overlay */
    max-height: 100%;
    width: 800px;
    background-color: white;
    text-align: center; /* Center text horizontally */
    padding: 5px; /* Example padding */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    
}

/* CSS for small screens (e.g., max-width: 768px) */
@media (max-width: 768px) {
    .centered-panel {
        width: 100%; /* Set the desired width for small screens */
        height: 100%;
    }
}


@media (min-width: 768px) and (max-width: 991px)  {
    .centered-panel  {
        width: 100%; /* Set the desired width for small screens */
        height: 100%;
    }
}

@media (min-width: 992px)  {
    .centered-panel  {
        width: 90%; /* Set the desired width for small screens */
        height: 90%;
    }
}



.mini-panel {
    position: relative;
    display:flex;
    flex-direction: column;
    height: 70%; /* 50% of the height of the overlay */
    max-height: 700%;
    width: 800px;
    background-color: white;
    text-align: center; /* Center text horizontally */
    padding: 5px; /* Example padding */
    justify-content: space-around;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    
}

/* CSS for small screens (e.g., max-width: 768px) */
@media (max-width: 768px) {
    .mini-panel {
        width: 70%; /* Set the desired width for small screens */
        height: 70%;
    }
}


@media (min-width: 768px) and (max-width: 991px)  {
    .mini-panel   {
        width: 70%; /* Set the desired width for small screens */
        height: 70%;
    }
}

@media (min-width: 992px)  {
    .mini-panel   {
        width: 70%; /* Set the desired width for small screens */
        height: 70%;
    }
}



.bar-chart
{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 300px;
    height: 200px;
    border: 1px darkslateblue;
    border-radius: 13px;
}

.bar-inner{
    height: 40px;
    margin: 0 5px;
    transition: width 0.5s;
}


.countdown-panel {
    display:flex;
    position: fixed;
    flex-direction: column;
    height: 50%; /* 50% of the height of the overlay */
    width: 50%;
    background-color: whitesmoke;
    text-align: center; /* Center text horizontally */
    padding: 10px; /* Example padding */
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    
}


#outPanel{
    width: 95%; 
    height: 80%;
}

#intro-panel {
    background-color: white;
    width: 80%;
    height: 80%;
    box-sizing: border-box; /* Include padding and borders in width and height */
    padding: 20px; /* Example padding */
}


header {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

h1 {
    color: darkslateblue;
    text-shadow: #ccc;
    font-size:40px;
    text-align: center;
}

@media (max-width: 767px) {
    h1 {
        
        font-size: 18px;
    }
}



@media (min-width: 768px) and (max-width: 991px) {
    h1 {
        
        font-size: 32px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    h1 {
       
        font-size: 40px;
      
    }
}


@media (min-width: 1200px) {
    h1 {
       
        font-size: 40px;
    }
}


h2 {
    color: darkslateblue;
    text-shadow: #ccc;
    font-size:32px;
    text-align: center;
    max-width: 100%;
    
}

@media (max-width: 767px) {
    h2 {
        font-size: 20px; /* Set the desired width for small screens */
    }
}

.horizontalButtonHolder {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 90%;
    height: 15%;
    min-height: 60px;
    

}

#buttonHolder
{
 right: 30px;  
 width: 80%; 
}

.miniHorizontalButtonHolder {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 90%;
    height: 15%;
    min-height: 30px;

}


.heldButton{

    display: flex;
    height: 30px;
    width: 300px;
    border: solid 3px darkgrey;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color:lightseagreen;
    margin:auto;

    color: white;
    font-size: 16px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
   
    text-align: center;
    padding:10px;
  
    touch-action: manipulation;
}


@media (min-width: 768px)  and (max-width: 991px){
    .heldButton {
 
        font-size: 24px;
        height: 40px;
        width: 400px;
    }
}



@media (min-width: 992px) and (max-width: 1199px) {
    .heldButton {
       
     
        font-size: 24px;
        height: 40px;
        width: 500px;
    }
}

@media (min-width: 1200px) {
    .heldButton {
       
     
        font-size: 24px;
        height: 40px;
        width: 700px;
    }
}


.levelButton{

    height: 70px;
    width: 110px;
    border: solid 3px darkgrey;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color:whitesmoke;
    margin:10px;
    flex-direction: column;

    color: darkslateblue;
    font-size: 16px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
   
    text-align: center;
    padding:10px;
    touch-action: manipulation;
  

}

@media (min-width: 768px)  and (max-width: 991px){
    .levelButton {
        width: 100px;
        height:100px;
        font-size: 18px;
    }
}


@media (min-width: 992px) and (max-width: 1199px) {
    .levelButton {
       
        width: 120px;
        height:100px;
        font-size: 24px;
    }
}

@media (min-width: 1200px) {
    .levelButton {
        
       
        width: 120px;
        height:100px;
        font-size: 24px;
    }
}

.countdown {
    width:90%;
    height: 90%;
}




#gameContainer {
    position: relative;
    width: 100%;
    height: 100%;
    left: 0%;
    top: 0%;
    justify-content: space-evenly; /* Distribute space evenly between items */
    align-items: center;
    display: flex;
    flex-direction: column; /* Center vertically and horizontally */
    padding: 0px;
}



@media (min-width: 992px) {
    #gameContainer {
        width: 70%;
        padding: 30px;
        padding-bottom: 0px;
    }
}

@media (min-width: 1200px) {
    #gameContainer {
        width: 65%;
        padding: 30px;
        padding-bottom: 0px;

    }
}
.rowHolder{
    height: 65px;
    width:100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    
      
}

.miniRowHolder{
    height: 20px;
    width:100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 3px;
    background-color: none;
    border-color: white;
    border-radius: 10px;
    border-width: 5px;
    opacity: 1;
      
}





@media (min-width: 768px) and (max-width: 991px) {
    .miniRowHolder {
      
        height: 40px;
        
    }
}

@media (min-width: 992px)  {
    .miniRowHolder {
      
        height: 40px;
      
      
    }
}


.otherMiniRowHolder{
    height: 20px;
    width:100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin: 5px;
    background-color: none;
    border-color: white;
    border-radius: 10px;
    border-width: 5px;
    opacity: 1;
      
}


.blankHolder
{
    align-items: center;
    padding: 10px;
    min-width: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;

}

.statsPanel {
    height: 360px;
    min-height: 50vh;        /* or whatever fixed height you want */
    width: 100%;
    position: relative;
    overflow-y: scroll;   /* allow vertical scrolling */
    overflow-x: hidden;   /* prevent sideways scroll */

    -ms-overflow-style: none;  /* hide scrollbar on IE and Edge */
    scrollbar-width: none;     /* hide scrollbar on Firefox */
    align-items: center;
    margin: 0px auto;
    flex-direction: row;
    max-width: 800px;
  
}

.statsPanel::-webkit-scrollbar {
    display: none;        /* hide scrollbar on Chrome, Safari, Opera */
}

#subjectsPanel{

    overflow-y: auto;
}


.miniColumnHolder{
    min-height: 60px;
    width:100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: auto;
    background-color: none;
    border-color: white;
    border-radius: 10px;
    border-width: 5px;
    
    
}


@media (min-width: 768px) and (max-width: 991px) {
    .miniColumnHolder {
      
        min-height: 80px;
        
    }
}


@media (min-width: 992px) and (max-width: 1199px) {
    .miniColumnHolder {
       
        min-height: 80px;
     
      
    }
}


@media (min-width: 1200px)  {
    .miniColumnHolder {
       
        min-height: 80px;
     
      
    }
}

.puzzleHolder{
    min-height: 60px;
    width:100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: auto;
    background-color: none;
    border-color: white;
    border-radius: 10px;
    border-width: 5px;
    
    
}


@media (min-width: 768px) and (max-width: 991px) {
    .puzzleHolder {
      
        min-height: 80px;
        
    }
}


@media (min-width: 992px) and (max-width: 1199px) {
    .puzzleHolder {
       
        min-height: 80px;
     
      
    }
}


@media (min-width: 1200px)  {
    .puzzleHolder {
       
        min-height: 80px;
     
      
    }
}


#ShortClues{

    justify-content: space-around;
    margin: 10px;
    max-height:70%;
    min-height: 50%;
}

#longClue {
  position: relative; /* so absolutely positioned children stay within it */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* space between longAns, longTiles, guessMini */
  width: 100%;
  padding: 10px;
}
#longAns,
#longTiles,
#guessMini {
  position: relative; /* keep in normal flow */
  z-index: 1;
}

/* Bonus message — covers everything */
#bonusMessage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* hidden by default */
  z-index: 5; /* sits on top of everything */
  background: darkslateblue; /* optional: semi-transparent overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  padding: 20px;
  border-radius: 10px;
}
#levelChooser
{
    margin:auto;
}

#pausePanel
{
    background-color: whitesmoke;
    height: 100%;
    justify-content: space-evenly;
    padding: 10px;
}


#header{
    text-align: center;
    align-items: center;
    display:flex;
    min-width: 100px;
    padding: 20px;
    margin: auto;
}

.mainHolder{
    
    width: 100%;
    min-height: 55%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    
}

#starRating {
    padding: 10px;
    margin: 10px;
    font-size: 24px;
    color: darkslateblue;
}

#bigStarRating {
    width: 100%;
    padding: 4px;
    margin: 4px;
    font-size: 20px;
    color: darkslateblue;
}


#adHolder{
    background-color: whitesmoke;
    width: 100%;
    border: solid darkslateblue;
    border-radius: 10px;
    border-width: 2px;
    height: 46px;
    bottom: 0;
    left: 0;
}


.categoryPanel{
    position:relative;
    height: 100%;
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;

    align-items: center;
    margin: 0px;
    border: none;
    background-color: none;
    border-radius: 10px;
}




#keyboard {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;

  }
  
  #keyboard div {
    display: flex;
  }
  
  .second-row {
    margin: 0.5rem 0;
  }
  
 
  .key {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 30px;
    background-color: #ddd;
    cursor: pointer;
    font-size: 16px;
    border: none;
    margin: 3px;
    touch-action: manipulation;
    color: black;
  }

  @media (max-width: 767px) {
    .key {
        
        font-size: 18px;
    }
}



@media (min-width: 768px) and (max-width: 991px) {
    .key {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}


@media (min-width: 992px) {
    .key {
        width: 45px;
        height: 45px;
        font-size: 22px;
      
    }
}

  .key2 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 30px;
    background-color: #ddd;
    cursor: pointer;
    font-size: 16px;
    border: none;
    margin: 3px;
    touch-action: manipulation;
    color: black;
  }

  @media (max-width: 767px) {
    .key2 {
        
        font-size: 18px;
    }
}



@media (min-width: 768px) and (max-width: 991px) {
    .key2 {
        width: 90px;
        height: 45px;
        font-size: 22px;
    }
}


@media (min-width: 992px) {
    .key2 {
        width: 90px;
        height: 45px;
        font-size: 22px;
      
    }
}



  .keyboard2 {
    display: grid;
    grid-template-columns: repeat(3, 30%);
    grid-gap: 10px;
    margin-top: 10px;
    align-items: center;
  }




cursor {
    display: inline-block;
    font-size: 16px;
    background-color: white; /* Cursor color */
    animation: blink-animation 1s steps(1) infinite;
  }

  @keyframes blink-animation {
    50% {
      opacity: 0;
    }
  }




.gameDot
{
    height: 15px;
    width: 30%;
    border-radius: 50%;
    padding: 10px;


    background-color: darkslateblue;
}

@media (max-width: 767px) {
    .gameDot {
        
        height: 10px;
        width: 10px;
        padding: 5px;
    }
}


.holder{
    min-width: 60px;
    text-align: center;
    justify-content: center;
    font-size: 14px;
    color: grey;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
   
}



@media (max-width: 992px) {
    .holder {
        
        font-size: 14px;
    }
}


@media (min-width: 992px) and (max-width: 1199px) {
    .holder {
       
        width: 80px;
        height:50px;
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    .holder {
       
        width: 800px;
        height:60px;
        font-size: 18px;
    }
}


#ShortClues
{
    background-color: whitesmoke;

}




.scoreTile {
    height: 50px;
    width: 70px;
    border-radius: 10px;

    border: solid 3px darkslateblue;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0px;
    margin-top: 3px;
    margin-bottom:3px;
    background-color: whitesmoke;
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding: 20px;
    z-index: 4;
    color: darkslateblue;
    touch-action: manipulation;
    
}


.scoreTile:disabled{
    color:grey;
}

@media (min-width: 768px)  and (max-width: 991px){
    .scoreTile {
        border: solid 4px darkslateblue;
        width: 90px;
        height:60px;
        font-size: 15px;
    }
}



@media (min-width: 992px)  {
    .scoreTile {
        border: solid 4px darkslateblue;
        width: 120px;
        height:65px;
        font-size: 18px;
    }
}

.mySmallText
{
    font-size:14px; 
}
@media (min-width: 768px)  and (max-width: 991px){
    .mySmallText {
        font-size:20px; 
    }
}



@media (min-width: 992px)  {
    .mySmallText {
        font-size:24px; 
    }
}


.myShortText{
    font-size:20px 
 }

 .myLongText{
    font-size: 16px;
    justify-content: space-evenly;
    align-items: center;
 }
 
 @media (min-width: 768px)  and (max-width: 991px){
     .myLongText {
  
         font-size: 20px;
     }
 }
 
 
 
 @media (min-width: 992px) and (max-width: 1199px) {
     .myLongText {
        
      
         font-size: 24px;
     }
 }
 
 @media (min-width: 1200px) {
     .myLongText {
        
      
         font-size: 24px;
     }
 }

 .myShortText{
    font-size:20px;
 }
 
.myDemoText
{
    font-size:26px;
}



#startButton {
    position: absolute;
    right: 0; /* Adjust the right value as needed */
    bottom: 0;
    
    font-size: 14px;
    touch-action: manipulation;
}


.horizontalScoreHolder{
    height: 60px;
    width:280px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 5px;
    border: solid 3px darkslateblue;
    background-color: whitesmoke;
  
}



@media (min-width: 768px) and (max-width: 991px) {
    .horizontalScoreHolder {
        width: 360px;
        height: 90px;
      
    }
}


@media (min-width: 992px) {
    .horizontalScoreHolder {
        width: 450px;
        height: 100px;
      
    }
}

.horizontalScoreTile {
    height: 48px;
    width: 50px;
    border: solid 3px darkslateblue;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    background-color: silver;
    font-size: 24px;
    color: white;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    max-height: 90%;
}

@keyframes blink {
    0% { border-color: darkslateblue; }
    50% { border-color: silver; }
    100% { border-color:darkslateblue; }
    ; }
  
  
  .blinking-border {
    animation: blink 0.8s infinite; /* Adjust animation duration as needed */
  }

  .miniTengoBarTile {
    height: 16px;
    width: 16px;
    border: solid 1px darkslateblue;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1px;
    background-color: white;
    color: white;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    
}

@media (min-width: 768px) and (max-width: 991px) {
    .miniTengoBarTile {
     
        height: 24px;
        width: 20px;
    }
}


@media (min-width: 992px) {
    .miniTengoBarTile {
        
        height: 30px;
        width: 30px;
      
    }
}


.tengoBarTile {
    height: 40px;
    width: 50px;
    border: solid 3px darkslateblue;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    background-color: white;
    font-size: 24px;
    color: white;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    max-height: 90%;
}


@media (min-width: 768px) and (max-width: 991px) {
    .horizontalScoreTile {
     
        height: 80px;
        max-height: 90%;
    }
}


@media (min-width: 992px) {
    .horizontalScoreTile {
       
        height: 90px;
        max-height: 90%;
      
    }
}

.miniTengoBar{
    height: 20px;
    width: 180px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0px;
    border: none;
    background-color: whitesmoke;
  
}



@media (min-width: 768px) and (max-width: 991px) {
    .miniTengoBar {
     
        height: 30px;
        width:auto;
    }
}


@media (min-width: 992px) {
    .miniTengoBar {
     
        height: 40px;
        width:auto;
        
    }
}



.tengoBar{
    height: 50px;
    width:350px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0px;
    border: none;
    background-color: whitesmoke;
  
}



@media (min-width: 768px) and (max-width: 991px) {
    .tengoBar {
        width: 400px;
      
    }
}

@media (min-width: 992px) {
    .tengoBar {
        width: 450px;
      
    }
}

.shake {
    animation: shakeAnimation 0.6s ease-in-out 0s 3 alternate;
}

@keyframes shakeAnimation {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
.letterTile {
    position: relative;
    height: 28px;
    width: 25px;
    
    border: solid 2px;
    border-color: white;
    display: flex;

    justify-content: center;
    align-items: center;
    margin: 1px;
    background-color: #bbb;
    font-size: 22px;
    color: white;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}



@media (max-width: 767px) {
    .letterTile {
        
        font-size: 18px;
    }
}



@media (min-width: 768px) and (max-width: 991px) {
    .letterTile {
        width: 35px;
        height: 40px;
        font-size: 20px;
    }
}


@media (min-width: 992px)  {
    .letterTile {
        width: 40px;
        height: 45px;
        font-size: 22px;
      
    }
}



@keyframes flash {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
 
  #congrats{
    height:auto;
    width:auto;
    font-size: 40px;
  }

.letterHolder {
    position: relative;
    height: 25px;
    width: 20px;
   
    display: flex;
    justify-content: center;
    align-items: center;
  
    
    font-size: 18px;
    
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}




@media (max-width: 767px) {
    .letterHolder {
        
        font-size: 18px;
    }
}



@media (min-width: 768px) and (max-width: 991px) {
    .letterHolder {
        width: 45px;
        height: 50px;
        font-size: 24px;
    }
}


@media (min-width: 992px) {
    .letterHolder {
        width: 45px;
        height: 50px;
        font-size: 32px;
      
    }
}

.message {

    display: flex;
    justify-content: center;
    align-items: center;
  
    color: darkslateblue;
    font-size: 18px;
    
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}




@media (max-width: 767px) {
    .message {
        
        font-size: 18px;
    }
}



@media (min-width: 768px) and (max-width: 991px) {
    .message {
      
        font-size: 24px;
    }
}


@media (min-width: 992px) and (max-width: 1199px) {
    .message {
       
        font-size: 32px;
      
    }
}


.blankTile {
    
    height: 30px;
    width: 25px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1px;
    background-color:none;
    font-size: 18px;
    color: none;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}





@media (min-width: 768px) and (max-width: 991px) {
    .blankTile {
        width: 35px;
        height: 40px;
        font-size: 20px;
}
}

@media (min-width: 992px)  {
    .blankTile {
        width: 40px;
        height: 45px;
        font-size: 22px;
      
    }
}



.number {
    position: absolute;
    top: 1px;
    right: 1px;
    color: black;
    font-size: 8px;
    
  }


@media (min-width: 768px) and (max-width: 991px) {
    .number {
        
        font-size: 13px;
    }
}


@media (min-width: 992px) {
    .number {
      
        font-size: 14px;
      
    }
}


.cellHolder
{
    height: 25px;
    padding:0px;
    display: flex;
    background-color: none;
    justify-content: center;
    align-items: center;
}

.clueTile {
    height: 30px;
    width: 300px;
    border: solid 2px none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    background-color:  none;
    font-size: 20px;
    color: darkslateblue;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}





@media (min-width: 768px) and (max-width: 991px) {
    .clueTile {
      
        height: 40px;
        width: 320px;
        font-size: 24px;
        
    }
}


@media (min-width: 992px){
    .clueTile {
      
        height: 45px;
        width: 420px;
        font-size: 26px;
      
      
    }
}


.questionTile {
    position:relative;
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    min-width: 330px;
    max-width: 100%;
    min-width:60%;
    border: solid 3px darkgrey;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color:darkslateblue;
    margin: 0 auto;

    color: white;
    font-size: 16px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    padding: 10px;
}


@media (min-width: 768px)  and (max-width: 991px){
    .questionTile {
 
        font-size: 24px;
    }
}



@media (min-width: 992px) and (max-width: 1199px) {
    .questionTile {
       
     
        font-size: 24px;
    }
}

@media (min-width: 1200px) {
    .questionTile {
       
     
        font-size: 24px;
    }
}


.guessTile {
    height: 26px;
    width: 100px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color:lightseagreen;
    margin:auto;

    color: white;
    font-size: 22px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
}


@media (min-width: 768px) and (max-width: 991px) {
    .guessTile {
      
        height: 40px;
        width: 100px;
        font-size: 24px;
        
    }
}


@media (min-width: 992px){
    .guessTile {
      
        height: 60px;
        width: 120px;
        font-size: 26px;
      
      
    }
}

#demoText
{
    min-width: 100%;
    font-weight: bold;
    color: grey;
    font-size: 18px;
    min-height: 80px;
    margin-top: 20px;
}

@media (min-width: 768px)  and (max-width: 991px){
    #demoText {
 
        font-size: 24px;
    }
}



@media (min-width: 992px) and (max-width: 1199px) {
     #demoText {
       
     
        font-size: 26px;
    }
}

@media (min-width: 1200px) {
      #demoText {
       
     
        font-size: 30px;
    }
}


#puzzleName{
 
    text-align: center;
    justify-content: center;
    font-size: 24px;
    color: darkslateblue;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
   }



#landscapeMessage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    text-align: center;
    z-index: 9999;
}

#landscapeMessage p {
    font-size: 24px;
    margin: 20% 0;
}






#canvas{
    font-size: 20px;
}


.hide {
    display: none;
}


  #pauseHolder {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 300px;
    width: 100%;
    height: 20%;
    min-height: 100px;

}
  
#quoteContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}



  .quoteBox{
    position: relative;
    max-width: 400px;
    height: 20px;
    font-size: 18px;
    margin: 10px;
    color: darkslateblue;
    font-weight: normal;
  }
  

  .quoteBox{
    font-size:20px 
 }
 
 @media (min-width: 768px)  and (max-width: 991px){
     .quoteBox {
  
         font-size: 24px;
     }
 }
 
 
 
 @media (min-width: 992px) and (max-width: 1199px) {
     .quoteBox {
        
      
         font-size: 24px;
     }
 }
 
 @media (min-width: 1200px) {
     .quoteBox {
        
      
         font-size: 24px;
     }
 }


#triviaContainer{
    justify-content: center;
    align-items: center;
    display: flex;
}

#triviaPiece{
    font-size: 18px;
    font-weight: bolder;
}

  .quoterBox{
    position:relative;
    width: 170px;
    height: 20px;
   font-size: 12px;
   color: darkslateblue;

  }
  
  .quoterBox{
    font-size:16px 
 }
 
 @media (min-width: 768px)  and (max-width: 991px){
     .quoterBox {
  
         font-size: 20px;
     }
 }
 
 
 
 @media (min-width: 992px) and (max-width: 1199px) {
     .quoterBox {
        
      
         font-size: 24px;
     }
 }
 
 @media (min-width: 1200px) {
     .quoterBox {
        
      
         font-size: 24px;
     }
 }
 
 
 .demoBin
 {
     
    position: relative;
    justify-content: space-between; 
    text-align: center;
    align-items: center;
    display:flex;
    flex-direction: column;
    width: 300px;
    min-height: 200px;
    min-width: 80%;
    min-height:60%;
    max-height: 85%;
    background-color: none;
    border-radius: 10px;
    border-color: darkslateblue;
    border: 5px;
    padding-top:20px;
    opacity: 1;
    gap: 20px;
 }
 .introBin2
 {
     
    position: relative;
    justify-content: space-between; 
    padding: 10px;
    display:flex;
    flex-direction: column;
    min-width: 330px;
    height: 120px;
    min-height: 10%;
    opacity: 1;
   

 }
 .introBin
 {
     
    position: relative;
    justify-content: space-between; 
    text-align: center;
    display:flex;
    flex-direction: column;
    width: 300px;
    height: 160px;
    min-width: 100%;
    min-height: 40%;
    
    background-color: none;
    border-radius: 10px;
    opacity: 1;
 }

    
 #demoOptions{
    max-height: 40%;
 }
 
#dailyCountdown
{
     font-family: Arial, Helvetica, sans-serif;
     color: darkslateblue;
     font-weight: bold;
}

  


.silver {
    background-color: silver;
    color: black;
}

.grey {
    background-color: grey;
    color: black;
}

.green {
    background-color: green;
    color: white;
}
 
.close-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 22px;
    color: darkslateblue;
    
}

.close-icon:hover {
    color: #f00; /* Change color on hover */
}

.content {
    padding: 10px;
}


.footer {
    
    width: 100%;
    color: #fff; /* Change the text color to ensure visibility */
    padding: 0px;
    max-height: 30px;

    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.footer a {
    color: grey; /* Change the link color to your preference */
    text-decoration: none;
    
}
.footer a:hover{
    color: navy;
}


#thePanel{
    width: 95%;
    gap:30px;
}


@media (min-width: 768px) and (max-width: 991px) {
    #thePanel {
        
        width: 70%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    #thePanel {
       
        width:50%;
      
    }
}


@media (min-width: 1200px) {
    #thePanel {
       
        width: 50%;
    }
}

#guessPanel{
    width: 95%;
   
    padding-top: 30px;
}


@media (min-width: 768px) and (max-width: 991px) {
    #guessPanel {
        
        width: 80%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    #guessPanel {
       
        width:70%;
      
    }
}


@media (min-width: 1200px) {
    #guessPanel {
       
        width: 50%;
    }
}

 
.subjectIcon {
    position: absolute;
    bottom: -10px;
    right: 0px;
    cursor: pointer;
    font-weight: bold;
    font-size: 22px;
    border-radius: 10px;
    color: darkslateblue;
    
}

.subjIcon {
    border-radius: 1px;
     width: 25px; 
     height: 25px;
    
}

@media (min-width: 768px) and (max-width: 991px) {
    .subjIcon {
        
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 992px) {
    .subjIcon {
        
        width: 40px;
        height: 40px;
    }
}



#countdown-bar {
    width: 100%;
    height: 20px;
    background-color: #ddd;
  }
  
  #countdown-fill {
    height: 100%;
    background-color: green;
    transition: width 1s linear; /* Smooth transition for width change */
  }



  .underline {
    text-decoration: underline;
}
/* Outer bar container */
.fill-bar {
  position: relative;
  left: 10%;
  width: 80%;
  height: 32px;
  border: 4px solid purple;
  border-radius: 8px;
  background: white;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;

}

/* Inner colored bar */
.fill {
  height: 100%;
  width: 0%;
  background: green;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.fill-segment {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.green  { background: green; }
.amber  { background: orange; }
.red    { background: red; }
.purple { background: purple; }

/* Centered percentage text */
.fill-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: sans-serif;
  font-weight: bold;
  color: black;
  font-size: 1.2em;
  pointer-events: none;
}



#resultsContainer {
    max-height: 30vh;        /* max height: 20% of viewport */
  overflow-y: auto;         /* enable vertical scrolling */
  border: 4px solid darkslateblue;
  border-radius: 10px;
  padding: 10px;
  background-color: white;

  
  gap: 8px;  
    
    display: flex;            /* required for centering */
    flex-direction: column;   /* stack child boxes vertically */
    justify-content: space-between;  /* center vertically (within container height) */
    align-items: center;      /* center horizontally */
  }
  
  .puzzleRow {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .puzzleLabel {
    width: 80px;
    font-weight: bold;
    color: darkslateblue;
  }
  
  .colorBoxes {
    display: flex;
    gap: 4px;
  }
  
  .colorBox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #aaa;
  }

#buttonContainer{
    display: flex;          /* makes children align horizontally */
    gap: 10px;   

}

#resultsContainer
{
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    justify-content: space-around;
    align-items: center;
    display: flex;
    flex-direction: column; /* Center vertically and horizontally */
    background-color: rgba(0, 0, 0, 0.0); /* Semi-transparent black background */
    backdrop-filter: blur(5px); /* Apply blur effect to the background */
    margin: 0px auto;
  
}


