
        body {
            font-family: 'Comic Sans MS', cursive, sans-serif;
            text-align: center;
            background-color: #ffebee;
            margin: 0;
            padding: 20px;
            transition: background-color 0.5s;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .container {
            max-width: 500px;
            width: 100%;
            background-color: white;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

        h1 {
            color: #ff4081;
            margin-bottom: 30px;
            font-size: 24px;
        }

        button {
            background-color: #ff4081;
            color: white;
            border: none;
            padding: 15px 30px;
            font-size: 18px;
            border-radius: 50px;
            cursor: pointer;
            margin: 20px 0;
            transition: transform 0.3s, background-color 0.3s;
            font-family: inherit;
        }

        button:hover {
            background-color: #f50057;
            transform: scale(1.05);
        }

        button:active {
            transform: scale(0.95);
        }

        #camera-container {
            width: 100%;
            height: 300px;
            background-color: #f5f5f5;
            border-radius: 15px;
            margin: 20px 0;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            position: relative;
        }

        #video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        #canvas {
            display: none;
        }

        #result {
            display: none;
            flex-direction: column;
            align-items: center;
        }

        #funny-image {
            width: 100%;
            max-width: 300px;
            border-radius: 15px;
            margin: 20px 0;
            border: 5px solid #ffeb3b;
        }

        #loading {
            display: none;
            flex-direction: column;
            align-items: center;
            margin: 30px 0;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #ff4081;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .message {
            font-size: 22px;
            font-weight: bold;
            color: #ff4081;
            margin: 20px 0;
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            background-color: #f44336;
            opacity: 0;
        }

        .try-again {
            background-color: #4caf50;
            margin-top: 20px;
        }

        .try-again:hover {
            background-color: #388e3c;
        }
    