@charset "UTF-8";
:root {
  --fs-26-60: clamp(26px, 2.5297vw + 11.43px, 60px) !important;
  --fs-20-42: clamp(20px, 1.636vw + 10.5766px, 42px) !important;
  --fs-16-32: clamp(16px, 9.15px + 1.19vw, 32px) !important;
  --fs-12-24: clamp(12px, 6.8576px + 0.8928vw, 24px) !important;
  --fs-12-20: clamp(12px, 0.595vw + 8.57px, 20px) !important;
  --fs-12-18: clamp(12px, 0.44vw + 9.43px, 18px) !important;
  --fs-12-16: clamp(12px, 10.29px + 0.297vw, 16px) !important;
  --fs-10-16: clamp(10px, 8.525px + 0.3703vw, 16px) !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.tools-parent-container .total-score-card .progress-container {
  background-color: rgba(197, 152, 32, 0.5411764706);
}
.tools-parent-container {
  font-family: "Roboto", "Raleway", Arial, Helvetica, sans-serif;
  background: url(./images/transparentwoodengrain.png), #f5f4ed;
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
}
.tools-parent-container {
  /* Animated Background Stars */
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
.tools-parent-container .stars {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}
.tools-parent-container .star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}
.tools-parent-container .container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.tools-parent-container {
  /* Header Section */
}
.tools-parent-container .hheader {
  text-align: center;
  margin-bottom: 40px;
  animation: slideDown 0.8s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tools-parent-container .hheader h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #1e1e1e;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.tools-parent-container .hheader .emoji {
  font-size: clamp(3rem, 6vw, 5rem);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
.tools-parent-container {
  /* Total Score Card */
}
.tools-parent-container .total-score-card {
  background: #ffc62f;
  padding: 20px 30px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: none;
  /* animation: pulse 2s infinite; */
  z-index: 10;
  margin: 32px 0;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.tools-parent-container .total-score-card h3 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #1e1e1e;
  margin-bottom: 10px;
  text-align: center;
}
.tools-parent-container .total-score-display {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  color: #1e1e1e;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.tools-parent-container {
  /* Learning Path Container - Horizontal Carousel */
}
.tools-parent-container .learning-path {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 20px;
  min-height: 550px;
}
.tools-parent-container {
  /* Level Container - Carousel Style */
  /* .level-container {
              position: absolute;
              width: 90%;
              max-width: 450px;
              transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
              pointer-events: none;
          } */
  /* .level-container.center {
              transform: translateX(0) scale(1);
              z-index: 3;
              opacity: 1;
              pointer-events: auto;
          }

          .level-container.left {
              transform: translateX(-100%) scale(0.7);
              z-index: 1;
              opacity: 0.4;
              filter: brightness(0.7);
          }

          .level-container.right {
              transform: translateX(100%) scale(0.7);
              z-index: 1;
              opacity: 0.4;
              filter: brightness(0.7);
          }

          .level-container.hidden {
              opacity: 0;
              pointer-events: none;
              transform: scale(0.3);
          } */
}
.tools-parent-container div#levelsContainer {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: start;
  max-width: 100%;
  overflow-x: clip;
}
.tools-parent-container #levelsContainer .level-container {
  flex: 1;
  aspect-ratio: 3/4;
}
.tools-parent-container div#levelsContainer > div:nth-child(even) {
  margin-top: 10vw;
}
.tools-parent-container .progress-info-tooltip::after {
  content: "";
  position: absolute;
  border: 10px solid rgb(255, 198, 47);
  border-color: rgb(255, 198, 47);
  z-index: 999999;
  bottom: 100%;
  /* width: 5px; */
  /* height: 5px; */
  /* background: red; */
  border-right-color: transparent;
  border-left-color: transparent;
  border-top-color: transparent;
  left: 50%;
  transform: translateX(-50%);
}
.tools-parent-container .lock-warning {
  background: #fff;
  border-radius: 1em;
  color: red;
  line-height: 1.2;
  font-weight: bolder;
}
.tools-parent-container {
  /* Level Card */
}
.tools-parent-container .level-card {
  background: #ffc62f;
  border-radius: 1em;
  font-size: var(--fs-12-16);
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  padding: 0.5em;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tools-parent-container .level-card.locked {
  /* opacity: 0.6; */
  position: relative;
  cursor: not-allowed;
  background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
}
.tools-parent-container .level-card.locked::after {
  position: absolute;
  inset: 0;
  background: rgba(234, 231, 218, 0.6117647059);
  content: "Complete 10% of the previous level to unlock this one";
  border-radius: 1em;
  font-size: var(--fs-12-16);
  color: #1e1e1e;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bolder;
}
.tools-parent-container .level-card.completed {
  border-color: #ffd700;
  background: linear-gradient(135deg, #fff9e6 0%, #fffacd 100%);
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 15px 40px rgba(72, 52, 212, 0.3),
      0 0 30px rgba(72, 52, 212, 0.2);
  }
  50% {
    box-shadow: 0 15px 50px rgba(72, 52, 212, 0.5),
      0 0 50px rgba(72, 52, 212, 0.4);
  }
}
.tools-parent-container {
  /* Level Header */
}
.tools-parent-container .level-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
  text-align: center;
  max-width: max-content;
  margin: 0 auto;
}
.tools-parent-container .level-number {
  font-size: var(--fs-12-20);
  font-weight: bold;
  color: #1e1e1e;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tools-parent-container .level-icon {
  width: clamp(40px, 8vw, 60px);
  height: clamp(40px, 8vw, 60px);
  background: #1e1e1e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .level-score {
  background: #ffc62f;
  color: #1e1e1e;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: var(--fs-12-20);
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .level-title {
  font-size: var(--fs-12-16);
  color: #2d3436;
  margin-bottom: 15px;
  font-weight: bold;
}
.tools-parent-container {
  /* Topics List */
}
.tools-parent-container .topics-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.tools-parent-container .topics-list li {
  padding: 12px 20px;
  margin: 8px 0;
  background: #ffc62f;
  border-radius: 15px;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: #2d3436;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  cursor: default;
}
.tools-parent-container .topics-list li:hover {
  transform: none;
}
.tools-parent-container .topics-list li::before {
  content: "·";
  display: inline-block;
  margin-right: 8px;
  background-size: contain;
  vertical-align: middle;
  font-size: 40px;
  vertical-align: middle;
  line-height: 1;
}
.tools-parent-container {
  /* Start Button */
}
.tools-parent-container .start-button {
  background: #1e1e1e;
  color: #fff;
  border: none;
  padding: 1em 0;
  font-size: var(--fs-10-16);
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-family: inherit;
  width: 100%;
}
.tools-parent-container .start-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.tools-parent-container .start-button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}
.tools-parent-container {
  /* Navigation Buttons */
}
.tools-parent-container .nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #16a085 100%);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tools-parent-container .nav-button:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.tools-parent-container .nav-button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  opacity: 0.5;
}
.tools-parent-container .nav-button.prev {
  left: 10px;
}
.tools-parent-container .nav-button.next {
  right: 10px;
}
.tools-parent-container {
  /* Level Indicator Dots */
}
.tools-parent-container .level-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}
.tools-parent-container .indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}
.tools-parent-container .indicator-dot.active {
  background: #ffd700;
  box-shadow: 0 0 15px #ffd700;
  transform: scale(1.5);
}
.tools-parent-container .indicator-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}
.tools-parent-container {
  /* Lights Effect for Completed Levels */
}
.tools-parent-container .level-lights {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
}
.tools-parent-container .level-lights.active {
  opacity: 1;
  animation: lightsOn 0.5s ease-out;
}
@keyframes lightsOn {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}
.tools-parent-container .light-bulb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  animation: bulbBlink 1.5s infinite;
}
.tools-parent-container .light-bulb:nth-child(1) {
  background: #ffd700;
  box-shadow: 0 0 15px #ffd700;
}
.tools-parent-container .light-bulb:nth-child(2) {
  background: #ff6b6b;
  box-shadow: 0 0 15px #ff6b6b;
  animation-delay: 0.3s;
}
.tools-parent-container .light-bulb:nth-child(3) {
  background: #1e1e1e;
  box-shadow: 0 0 15px #1e1e1e;
  animation-delay: 0.6s;
}
.tools-parent-container .light-bulb:nth-child(4) {
  background: #00d2d3;
  box-shadow: 0 0 15px #00d2d3;
  animation-delay: 0.9s;
}
@keyframes bulbBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.tools-parent-container {
  /* Status Badge */
}
.tools-parent-container .status-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: var(--fs-10-16);
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: rgba(30, 30, 30, 0.5215686275);
}
.tools-parent-container .status-badge.locked {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  color: white;
}
.tools-parent-container .status-badge.unlocked {
  background: #ffc62f;
  color: #1e1e1e;
  animation: tada 1s ease-out;
}
.tools-parent-container .status-badge.completed {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #2d3436;
}
@keyframes tada {
  0% {
    transform: scale(1) rotate(0deg);
  }
  10%,
  20% {
    transform: scale(0.9) rotate(-3deg);
  }
  30%,
  50%,
  70%,
  90% {
    transform: scale(1.1) rotate(3deg);
  }
  40%,
  60%,
  80% {
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
.tools-parent-container {
  /* Progress Bar */
}
.tools-parent-container .progress-container {
  width: 100%;
  border-radius: 20px;
  padding: 5px;
  margin: 0 auto;
}
.tools-parent-container .progress-bar {
  height: 15px;
  background: #1e1e1e;
  border-radius: 15px;
  transition: width 0.5s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  float: none;
}
.tools-parent-container {
  /* Confetti Effect */
}
.tools-parent-container .confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #ffd700;
  position: absolute;
  animation: confetti-fall 3s linear;
  z-index: 1000;
}
@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
.tools-parent-container {
  /* #levelsContainer {
              width: 99%;
              height: 59vh;
              display: flex;
              justify-content: center;
              align-items: center;
          } */
  /* Responsive Design */
}
@media (max-width: 768px) {
  .tools-parent-container .total-score-card {
    position: relative;
    top: 0;
    right: 0;
    margin: 0 auto 30px;
    /* max-width: 300px; */
  }
  .tools-parent-container .learning-path {
    min-height: 500px;
    padding: 40px 10px;
  }
  .tools-parent-container .level-container.left {
    transform: translateX(-110%) scale(0.65);
  }
  .tools-parent-container .level-container.right {
    transform: translateX(110%) scale(0.65);
  }
  .tools-parent-container .nav-button {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  .tools-parent-container .nav-button.prev {
    left: 5px;
  }
  .tools-parent-container .nav-button.next {
    right: 5px;
  }
  .tools-parent-container .level-indicators {
    bottom: 5px;
    gap: 10px;
  }
  .tools-parent-container .indicator-dot {
    width: 10px;
    height: 10px;
  }
}
@media (max-width: 480px) {
  .tools-parent-container body {
    padding: 10px;
  }
  .tools-parent-container .hheader {
    margin-bottom: 20px;
  }
  .tools-parent-container .learning-path {
    min-height: 450px;
    padding: 30px 5px;
  }
  .tools-parent-container .level-container {
    max-width: 300px;
  }
  .tools-parent-container .level-card {
    padding: 20px;
  }
  .tools-parent-container .topics-list li {
    padding: 10px 15px;
  }
  .tools-parent-container .start-button {
    padding: 12px 30px;
  }
  .tools-parent-container .nav-button {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  .tools-parent-container .lock-icon {
    font-size: 3rem;
  }
}
@media (max-width: 380px) {
  .tools-parent-container .level-container {
    max-width: 280px;
  }
  .tools-parent-container .level-container.left,
  .tools-parent-container .level-container.right {
    opacity: 0.2;
  }
}
.tools-parent-container {
  /* Lock Icon */
}
.tools-parent-container .lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}
.tools-parent-container {
  /* Success Animation */
}
@keyframes successPop {
  0% {
    transform: scale(0) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}
.tools-parent-container .success-icon {
  animation: successPop 0.6s ease-out;
}
.tools-parent-container {
  /* Floating Animation for Emoji */
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(5deg);
  }
  75% {
    transform: translateY(-5px) rotate(-5deg);
  }
}
.tools-parent-container .level-icon.completed-icon {
  animation: float 3s infinite ease-in-out;
}
.tools-parent-container .game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}
.tools-parent-container .game-modal.active {
  display: flex;
}
.tools-parent-container .game-selection-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 25px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s;
}
.tools-parent-container .game-option {
  background: #ffc62f;
  border-radius: 15px;
  padding: 20px;
  margin: 15px 0;
  cursor: pointer;
  transition: all 0.3s;
  border: 3px solid transparent;
}
.tools-parent-container .game-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: #2ecc71;
}
.tools-parent-container {
  /* level 1 - 1*/
}
.tools-parent-container .one-number-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: oneFadeIn 0.3s ease-out;
  overflow-y: auto;
}
.tools-parent-container .one-number-menu.active {
  display: flex;
}
.tools-parent-container .one-counting-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: oneFadeIn 0.3s ease-out;
  overflow-y: auto;
}
.tools-parent-container .one-counting-modal.active {
  display: flex;
}
@keyframes oneFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.tools-parent-container .one-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  border-radius: 30px;
  padding: 30px;
  max-width: 700px;
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  animation: oneSlideUp 0.5s ease-out;
  position: relative;
}
.tools-parent-container .one-menu-container {
  background: #ffc62f;
  border-radius: 30px;
  padding: var(--fs-16-32);
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  animation: oneSlideUp 0.5s ease-out;
  position: relative;
  text-align: start;
}
.tools-parent-container .one-menu-progress {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 20px;
  margin-top: 30px;
  text-align: center;
}
.tools-parent-container .one-menu-progress-text {
  font-size: 1.2rem;
  color: #2d3436;
  font-weight: bold;
  margin-bottom: 10px;
}
.tools-parent-container .one-menu-progress-bar {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  height: 20px;
  overflow: hidden;
}
.tools-parent-container .one-menu-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
  border-radius: 15px;
  transition: width 0.5s ease;
}
.tools-parent-container {
  /* Responsive */
}
@media (max-width: 768px) {
  .tools-parent-container .one-numbers-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .tools-parent-container .one-numbers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .tools-parent-container .one-number-tile-number {
    font-size: 1.8rem;
  }
}
.tools-parent-container .one-menu-header {
  text-align: center;
  margin-bottom: 30px;
}
.tools-parent-container .one-menu-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #1e1e1e;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .one-menu-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #636e72;
}
.tools-parent-container .one-menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #1e1e1e;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;    
  width: var(--fs-26-60);
    height: auto;
    aspect-ratio: 1 / 1;
}
.tools-parent-container .one-menu-close:hover {
  transform: scale(1.1) rotate(90deg);
}
@keyframes oneSlideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.tools-parent-container .one-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tools-parent-container .one-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.tools-parent-container .one-sound-toggle {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #1e1e1e 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.tools-parent-container .one-sound-toggle:hover {
  transform: scale(1.05);
}
.tools-parent-container .one-number-header {
  text-align: center;
  margin: 40px 0 30px 0;
}
.tools-parent-container .one-number-display {
  font-size: 8rem;
  font-weight: bold;
  color: #ff6b6b;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
  animation: oneBounce 2s infinite;
  font-family: "Comic Sans MS", cursive;
}
.tools-parent-container .one-numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 15px;
  margin: 20px 0;
}
@keyframes oneBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.1);
  }
}
.tools-parent-container .one-number-name {
  font-size: 2.5rem;
  color: #2d3436;
  margin: 15px 0;
  font-weight: bold;
}
.tools-parent-container .one-number-tile {
  aspect-ratio: 1;
  background: #ffc62f;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
}
.tools-parent-container .one-number-tile:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  background: #ffc62f;
}
.tools-parent-container .one-number-tile-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  color: #2d3436;
  font-family: "Comic Sans MS", cursive;
}
.tools-parent-container .one-number-tile:hover .one-number-tile-number {
  color: white;
}
.tools-parent-container .one-number-tile-icon {
  width: 30px;
  height: 30px;
  margin-top: 5px;
}
.tools-parent-container .one-number-tile-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tools-parent-container .one-number-tile.completed {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-color: #f39c12;
}
.tools-parent-container .one-number-tile.completed::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  background: #00b894;
  color: white;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .one-counting-objects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  min-height: 100px;
}
.tools-parent-container .one-object-item {
  width: 50px;
  height: 50px;
  animation: onePopIn 0.5s ease-out;
}
.tools-parent-container .one-object-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes onePopIn {
  from {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
.tools-parent-container .one-speak-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 35px;
  font-size: 1.3rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  margin: 20px auto;
  display: block;
}
.tools-parent-container .one-speak-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}
.tools-parent-container .one-tracing-section {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
  border-radius: 25px;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
}
.tools-parent-container .one-tracing-title {
  font-size: 1.8rem;
  color: #ff6b6b;
  margin-bottom: 20px;
  font-weight: bold;
}
.tools-parent-container .one-canvas-container {
  position: relative;
  display: inline-block;
  margin-bottom: 60px;
}
.tools-parent-container .one-tracing-canvas {
  border: 5px dashed #4ecdc4;
  border-radius: 20px;
  background: white;
  cursor: crosshair;
  touch-action: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.tools-parent-container .one-instruction-text {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: #4ecdc4;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: oneInstructionPulse 2s infinite;
}
@keyframes oneInstructionPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
}
.tools-parent-container .one-instruction-text::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #4ecdc4;
}
.tools-parent-container .one-clear-btn {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: #333;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  margin: 10px;
}
.tools-parent-container .one-clear-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.tools-parent-container .one-navigation-btns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}
.tools-parent-container .one-nav-btn {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 18px 30px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.tools-parent-container .one-nav-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .one-nav-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}
.tools-parent-container .one-progress-tracker {
  background: rgba(255, 255, 255, 0.8);
  padding: 15px;
  border-radius: 15px;
  margin: 20px 0;
  text-align: center;
}
.tools-parent-container .one-progress-label {
  font-size: 1.1rem;
  color: #2d3436;
  font-weight: bold;
  margin-bottom: 10px;
}
.tools-parent-container .one-progress-bar-container {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  height: 25px;
  overflow: hidden;
  position: relative;
}
.tools-parent-container .one-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
  border-radius: 15px;
  transition: width 0.5s ease;
  position: relative;
}
.tools-parent-container .one-progress-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: oneProgressShine 2s infinite;
}
@keyframes oneProgressShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.tools-parent-container .one-completion-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #2d3436;
  padding: 10px 25px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 15px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: oneTada 1s ease-out;
}
@keyframes oneTada {
  0% {
    transform: scale(1);
  }
  10%,
  20% {
    transform: scale(0.9) rotate(-3deg);
  }
  30%,
  50%,
  70%,
  90% {
    transform: scale(1.1) rotate(3deg);
  }
  40%,
  60%,
  80% {
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
.tools-parent-container .one-confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  animation: oneConfettiFall 3s linear forwards;
  z-index: 10001;
}
@keyframes oneConfettiFall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
.tools-parent-container {
  /* Responsive */
}
@media (max-width: 768px) {
  .tools-parent-container .one-modal-content {
    padding: 20px;
  }
  .tools-parent-container .one-number-display {
    font-size: 5rem;
  }
  .tools-parent-container .one-number-name {
    font-size: 1.8rem;
  }
  .tools-parent-container .one-tracing-canvas {
    max-width: 100%;
  }
  .tools-parent-container .one-object-item {
    width: 40px;
    height: 40px;
  }
  .tools-parent-container .one-navigation-btns {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .tools-parent-container .one-number-display {
    font-size: 4rem;
  }
  .tools-parent-container .one-object-item {
    width: 35px;
    height: 35px;
  }
  .tools-parent-container .one-instruction-text {
    font-size: 0.9rem;
    white-space: normal;
    max-width: 90%;
  }
}
.tools-parent-container {
  /* level 1 - 2 */
}
.tools-parent-container .two-recognition-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow-y: auto;
}
.tools-parent-container .two-recognition-modal.active {
  display: flex;
}
.tools-parent-container .two-modal-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 35px;
  padding: 50px;
  max-width: 900px;
  /* Changed from 600px */
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: twoSlideUp 0.5s ease-out;
  position: relative;
  border: 4px solid rgba(255, 255, 255, 0.2);
  /* Added border */
}
@keyframes twoSlideUp {
  from {
    transform: translateY(50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.tools-parent-container .two-close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  /* Changed from 50px */
  height: 60px;
  /* Changed from 50px */
  font-size: 2rem;
  /* Changed from 1.8rem */
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tools-parent-container .two-close-button:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}
.tools-parent-container .two-game-header {
  text-align: center;
  color: white;
  margin-bottom: 40px;
  /* Changed from 30px */
}
.tools-parent-container .two-game-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  /* Changed from 2rem, 5vw, 3rem */
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 2px;
}
.tools-parent-container .two-game-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  /* Changed from 1rem, 2vw, 1.3rem */
  opacity: 0.95;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .two-score-display {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 30px;
  padding: 30px;
  /* Changed from 20px */
  text-align: center;
  margin-bottom: 40px;
  /* Changed from 30px */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .two-score-text {
  font-size: clamp(2rem, 4vw, 2.8rem);
  /* Changed from 1.5rem, 3vw, 2rem */
  font-weight: bold;
  color: #5a67d8;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .two-lives-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  /* Changed from 10px */
  margin-top: 15px;
}
.tools-parent-container .two-heart {
  font-size: 2.5rem;
  /* Changed from 2rem */
  animation: twoHeartbeat 1.5s infinite;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}
@keyframes twoHeartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.tools-parent-container .two-game-area {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 30px;
  padding: 45px;
  /* Changed from 30px */
  text-align: center;
  box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.05);
}
.tools-parent-container .two-sound-button {
  width: clamp(180px, 30vw, 250px);
  /* Changed from 150px, 25vw, 200px */
  height: clamp(180px, 30vw, 250px);
  /* Changed from 150px, 25vw, 200px */
  margin: 0 auto 40px;
  /* Changed from 30px */
  background: linear-gradient(145deg, #ff6ec7, #ffa500);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: clamp(5rem, 10vw, 7rem);
  /* Changed from 4rem, 8vw, 6rem */
  color: white;
  box-shadow: 0 15px 40px rgba(255, 110, 199, 0.5);
  transition: transform 0.3s;
  animation: twoPulse 2s infinite;
  border: 5px solid rgba(255, 255, 255, 0.3);
}
@keyframes twoPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(255, 110, 199, 0.5);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 20px 50px rgba(255, 110, 199, 0.7);
  }
}
.tools-parent-container .two-sound-button:hover {
  transform: scale(1.15);
  box-shadow: 0 20px 50px rgba(255, 110, 199, 0.8);
}
.tools-parent-container .two-sound-button:active {
  transform: scale(0.95);
}
.tools-parent-container .two-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  /* Changed from 120px */
  gap: 20px;
  /* Changed from 15px */
  margin-top: 30px;
}
.tools-parent-container .two-option-button {
  padding: 28px;
  /* Changed from 20px */
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  /* Changed from 1.5rem, 3vw, 2rem */
  background: linear-gradient(145deg, #4facfe, #00f2fe);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid rgba(255, 255, 255, 0.2);
}
.tools-parent-container .two-option-button:hover:not(:disabled) {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(79, 172, 254, 0.6);
}
.tools-parent-container .two-option-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tools-parent-container .two-option-button.correct {
  background: linear-gradient(145deg, #4caf50, #8bc34a);
  animation: twoCorrectPulse 0.6s;
  border-color: #fff;
}
.tools-parent-container .two-option-button.wrong {
  background: linear-gradient(145deg, #f44336, #ff6b6b);
  animation: twoShake 0.5s;
  border-color: #fff;
}
@keyframes twoCorrectPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}
@keyframes twoShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-15px);
  }
  75% {
    transform: translateX(15px);
  }
}
.tools-parent-container .two-control-buttons {
  display: flex;
  gap: 20px;
  /* Changed from 15px */
  margin-top: 30px;
  justify-content: center;
}
.tools-parent-container .two-control-btn {
  padding: 16px 35px;
  /* Changed from 12px 25px */
  font-size: 1.3rem;
  /* Changed from 1.1rem */
  background: linear-gradient(145deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
.tools-parent-container .two-control-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}
.tools-parent-container .two-result-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 35px;
  padding: 50px;
  /* Changed from 40px */
  text-align: center;
  z-index: 10001;
  display: none;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  max-width: 90%;
  width: 600px;
  /* Changed from 500px */
  animation: twoSlideIn 0.5s;
  border: 4px solid #667eea;
}
@keyframes twoSlideIn {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
.tools-parent-container .two-result-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  /* Changed from 2rem, 4vw, 3rem */
  color: #5a67d8;
  margin-bottom: 25px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .two-stars-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  /* Changed from 10px */
  margin: 25px 0;
}
.tools-parent-container .two-star {
  font-size: clamp(3.5rem, 7vw, 5rem);
  /* Changed from 3rem, 6vw, 4rem */
  color: #ddd;
  -webkit-text-stroke: 2px #ffd700;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
.tools-parent-container .two-star.filled {
  color: #ffd700;
  animation: twoStarPop 0.5s;
}
@keyframes twoStarPop {
  0% {
    transform: scale(0) rotate(0deg);
  }
  50% {
    transform: scale(1.4) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}
.tools-parent-container .two-result-stats {
  margin: 25px 0;
  font-size: 1.4rem;
  /* Changed from 1.2rem */
}
.tools-parent-container .two-result-stats div {
  margin: 12px 0;
  padding: 15px;
  /* Changed from 10px */
  background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}
.tools-parent-container .two-play-again-btn {
  padding: 18px 50px;
  /* Changed from 15px 40px */
  font-size: 1.5rem;
  /* Changed from 1.3rem */
  background: linear-gradient(145deg, #4caf50, #8bc34a);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 25px;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tools-parent-container .two-play-again-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
}
.tools-parent-container .two-confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  display: none;
}
.tools-parent-container .two-confetti {
  position: absolute;
  width: 12px;
  /* Changed from 10px */
  height: 12px;
  /* Changed from 10px */
  animation: twoConfettiFall 3s linear;
}
@keyframes twoConfettiFall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
.tools-parent-container .two-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* Changed from 0.5 */
  z-index: 10000;
  display: none;
  backdrop-filter: blur(5px);
  /* Added blur effect */
}
.tools-parent-container .progress-container svg {
  max-width: 80px;
  height: auto;
  aspect-ratio: 1/1;
  margin: 0 auto;
  display: block;
}
@media (max-width: 1200px) {
  .tools-parent-container .progress-container svg {
    max-width: 60px;
  }
}
@media (max-width: 1024px) {
  .tools-parent-container .level-card {
    padding: 1em;
  }
  .tools-parent-container .progress-container svg {
    max-width: 32px;
  }
  .tools-parent-container div#levelsContainer {
    flex-direction: column;
    gap: 60px;
  }
  .tools-parent-container div#levelsContainer {
    align-items: center;
  }
  .tools-parent-container #levelsContainer .level-container {
    flex: 1;
    aspect-ratio: 4/3;
  }
  .tools-parent-container div#levelsContainer > div:nth-child(even) {
    margin-top: 0vw;
    margin-left: 10vw;
  }
  .tools-parent-container div#levelsContainer > div:nth-child(odd) {
    margin-top: 0vw;
    margin-right: 10vw;
  }
}
.tools-parent-container {
  /* Responsive - Enhanced */
}
@media (max-width: 768px) {
  .tools-parent-container .two-modal-container {
    padding: 35px;
    max-width: 95%;
  }
  .tools-parent-container .two-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .tools-parent-container .two-game-area {
    padding: 30px;
  }
}
@media (max-width: 480px) {
  .tools-parent-container .two-modal-container {
    padding: 25px;
  }
  .tools-parent-container .two-game-area {
    padding: 20px;
  }
  .tools-parent-container .two-result-card {
    padding: 30px;
    width: 95%;
  }
  .tools-parent-container .two-option-button {
    padding: 20px;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }
}
.tools-parent-container .level-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tools-parent-container .status-badge img {
  display: inline-block;
  margin-right: 5px;
}
.tools-parent-container .start-button img {
  display: inline-block;
  margin-right: 8px;
}
.tools-parent-container .lock-icon img {
  width: 4rem;
  height: 4rem;
  opacity: 0.7;
}
.tools-parent-container .level-requirement {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  padding: 8px 15px;
  border-radius: 15px;
  margin: 10px 0;
  text-align: center;
  font-weight: bold;
  color: #2d3436;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .level-requirement.met {
  background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
  color: white;
}
.tools-parent-container .one-science-btn,
.tools-parent-container button.one-science-opt {
  background-color: #1e1e1e;
  color: #fff;
  font-size: var(--fs-12-24);
  border-radius: 0.5em;
  padding: 0.25em 0.5em;
  display: block;
}
.tools-parent-container .one-science-btn {
  margin-right: auto;
  margin-left: auto;
  margin-top: 24px;
}
.tools-parent-container .science-questions-flexbox {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.tools-parent-container button.one-science-opt.selected {
  background: #ffc62f;
  color: #1e1e1e;
}
.tools-parent-container .one-science-content-wrapper {
  /* Required for 3D perspective */
  perspective: 1000px;
  /* Set up initial state */
  transform-style: preserve-3d;
  transition: transform 0.6s;
  /* The duration of the flip animation */
  /* Ensure content is centered and takes full width */
  width: 100%;
  height: auto;
  min-height: 200px;
  /* Adjust as needed */
  /* Hide the back face when flipped 90 degrees */
  backface-visibility: hidden;
}
.tools-parent-container {
  /* Class applied by JavaScript to start the flip animation */
}
.tools-parent-container .one-science-content-wrapper.flipper-animating {
  /* Flips the container 90 degrees to hide the old content */
  transform: rotateY(90deg);
}
.tools-parent-container {
  /* Ensure the content inside the flipper returns to normal and is not affected by parent's rotation */
}
.tools-parent-container .one-science-content {
  /* Reset any weird transforms */
  transform: rotateY(0deg);
  /* Ensures the content is always visible and takes up the full space */
  width: 100%;
  /* Add padding/styling as before */
  padding: 0px;
}
.tools-parent-container {
  /* Optional: Additional styling for the large theory blocks */
}
.tools-parent-container :root {
  --fs-26-60: clamp(26px, 2.5297vw + 11.43px, 60px) !important;
  --fs-20-42: clamp(20px, 1.636vw + 10.5766px, 42px) !important;
  --fs-16-32: clamp(16px, 9.15px + 1.19vw, 32px) !important;
  --fs-12-24: clamp(12px, 6.8576px + 0.8928vw, 24px) !important;
  --fs-12-20: clamp(12px, 0.595vw + 8.57px, 20px) !important;
  --fs-12-18: clamp(12px, 0.44vw + 9.43px, 18px) !important;
  --fs-12-16: clamp(12px, 10.29px + 0.297vw, 16px) !important;
  --fs-10-16: clamp(10px, 8.525px + 0.3703vw, 16px) !important;
}
.tools-parent-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.tools-parent-container {
  /* --- Base Styles (rest of the original file) --- */
  /* --- ADDED CSS FOR PAGE CURL EFFECT --- */
  /* 1. Wrapper setup for 3D context */
}
.tools-parent-container .one-science-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1500px;
  /* 3D effect depth */
}
.tools-parent-container {
  /* 2. Style for the actual content page element (always visible) */
}
.tools-parent-container .one-science-content-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  /* Keep content scrollable */
  background-color: #f7f7f7;
  /* Match modal background */
  padding: 20px;
  box-sizing: border-box;
  /* Ensure the non-animating page is visible and un-transformed */
  transform: rotateY(0deg) translateZ(0);
  z-index: 10;
}
.tools-parent-container {
  /* 3. The Page Curl Animation Class (Applied to a clone of the old page) */
}
.tools-parent-container .page-curling-out {
  /* Transition applied to the animated element */
  transition: transform 0.6s ease-out, box-shadow 0.6s ease-out,
    opacity 0.6s ease-out;
  transform-origin: right center;
  /* Pivot point for the 3D turn */
  z-index: 20;
  /* Ensure the curling page is on top */
  background-color: #fff;
  /* Ensure clone has a solid background */
  /* Start the animation */
  animation: page-flip-out 0.6s forwards;
}
@keyframes page-flip-out {
  0% {
    transform: rotateY(0deg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    opacity: 1;
  }
  100% {
    /* Flips the page 90 degrees and moves it off-screen to the left */
    transform: rotateY(-90deg) translateX(-100%);
    box-shadow: -10px 5px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
  }
}
.tools-parent-container {
  /* --- The rest of the original style.css file content follows... --- */
}
.tools-parent-container .one-number-menu.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.tools-parent-container {
  /* ... (rest of original styles) */
  /* ... (rest of original styles) */
  /* ... (rest of original styles) */
  /* ... (rest of original styles) */
}
.tools-parent-container {
  /* ==================== LEVEL 1 - GAME 2: DAY & NIGHT 3D ==================== */
}
.tools-parent-container .dn-modal-container {
  background: #0f0f1a;
  /* Space dark background */
  border-radius: 30px;
  padding: 0;
  max-width: 1000px;
  width: 95%;
  height: 90vh;
  max-height: 800px;
  box-shadow: 0 0 50px rgba(0, 184, 255, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #4a4a6a;
}
.tools-parent-container .dn-header {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.tools-parent-container .dn-title {
  color: #fff;
  font-size: 1.8rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tools-parent-container .dn-canvas-container {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
  overflow: hidden;
  cursor: grab;
}
.tools-parent-container .dn-canvas-container:active {
  cursor: grabbing;
}
.tools-parent-container {
  /* Overlay Controls */
}
.tools-parent-container .dn-controls-overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  gap: 20px;
  align-items: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tools-parent-container .dn-control-btn {
  background: #3a3a55;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tools-parent-container .dn-control-btn:hover {
  background: #ffc62f;
  color: #000;
  transform: scale(1.1);
}
.tools-parent-container .dn-slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: bold;
}
.tools-parent-container input[type="range"].dn-slider {
  width: 100px;
  accent-color: #ffc62f;
}
.tools-parent-container {
  /* Info Panel (Right Side) */
}
.tools-parent-container .dn-info-panel {
  position: absolute;
  top: 80px;
  right: 20px;
  width: 300px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  z-index: 5;
}
.tools-parent-container .dn-info-panel.minimized {
  transform: translateX(120%);
}
.tools-parent-container .dn-info-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
.tools-parent-container .dn-info-content h3 {
  color: #2d3436;
  margin-bottom: 10px;
}
.tools-parent-container .dn-info-content p {
  color: #636e72;
  line-height: 1.5;
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.tools-parent-container .dn-quiz-btn {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}
.tools-parent-container .dn-quiz-btn:hover {
  transform: translateY(-2px);
}
.tools-parent-container {
  /* Labels on 3D Scene */
}
.tools-parent-container .dn-label {
  position: absolute;
  color: white;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  font-size: 1.2rem;
  opacity: 0.8;
}
.tools-parent-container {
  /* Close Button override */
}
.tools-parent-container .dn-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.tools-parent-container .dn-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}
.tools-parent-container {
  /* Quiz Overlay inside the 3D container */
}
.tools-parent-container .dn-quiz-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 20;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
}
.tools-parent-container .dn-quiz-card {
  background: white;
  color: #333;
  padding: 30px;
  border-radius: 20px;
  max-width: 500px;
  text-align: center;
}
.tools-parent-container .dn-option {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 2px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  font-size: 1rem;
  transition: all 0.2s;
}
.tools-parent-container .dn-option:hover {
  background: #f0f0f0;
  border-color: #6c5ce7;
}
.tools-parent-container .dn-option.correct {
  background: #00b894;
  color: white;
  border-color: #00b894;
}
.tools-parent-container .dn-option.wrong {
  background: #ff7675;
  color: white;
  border-color: #ff7675;
}
.tools-parent-container {
  /* Responsive */
}
@media (max-width: 768px) {
  .tools-parent-container .dn-info-panel {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    order: 2;
  }
  .tools-parent-container .dn-modal-container {
    height: 100vh;
    border-radius: 0;
  }
}
.tools-parent-container {
  /* ==================== DAY & NIGHT ANIMATION STYLES ==================== */
}
.tools-parent-container .dn-modal-container {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  border-radius: 30px;
  padding: 0;
  max-width: 1000px;
  width: 95%;
  height: 90vh;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #4a4a6a;
  color: white;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.tools-parent-container .animation-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tools-parent-container {
  /* 3D Earth Container */
}
.tools-parent-container .earth-3d-container {
  position: absolute;
  width: 350px;
  height: 350px;
  left: 11%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: left 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.tools-parent-container #earthCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(100, 149, 237, 0.3);
}
.tools-parent-container {
  /* Torch Styling */
}
.tools-parent-container .torch-container {
  position: absolute;
  right: 15%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 100px;
  z-index: 20;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.tools-parent-container .torch-body {
  width: 160px;
  height: 60px;
  background: linear-gradient(90deg, #333 0%, #555 50%, #333 100%);
  border-radius: 10px 30px 30px 10px;
  position: absolute;
  right: 0;
  top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.tools-parent-container .torch-head {
  width: 40px;
  height: 70px;
  background: #888;
  border-radius: 50% 10px 10px 50%;
  position: absolute;
  left: -10px;
  top: 15px;
  background: linear-gradient(90deg, #ccc 0%, #888 100%);
}
.tools-parent-container .torch-light-source {
  width: 20px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: -15px;
  top: 25px;
  box-shadow: 0 0 30px #fff, 0 0 50px #fffae0, 0 0 70px rgba(255, 250, 224, 0.5);
  opacity: 1;
}
.tools-parent-container {
  /* Light Beam Canvas */
}
.tools-parent-container #light-beam-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}
.tools-parent-container {
  /* Text & UI Elements */
}
.tools-parent-container .instruction-box {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 30px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  z-index: 100;
  width: 80%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: none;
  background: none;
}
.tools-parent-container .instruction-text {
  font-size: 1.4rem;
  color: #ffd700;
  margin: 0;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.tools-parent-container .explanation-box {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  text-align: center;
  z-index: 100;
}
.tools-parent-container .explanation-text {
  font-size: 1.2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-block;
}
.tools-parent-container .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: #fff;
  animation: blink 1s infinite;
  vertical-align: bottom;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.tools-parent-container {
  /* Controls Bar */
}
.tools-parent-container .controls-bar {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 100;
}
.tools-parent-container .dn-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  color: #1e1e1e;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tools-parent-container .dn-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.tools-parent-container .dn-btn:disabled {
  background: #555;
  color: #888;
  cursor: not-allowed;
  transform: none;
}
.tools-parent-container .dn-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.tools-parent-container .dn-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}
.tools-parent-container {
  /* Close Button */
}
.tools-parent-container .dn-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.tools-parent-container .dn-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}
.tools-parent-container {
  /* Responsive Adjustments from your script */
}
@media (max-width: 768px) {
  .tools-parent-container .earth-3d-container {
    width: 200px;
    height: 200px;
    left: 8%;
  }
  .tools-parent-container .torch-container {
    transform: scale(0.7) translateY(-50%);
    right: 5%;
  }
  .tools-parent-container .instruction-text {
    font-size: 1.1rem;
  }
  .tools-parent-container .explanation-text {
    font-size: 1rem;
  }
  .tools-parent-container .dn-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .tools-parent-container .earth-3d-container {
    scale: 0.75;
    translate: -40px -5%;
  }
  .tools-parent-container .torch-container {
    scale: 0.2;
    top: 46%;
  }
}
