



        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Cairo', sans-serif;
        }

        body {
            background-color: #f8f9fa;
            padding: 20px;
        }

        .header {
            background: linear-gradient(120deg, #6a5acd, #4ECDC4);
            color: white;
            padding: 20px 0;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
            width: 100%;
            border-radius: 15px;
            text-align: center;
        }

        .game-section {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            padding: 20px;
            margin-bottom: 30px;
        }

        .game-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            margin: 0 auto;
        }

        .game-header {
            color: white;
            padding: 20px;
            text-align: center;
            font-size: 1.5rem;
            background: linear-gradient(120deg, #FF9F1C, #FF6B6B);
        }

        .game-body {
            padding: 30px;
            text-align: center;
        }

        .number-circle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: #ffce5c;
            color: #333;
            font-weight: bold;
            font-size: 2rem;
            margin: 10px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .number-circle:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        }

        .number-circle.selected {
            background: #4ECDC4;
            color: white;
            transform: scale(1.05);
        }

        .game-btn {
            background: #6a5acd;
            color: white;
            border: none;
            border-radius: 50px;
            padding: 12px 30px;
            margin-top: 25px;
            font-size: 1.2rem;
            font-weight: bold;
            transition: all 0.3s;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin: 10px;
        }

        .game-btn:hover {
            background: #5a4abf;
            transform: scale(1.05);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }

        .game-container {
            min-height: 150px;
            border: 2px dashed #ccc;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            background: #f9f9f9;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
        }

        .instructions {
            background-color: rgba(255, 255, 255, 0.2);
            border-bottom: 4px solid #e84393;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            backdrop-filter: blur(5px);
        }

        .feedback {
            height: 40px;
            margin: 20px 0;
            font-weight: bold;
            font-size: 1.3rem;
            color: #6a5acd;
        }

        .success-animation {
            animation: success 1s ease;
        }

        @keyframes success {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .difficulty-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 25px;
        }

        .difficulty-btn {
            padding: 10px 20px;
            border-radius: 30px;
            border: none;
            font-weight: bold;
            transition: all 0.3s;
        }

        .difficulty-btn.easy {
            background: #9BE564;
            color: #333;
        }

        .difficulty-btn.medium {
            background: #FF9F1C;
            color: white;
        }

        .difficulty-btn.hard {
            background: #FF6B6B;
            color: white;
        }

        .difficulty-btn.active {
            transform: scale(1.1);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }

        .progress-container {
            margin: 20px auto;
            max-width: 500px;
        }

        .progress {
            height: 25px;
            border-radius: 12px;
            margin: 15px 0;
            overflow: hidden;
        }

        .progress-bar {
            background: linear-gradient(90deg, #4ECDC4, #6a5acd);
            transition: width 0.5s;
        }

        .score-display {
            font-size: 1.3rem;
            font-weight: bold;
            color: #6a5acd;
            margin: 15px 0;
        }

        /* لغز الحيوانات */
        .puzzle-area {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 25px;
            margin: 20px 0;
            width: 100%;
        }

        .puzzle-pieces {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            padding: 15px;
            background: #f0f0f0;
            border-radius: 15px;
        }

        .puzzle-slot {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
            padding: 15px;
            background: #e0e0e0;
            border-radius: 15px;
        }

        .piece, .slot {
            width: 80px;
            height: 80px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 2.5rem;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s;
            user-select: none;
        }

        .piece {
            background: #ffd166;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .piece:hover {
            background: #ffb74d;
            transform: scale(1.05);
        }

        .slot {
            background: #dee2e6;
            border: 2px dashed #adb5bd;
        }

        .slot.correct {
            background: #8ce99a;
            border: 2px solid #40c057;
        }

        .animal-image {
            width: 250px;
            height: 250px;
            background: #e9ecef;
            border-radius: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 8rem;
            margin: 0 auto 20px auto;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
            text-align: center !important;
        }

        .clue-container {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .clue-option {
            font-size: 2.5rem;
            padding: 10px;
            border-radius: 10px;
            background: #e9ecef;
            cursor: pointer;
            transition: all 0.3s;
        }

        .clue-option:hover {
            background: #dee2e6;
            transform: scale(1.1);
        }

        .clue-option.selected {
            background: #8ce99a;
            transform: scale(1.1);
        }

        /* لعبة الذاكرة */
        .memory-grid-container {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .memory-grid {
            display: grid;
            gap: 10px;
            margin: 15px 0;
            justify-content: center;
            perspective: 1000px;
        }

        .memory-card {
            width: 70px;
            height: 70px;
            background: #118ab2;
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.8rem;
            cursor: pointer;
            color: transparent;
            transition: transform 0.6s;
            transform-style: preserve-3d;
        }

        .memory-card.revealed {
            background: #ffd166;
            color: black;
            transform: rotateY(180deg);
        }

        .memory-card.matched {
            background: #8ce99a;
            color: black;
            transform: rotateY(180deg);
            cursor: default;
        }

        .memory-controls {
            margin: 15px 0;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .form-group {
            margin-bottom: 15px;
            width: 100%;
            text-align: center;
        }

        .form-control {
            width: 100%;
            max-width: 250px;
            margin: 0 auto;
        }

        .moves-counter {
            font-size: 1.2rem;
            color: #ff6b6b;
            margin-top: 5px;
        }

        .timer {
            font-size: 1.2rem;
            color: #6a11cb;
            margin-top: 5px;
        }

        .win-message {
            font-size: 2rem;
            color: #4CAF50;
            font-weight: bold;
            text-align: center;
            margin: 15px 0;
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        /* Drag and drop styles */
        .piece.dragging {
            opacity: 0.5;
            transform: scale(0.9);
        }

        .slot.hovered {
            background: #adb5bd;
            transform: scale(1.05);
        }

        @media (max-width: 768px) {
            .puzzle-area {
                flex-direction: column;
            }
            
            .piece, .slot {
                width: 70px;
                height: 70px;
                font-size: 2rem;
            }
            
            .animal-image {
                width: 200px;
                height: 200px;
                font-size: 6rem;
            }
            
            .clue-option {
                font-size: 2rem;
            }
            
            .memory-card {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }
        }

        @media (max-width: 576px) {
            .memory-card {
                width: 50px;
                height: 50px;
                font-size: 1.3rem;
            }
        }
		
		  #slider-game .containerx {
    max-width: 600px;
    margin: 0 auto;
  }

  #slider-game .controls {
    margin-bottom: 20px;
  }

  #slider-game select,
  #slider-game button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
  }

  #slider-game select:hover,
  #slider-game button:hover {
    background-color: #45a049;
  }

  #slider-game #game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-gap: 5px;
    width: 315px;
    margin: 20px auto;
  }

  #slider-game .tile {
    width: 100px;
    height: 100px;
    background-color: #2196F3;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 5px;
  }

  #slider-game .tile.empty {
    background-color: #ccc;
    cursor: default;
  }

  #slider-game #modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }

  #slider-game #modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
  }

  #slider-game #close-modal {
    margin-top: 10px;
    background-color: #f44336;
  }

  #slider-game #close-modal:hover {
    background-color: #d32f2f;
  }
