@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background: #fff;
}

/*--- Header Styling ---*/
.header {
  width: 100%;
  height: 60px;
  background-color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.logo-box {
  display: flex;
  align-items: center;
  cursor: pointer;
  object-fit: cover;
}

.logo-img {
  height: 40px;
  width: auto;
}

.right-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.level-box {
  padding: 9px 18px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.5s ease;
  background: white;
}

.settings-box {
  padding: 9px 18px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  color: #007bff;
  cursor: pointer;
  transition: all 0.5s ease;
}

.level-box:hover {
  color: white;
  background-color: blueviolet;
}

.settings-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-box:hover {
  color: white;
  background-color: blueviolet;
}

.settings-box i {
  font-size: 18px;
}

.course-page-link {
  height: 40px;
  background-color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin: 5px;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  font-size: 15px;
  font-weight: bold;
  color: blueviolet;
}

.course-page-link:hover {
  background-color: rgb(238, 226, 249);
}

.course-page-link i {
  font-size: 22px;
  color: blueviolet;
  margin-right: 6px;
}





/*======= Home Banner =======*/
#logo-container {
  height: 530px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  background-image: url(img/x-type-master-home-banner.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

#logo-container h1 {
  font-size: 60px;
  color: rgb(0, 0, 0);
  margin: 0;
  font-weight: bold;
}

#logo-container p {
  font-size: 16px;
  color: rgb(0, 0, 0);
  line-height: 1.6;
  max-width: 800px;
  margin: 20px auto;
  font-family: 'Roboto', sans-serif;
  text-align: center;
}

.btn-learn-more {
  /* background-color: #3498db5b; */
  background-color: orange;
  color: rgb(0, 0, 0);
  padding: 14px 30px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 30px;
  transition: background-color 0.3s;
}

.btn-learn-more:hover {
  /* background-color: orange; */
  background-color: #2980b9;
}

#logo-container {
  padding: 60px 0 40px 0;
}

.noMarginOnHeaderFooter {
  margin: 0px !important;
}







/*----------Learning Menu option-----------*/
.learning-dropdown {
  position: relative;
  width: 210px;
  height: 40px;
}

.learning-dropdown::before {
  content: '';
  position: absolute;
  right: 15px;
  top: 12px;
  z-index: 10;
  width: 6px;
  height: 6px;
  border: 2px solid #646464;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg);
  transition: 0.5s;
  pointer-events: none;
}

.learning-dropdown.active::before {
  top: 17px;
  transform: rotate(-225deg);
}

.learning-dropdown .textBox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  cursor: pointer;
  background-color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
}

.learning-dropdown .selected {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  background-color: #fff;
  font-size: 15px;
  pointer-events: none;
  font-weight: 600;
}

.learning-dropdown .selected i {
  font-size: 1.2em;
  margin-right: 10px;
  color: #701af2;
}

.learning-dropdown .option {
  position: absolute;
  top: 50px;
  width: 100%;
  background-color: #e7e7e7;
  box-shadow: 0 30px 30px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  overflow: hidden;
  display: none;
  z-index: 5;
}

.learning-dropdown.active .option {
  display: block;
}

.learning-dropdown .option div {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.learning-dropdown .option div:hover {
  background: #d7d7d7ac;
}

.learning-dropdown .option div i {
  font-size: 1.2em;
  margin-right: 10px;
  color: #701af2;
}




/*---------- Accuracy Mode Menu -----------*/
.accuracy-dropdown {
  position: relative;
  width: 200px;
  height: 40px;
}

.accuracy-dropdown::before {
  content: '';
  position: absolute;
  right: 15px;
  top: 12px;
  z-index: 10;
  width: 6px;
  height: 6px;
  border: 2px solid #646464;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg);
  transition: 0.5s;
  pointer-events: none;
}

.accuracy-dropdown.active::before {
  top: 17px;
  transform: rotate(-225deg);
}

.accuracy-dropdown .textBox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  cursor: pointer;
  background-color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
}

.accuracy-dropdown .selected {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  background-color: #fff;
  font-size: 15px;
  pointer-events: none;
  font-weight: 600;
}

.accuracy-dropdown .selected i {
  font-size: 1.2em;
  margin-right: 10px;
  color: #701af2;
}

.accuracy-dropdown .option {
  position: absolute;
  top: 50px;
  width: 100%;
  background-color: #e7e7e7;
  box-shadow: 0 30px 30px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  overflow: hidden;
  display: none;
  z-index: 5;
}

.accuracy-dropdown.active .option {
  display: block;
}

.accuracy-dropdown .option div {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.accuracy-dropdown .option div:hover {
  background: #d7d7d7ac;
}

.accuracy-dropdown .option div i {
  font-size: 1.2em;
  margin-right: 10px;
  color: #701af2;
}



/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  Speed Mode Dropdown  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/

.speed-dropdown {
  position: relative;
  width: 230px;
  height: 40px;
}

.speed-dropdown::before {
  content: '';
  position: absolute;
  right: 15px;
  top: 12px;
  z-index: 10;
  width: 6px;
  height: 6px;
  border: 2px solid #646464;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg);
  transition: 0.5s;
  pointer-events: none;
}

.speed-dropdown.active::before {
  top: 17px;
  transform: rotate(-225deg);
}

.speed-dropdown .textBox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  cursor: pointer;
  background-color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
}

.speed-dropdown .selected {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  background-color: #fff;
  font-size: 15px;
  pointer-events: none;
  font-weight: 600;
}

.speed-dropdown .selected i {
  font-size: 1.2em;
  margin-right: 10px;
  color: #701af2;
}

.speed-dropdown .option {
  position: absolute;
  top: 50px;
  width: 100%;
  background-color: #e7e7e7;
  box-shadow: 0 30px 30px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  overflow: hidden;
  display: none;
  z-index: 5;
}

.speed-dropdown.active .option {
  display: block;
}

.speed-dropdown .option div {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.speed-dropdown .option div:hover {
  background: #d7d7d7ac;
}

.speed-dropdown .option div i {
  font-size: 1.2em;
  margin-right: 10px;
  color: #701af2;
}





/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  Level Modal Box  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/

.modal-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  text-align: center;
  background-color: #ffffff;
  width: 700px;
  height: 550px;
  padding: 20px 20px 70px 20px;
  border: 1px solid rgb(212, 212, 212);
  border-radius: 10px;
  box-shadow: 10px 10px 50px rgba(0, 0, 0, .2);
  visibility: hidden;
  transition: .4s ease-in-out;
  z-index: 11;
}

.modal-box-active {
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.overlay {
  position: absolute;
  background-color: rgba(0, 0, 0, .4);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  visibility: hidden;
  transition: .3s;
}

.overlay-active {
  visibility: visible;
}

.modal-box .close-modal-box-btn {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 30px;
  color: rgb(66, 66, 66);
  cursor: pointer;
  visibility: hidden;
}

.modal-box .save-modal-box-btn {
  padding: 8px 12px;
  background-color: #069f1b;
  color: rgb(255, 255, 255);
  font-size: 20px;
  border-radius: 5px;
  border: none;
  position: absolute;
  bottom: -7px;
  right: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
  letter-spacing: 1px;
}

.modal-box .contents {
  background: rgba(0, 0, 0, 0.066);
  border-radius: 10px;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.contents .labels {
  width: 30%;
  padding: 20px;
  text-align: start;
}

.contents .labels .list {
  list-style: none;
  font-size: 16px;
  color: #707070;
  font-weight: 600;
  padding: 10px 10px 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
}

.contents .labels .list:hover {
  background-color: #2727270f;
  color: #000;
}

.contents .labels .list.active {
  background-color: #8331ff;
  color: white;
}

.contents .levels-container {
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  margin: 20px 20px 20px 0;
  color: #ffffff;
  width: 70%;
  padding: 20px;
  border-radius: 8px;
  gap: 10px;
  align-content: flex-start;
  overflow: auto;
}

.levels-container h1 {
  color: #069f1b;
  font-size: 30px;
  width: 100%;
  border-bottom: 1px solid #707070;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.levels-container .level-card {
  height: 12%;
  width: 12%;
  background: rgb(89, 0, 255);
  border-radius: 50%;
  color: black;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.levels-container .level-card {
  transition:
    transform 0.2s ease 0.1s,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.levels-container .level-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(13, 0, 255, 0.164);
}



/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<  Typing Ground  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/

.typing-text {
  max-height: 6em;
  /* लगभग 3 lines */
  overflow-y: auto;
  line-height: 1.6;
  padding-right: 12px;
  transition: max-height 0.3s ease;
}


.game-container {
  max-width: 1000px;
  margin: auto;
}

.typing-game {
  max-width: 800px;
  margin: 0px auto 20px auto;
  text-align: center;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 600;
  padding: 0 10px;
}

.typing-text {
  font-size: 24px;
  margin-bottom: 20px;
  min-height: 40px;
  letter-spacing: 1px;
  font-weight: bold;
}

.typing-text span.correct {
  color: green;
  opacity: .5;
}

.typing-text span.incorrect {
  color: red;
  opacity: .8;
}

.typing-text span.active {
  /* color: blue; */
  font-weight: bold;
  background-color: yellow;
  border-radius: 4px;
}

.typing-input {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  border: 2px solid #ccc;
  border-radius: 8px;
}

.typing-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.result-message {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #28a745;
  display: none;
}

.result-message .buttons {
  margin-top: 10px;
}

.result-message button {
  margin: 5px;
  padding: 8px 16px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.result-message button:hover {
  background-color: #0056b3;
}



/* Keyboard */
.keyboard-row {
  display: flex;
  justify-content: center;
  /* margin: 4px 0; */
}

.keyboard-key {
  background: #2196f3;
  color: white;
  font-weight: bold;
  padding: 12px 20px;
  margin: 2px;
  border-radius: 6px;
  min-width: 40px;
  user-select: none;
  transition: all 0.1s ease-in-out;
  text-transform: uppercase;
  text-align: center;
}

.space-key {
  min-width: 240px;
}

.shift-key {
  min-width: 80px;
}

.highlight-key {
  background-color: #28a745 !important;
  color: #fff;
  box-shadow: 0 0 8px #28a745;
}

.highlight {
  background-color: yellow;
  border-radius: 4px;
  /* padding: 2px; */
}




.space-error {
  background-color: red;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  opacity: .8;
}



/*===========================  Finger Tracking  ===========================*/
.finger-tracking-container {
  margin-top: 20px;
  text-align: center;
}

.finger-instruction {
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #444;
}

.hands-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.finger-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 1px;
}

.hand-layout {
  display: flex;
  align-items: center;
}

.finger {
  background: #dcdcdc;
  margin: 4px 0;
  border-radius: 6px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border: 1.5px solid #2c2c2c;
  transition: 0.3s;
}

.finger.active {
  background: #000000;
}

.label {
  font-size: 8px;
  color: #767676;
  margin-bottom: 8px;
}

.thumbs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 0px;
}

.thumb {
  width: 12px;
  height: 18px;
  border-radius: 6px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: #dcdcdc;
  border: 1.5px solid #2c2c2c;
  transition: 0.3s;
}

.thumb.active {
  background: #000000;
}

#lf4,
#rf4 {
  height: 25px;
  width: 8px;
}

#lf3,
#rf3 {
  height: 30px;
  width: 9px;
}

#lf2,
#rf2 {
  height: 35px;
  width: 10px;
}

#lf1,
#rf1 {
  height: 28px;
  width: 9px;
}

.hidden {
  display: none !important;
  visibility: hidden;
}









/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Speed Mode >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
/*=================  buttons  ==================*/
#practice-buttons button {
  padding: 8px 16px;
  margin: 0 10px;
  background-color: #701af2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#practice-buttons button:hover {
  background-color: #5711c4;
}



/*====================  Speed Modal Box  ===================*/
.speed-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  display: none;
}

.speed-modal-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 600px;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: none;
  padding: 20px;
}

.speed-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.speed-modal-header h2 {
  font-size: 20px;
  margin: 0;
}

.close-speed-modal {
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  color: #ff4444;
}

.speed-modal-challenges {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.challenge-icon {
  padding: 15px;
  background: #f0f0f0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  border: 2px solid transparent;
}

.challenge-icon:hover {
  background: #ddd;
  border-color: #701af2;
}

/* 🔒 Locked */
.challenge-icon.locked {
  background-color: #eee;
  color: #999;
  cursor: not-allowed;
}

.speed-modal-description {
  margin-top: 20px;
  font-size: 14px;
  color: #444;
}

/* ✅ Completed */
.challenge-icon.completed {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
}

/* 🔓 Unlocked (next to play) */
.challenge-icon.unlocked {
  background-color: #e7f1ff;
  border-color: #007bff;
  color: #004085;
  box-shadow: 0 0 5px #007bff;
  font-weight: bold;
}





#speed-result-message {
  display: none;
  background-color: #e6f3fd;
  /* light blue background */
  border: 1px solid #b3dafe;
  /* soft blue border */
  border-radius: 12px;
  padding: 18px;
  margin-top: 20px;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

#speed-result-message span {
  display: block;
  margin-bottom: 12px;
}

#speed-result-buttons button {
  margin: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #701af2;
  color: white;
  transition: background 0.2s ease;
}

#speed-result-buttons button:hover {
  background-color: #5e0fd1;
}



/*==== Try Again Animation ====*/
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

.try-again-shake {
  animation: shake 0.5s ease;
}




/*======================== Practice Modal =======================*/
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content.fancy-modal {
  background: #fff;
  padding: 25px;
  max-width: 600px;
  width: 90%;
  margin: 80px auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  font-family: 'Segoe UI', sans-serif;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-title {
  font-size: 1.5rem;
  color: #701af2;
  text-align: center;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 20px;
}

.time-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.time-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f5f5f5;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.time-btn:hover {
  background: #e5e5e5;
}

.time-btn.active {
  background-color: #701af2;
  color: #fff;
  border-color: #701af2;
}

#custom-time-range {
  width: 100%;
  margin-top: 8px;
}

#custom-time-value {
  display: inline-block;
  margin: 4px 245px;
  font-weight: 500;
  color: #555;
}

#custom-para-text {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 0.95rem;
}

.start-btn {
  background: #701af2;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

.start-btn:hover {
  background: #5d15c5;
}

.text-center {
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/*==== Practice Msg Box ====*/
#practice-result-box {
  background: #f0fdf4;
  border: 2px solid #4ade80;
  padding: 20px;
  /* max-width: 400px; */
  margin: 20px auto;
  border-radius: 10px;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#practice-result-box h2 {
  /* color: #007bff; */
  color: #008c2a;
  margin-bottom: 15px;
}

#practice-result-box p {
  margin: 6px 0;
  font-weight: bold;
  /* color: #008c2a; */
  color: #007bff;
}

#practice-result-box p strong {
  color: #000;
  opacity: 0.7;
}

#practice-buttons button {
  margin: 5px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  background-color: #10b981;
  color: white;
  border: none;
  transition: 0.3s ease;
}

#practice-buttons button:hover {
  background-color: #059669;
}





/*============================================== Coach Mode ==========================================*/
/*===== Button ======*/

.coach-mode-button {
  height: 40px;
  color: #db8f03;
  background-color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin: 5px;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  font-size: 15px;
  font-weight: bold;
}

.coach-mode-button i {
  font-size: 1.2em;
  margin-right: 10px;
  color: #db8f03;
}

.coach-mode-button:hover {
  background-color: #fef6e4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}





/*======== Coach Modal ======*/
.coach-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.coach-modal-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 900px;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  height: 95%;
}

.coach-modal-content h2 {
  color: #db8f03;
  margin-bottom: 10px;
}

.coach-description {
  font-size: 15px;
  color: #444;
  margin-bottom: 20px;
  opacity: .5;
}

.coach-tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 18px;
  border: 2px solid #db8f03;
  background-color: #fff7ea;
  color: #db8f03;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.tab-button.active {
  background-color: #db8f03;
  color: white;
}

.coach-tab-content {
  font-size: 14px;
  color: #333;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  text-align: left;
  max-height: 350px;
  overflow-y: auto;
}

.coach-tab-content p {
  margin-bottom: 20px;
}

.coach-modal-close {
  margin-top: 20px;
  background: transparent;
}

.coach-modal-close button {
  position: absolute;
  padding: 8px 10px;
  background: #ffffff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  top: 10px;
  right: 15px;
}

.coach-modal-close button:hover {
  background: #f0f0f0;
}





.coach-section {
  margin-bottom: 30px;
  text-align: left;
}

.coach-section h3 {
  font-size: 18px;
  color: #db8f03;
  margin-bottom: 20px;
}

.coach-section h4 {
  font-size: 15px;
  color: #069f1b;
  margin: 20px auto;
}

.coach-practice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.coach-practice-item {
  position: relative;
}

.coach-practice-button {
  background-color: #f5f5f5;
  border: 2px solid #db8f03;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  font-family: "Segoe UI", sans-serif;
}

.coach-practice-button:hover {
  background-color: #fff3db;
  border-color: #ffb700;
}

.coach-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #db8f03;
  color: white;
  font-size: 8px;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


#coach-tab-info ul {
  margin-left: 20px;
  padding-left: 10px;
}

#coach-tab-info ul li {
  margin-bottom: 8px;
}

#coach-tab-info code {
  background-color: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}



.finger-placement-img img {
  max-width: 100%;
  height: auto;
  margin-top: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border: 2px solid blueviolet;
  padding-top: 20px;
}

.finger-placement-img p {
  position: absolute;
  bottom: -12px;
  right: 14%;
  background: white;
  padding-bottom: 5px;
}

.finger-placement-img p a {
  color: rgb(176, 176, 176);
  text-decoration: none;
}

.finger-placement-img p a:hover {
  color: blueviolet;
}



.coach-status {
  margin: 10px 0;
  font-size: 1rem;
  font-weight: bold;
  color: #4caf50;
}



.coach-badge {
  background: #701af2;
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-left: 8px;
}







#coach-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background-color: #fffde7;
  border-bottom: 1px solid #f0e68c;
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  color: #333;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

#coach-tip {
  flex: 1;
  color: #444;
}

#coach-rep-status {
  font-weight: bold;
  color: #3f51b5;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 30px;
}




/*==== Apply styling only if text length ≤ 20 (Coach Mode) ====*/
#typing-text.coach-mode.short-text span {
  display: inline-block;
  padding: 0 6px;
  font-size: 24px;
  min-width: 16px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin-right: 2px;
  border-radius: 4px;
  letter-spacing: 0.2em;
  background-color: #f5f5f5;
}

#typing-text.coach-mode.short-text span.space-char {
  border: 1px dashed #999;
  padding: 0 6px;
  margin: 0 2px;
  display: inline-block;
  background-color: #f5f5f5;
}

#typing-text.coach-mode.short-text span.highlight {
  background-color: #e3f5ff;
  border-radius: 3px;
  background-color: #dff0ff;
  border: 1px solid #3399ff;
}

#typing-text.coach-mode.short-text span.correct {
  background-color: #c6f7d0;
}

#typing-text.coach-mode.short-text span.correct.space-char {
  background-color: #b3eebc;
  border: 1px solid #66cc66;
}

#typing-text.coach-mode.short-text span.space-char.highlight {
  background-color: #ffeeba;
}




/*=== Completed Coach Practice ====*/
.coach-practice-button.completed {
  background-color: #0020a1 !important;
  color: white;
  border: 1px solid #0020a1;
  font-weight: bold;
}

.coach-practice-button.completed::after {
  content: ' ✔';
}

.coach-complete-message {
  position: fixed;
  bottom: 170px;
  left: 50%;
  transform: translateX(-50%);
  background: #4CAF50;
  color: white;
  padding: 16px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 1rem;
  text-align: center;
}





/*======== Footer =======/
/* Footer Styles */
.xtyping-footer {
  background-color: #2c3e50;
  color: white;
  padding: 20px 0;
  font-family: 'Arial', sans-serif;
  text-align: center;
  margin-top: 50px;
}

.xtyping-footer .footer-content {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.footer-left,
.footer-middle,
.footer-right {
  flex: 1;
  padding: 10px;
  opacity: .8;
}

.footer-middle ul {
  display: flex;
  justify-content: space-evenly;
}

.footer-left h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 16px;
}

.footer-middle h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-middle ul {
  list-style-type: none;
  padding: 0;
}

.footer-middle ul li {
  margin: 8px 0;
}

.footer-middle ul li a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 16px;
}

.footer-middle ul li a:hover {
  color: #2980b9;
}

.footer-right h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

.social-icon {
  color: white;
  font-size: 20px;
  text-decoration: none;
}

.social-icon:hover {
  color: #2980b9;
}

.footer-bottom {
  background-color: #34495e;
  padding: 15px 0;
}

.footer-bottom p {
  font-size: 14px;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .xtyping-footer .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}