/******************************************** Games *****************************************/
/******************************************** Games *****************************************/

/**********************************************/
/*********** Shared Game UI Styles ************/
/**********************************************/
.class_TheAbs.ContGames {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #eef1f7, #eef2f7);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  border: 2px solid #d0d7de;
  font-size: 16px;
  font-weight: 500;
  color: #2e2e2e;
  padding: 0;
  border-radius: 0;
}
#id_GradeLevelSelector {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#id_GradeLevelSelector input[type="radio"] {
  display: none;
}

#id_GradeLevelSelector .gradeOption {
  padding: 6px 14px;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#id_GradeLevelSelector .gradeOption:hover {
  background: lightpink;
}

#id_GradeLevelSelector .gradeOption.selected {
  background: deeppink;
  border-color: hotpink;
  color: white;
}


/**********************************************/
/************ Word Search Styles **************/
/**********************************************/
/* Left panel for word list */
#ws_InfoPanel {
  position: absolute;
  top: 0;
  left: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  font-size: 60px;
  background: whitesmoke;
}

/* Right panel for game grid */
#ws_GameBoard {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;  /* ensure it fills Cont2 */
  height: 100%; /* optional, but recommended */
  border: none;
  background: linear-gradient(to right, #eef0f7, #eef2f7);
}

/* Grid container */
.wordsearch-grid {
  display: grid;
  grid-template-columns: repeat(10, 70px); /* default for large screens */
  gap: 1px;
  user-select: none;
  border: 1px solid #aaa;
  padding: 6px;
  background: #fafafa;
}

/* Letter cell base */
.wordsearch-cell {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 0.5px solid #ccc;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.wordsearch-cell:hover {
    background: gray;
}
/* Selected and found states */
.wordsearch-cell.selected {
  background: blue;
  color: white;
}
.wordsearch-cell.found {
  background: black;
  color: white;
  cursor: default;
}

/* Word list styles */
.wordsearch-wordlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wordsearch-wordlist span {
  padding: 14px 18px;
  border-radius: 4px;
  background: rgba(0,0,0,0.1);
  display: block;
  width: 100%;
  text-align: left;
}
.wordsearch-wordlist span.found {
  background: black;
  color: white;
}

/* === Media Queries === */

/* Small screens: below 800px */
@media (max-width: 799px) {
  .wordsearch-grid {
    grid-template-columns: repeat(10, 24px);
  }
  .wordsearch-cell {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  #ws_GameBoard table th {font-size: 14px;}
}

/* Medium screens: 800px–1599px */
@media (min-width: 800px) and (max-width: 1599px) {
  .wordsearch-grid {
    grid-template-columns: repeat(10, 28px);
  }
  .wordsearch-cell {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  #ws_GameBoard table th {font-size: 20px;}
}

/* Large screens: 1600px and up */
@media (min-width: 1600px) {
  .wordsearch-grid {
    grid-template-columns: repeat(10, 70px);
  }
  .wordsearch-cell {
    width: 75px;
    height: 75px;
    font-size: 40px;
  }
  #ws_GameBoard table th {font-size: 30px;}
}

#ws_GameBoard table th {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  user-select: none;
}

#ws_GameBoard table td {
  padding: 0;
}



/**********************************************/
/************ Word Scrambled Styles **************/
/**********************************************/
/* Container rows */
.wscrambled-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
  font-family: 'Segoe UI', sans-serif;
  color: black;
  padding: 20px;
}
/* Scrambled word label */
.scrambled-word {
  font-family: var(--fontFamilyArvo);
  font-size: 90px;
  font-weight: bold;
  letter-spacing: 4px;
  width: 660px;
}
/* Input box */
.wscrambled-input {
  font-family: var(--fontFamilyArvo);
  font-size: 36px;
  padding: 6px 12px;
  margin-right: 10px;
  width: 250px;
  text-transform: uppercase;
  border: 2px solid #ccc;
  border-radius: 6px;
  text-align: center;
}
.wscrambled-toprow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wscrambled-trueanswer {
  margin-top: 6px;
  font-size: 36px;
  font-style: italic;
  color: gray;
  margin-left: 170px; /* aligns with input start */
}
/* Emoji icon */
.emoji-icon {
  font-size: 24px;
  margin-left: 10px;
  color: darkblue;
}
/* New Words button */
#wscrambled_NewWordsBtn {
    font-family: 'Segoe UI', sans-serif;
  margin-top: 20px;
  padding: 10px 24px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  border-radius: 9999px; /* Full pill shape */
  color: white;
  font-weight: 500;
  background: linear-gradient(145deg, #a9a9a9, #808080); /* Shiny gray */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
#wscrambled_NewWordsBtn:hover {
  background: linear-gradient(145deg, #808080, #a9a9a9); /* Subtle inverse */
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
#id_ButtonScrambledSubmit,
#id_ButtonScrambledAnswer {
    font-family: 'Segoe UI', sans-serif;
    width: 100px;
    height: 45px;
    font-size: 16px;
    border-radius: 9999px;
    cursor: pointer;
    border: none;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
/* DodgerBlue style for Submit */
#id_ButtonScrambledSubmit {
    background: linear-gradient(135deg, dodgerblue, #1e90ff);
}
#id_ButtonScrambledSubmit:hover {
    background: linear-gradient(135deg, #1e90ff, dodgerblue);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}
/* DeepPink style for Answer */
#id_ButtonScrambledAnswer {
    background: linear-gradient(135deg, deeppink, #ff1493);
}
#id_ButtonScrambledAnswer:hover {
    background: linear-gradient(135deg, #ff1493, deeppink);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}
/* ===== Responsive Layout for Word Scrambled ===== */
/* Max width: 1900px — large desktop */
@media (max-width: 1900px) {
  .scrambled-word {
    width: 600px;
    font-size: 80px;
  }
  .wscrambled-input {
    width: 240px;
    font-size: 34px;
  }
}
/* Max width: 1600px — smaller desktops/laptops */
@media (max-width: 1600px) {
  .scrambled-word {
    width: 540px;
    font-size: 72px;
  }
  .wscrambled-input {
    width: 220px;
    font-size: 32px;
  }
  .wscrambled-trueanswer {
    font-size: 32px;
    margin-left: 150px;
  }
}
/* Max width: 1200px — tablets/compact desktop */
@media (max-width: 1200px) {
  .scrambled-word {
    width: 420px;
    font-size: 60px;
  }
  .wscrambled-input {
    width: 180px;
    font-size: 28px;
  }
  .wscrambled-trueanswer {
    font-size: 28px;
    margin-left: 130px;
  }
  .emoji-icon {
    font-size: 20px;
  }
}
/* Max width: 1024px — portrait tablets */
@media (max-width: 1024px) {
  .scrambled-word {
    width: 380px;
    font-size: 50px;
  }
  .wscrambled-input {
    width: 160px;
    font-size: 26px;
  }
  .wscrambled-trueanswer {
    font-size: 26px;
    margin-left: 110px;
  }
  #id_ButtonScrambledSubmit,
  #id_ButtonScrambledAnswer {
    width: 90px;
    height: 42px;
    font-size: 15px;
  }
}
/* Max width: 900px — mobile landscape or narrow tablets */
@media (max-width: 900px) {
  .scrambled-word {
    width: 100%;
    font-size: 42px;
    text-align: center;
  }
  .wscrambled-input {
    width: 100%;
    max-width: 300px;
    font-size: 24px;
    margin: 10px 0;
  }
  .wscrambled-toprow {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .wscrambled-trueanswer {
    margin-left: 0;
    font-size: 24px;
    text-align: center;
  }
  #id_ButtonScrambledSubmit,
  #id_ButtonScrambledAnswer {
    width: 100%;
    max-width: 300px;
    height: 42px;
    font-size: 15px;
  }
  #wscrambled_NewWordsBtn {
    width: 100%;
    max-width: 300px;
  }
}



/******************************************** Games *****************************************/
/******************************************** Games *****************************************/



/********************************** KIDSGame **************************************/
/********************************** KIDSGame **************************************/
.class_TheAbs.ContOneGame {
  font-family: var(--fontFamilyArvo);
  background: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  height: 100%;
}
.class_AbsFlexCenter.WrapGame {
    width: 100%;
    height: 100%;
    background: transparent;
}

/**********************************************/
/************ Spelling Bee Styles *************/
/**********************************************/
.class_TheRel.SpellingBase {
    width: 100%;
    height: 100%;       
}
.class_RelFlex.SpellingBoard {
    width: calc(100% - 400px);
    height: 100%;                     
}
.class_TheRel.SpellingPanel {
    width: 400px;  
    height: 100%;
    padding: 20px;
    border-left: 2px groove white;
    background: gainsboro;
    font-size: 24px;        
    color: black;
    text-align: left;
}
.spellingbee-panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;  /* ✅ horizontally center child elements */
  width: 100%;
  height: auto;
  max-height: 100%;
  padding-bottom: 30px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  color: black;                
}
.spellingbee-panel h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
}

/* Group label */
.spellingbee-group-label {
  box-sizing: border-box;
  font-weight: 600;
  font-size: 16px;
  margin-top: 15px;
  margin-bottom: 5px;
}

/* Radio group */
.spellingbee-radio-group {
  box-sizing: border-box;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* Radio option */
.spellingbee-radio-option {
  padding: 9px 17px;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.spellingbee-radio-option:hover {
  background: lightgray;
}
.spellingbee-radio-option.selected {
  background: black;
  border-color: gray;
  color: white;
}
/* Word display */
#spellingbee_displayWord {
  box-sizing: border-box;
  font-family: var(--fontFamilyArvo);
  font-size: 120px;
  font-weight: bold;
  letter-spacing: 4px;
  background: transparent;
  width: 100%;
  height: auto;
  margin-top: 25px;
  margin-bottom: 20px;   
  border-radius: 8px;
  user-select: none;
  min-width: 300px;
  text-align: center;
}
/* Input box */
#spellingbee_input {
  font-family: var(--fontFamilyArvo);
  font-size: 36px;
  padding: 12px;
  margin-bottom: 0;
  width: 300px;
  text-transform: uppercase;
  border: 2px solid #ccc;
  border-radius: 6px;
  text-align: center;
  background: lightgray;
  box-shadow: var(--shadowIndent);
}
/* Buttons row */
.class_RelFlex.spellingbee-buttons {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 30px;
}
/* Shared button style */
.class_RelFlex.spellingbee-btn {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  margin: 6px;
  width: 120px;
  height: 50px;
  font-size: 16px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
#spellingbee_hear {
  background: linear-gradient(135deg, #00bfff, #1e90ff);
}
#spellingbee_hear:hover {
  background: linear-gradient(135deg, #1e90ff, #00bfff);
  transform: scale(1.07);
  box-shadow: 0 6px 12px rgba(0, 191, 255, 0.4);
}
#spellingbee_show {
  background: linear-gradient(135deg, #28a745, #43c767);
}
#spellingbee_show:hover {
  background: linear-gradient(135deg, #43c767, #28a745);
  transform: scale(1.07);
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
}
#spellingbee_hide {
  background: linear-gradient(135deg, #6c757d, #495057);
}
#spellingbee_hide:hover {
  background: linear-gradient(135deg, #495057, #6c757d);
  transform: scale(1.07);
  box-shadow: 0 6px 12px rgba(108, 117, 125, 0.4);
}
#spellingbee_submit {
  background: linear-gradient(135deg, #6f42c1, #8a63d2);
}
#spellingbee_submit:hover {
  background: linear-gradient(135deg, #8a63d2, #6f42c1);
  transform: scale(1.07);
  box-shadow: 0 6px 12px rgba(111, 66, 193, 0.4);
}
#spellingbee_newword {
  background: linear-gradient(135deg, #dc3545, #ff6b81);
}
#spellingbee_newword:hover {
  background: linear-gradient(135deg, #ff6b81, #dc3545);
  transform: scale(1.07);
  box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
}
.class_RelFlex.TubeSpellingBee {
    width: 100%;
    height: 130px;
}
#spellingbee_micbtn, #spellingbee_clearbtn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 30px;
  background: linear-gradient(135deg, #111, #333);  /* Shiny black gradient */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  transform: scale(1.07);
}
#spellingbee_micbtn:hover, #spellingbee_clearbtn:hover {
  background: linear-gradient(135deg, #222, #555);
  transform: scale(1.07);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}
/* Active recording state */
#spellingbee_micbtn.active {
  background: linear-gradient(135deg, gold, #ffd700) !important;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,255,0,0.4); }
  50%  { box-shadow: 0 0 0 12px rgba(0,255,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,0,0); }
}
/* Feedback emoji icon */
.spellingbee-icon {
  font-size: 60px;
  margin-left: 12px;
  color: darkblue;
}
/* Optional Info Panel */
#wspelling_infopanel {
  position: absolute;
  top: 0;
  left: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: whitesmoke;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
}
/* Responsive adjustments: Small screens (phones) */
@media (max-width: 599px) {
  .spellingbee-panel h2 {
    font-size: 24px;
  }

  .spellingbee-group-label {
    font-size: 16px;
  }

  .spellingbee-radio-option {
    font-size: 16px;
    padding: 6px 12px;
  }

  #spellingbee_displayWord {
    font-size: 48px;
    letter-spacing: 2px;
    min-width: 200px;
  }

  #spellingbee_input {
    font-size: 24px;
    width: 90%;
    max-width: 280px;
  }

  .class_RelFlex.spellingbee-buttons {
    justify-content: center;
  }

  .class_RelFlex.spellingbee-btn {
    width: 100px;
    height: 44px;
    font-size: 14px;
  }

  .class_RelFlex.TubeSpellingBee {
    height: auto;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  #spellingbee_micbtn, #spellingbee_clearbtn {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .spellingbee-icon {
    font-size: 40px;
  }

  #wspelling_infopanel {
    font-size: 14px;
  }
}

/* Medium screens: tablets */
@media (min-width: 600px) and (max-width: 1024px) {
  #spellingbee_displayWord {
    font-size: 72px;
  }

  #spellingbee_input {
    font-size: 28px;
    width: 80%;
  }

  .class_RelFlex.spellingbee-btn {
    width: 110px;
    height: 48px;
    font-size: 15px;
  }

  #spellingbee_micbtn, #spellingbee_clearbtn {
    width: 65px;
    height: 65px;
    font-size: 32px;
  }

  .spellingbee-icon {
    font-size: 50px;
  }
}
@media (min-width: 1700px) {
  #spellingbee_displayWord {
    font-size: 140px;
  }
}
/**********************************************/
/************ Spelling Bee Styles *************/
/**********************************************/









/**********************************************/
/************** Matching Emojis ***************/
/**********************************************/
.class_Emoji-wrap {
    box-sizing: border-box;
    position: relative;
  display: block;
  padding: 20px;
  text-align: center;
}
.class_Emoji-card h2 {
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
  margin: 0 0 6px;
  font-size: 16px; /* 18 → 22.5 */
  font-weight: lighter;
  color: #222222;
}
.class_Emoji-muted {
  margin: 0 0 16px;
  font-size: 17.5px; /* 14 → 17.5 */
  color: #666666;
}
.class_Emoji-emoji {
    box-sizing: border-box;
  font-size: 80px; /* 64 → 80 */
  text-align: center;
  margin: 10px 0 18px;
}
.class_Emoji-options {
    box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  margin: 0 -5px;
}
.class_Emoji-option {
  box-sizing: border-box;
  float: left;
  width: 48%;
  margin: 10px 1%;
  padding: 12.5px 15px; /* 10/12 → 12.5/15 */
  border: 1px solid #cccccc;
  border-radius: 8px;
  background: #f8f8f8;
  font-size: 18.75px; /* 15 → 18.75 */
  font-weight: 600;
  text-align: left;
  cursor: pointer;

  /* prevent wrapping */
  white-space: nowrap;
  overflow: hidden;         /* hide overflow text */
  text-overflow: ellipsis;  /* add … if too long */
}
.class_Emoji-option:hover {
  background: #eeeeee;
}
.class_Emoji-option.class_Emoji-correct {
  background: #e6f9ef;
  border-color: #33cc99;
}
.class_Emoji-option.class_Emoji-wrong {
  background: #fdeaea;
  border-color: #f08080;
}
.class_Emoji-controls {
    box-sizing: border-box;
  clear: both;
  text-align: right;
  margin-top: 0;
}
.class_Emoji-next {
    box-sizing: border-box;
  padding: 18px 30px;
  border: none;
  border-radius: 6px;
  background: lightgray;
  color: black;
  font-weight: bold;
  cursor: pointer;
}
.class_Emoji-next:hover {
  background: darkgray;
}
.class_Emoji-next.Active {
  padding: 18px 30px;
  border: none;
  border-radius: 6px;
  background: black;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.class_Emoji-card {
  box-sizing: border-box;
  background: #ffffff;
  max-width: 100%;
  width: 100%;
  max-width: 700px;    
  margin: 0 auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);        
  text-align: left;
}
@media screen and (min-width:1440px) {
  .class_Emoji-card {    min-width: 800px;  }
  .class_Emoji-card h2{font-size:18px;} /* 22 → 28 */
  .class_Emoji-emoji{font-size:140px;}  /* 80 → 100 */
  .class_Emoji-option{font-size:36px;} /* 18 → 22.5 */
  .class_Emoji-next{font-size:18px;}
}
@media screen and (min-width:1920px) {
  .class_Emoji-card {    min-width: 900px;  }
  .class_Emoji-card h2{font-size:24px;} /* 28 → 35 */
  .class_Emoji-emoji{font-size:210px;}  /* 96 → 120 */
  .class_Emoji-option{font-size:50px;padding:18px;} /* 20 → 25 */
  .class_Emoji-next{font-size:35px;}
}
/**********************************************/
/************** Matching Emojis ***************/
/**********************************************/




























