/* ================= GLOBAL FIX ================= */
html,
body {
  overflow-x: hidden;
}


/* Large mobile section starts here */
/* ================= NAVBAR ================= */
@media (max-width: 426px) {

  /* navigation section starts here */
  /* .navbar {
    padding: 8px 12px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .navbar a {
    font-size: 0.85rem;
  }

  .logo {
    font-size: 1.1rem;
  } */
  /* navigation section ends here */





  /* Typing course section starts here */

  .level-container {
    /* border: 2px solid blue; */
    /* flex-direction: column; */
    align-items: center;
  }

  .TypingCourseCard {
    /* border: 2px solid red; */
    width: 88vw;
    /* width: 35vw; */
    height: 70px;
    width: 65%;
    font-size: 1.3rem;
    height: auto;

  }

  .seo-content {
    max-width: 92vw !important;
    font-size: 0.9rem;
  }



  .level-container {
    /* border: 2px solid yellow; */
    margin: 15px auto;
    /* margin: 9px auto; */
  }

  .card {
    /* border: 1px solid aqua; */
    width: 46%;
    max-width: 95%;
    margin: 8px auto;
    /* margin: 5px auto; */
    font-size: 1.2rem;
    padding: 16px;
    color: white;
    height: auto;
  }

  /* Typing course section ends here */


  /* Beginner section starts here */

  .beginner,
  .page1 {
    /* border: 2px solid red; */
    margin-top: 9vw;
    /* margin-top: 20vw;/ */
    max-width: 95vw;
    /* padding: 3px; */
  }

  .text-container {
    font-size: 0.9rem;
  }

  .lesson {
    /* width: 92%; */
    font-size: 1rem;
    /* padding: 12px; */
  }



  /* Beginner section ends here */


  /* lesson page starts here */

  .typing-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 130px;
    /* margin-top: 148px; */
    /* margin-top: 25vh; */
  }

  /* 🔥 KEY CONTAINER SMALL */
  .key-container {
    transform: scale(0.85);
    transform-origin: top center;
  }

  .key-row {
    gap: 8px;
  }

  .key-box {
    width: 55px;
    height: 55px;
    font-size: 20px;
    border-radius: 10px;
  }

  .key-box.wide {
    /* border: 2px solid yellow; */
    width: 95px;
    height: 35px;
    height: 25px;
    font-size: 14px;
  }

  /* STATUS SMALL */
  .status-container {
    width: 92%;
    align-items: center;
  }

  .stat-box {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .progress-bar {
    width: 100%;
    height: 10px;
  }

  .timer {
    font-size: 16px;
  }

  /* lesson page ends here */




  /* Result page section starts here */

  .result-container {
    width: 92%;
    margin: 110px auto 30px auto;
    padding: 18px;
  }

  .result-box {
    font-size: 0.95rem;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .buttons button {
    width: 100%;
    font-size: 0.9rem;
  }





  /* Result page section ends here */


  /*  heading starts here */
  .page-section h1 {
    font-size: 1.6rem;
  }

  .page-section h2 {
    font-size: 1.2rem;
  }

  /* heading ends here */


}







/* ================= 375px (medium mobile)================= */
@media (max-width: 375px) {

  /* Typing course page starts here */
  .typing-course-section h1 {
    font-size: 2rem;
    margin-top: 119px;
  }

  .beginner h1 {
    font-size: 2rem;
    margin-top: 119px;
  }


  /* Typing course page ends here */

  .key-container {
    transform: scale(0.78);
  }

  .key-box {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .key-box.wide {
    width: 85px;
    height: 32px;
    font-size: 13px;
  }

  .stat-box {
    font-size: 0.8rem;
  }

  .timer {
    font-size: 15px;
  }
}

/* ================= 320px ================= */
@media (max-width: 321px) {

  /* typing course and beginner page starts here */
  .beginner,
  .page1 {
    /* border: 2px solid aqua; */
    margin-top: 2vw;
    max-width: 95vw;
    padding: 0px;
  }

  .text-container {
    font-size: 0.9rem;
  }


  .lesson {
    /* width: 92%; */
    font-size: 1rem;
    /* padding: 12px; */
  }



  /* typing course and beginner page ends here */

  .typing-course-section {
    margin-top: 5px auto;
    border: 2px solid blue;
  }

  .typing-wrapper {
    border: 2px solid aqua;
    margin-top: 50vw;

  }

  .key-container {
    transform: scale(0.7);
  }

  .key-box {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .key-box.wide {
    width: 75px;
    height: 28px;
    font-size: 12px;
  }

  .stat-box {
    font-size: 0.75rem;
  }

  .timer {
    font-size: 14px;
  }
}





@media (max-width: 320px) {

  /* heading section  */
  .page-section h1 {
    font-size: 1.3rem;
  }

  .page-section h2 {
    font-size: 1.05rem;
  }
}


/* ================= SMALL MOBILE DEVICES ================= */

/* 425px (large phones) */
@media (max-width: 426px) {


  /* typing course section starts here */

  .level-container {
    /* border: 2px solid yellow; */
    margin: 15px auto;
    /* margin: 9px auto; */
  }

  .card {
    /* border: 1px solid aqua; */
    width: 46%;
    max-width: 95%;
    margin: 8px auto;
    /* margin: 5px auto; */
    font-size: 1.2rem;
    padding: 16px;
    color: white;
    height: auto;
  }
}

/* 375px (medium phones) */
@media (max-width: 375px) {

  .typing-course-section {
    margin-top: 50px;
  }

  .card {
    max-width: 96%;
    font-size: 1.1rem;
    padding: 20px;
    border-radius: 12px;
  }
}

/* 320px (small phones like older devices) */
@media (max-width: 320px) {
  .card {
    /* max-width: 98%; */
    font-size: 1rem;
    /* padding: 12px; */
    /* border-radius: 10px; */
    border-radius: 7px;
  }
}
