@charset "UTF-8";
.tools-parent-container .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}
.tools-parent-container {
  /* Header */
}
.tools-parent-container .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 25px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .title {
  color: #4a5568;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .controls {
  display: flex;
  gap: 10px;
}
.tools-parent-container .control-btn {
  background: #ff6b6b;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .control-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .control-btn:active {
  transform: scale(0.95);
}
.tools-parent-container {
  /* Screen Management */
}
.tools-parent-container .screen {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tools-parent-container .hidden {
  display: none !important;
}
.tools-parent-container {
  /* Main Menu */
}
.tools-parent-container .menu-content h2 {
  color: #4a5568;
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.tools-parent-container .main-btn {
  background: linear-gradient(45deg, #ff6b6b, #ffa500);
  border: none;
  border-radius: 20px;
  padding: 20px 40px;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  min-width: 250px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .main-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .main-btn:active {
  transform: translateY(-1px);
}
.tools-parent-container .info-btn {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
}
.tools-parent-container {
  /* Difficulty Selection */
}
.tools-parent-container .difficulty-content h2, .tools-parent-container .category-content h2 {
  color: #4a5568;
  font-size: 2.2rem;
  margin-bottom: 30px;
}
.tools-parent-container .difficulty-buttons, .tools-parent-container .category-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.tools-parent-container .difficulty-btn, .tools-parent-container .category-btn {
  background: white;
  border: 4px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.tools-parent-container .difficulty-btn:hover, .tools-parent-container .category-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .difficulty-btn.easy:hover {
  border-color: #48bb78;
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
}
.tools-parent-container .difficulty-btn.medium:hover {
  border-color: #ed8936;
  background: linear-gradient(135deg, #ed8936, #dd6b20);
  color: white;
}
.tools-parent-container .difficulty-btn.hard:hover {
  border-color: #e53e3e;
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
}
.tools-parent-container .category-btn:hover {
  border-color: #4ecdc4;
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
}
.tools-parent-container .level-emoji, .tools-parent-container .category-emoji {
  font-size: 3rem;
}
.tools-parent-container .level-name, .tools-parent-container .category-name {
  font-size: 1.5rem;
  font-weight: bold;
}
.tools-parent-container .level-desc {
  font-size: 1rem;
  opacity: 0.8;
}
.tools-parent-container .back-btn {
  background: #718096;
  border: none;
  border-radius: 15px;
  padding: 15px 30px;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .back-btn:hover {
  background: #4a5568;
  transform: translateY(-2px);
}
.tools-parent-container {
  /* Memorize Phase */
}
.tools-parent-container .memorize-message {
  background: linear-gradient(45deg, #ffeaa7, #fab1a0);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
}
.tools-parent-container .memorize-message h3 {
  color: #2d3436;
  font-size: 2rem;
  margin-bottom: 15px;
}
.tools-parent-container #memorizeTimer {
  font-size: 4rem;
  font-weight: bold;
  color: #e17055;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.tools-parent-container {
  /* Game Screen */
}
.tools-parent-container .game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.tools-parent-container .moves-info {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4a5568;
}
.tools-parent-container .timer {
  font-size: 1.3rem;
  color: #e53e3e;
  font-weight: bold;
}
.tools-parent-container {
  /* Game Board */
}
.tools-parent-container .game-board {
  display: grid;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
  padding: 20px;
}
.tools-parent-container .game-board.easy {
  grid-template-columns: repeat(2, 1fr);
  max-width: 300px;
  margin: 0 auto 30px;
}
.tools-parent-container .game-board.medium {
  grid-template-columns: repeat(4, 1fr);
  max-width: 400px;
  margin: 0 auto 30px;
}
.tools-parent-container .game-board.hard {
  grid-template-columns: repeat(4, 1fr);
  max-width: 600px;
  margin: 0 auto 30px;
}
.tools-parent-container {
  /* Cards */
}
.tools-parent-container .card {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  position: relative;
  min-height: 80px;
}
.tools-parent-container .card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .card.flipped, .tools-parent-container .card.memorize-shown {
  background: white;
 
}
.tools-parent-container .card.matched {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  animation: matchPulse 0.6s ease;
}
.tools-parent-container .card.disabled {
  pointer-events: none;
  opacity: 0.7;
}
@keyframes matchPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes cardFlip {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}
.tools-parent-container .card.flipping {
  animation: cardFlip 0.6s ease;
}
.tools-parent-container {
  /* Settings Modal */
}
.tools-parent-container .settings-options {
  margin-bottom: 30px;
}
.tools-parent-container .setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: #f7fafc;
  border-radius: 10px;
}
.tools-parent-container .setting-item label {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4a5568;
}
.tools-parent-container .toggle-btn {
  background: #4ecdc4;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 60px;
}
.tools-parent-container .toggle-btn:hover {
  background: #44a08d;
  transform: scale(1.05);
}
.tools-parent-container .reset-btn {
  background: #e53e3e;
  border: none;
  border-radius: 15px;
  padding: 12px 24px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}
.tools-parent-container .reset-btn:hover {
  background: #c53030;
  transform: translateY(-2px);
}
.tools-parent-container {
  /* Modal */
}
.tools-parent-container .modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.tools-parent-container .modal-content {
  background: white;
  border-radius: 25px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tools-parent-container .modal-content h3 {
  color: #4a5568;
  font-size: 2rem;
  margin-bottom: 30px;
}
.tools-parent-container .instructions {
  margin-bottom: 30px;
}
.tools-parent-container .instruction-step {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  text-align: left;
  background: #f7fafc;
  padding: 15px;
  border-radius: 15px;
  border-left: 5px solid #4ecdc4;
}
.tools-parent-container .step-number {
  background: #4ecdc4;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}
.tools-parent-container .step-text {
  font-size: 1.2rem;
  color: #4a5568;
}
.tools-parent-container {
  /* Win Modal */
}
.tools-parent-container .win-content {
  background: linear-gradient(135deg, #ffeaa7, #fab1a0);
  color: #2d3436;
  position: relative;
  overflow: hidden;
}
.tools-parent-container .celebration-container {
  position: relative;
  z-index: 2;
}
.tools-parent-container .stars-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.tools-parent-container .stars-animation::before,
.tools-parent-container .stars-animation::after {
  content: "⭐";
  position: absolute;
  font-size: 2rem;
  animation: twinkle 2s infinite;
}
.tools-parent-container .stars-animation::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.tools-parent-container .stars-animation::after {
  top: 30%;
  right: 15%;
  animation-delay: 1s;
}
@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
.tools-parent-container .win-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
.tools-parent-container .win-message {
  margin-bottom: 30px;
}
.tools-parent-container .win-message p {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.tools-parent-container .win-stats {
  font-size: 1.2rem;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.3);
  padding: 15px;
  border-radius: 15px;
}
.tools-parent-container .best-score-message {
  margin-top: 20px;
  padding: 20px;
  border-radius: 15px;
  font-weight: bold;
}
.tools-parent-container .new-best-score {
  background: linear-gradient(45deg, #00b894, #00cec9);
  color: white;
  animation: celebration 2s infinite;
}
@keyframes celebration {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.tools-parent-container .score-highlight {
  font-size: 1.4rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .current-score {
  background: rgba(255, 255, 255, 0.5);
  color: #2d3436;
}
.tools-parent-container .win-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
.tools-parent-container {
  /* Animation Containers */
}
.tools-parent-container .confetti-container,
.tools-parent-container .fireworks-container,
.tools-parent-container .balloons-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}
.tools-parent-container {
  /* Confetti Animation */
}
.tools-parent-container .confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ff6b6b;
  animation: confettiFall 3s linear infinite;
}
.tools-parent-container .confetti-piece:nth-child(2n) {
  background: #4ecdc4;
}
.tools-parent-container .confetti-piece:nth-child(3n) {
  background: #ffe66d;
}
.tools-parent-container .confetti-piece:nth-child(4n) {
  background: #ff6b6b;
}
.tools-parent-container .confetti-piece:nth-child(5n) {
  background: #a8e6cf;
}
@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
.tools-parent-container {
  /* Fireworks Animation */
}
.tools-parent-container .firework {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: fireworkExplode 2s ease-out;
}
.tools-parent-container .firework::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #ff6b6b, #4ecdc4, #ffe66d);
  border-radius: 50%;
  animation: fireworkSparkle 2s ease-out;
}
@keyframes fireworkExplode {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  50% {
    transform: scale(20);
    opacity: 0.8;
  }
  100% {
    transform: scale(40);
    opacity: 0;
  }
}
@keyframes fireworkSparkle {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.tools-parent-container {
  /* Balloons Animation */
}
.tools-parent-container .balloon {
  position: absolute;
  bottom: -100px;
  width: 30px;
  height: 40px;
  border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  animation: balloonFloat 8s ease-in-out;
}
.tools-parent-container .balloon::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 50px;
  background: #333;
}
@keyframes balloonFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(10deg);
    opacity: 0;
  }
}
.tools-parent-container {
  /* Responsive Design */
}
@media (max-width: 768px) {
  .tools-parent-container .container {
    padding: 15px;
  }
  .tools-parent-container .title {
    font-size: 1.8rem;
  }
  .tools-parent-container .header {
    padding: 10px 15px;
    margin-bottom: 20px;
  }
  .tools-parent-container .screen {
    padding: 25px 20px;
    min-height: 400px;
  }
  .tools-parent-container .menu-content h2, .tools-parent-container .difficulty-content h2, .tools-parent-container .category-content h2 {
    font-size: 2rem;
  }
  .tools-parent-container .main-btn {
    font-size: 1.3rem;
    padding: 18px 35px;
    min-width: 200px;
  }
  .tools-parent-container .difficulty-buttons, .tools-parent-container .category-buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .tools-parent-container .difficulty-btn, .tools-parent-container .category-btn {
    min-width: 200px;
    padding: 25px 15px;
  }
  .tools-parent-container .category-buttons {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 15px;
  }
  .tools-parent-container .game-board.easy {
    grid-template-columns: repeat(2, 1fr);
    max-width: 250px;
    gap: 10px;
  }
  .tools-parent-container .game-board.medium {
    grid-template-columns: repeat(2, 1fr);
    max-width: 250px;
    gap: 10px;
  }
  .tools-parent-container .game-board.hard {
    grid-template-columns: repeat(4, 1fr);
    max-width: 350px;
    gap: 10px;
  }
  .tools-parent-container .card {
    font-size: 2rem;
    min-height: 60px;
  }
  .tools-parent-container .game-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .tools-parent-container .modal-content {
    padding: 25px 20px;
    margin: 20px;
  }
  .tools-parent-container .win-buttons {
    flex-direction: column;
    align-items: center;
  }
  .tools-parent-container .instruction-step {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .tools-parent-container .step-number {
    margin-right: 0;
  }
  .tools-parent-container .memorize-message h3 {
    font-size: 1.5rem;
  }
  .tools-parent-container #memorizeTimer {
    font-size: 3rem;
  }
}
@media (max-width: 480px) {
  .tools-parent-container .title {
    font-size: 1.5rem;
  }
  .tools-parent-container .control-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .tools-parent-container .card {
    font-size: 1.5rem;
    min-height: 50px;
  }
  .tools-parent-container .game-board.hard {
    grid-template-columns: repeat(4, 1fr);
    max-width: 280px;
  }
  .tools-parent-container .category-buttons {
    grid-template-columns: 1fr;
  }
}
.tools-parent-container {
  /* Accessibility */
}
@media (prefers-reduced-motion: reduce) {
  .tools-parent-container * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.tools-parent-container {
  /* High contrast mode */
}
@media (prefers-contrast: high) {
  .tools-parent-container .card {
    border: 3px solid #000;
  }
  .tools-parent-container .main-btn {
    border: 2px solid #000;
  }
}