  body {
 margin: 0;
 padding: 0;
 font-family: Arial, sans-serif;
 overflow-y: auto;
 height: 100vh;
 z-index: 0;

 
 background: 
    repeating-linear-gradient(
   45deg,
   transparent 0,
   transparent 5px,
   rgba(255, 255, 255, 0.295) 9px,
   rgba(255, 255, 255, 0.212) 10px
  ),
  
  repeating-linear-gradient(
   -45deg,
   transparent 0,
   transparent 0px,
   rgba(255, 255, 255, 0.397) 5px,
   rgba(255, 255, 255, 0.39) 10px
  ),
  
  linear-gradient(-45deg, #96c1f0, #b2f3d8, #aacaec, #faeded);
}


  html, body {
   max-height: 100vh;
   overflow-y: auto;
  }

  header {
   background: linear-gradient(-45deg, #0056b3, #1bc47d, #007bff, #4666f3);
   color: white; 
   display: flex;
   align-items: center;
   justify-content: space-between;
   position: relative;
   flex-wrap: wrap;
   text-align: center;
   background-size: 400% 400%;
   animation: gradientflow 10s ease-in-out infinite;
   height: 70px;  
  }

  

  @keyframes gradientflow {
   0% {
    background-position: 0% 50%;
   }
    50% {
    background-position: 100% 50%;
   }
    100% {
    background-position: 0% 50%;
   }
  }

  header img {
  height: 95%;
  width: 120px;

   position: absolute;
   left: 20px;
   top: 50%;
   transform: translateY(-50%);
  }

  

  @keyframes h1gradientflow {
   0% {
    background-position: 0% 50%;
   }
    50% {
    background-position: 100% 50%;
   }
    100% {
    background-position: 0% 50%;
   }
  }

  
footer {
 position: fixed;
 right: 0;
 bottom: 0;
 width: 100%;
 text-align: right;
 padding: 0;      
 pointer-events: none;   
 z-index: 10;
}

footer .footer-box {
 display: inline-block;
 pointer-events: auto;    
 padding: 0.25em 1em;   
 background: linear-gradient(60deg, #ff0a0a, #3513f5);
 color: white;
 font-weight: 800;
 font-size: clamp(14px, 2vw, 20px);
 margin-bottom: 0;
 margin-right: 0;
 border-radius: 2em 0em 0em 0em;
}



@media (max-width: 600px) {
 footer .footer-box {
  font-size: clamp(12px, 3vw, 16px);
  padding: 0.25em 0.75em;
  border-radius: 2em 0em 0em 0em;
 }
}



  .container {
   padding: 20px;
   max-width: 1500px;
   margin: 0 auto;
  }

  .button-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: clamp(6px, 1.5vw, 14px);
   padding: 10px 6px;
   box-sizing: border-box;
   justify-items: center;
  }

  .button-grid button {
   padding-top: 10px;
   padding-bottom: 10px;
   padding-left: 40px;
   padding-right: 40px;
   background-color: #007bff;
   border: 2px solid yellow;
   color: white;
   font-size: 20px;
   border-radius: 5px;
   cursor: pointer;
   transition: background-color 0.3s;
  }

  .button-grid button:hover {
   background-color: #0056b3;
  }

  #typingPage, #resultPage {
   display: none;
  }

  #typingPage {
   width: 60%;
   margin: 0 auto;
   padding: 10px;
   background-color: #9b9898;
   border-radius: 8px;
   box-sizing: border-box;
   margin-top: 80px;
  }

  .time-button {
 display: flex;
 flex-direction: row;
 justify-content: right;
 margin-right: 75px;
 gap: 20px;
 margin-bottom: -50px;
 margin-top: 20px;
 
}

 .result-actions {
  display: flex;
  justify-content: center; 
  gap: 8px;        
  width: 100%;
  margin: 0 auto;
 }

  .result-actions button {
 padding: 10px 20px;
 font-size: 18px;
 flex: none;      
 max-width: none;
 width: auto;      

 }


  #timer {
   font-size: 28px;
   font-weight: 5px;
   color: #ffffff;
   padding: 8px 14px;
   border: 3px solid rgb(255, 255, 255);
   border-radius: 8px;
   background: linear-gradient(200deg, #3b3efc, #0d1e68);
   z-index: 10;
   cursor: pointer;
  }

  #wordCounter {
   font-size: 28px;
   font-weight: 5px;
   color: #ffffff;
   padding: 8px 14px;
   border: 3px solid rgb(255, 255, 255);
   border-radius: 8px;
   background: linear-gradient(200deg, #3b3efc, #0d1e68);
   z-index: 10;
   min-width: 130px;
   text-align: center;
  }
   
  #typingTextDisplay {
   font-size: 1.8em !important;
   width: 83.5%;
   padding: 25px;
   padding-top: 0px;
   background: white;
   border: 2px solid #ccc;
   font-family: Times New Roman, Times, serif;
   height: 60px;
   margin: 0 auto;
   display: block;
   margin-top: 15px;
   margin-bottom: 30px;
   min-height: 60px;
   max-height: 200px;
   text-align: justify;
   white-space: pre-wrap;
   word-wrap: break-word;
   line-height: 1.6;
   line-height: 40px;
   overflow-y: hidden;
   scrollbar-width: none;
   -ms-overflow-style: none;
   user-select: none;
  }

  .hindi-padding {
   padding-top: 5px !important;
   line-height: 43px !important;
  }

  #typingTextDisplay::-webkit-scrollbar {
   display: none;
  }
   
  textarea {
   width: 90%;
   height: 70px;
   font-size: 1.8em !important;
   align-items: center;
   padding: 10px;
   border-radius: 8px;
   border: 3px solid #ccc;
   resize: none;
   overflow-y: auto;
   white-space: pre-wrap;
   box-sizing: border-box;
   line-height: 1.5;
   margin: 0 auto;
   text-align: justify;
   display: block;
   font-family: Times New Roman;
   overflow-y: scroll;
   scrollbar-width: none;
   -ms-overflow-style: none;
  }

  .resultPage {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   align-items: center;
   gap: 15px;
   max-width: 600px;
   margin: 0 auto;
   padding-top: 50px;
   overflow-y: auto !important;
  }

  .results {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 15px;
   margin-top: 20px;
  }

  .results button {
   flex: 1 1 220px;
   max-width: 250px;
   margin: 8px;
   padding: 16px;
   font-size: 19px;
   border: none;
   border-radius: 12px;
   background: linear-gradient(45deg, gray, black);
   color: white;
   text-align: center;
   box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
   transition: transform 0.2s;
  }

  .results button:hover {
   transform: scale(1.05);
   background: linear-gradient(45deg, #333, #111);
  }

  .glow-button-wrapper {
   width: 100%;
   display: flex;
   justify-content: center;
  }

  .glow-button {
   width: 100%;
   padding: clamp(6px, 1.5vw, 14px);
   font-size: clamp(11px, 1.8vw, 16px);
   white-space: nowrap;
   overflow: visible;
   text-overflow: unset;
   text-align: center;
   line-height: 1.2;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 10px;
   background: linear-gradient(200deg, #080303, #f32c2c);
   color: rgb(114, 190, 174);
   border: none;
   cursor: pointer;
  }

  
  #typing-test-container {
   background: rgba(208, 209, 209, 0.7);
   border-radius: 3px;
   box-shadow: 0 6px 24px rgba(30,30,70,0.13);
   padding: 0.3vw 1.3vw 0.5vw 1.3vw;
   max-width: 400px;
   width: 55vw;
   display: flex;
   flex-direction: column;
   user-select: none;
   margin-left: 3vw;
   margin-top: 12px;
  }

  #lang-timer {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 0.4vw;
  }

  #lang-btns {
   display: flex;
   gap: 10px;
  }

  #lang-btns button {
   padding: 0.4em 1em;
   border: none;
   border-radius: 6px;
   background: linear-gradient(90deg, #e0c3fc 0%, #8ec5fc 100%);
   color: rgb(0, 0, 0);
   font-weight: 500;
   font-size: 1.1em;
   cursor: pointer;
   transition: background-color 0.2s;
   margin-bottom: 0em;
   
  }

  #lang-btns button:hover {
   background: linear-gradient(90deg, #8ec5fc, #e0c3fc);
   color: whitesmoke;
  }


  #lang-btns button.active {
   background: linear-gradient(90deg, #c40f18 0%, #07020c 100%) !important;
   color: white !important;
  }

  #clock-badge {
   display: flex;
   align-items: center;
   gap: 6px;
   font-weight: 700;
   font-size: 1.3em;
   background: linear-gradient(90deg, #ffecd293 0%, #fcb69fc4 100%);
   color: #ff0000;
   padding: 0.2em 1.2em 0.2em 0.5em;
   border-radius: 10px;
   box-shadow: 0 2px 8px rgba(0,0,0,0.1);
   border: 2px solid rgba(255,255,255,0.35);
   user-select: none;
  }

  #clock-badge .icon {
   font-size: 1.2em;
   opacity: 0.8;
  }

  #display-text-viewport {
   background: #fffefe;
   border: 1.5px solid #747272;
   border-radius: 5px;
   padding: 0.3em;
   color: #000000;
   font-size: 31px;
   line-height: 1.4;
   height: calc(2em * 2.2);
   overflow: hidden;
   margin-bottom: 0.3em;
   position: relative;
   font-weight: 500;
   font-family: inherit 'Times New Roman', Times, serif;
   box-sizing: border-box;
   width: 100%;
   min-height: 1em;
   max-height: 3.5em;
   transition: display 0.2s, height 0.2s;
   
  }

  #display-text {
   width: 100%;
   box-sizing: border-box;
   padding: 0.3em;
   text-align: justify;
   text-justify: inter-word;
   white-space: normal;
   word-break: normal;
   transition: transform 0.3s cubic-bezier(.6,.2,.1,1);
   will-change: transform;
   overflow: visible;
   position: absolute;
   left: 0em; top: 0.087em;
   margin-top: auto;
   padding-top: 0em;
  
  }

  #display-text .word {
   display: inline-block;
   margin-right: 0em;
   border-radius: 4px;
   transition: color 0.2s, 'background' 0.2s, border 0.2s;
   white-space: pre;
   background: none;
   color: black;
   border: none;
   padding: 0.1em;
   
  }

  #display-text .word.current {
   background: #e9e7e7 !important;
   color: #000000 !important;
  }

  #display-text .word.current.live-error {
   background-color: #ff0505 !important;
   color: #fdfdfd !important;
  }

  #display-text .word.correct {
   color: #0e6603 !important;
  }

  #display-text .word.incorrect {
   color: #ff0505 !important;
  }

  #input-area {
   margin-bottom: 0.3em;
  }

  #user-input {
   width: 100%;
   min-height: 1.8em;
   font-size: 1.6em;
   padding: 0.35em;
   border-radius: 5px;
   border: 1.5px solid #bdbdbd;
   box-sizing: border-box;
   letter-spacing: 1px;
   font-family: inherit;
   font-weight: 500;
   background: #f7f7fa;
   transition: border 0.2s;
   max-width: 400px;
   margin-left: auto;
   margin-right: 0;
  }

  #user-input:focus {
   border-color: #8ec5fc;
   outline: none;
  }

  #restart-btn {
 padding: 0.4em 0;
 
 background: linear-gradient(90deg, #8ec5fc 0%, #e0c3fc 100%);
 color: rgb(0, 0, 0);
 border-radius: 6px;
 font-size: 1.5em;
 cursor: pointer;
 font-weight: 600;
 align-items: center;
 width: 160px;
 box-shadow: 0 1px 5px rgba(0,0,0,0.1);
 letter-spacing: 1px;
 transition: background 0.2s;
 margin: 0; 
 margin-left: auto;
}

#input-area #restart-btn{  
 margin:0;
 justify-content: center;     
 margin-right: auto; 
 
}

  #restart-btn:hover {
   background: linear-gradient(90deg, #e0c3fc 0%, #8ec5fc 100%);
   color: whitesmoke;
  }

  #result-box {
   background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
   border-radius: 14px;
   padding: 1em 1.5em 1em 1.5em;
   margin-top: 1em;
   display: none;
   flex-direction: column;
   gap: 10px;
   box-shadow: 0 2px 12px rgba(0,0,0,0.13);
   align-items: center;
   min-width: 270px;
   max-width: 600px;
   width: 100%;
   max-height: 65vh;
   overflow-y: auto;
   align-self: center;
  }

  #result-box .result-title {
   font-size: 1.3em;
   font-weight: 700;
   color: #4e54c8;
   margin-bottom: 0.3em;
   letter-spacing: 1px;
   display: flex;
   align-items: center;
   gap: 7px;
  }

  #result-box .result-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 0.7em 1.2em;
   width: 100%;
   margin-bottom: 0.5em;
   margin-top: 0.1em;
  }

  #result-box .result-item {
   display: flex;
   align-items: center;
   background: white;
   border-radius: 7px;
   padding: 0.5em 0.7em;
   font-size: 1em;
   font-weight: 500;
   color: #222;
   box-shadow: 0 1px 5px rgba(0,0,0,0.1);
   gap: 0.5em;
   letter-spacing: 0.5px;
   min-width: 70px;
  }

  #result-box .result-item .icon {
   font-size: 1.1em;
   margin-right: 0.3em;
   width: 1.2em;
   text-align: center;
   opacity: 0.85;
  }


  
  
  @media (max-width: 900px) {
   #typing-test-container { max-width: 99vw; }
   #result-box { max-width: 98vw; }
  
   header {
   height: 50px;  
  }
   header img {   
   width: 80px !important;   
  }

   .home-button-container .custom-btn {
   height: 50px !important;
   font-size: 12px !important;
   }
  }

   @media (min-width: 320px) and (max-width: 600px) {
    .button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
     column-gap: 4px !important; 
   }
   .button-grid button {
     width: 100% !important;
   font-size: 13px;
  
   } 
   
.pdf-button {
 padding: 7px !important;
 font-size: 15px !important;
 margin-top: 20px !important;
margin: auto !important;
}

#pageHeading {
 font-size: 20px !important;
 margin-left: -120px !important;
}
.highlight {
font-size: 23px !important;
}    
  }
  
  

  @media (max-width: 600px) {

    .results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;     
  margin-top: 10px;
 }
 .result-actions {
  display: flex;
  justify-content: center; 
  gap: 8px;        
  width: 100%;
  margin: 0 auto;
 }
 .result-actions button {
 padding: 10px 20px;
 font-size: 18px;
 flex: none;      
 max-width: none;
 width: auto;     

 }

 .results button {
    flex: 1 1 calc(50% - 8px);
  max-width: calc(50% - 8px);
  margin: 4px 0;  
  padding: 9px;
  font-size: 15px;
 }
   
   header img {
   height: 85%;
   width: 50px;
   position: absolute;
   left: 10px;
   top: 50%;
   transform: translateY(-50%);
  }

     .home-button-container .custom-btn {
   height: 50px !important;
   font-size: 18px !important;
   padding: 10px 15px !important;
   }

   #pageHeading {
margin-top: 15px !important;
}

#hindi-render-buttons {
margin-left: -140px !important; 
}
#advance-typing #render-buttons-wrapper {
 margin-left: -140px !important; 
}

.newheading {
  font-size: 0.8rem !important;
}

.control-input {
 padding: 1px !important;
 border-radius: 0px !important;
}

#backspaceControl .control-row { 
 padding: 3px 4px !important; 
 margin: 0 1px !important; 
 border-radius: 0px !important;
}
.back {
 overflow-wrap: break-word;
 word-wrap: break-word;
 word-break: break-word;
}

.menu .desc {
 display: none;
}
.menu .title {
font-size: 13px;
}


.pdf-button {
 padding: 7px !important;
 font-size: 15px !important;
 margin-top: 20px !important;
margin: auto !important;
}

.button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
   }
   .button-grid button {    
   font-size: 13px;
  }

  .time-button {
 margin-right: 10px;
 gap: 15px;
 margin-top: 10px;
 margin-bottom: -60px;
 }
  #timer {
   font-size: 20px;
   font-weight: 5px;   
   padding: 6px;
   
  }

  #wordCounter {
    font-size: 20px;
   font-weight: 5px;   
   padding: 6px;
   
  }

   #typing-test-container {
    max-width: 99vw;
    padding: 4vw 2vw 4vw 2vw;
   }
   
   #user-input {
    font-size: 1.8em;
    min-height: 1.6em;
    padding: 0.5em;
   }

    #typing-test-container {
    max-width: 700px !important;
   width: 70vw !important;
    margin-left: 0vw !important;
   
  }

   #display-text-viewport {
    font-size: 1em !important;
    height: calc(1.50em * 2.2);
    min-height: 2.5em;
    border-radius: 0px !important;
    }

    #user-input {
    font-size: 1em;
    min-height: 1.8em;
    padding: 0.3em;
   }
   
   #lang-btns button {
   padding: 0.2em 0.4em;   
   font-size: 0.8em;   
   margin-top: 0px !important;
  }

  #lang-btns {
   gap: 5px;
  }
   #clock-badge {
    font-size: 0.85em !important;
    padding: 0.2em 0.3em 0.2em 0.3em !important;
    margin-left: 4px;
   }
     #clock-badge .icon {
   font-size: 0.8em;
   opacity: 0.8;
    }
   #restart-btn {
    font-size: 1em;
    width: 110px;
    padding: 0.4em 2px;
   }
   #result-box {
    font-size: 0.75em;
    min-width: 40vw;
    max-width: 98vw;
    max-height: 70vh;
    padding: 0.5em 0.5em 0.5em 0.5em;
   }
   #result-box .result-item {
    
    font-size: 0.75em;
    padding: 0.4em 0.6em;
    min-width: 50px;
   }
  #result-box .result-grid {
   display: block;
   grid-template-columns: 1fr;
   gap: 0.7em 1.2em;
   width: 100%;
   margin-bottom: 0.5em;
   margin-top: 0.1em;
  }

 }
  .glow-button span {
   white-space: nowrap;
   display: block;
   overflow: visible;
   text-overflow: unset;
  }

  .button-grid button:hover {
   background: linear-gradient(60deg, #ff6b6b, #5f27cd);
   box-shadow: 0 0 10px #ff6b6b, 0 0 20px #5f27cd;
   transform: scale(1.08);
  }

  .button-grid button {
   position: relative;
   overflow: hidden;
   z-index: 1;
  }

  .button-grid button::before {
   content: "";
   position: absolute;
   top: 0; left: -100%;
   height: 100%;
   background: rgba(255,255,255,0.1);
   transition: left 0.5s ease;
   z-index: 0;
  }

  .button-grid button:hover::before {
   left: 0;
  }

  .button-grid button {
   transition: all 0.5s ease;
  }

  

  .custom-btn {
   background: transparent;
   color: white;
   padding: 16px 38px;
   font-size: 30px;
   border: none;
   border-radius: 30px;
   font-weight: bold;
   
   transition: all 0.3s ease;
   cursor: pointer;
   margin-top: 0;
   
   justify-content: center;
   align-items: center;
  }

  

 

  .home-btn {
   background: linear-gradient(45deg, #007bff, #0056b3);
  }

  .home-btn:hover {
   background: linear-gradient(45deg, #0056b3, #003d80);
  }

  .re-btn {
   background: linear-gradient(45deg, #00b900, #004b22);
  }

  .re-btn:hover {
   background: linear-gradient(45deg, #004b22, #00b900);
  }

  .home-button-container {
   display: flex;
   flex-wrap: nowrap;
   justify-content: flex-end;
   align-items: center;
   gap: 0;
   width: 100%;
   box-sizing: border-box;
   overflow: hidden;
   margin-right: 1px;
  }

  .home-button-container .custom-btn {
   background: transparent;
 color: white;
 height: 70px;
 display: flex;
 flex: 0 0 auto;
 align-items: center;
 justify-content: center;
 padding: 0 16px;
 font-size: clamp(10px, 1.8vw, 18px);
 white-space: nowrap;
 text-align: center;
 border-radius: 0;
 margin: 0;
 border: none;
 
}
header .home-button-container .custom-btn:hover {
 background: linear-gradient(90deg, #c20000, #e90000);
 background-size: 100%;
 background-repeat: no-repeat;
 background-size: cover;
 color: rgb(255, 255, 255);
}

.custom-btn {
  position: relative;
  overflow: hidden;
}

.custom-btn::after {
  content: "";
  position: absolute;
  left: 15%;
  bottom: 9px;
  height: 5px; 
  width: 70%;
  border-radius: 10px;
  background: linear-gradient(90deg, #ffffff, #ff0000); 
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.custom-btn.active::after {
  transform: scaleX(1); 
}

  

  @media (max-width: 360px) {
   .home-button-container {
    padding: 0 1px;
    gap: 3px;
   }

   .home-button-container .custom-btn {
    font-size: 8px;
    padding: 4px 6px;
   }

   
  }

   @media (min-width: 425px) {
   .button-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
   }   
  }

@media (max-width: 425px) {
  #backspaceControl .control-row label {
  font-size: 7px !important;
 }
}
/* <p style="display: none;">2025 JMB Typing Zone created by- Aman Sharma</p> */
@media (max-width: 768px) {
  #backspaceControl .control-row label {
  font-size: 15px !important;
 }

.newheading {
  font-size: 1rem !important;
}

.control-input {
 padding: 2px !important;
 border-radius: 0px !important;
}

#backspaceControl .control-row { 
 padding: 6px 8px !important; 
 margin: 0 1px !important; 
 border-radius: 0px !important;

}

} 
  @media (min-width: 768px) {
  
   .button-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
   }
   
  }

  @media (min-width: 1000px) {
   .button-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
   }
   
  }

  @media (min-width: 1200px) {
   .button-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
   }
  }

  #resultPage {
   height: auto;
   max-height: 90vh;
   overflow-y: auto !important;
   position: relative;
  }

  #resultPage::-webkit-scrollbar {
   width: 8px;
   background-color: #f5f5f5;
  }

  #resultPage::-webkit-scrollbar-thumb {
   background-color: #888;
   border-radius: 10px;
  }

  #resultPage::-webkit-scrollbar-track {
   background-color: #f5f5f5;
   border-radius: 10px;
  }

  #typedPreview {
   max-height: 300px;
   overflow-y: auto;
  }

  #typedPreview::-webkit-scrollbar {
   width: 6px;
   background-color: #f5f5f5;
  }

  #typedPreview::-webkit-scrollbar-thumb {
   background-color: #888;
   border-radius: 10px;
  }


.main-layout {
 display: flex;
 align-items: flex-start;
 gap: 20px; 
 margin-top: 2em;
}


.sidebar {
 width: 250px;
 background: rgba(208, 209, 209, 0.8);
 padding: 10px;
 margin-top: 10px;
 margin-left: -1.1em !important;
 z-index: 100;
}

.menu {
 display: block;
 padding: 12px;
 padding-top: 15px;
 padding-bottom: 15px;
 margin-bottom: 15px;
 text-decoration: none;
 color: #333;
 border-radius: 4px;
 background: #f9f9f9;
 border: 1px solid #ddd;
 transition: background 0.3s;
}

.menu:hover {
 background: #e0e0e0;
}

.menu .title {
 font-weight: bold;
 display: block;
}

.menu .desc {
 font-size: 0.9em;
 color: #666;
}

.menu.active {
 background: #3498db;
 color: #fff;
 border-color: #2980b9;
}

 

.highlight {
    background: linear-gradient(-90deg, #b700ff, #9c0101, #e98c00, #050500);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   animation: h1gradientflow 5s ease infinite;
   background-size: 400% 400%;
   font-weight: 900;
   font-size: 30px;
   
   padding-right: 5px;
  }

  @keyframes h1gradientflow {
   0% {
    background-position: 0% 50%;
   }
    50% {
    background-position: 100% 50%;
   }
    100% {
    background-position: 0% 50%;
   }
}



.selection-wrapper {
 display: flex;
 align-items: flex-start;
 gap: 30px;
 margin-left: 1px !important;
 padding-left: 0;
}
#backspaceControl {
 display: flex;       
 flex-direction: column;
 row-gap: 16px;       
 padding: 20px 6px;    
 background-color: #e0e5eb; 
 border-radius: 8px;
 margin-top: 85px;
 width: 18vw;
}

#backspaceControl .control-heading {
 background-color: #4a90e2;
 padding: 12px 16px;
 border-radius: 6px;
 margin: 0 8px;       
}
#backspaceControl .control-heading h3 {
 margin: 0;
 color: #fff;
 font-size: 1.25rem;
}


#backspaceControl .control-row {
 display: flex;
 flex-direction: column;
 background-color: #fff;
 padding: 12px 16px;
 border-radius: 6px;
 margin: 0 8px;        

}


#backspaceControl .control-row label {
 margin-bottom: 8px;
 font-size: 20px;
 font-weight: 500;
}
#backspaceControl .control-row input,
#backspaceControl .control-row select {
 padding: 8px;
 border: 1px solid #bbb;
 border-radius: 4px;
 font-size: 1rem;
}




#homePage .button-grid {
 flex: 1;
}

.newheading {
margin-bottom: 2px; 
text-align: center; 
margin-top: 2px; 
font-size: 25px; 
color: red; 
text-decoration: none; 
text-decoration-color: black;
}




#render-buttons, #hindi-render-buttons {
 display: grid;
 grid-template-columns: repeat(10, 1fr); 
 gap: 0px; 
 justify-content: center;
 padding: 10px 0;
 max-width: 600px;
 
}

#render-buttons button,
#hindi-render-buttons button {
 width: 100%;
 height: 40px;
 aspect-ratio: 1 / 1;
 font-size: 16px;
 text-align: center;
 padding: 0;
 font-weight: bold;
 margin: 0;
 background: linear-gradient(45deg, #28a745, #218838);
 color: white;
 border-width: 0 1px;
 border-style: solid;
 border-color: rgb(116, 197, 96);
 box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
 transition: all 0.2s ease;
}

#render-buttons button:hover,
#hindi-render-buttons button:hover {
 background: linear-gradient(45deg, #5ef57f, #1e7e34);
 transform: scale(1.05);
 cursor: pointer;
}

#render-buttons button.active,
#hindi-render-buttons button.active {
 background: linear-gradient(45deg, #f30909, #fd2424);
 box-shadow: 0 0 10px rgba(255, 0, 128, 0.6);
}


#advance-typing #render-buttons-wrapper {
 display: flex;
 flex-wrap: wrap;
 align-items: center;  
 justify-content: flex-start; 
 gap: 12px;        
 margin-top: 20px;   
 width: 100%;
}

#advance-typing #render-buttons {
 display: grid;
 grid-template-columns: repeat(10, 1fr);
 gap: 0;
 text-align: left;
 margin: 0px;
 order: 1;
}

#advance-typing .render-btn, 
#advance-typing #render-buttons button {

 padding: 8px 12px;
 font-size: 14px;
 cursor: pointer;
}

#advance-typing #pdf-button-container {
 display: inline-flex;
 align-items: center;
 margin-left: 10;
 order: 2;
 margin-left: auto;
 background: linear-gradient(45deg, #00b900, #004b22);
 cursor: pointer;
 border: 2px solid black;
 border-radius: 8px;
}

#pdf-button-container {
 display: none;
}


#advance-typing #pdf-button-container:hover {
 background: linear-gradient(45deg, #004b22, #00b900); /* नया रंग */
 border: 2px solid rgb(167, 0, 0);
 transition: all 0.3s ease-in-out;
 
}

.custom-btn.pdf-button {
 padding: 10px !important;
 font-size: 25px;
}


@media (max-width: 600px) {
 #advance-typing #pdf-button-container {
  width: 100%;      
  margin-top: 10px;    
 }
}



#hindiPopupOverlay {
 position: absolute;
 top: 100px;     
 left: 0px;    
 width: auto;
 height: auto;
 background-color: transparent;
  z-index: 1000;
 pointer-events: auto;
 padding: 5px; 
}


#hindiPopupContent {
 background-color: #ffffff;
 padding: 10px 10px;
 border-radius: 8px;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
 text-align: center;
 max-width: 300px;
 width: 90%;
 pointer-events: auto;
}

#hindiPopupContent p {
 font-size: 18px;
 margin-bottom: 16px;
 color: #fa0000;
}


#popupVideoBtn, #popupOkBtn {
 background: linear-gradient(45deg, #007bff, #0056b3);
 color: #fff;
 border: none;
 border-radius: 6px;
 padding: 10px 20px;
 font-size: 15px;
 margin: 6px;
 cursor: pointer;
 transition: transform 0.2s;
}
#popupVideoBtn:hover, #popupOkBtn:hover {
 transform: scale(1.05);
}


 .wrong-word {
  color: red;
  position: relative;
  cursor: help;
 }

 .wrong-word::before {
  content: attr(data-tooltip);
  position: absolute;
  top: -28px; 
  left: 0;
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 16px;
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
 }

 .wrong-word:hover::before {
  opacity: 1;
 }


 .menu-toggle {
  display: none; 
 }

 @media (max-width: 600px) {
  .menu-toggle {
   display: block;
   background: transparent;
   color: white;
   border: none;
   font-size: 30px;
   padding: auto;
   position: absolute;
   right: 10px;
   top: 2px;
   z-index: 1001;
   cursor: pointer;
   border: 2px solid white;
   border-radius: 5px;
  }

  .home-button-container {
   display: none;
   flex-direction: column;
   width: 175px;
   background: rgba(0, 0, 0, 0.35);
   position: absolute;
   top: 50px;
   right: 10px;
   z-index: 1000;
     }

     .menu-toggle:hover + .home-button-container,
.home-button-container:hover {
 display: flex; 
}

  .home-button-container.show {
   display: flex;
  }
   .home-button-container .custom-btn {
  display: block;   
  width: 100%;    
  box-sizing: border-box;
  text-align: center; 
 }


 .home-button-container .custom-btn:hover {
  background: linear-gradient(90deg, #c20000, #e90000) !important;

 }
 }

 

#homeAds {
  display: flex;
  justify-content: space-between; 
  gap: 0px;
  margin: 10px 0;
  flex-wrap: nowrap;              
  width: 100%;
}

#homeAds ins {
  flex: 1;                       
  width: 100% !important;         
  height: auto !important;
  max-height: 160px !important;
}


.typingAds {
  display: flex;
  justify-content: space-between;
  gap: 0px;
  margin: 20px 0;
  flex-wrap: nowrap;
  width: 100%;

}

.typingAds ins {
  flex: 1;
  width: 100% !important;
  height: auto !important;
  max-height: 160px !important;
  
}

