        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #333;
            background: linear-gradient(135deg, #ff0000, #008000);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: linear-gradient(45deg, #ff0000, #ffff00, #008000);
            border-radius: 15px;
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            font-weight: bold;
        }

        .description {
            background: #f8f9fa;
            padding: 25px;
            border-radius: 15px;
            margin-bottom: 30px;
            border-left: 5px solid #dc3545;
        }

        .description h2 {
            color: #dc3545;
            margin-bottom: 15px;
            font-size: 1.5em;
        }

        .description p {
            font-size: 1.1em;
            line-height: 1.7;
            color: #555;
        }

        .baseline {
            background: #fff;
            padding: 30px;
            border-radius: 15px;
            margin-bottom: 30px;
            border-left: 5px solid #007bff;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .baseline h2 {
            color: #007bff;
            margin-bottom: 20px;
            font-size: 1.5em;
        }

        .baseline-content {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .prompt-section h3,
        .fairness-section h3 {
            color: #495057;
            margin-bottom: 15px;
            font-size: 1.2em;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .prompt-box {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            border-left: 4px solid #28a745;
            font-family: 'Georgia', serif;
            line-height: 1.6;
        }

        .prompt-box p {
            margin: 0;
            color: #333;
        }

        .fairness-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-top: 15px;
        }

        .fairness-item {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            border: 2px solid #e9ecef;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .fairness-item:hover {
            transform: translateY(-2px);
            border-color: #007bff;
        }

        .fairness-item h4 {
            color: #007bff;
            margin-bottom: 10px;
            font-size: 1.1em;
        }

        .fairness-item p {
            margin: 0;
            color: #666;
            line-height: 1.5;
            font-size: 0.95em;
        }

        .evaluation-note {
            background: linear-gradient(135deg, #ffeaa7, #fab1a0);
            padding: 20px;
            border-radius: 10px;
            border-left: 4px solid #e17055;
            margin-top: 10px;
        }

        .evaluation-note p {
            margin: 0;
            color: #2d3436;
            font-style: italic;
            text-align: center;
            font-weight: 500;
        }

        .dimensions-note {
            background: #e3f2fd;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #2196f3;
            margin-top: 15px;
        }

        .dimensions-note h4 {
            color: #1976d2;
            margin-bottom: 10px;
            font-size: 1em;
        }

        .dimensions-note p {
            margin: 0;
            color: #333;
            line-height: 1.5;
            font-size: 0.95em;
        }

        .dimensions-note code {
            background: #f5f5f5;
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
            color: #d63384;
            font-size: 0.9em;
        }

        .controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 12px 25px;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-size: 1em;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .btn-primary {
            background: linear-gradient(45deg, #dc3545, #28a745);
            color: white;
        }

        .btn-secondary {
            background: #6c757d;
            color: white;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 25px;
            margin-top: 20px;
        }

        .flag-container {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            border: 2px solid #e9ecef;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .flag-container:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }

        .static-container {
            background: #f8f9fa;
            border: 2px solid #28a745;
        }

        .static-label {
            background: linear-gradient(45deg, #28a745, #20c997);
            box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
        }

        .ai-model-label {
            background: linear-gradient(45deg, #007bff, #6f42c1);
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: center;
            box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
        }

        .flag-display {
            min-height: 280px;
            max-height: 350px;
            border: 2px dashed #dee2e6;
            border-radius: 10px;
            padding: 20px;
            background: #f8f9fa;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .flag-display.has-content {
            border: 2px solid #28a745;
            background: white;
            padding: 10px;
        }

        /* Enforce standard flag dimensions */
        .flag-display .flag-container,
        .flag-display>div:first-child {
            width: 100% !important;
            max-width: 400px !important;
            height: 240px !important;
            margin: 0 auto !important;
            box-sizing: border-box !important;
        }

        .placeholder-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #6c757d;
            font-style: italic;
            text-align: center;
            pointer-events: none;
        }

        .code-input {
            width: 100%;
            min-height: 200px;
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: 10px;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            resize: vertical;
            margin-top: 10px;
        }

        .code-input:focus {
            outline: none;
            border-color: #007bff;
        }

        .center-image {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 1em;
        }

        .apply-btn {
            margin-top: 10px;
            padding: 8px 20px;
            background: #28a745;
            color: white;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.3s ease;
        }

        .apply-btn:hover {
            background: #218838;
        }

        .remove-btn {
            margin-top: 10px;
            margin-left: 10px;
            padding: 8px 20px;
            background: #dc3545;
            color: white;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.3s ease;
        }

        .remove-btn:hover {
            background: #c82333;
        }

        @media (max-width: 768px) {
            .grid-container {
                grid-template-columns: 1fr;
            }

            .header h1 {
                font-size: 2em;
            }

            .container {
                padding: 20px;
            }
        }

        .footer {
            margin-top: 40px;
            padding: 30px;
            background: linear-gradient(135deg, #2c3e50, #34495e);
            border-radius: 15px;
            color: white;
            text-align: center;
        }

        .footer-content h3 {
            color: #ffd700;
            margin-bottom: 15px;
            font-size: 1.5em;
        }

        .footer-content p {
            margin-bottom: 15px;
            line-height: 1.6;
        }

        .footer-links {
            margin: 20px 0;
            font-size: 1.1em;
        }

        .footer-links a {
            color: #ffd700;
            text-decoration: none;
            margin: 0 10px;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: #ffed4e;
            text-decoration: underline;
        }

        .footer-note {
            font-size: 0.9em;
            color: #bdc3c7;
            margin-top: 20px;
            font-style: italic;
        }