  body {
            font-family: 'Roboto', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background: linear-gradient(135deg, #8e2de2, #4a00e0); 
            color: #fff;
        }

        #game-container {
            text-align: center;
            background-color: #ffffff;
            border-radius: 20px;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
            padding: 30px;
            width: 360px;
        }

        h1 {
            margin-bottom: 20px;
            color: #333;
            font-size: 2rem;
        }

        #game-board {
            display: grid;
            grid-template-columns: repeat(4, 80px);
            gap: 15px;
            margin-bottom: 20px;
        }

        .card {
            width: 80px;
            height: 80px;
            background-color: #6a1b9a; 
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            cursor: pointer;
            border-radius: 10px;
            color: #fff;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            transition: background-color 0.6s ease, transform 0.3s ease, opacity 0.3s ease;
            opacity: 0.9;
            position: relative;
        }

        .card.flipped {
            background-color: #fff; 
            color: #6a1b9a; 
            transform: rotateY(180deg); 
            opacity: 1;
        }

        #result {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: #4caf50; 
        }

        #reset-btn, #hint-btn {
            padding: 12px 25px;
            font-size: 1rem;
            background-color: #6200ea; 
            border: none;
            border-radius: 8px;
            color: #fff;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.3s;
        }

        #reset-btn:hover, #hint-btn:hover {
            background-color: #3700b3; 
            transform: scale(1.05);
        }

        #timer, #attempts, #hints {
            font-size: 1rem;
            margin-bottom: 15px;
            color: #333;
        }

       
        .card {
            transform-style: preserve-3d;
            transition: transform 0.6s ease;
        }

        .card.flipped {
            transform: rotateY(360deg);
        }

       
        .card::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
        }
