@charset "UTF-8";
.tools-parent-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.tools-parent-container {
  font-family: "Comic Sans MS", "Chalkboard SE", "Arial Rounded MT Bold",
    cursive, sans-serif;
  background: linear-gradient(45deg, #dfab46 40%, #dfb86d 40%, #dfab46 61%);
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

.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: absolute;
  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 .header {
  text-align: center;
  margin-bottom: 40px;
  animation: slideDown 0.8s ease-out;

  color: #fff;
  background: none;
  filter: none;
  box-shadow: none;
  padding: 0;
  float: none;
  width: 100%;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tools-parent-container .header h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #fff;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.tools-parent-container .header .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 {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  padding: 20px 30px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 5px solid #fff;
  animation: pulse 2s infinite;
  z-index: 10;
}
@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: #ff6b6b;
  margin-bottom: 10px;
  text-align: center;
}
.tools-parent-container .total-score-display {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  color: #4834d4;
  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 */
}
.tools-parent-container .level-container {
  position: absolute;
  width: 90%;
  max-width: 450px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.tools-parent-container .level-container.center {
  transform: translateX(0) scale(1);
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}
.tools-parent-container .level-container.left {
  transform: translateX(-100%) scale(0.7);
  z-index: 1;
  opacity: 0.4;
  filter: brightness(0.7);
}
.tools-parent-container .level-container.right {
  transform: translateX(100%) scale(0.7);
  z-index: 1;
  opacity: 0.4;
  filter: brightness(0.7);
}
.tools-parent-container .level-container.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.3);
}
.tools-parent-container {
  /* Level Card */
}
.tools-parent-container .level-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border: 6px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}
.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(131, 131, 131, 0.3882352941);
  content: "";
  border-radius: 30px;
}
.tools-parent-container .level-card.unlocked {
  border-color: #4834d4;
  animation: glow 2s infinite;
}
.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 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}
.tools-parent-container .level-number {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: bold;
  color: #4834d4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tools-parent-container .level-icon {
  width: clamp(40px, 8vw, 60px);
  height: clamp(40px, 8vw, 60px);
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #16a085 100%);
  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: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .level-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  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: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
  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;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background: url("images/sparkles-svgrepo-com.svg") no-repeat center;
  background-size: contain;
  vertical-align: middle;
}
.tools-parent-container {
  /* Start Button */
}
.tools-parent-container .start-button {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #16a085 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  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;
  margin-top: 15px;
  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: #4834d4;
  box-shadow: 0 0 15px #4834d4;
  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: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .status-badge.locked {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  color: white;
}
.tools-parent-container .status-badge.unlocked {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
  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%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 5px;
  margin: 20px 0;
}
.tools-parent-container .progress-bar {
  height: 15px;
  background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
  border-radius: 15px;
  transition: width 0.5s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.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;
}
.tools-parent-container {
  /* 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 {
    max-width: 350px;
  }
  .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 .header {
    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: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
  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: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  border-radius: 30px;
  padding: 40px 30px;
  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;
}
.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: #4834d4;
  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: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  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;
}
.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, #4834d4 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: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
  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: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}
.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 {
  /* 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;
}
