/* ========== MAGIC CARPET CUSTOMIZER CSS ========== */
/* Enhanced styles for the Duolingo Magic Carpet Language Learning Journey */

/* ========== MAGIC CARPET HERO SECTION ========== */
.magic-carpet-hero {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, rgba(28, 176, 246, 0.9) 0%, rgba(88, 204, 2, 0.9) 100%),
                url('images/magic-carpet-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.magic-carpet-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.magic-carpet-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 6rem; /* Adjust this value as needed */
}

.magic-carpet-hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    line-height: 1.1;
}

.magic-carpet-hero p {
    color: white;
    font-size: var(--font-lg);
    margin-bottom: 0;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

/* ========== CARPET LEARNING SECTION ========== */
.carpet-learning-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    position: relative;
    overflow: hidden;
}

.carpet-learning-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: rgba(28, 176, 246, 0.05);
    border-radius: 50%;
    animation: float-background 20s ease-in-out infinite;
}

@keyframes float-background {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.carpet-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    background: white;
    border-radius: 20px;
    padding: var(--space-2xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(28, 176, 246, 0.1);
}

/* ========== LEFT SIDE - CARPET PREVIEW ========== */
.carpet-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carpet-container {
    position: relative;
    width: 450px;
    height: 300px;
    margin-bottom: var(--space-lg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    background: linear-gradient(45deg, #e3f2fd, #f3e5f5);
    border: 3px solid #e0e0e0;
}

.carpet-container:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-color: var(--duolingo-blue);
}

.carpet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.8s ease;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

.carpet-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1cb0f6, #58cc02);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.placeholder-content {
    text-align: center;
    color: white;
}

.carpet-emoji {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: float-gentle 3s ease-in-out infinite;
    display: block;
}

.carpet-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carpet-subtext {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== CLARITY OVERLAY SYSTEM ========== */
.clarity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}

/* Proficiency levels with improved clarity progression */
.beginner .clarity-overlay {
    opacity: 0.7;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.6);
}

.elementary .clarity-overlay {
    opacity: 0.5;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.4);
}

.intermediate .clarity-overlay {
    opacity: 0.25;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.2);
}

.advanced .clarity-overlay {
    opacity: 0.1;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.1);
}

.fluent .clarity-overlay {
    opacity: 0;
    backdrop-filter: blur(0px);
    background: transparent;
}

/* ========== MASTERY CIRCLES ========== */
.mastery-circles {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 15;
}

.circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #58cc02, #4ade80);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    animation: pulse-gentle 3s infinite;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(88, 204, 2, 0.4);
}

@keyframes pulse-gentle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    width: 100%;
    margin-bottom: var(--space-lg);
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    padding: var(--space-md);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(28, 176, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(28, 176, 246, 0.05), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stat-item:hover {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(28, 176, 246, 0.2);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1cb0f6;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    position: relative;
    z-index: 2;
}

/* ========== PROFICIENCY INFO ========== */
.proficiency-info {
    background: linear-gradient(135deg, #ffc800, #ff9600);
    color: white;
    padding: var(--space-lg);
    border-radius: 15px;
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 200, 0, 0.3);
}

.proficiency-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: golden-shine 3s infinite;
}

@keyframes golden-shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.proficiency-level {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.proficiency-progress {
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* ========== ACTION BUTTONS ========== */
.action-buttons {
    display: flex;
    gap: var(--space-md);
    width: 100%;
}

.btn {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #1cb0f6, #0ea5e9);
    color: white;
    box-shadow: 0 4px 12px rgba(28, 176, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 176, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #58cc02, #4ade80);
    color: white;
    box-shadow: 0 4px 12px rgba(88, 204, 2, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 204, 2, 0.4);
}

/* ========== RIGHT SIDE - LANGUAGE SELECTION ========== */
.language-selection h2 {
    color: #1cb0f6;
    margin-bottom: var(--space-lg);
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}

.language-selection h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1cb0f6, #58cc02);
    border-radius: 2px;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* ========== OPTIMIZED LANGUAGE CARD BACKGROUNDS ========== */
/* Best approach: SVG patterns + cultural symbols + smooth animations */

/* Base language option styling */
.language-option {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
}

/* Subtle pattern overlay for texture */
.language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.language-option:hover::before {
    opacity: 0.2;
}

/* Content positioning above background */
/* ========== OPTIMIZED LANGUAGE CARD BACKGROUNDS ========== */
/* Best approach: SVG patterns + cultural symbols + smooth animations */

/* Base language option styling */
.language-option {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
}

/* Subtle pattern overlay for texture */
.language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.language-option:hover::before {
    opacity: 0.2;
}

/* Content positioning above background */
.language-option > * {
    position: relative;
    z-index: 3;
}

/* ========== FRENCH - EIFFEL TOWER, FLEUR-DE-LIS & CAFÉ CULTURE ========== */
.language-option[data-language="french"] {
    background: linear-gradient(135deg, #1cb0f6 0%, #0ea5e9 30%, #dc2626 70%, #e3f2fd 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="french-pattern" patternUnits="userSpaceOnUse" width="50" height="50"><rect width="50" height="50" fill="none"/><g fill="%23ffffff" opacity="0.12"><path d="M25,5 L27,25 L29,35 L21,35 L23,25 Z M20,35 L30,35 M20,40 L30,40"/><path d="M15,45 Q17,42 19,45 Q17,47 15,45" fill="%23ffffff"/><ellipse cx="35" cy="15" rx="6" ry="4"/><rect x="32" y="18" width="6" height="2"/></g></pattern></defs><rect width="200" height="200" fill="url(%23french-pattern)"/></svg>');
    color: white;
}

.language-option[data-language="french"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="%23ffffff" opacity="0.25"><path d="M50,8 L52,35 L54,45 L46,45 L48,35 Z M42,45 L58,45 M42,50 L58,50 M42,55 L58,55 M45,60 L55,60"/><path d="M20,25 Q22,20 24,25 Q22,30 20,25 M22,25 L22,32 M20,32 L24,32"/><circle cx="75" cy="80" r="4"/><ellipse cx="75" cy="75" rx="8" ry="3"/><path d="M25,75 Q30,70 35,75 Q30,65 25,75" fill="none" stroke="%23ffffff" stroke-width="1.5"/><rect x="15" y="80" width="3" height="8"/><rect x="80" y="65" width="12" height="3" rx="1"/></g></svg>');
}

/* ========== SPANISH - FLAMENCO, GUITARS, PAELLA & SPANISH TILES ========== */
.language-option[data-language="spanish"] {
    background: linear-gradient(135deg, #dc2626 0%, #ff9600 30%, #fbbf24 70%, #fff3e0 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="spanish-pattern" patternUnits="userSpaceOnUse" width="60" height="60"><rect width="60" height="60" fill="none"/><g fill="%23ffffff" opacity="0.15"><path d="M30,15 Q35,10 40,15 Q35,20 30,15"/><ellipse cx="15" cy="30" rx="12" ry="18"/><path d="M45,35 Q50,25 55,35 Q50,45 45,35" fill="none" stroke="%23ffffff" stroke-width="2"/><rect x="10" y="45" width="25" height="8" rx="4"/><circle cx="50" cy="50" r="8" fill="none" stroke="%23ffffff" stroke-width="1.5"/></g></pattern></defs><rect width="200" height="200" fill="url(%23spanish-pattern)"/></svg>');
    color: white;
}

.language-option[data-language="spanish"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="%23ffffff" opacity="0.3"><path d="M25,20 Q35,10 45,20 Q40,35 35,45 Q30,35 25,20" fill="%23ffffff"/><ellipse cx="65" cy="25" rx="15" ry="8"/><path d="M55,35 Q65,25 75,35 Q70,45 65,50 Q60,45 55,35" stroke="%23ffffff" stroke-width="2" fill="none"/><circle cx="30" cy="70" r="12" fill="none" stroke="%23ffffff" stroke-width="2"/><path d="M25,70 L35,70 M30,65 L30,75"/><rect x="60" y="65" width="25" height="15" rx="3"/><path d="M15,85 Q25,80 35,85 Q25,90 15,85"/></g></svg>');
}

/* ========== GERMAN - CASTLES, PRETZELS, BEER STEINS & ALPINE ELEMENTS ========== */
.language-option[data-language="german"] {
    background: linear-gradient(135deg, #000000 0%, #dc2626 30%, #fbbf24 70%, #e8f5e8 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="german-pattern" patternUnits="userSpaceOnUse" width="55" height="55"><rect width="55" height="55" fill="none"/><g fill="%23ffffff" opacity="0.12"><rect x="20" y="20" width="15" height="25" rx="2"/><polygon points="27.5,15 32,25 23,25"/><polygon points="27.5,10 30,15 25,15"/><path d="M10,40 Q15,35 20,40 Q15,45 10,40 Q12,42 18,42 Q15,45 10,40"/><ellipse cx="40" cy="15" rx="8" ry="5"/><rect x="37" y="18" width="6" height="8" rx="1"/></g></pattern></defs><rect width="200" height="200" fill="url(%23german-pattern)"/></svg>');
    color: white;
}

.language-option[data-language="german"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="%23ffffff" opacity="0.35"><rect x="35" y="35" width="30" height="40" rx="3"/><polygon points="50,20 40,35 60,35"/><polygon points="50,15 45,20 55,20"/><rect x="30" y="75" width="40" height="5"/><rect x="42" y="40" width="6" height="15"/><rect x="52" y="40" width="6" height="15"/><path d="M15,65 Q20,60 25,65 Q20,70 15,65 Q17,67 23,67 Q20,70 15,65"/><ellipse cx="75" cy="25" rx="12" ry="8"/><rect x="70" y="30" width="10" height="12" rx="2"/><path d="M20,20 L25,15 L30,20 L25,25 Z" fill="none" stroke="%23ffffff" stroke-width="1.5"/></g></svg>');
}

/* ========== ITALIAN - COLOSSEUM, PIZZA, GONDOLAS & RENAISSANCE ART ========== */
.language-option[data-language="italian"] {
    background: linear-gradient(135deg, #16a34a 0%, #ffffff 30%, #dc2626 70%, #f3e5f5 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="italian-pattern" patternUnits="userSpaceOnUse" width="70" height="70"><rect width="70" height="70" fill="none"/><g fill="%23ffffff" opacity="0.12"><ellipse cx="35" cy="35" rx="25" ry="30"/><rect x="15" y="50" width="40" height="6" rx="1"/><rect x="20" y="40" width="30" height="3"/><rect x="20" y="30" width="30" height="3"/><path d="M10,15 Q15,10 20,15 Q20,25 15,30 Q10,25 10,15"/><circle cx="55" cy="15" r="6"/><polygon points="55,8 58,14 52,14"/><path d="M50,60 Q55,55 60,60 Q65,65 60,70 Q55,65 50,60"/></g></pattern></defs><rect width="200" height="200" fill="url(%23italian-pattern)"/></svg>');
    color: white;
}

.language-option[data-language="italian"]::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="%23ffffff" opacity="0.4"><ellipse cx="50" cy="45" rx="30" ry="35" fill="none" stroke="%23ffffff" stroke-width="2"/><rect x="25" y="60" width="50" height="8" rx="2"/><rect x="30" y="50" width="40" height="3"/><rect x="30" y="40" width="40" height="3"/><rect x="30" y="30" width="40" height="3"/><path d="M15,20 Q20,15 25,20 Q25,30 20,35 Q15,30 15,20"/><circle cx="75" cy="20" r="8"/><polygon points="75,12 78,18 72,18"/><rect x="72" y="22" width="6" height="15"/><path d="M20,75 Q25,70 30,75 Q35,80 30,85 Q25,80 20,75"/><circle cx="65" cy="75" r="8"/><path d="M60,70 Q65,68 70,70 Q68,75 65,78 Q62,75 60,70"/></g></svg>');
}

/* ========== ENHANCED CULTURAL HOVER EFFECTS ========== */
.language-option:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* French cultural hover - adds Parisian elegance */
.language-option[data-language="french"]:hover {
    box-shadow: 0 15px 35px rgba(28, 176, 246, 0.4), 0 0 25px rgba(220, 38, 38, 0.2);
    animation: french-shimmer 2s ease infinite alternate;
}

@keyframes french-shimmer {
    0% { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(10deg) brightness(1.1); }
}

/* Spanish cultural hover - adds flamenco passion */
.language-option[data-language="spanish"]:hover {
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4), 0 0 25px rgba(251, 191, 36, 0.3);
    animation: spanish-passion 1.5s ease infinite alternate;
}

@keyframes spanish-passion {
    0% { transform: translateY(-8px) scale(1.02) rotate(-0.5deg); }
    100% { transform: translateY(-10px) scale(1.03) rotate(0.5deg); }
}

/* German cultural hover - adds Bavarian warmth */
.language-option[data-language="german"]:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(220, 38, 38, 0.2), 0 0 35px rgba(251, 191, 36, 0.2);
    animation: german-stability 2.5s ease infinite alternate;
}

@keyframes german-stability {
    0% { filter: brightness(1) contrast(1); }
    100% { filter: brightness(1.05) contrast(1.1); }
}

/* Italian cultural hover - adds Renaissance elegance */
.language-option[data-language="italian"]:hover {
    box-shadow: 0 15px 35px rgba(22, 163, 74, 0.3), 0 0 25px rgba(220, 38, 38, 0.3);
    animation: italian-romance 2s ease infinite alternate;
}

@keyframes italian-romance {
    0% { filter: saturate(1) brightness(1); }
    100% { filter: saturate(1.2) brightness(1.08); }
}

/* ========== CULTURAL SOUND EFFECTS (Visual) ========== */
/* Add cultural "sound wave" effects on hover */
.language-option::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.language-option:hover::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

/* ========== REGIONAL FLAG STRIPE EFFECTS ========== */
/* Add subtle flag color stripes that appear on active state */
.language-option.active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    animation: active-glow 2s infinite alternate;
    position: relative;
    overflow: hidden;
}

/* French tricolor stripe effect */
.language-option[data-language="french"].active::before {
    background: linear-gradient(45deg, 
        #1cb0f6 0%, #1cb0f6 33%, 
        rgba(255,255,255,0.9) 33%, rgba(255,255,255,0.9) 66%, 
        #dc2626 66%, #dc2626 100%);
    opacity: 0.2;
    animation: french-wave 3s ease infinite;
}

@keyframes french-wave {
    0%, 100% { transform: translateX(-10%) rotate(45deg); }
    50% { transform: translateX(10%) rotate(45deg); }
}

/* Spanish flag stripe effect */
.language-option[data-language="spanish"].active::before {
    background: linear-gradient(45deg, 
        #dc2626 0%, #dc2626 25%, 
        #fbbf24 25%, #fbbf24 75%, 
        #dc2626 75%, #dc2626 100%);
    opacity: 0.2;
    animation: spanish-wave 2.5s ease infinite;
}

@keyframes spanish-wave {
    0%, 100% { transform: translateY(-10%) rotate(45deg); }
    50% { transform: translateY(10%) rotate(45deg); }
}

/* German flag stripe effect */
.language-option[data-language="german"].active::before {
    background: linear-gradient(180deg, 
        #000000 0%, #000000 33%, 
        #dc2626 33%, #dc2626 66%, 
        #fbbf24 66%, #fbbf24 100%);
    opacity: 0.25;
    animation: german-wave 3.5s ease infinite;
}

@keyframes german-wave {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(2deg); }
}

/* Italian flag stripe effect */
.language-option[data-language="italian"].active::before {
    background: linear-gradient(90deg, 
        #16a34a 0%, #16a34a 33%, 
        rgba(255,255,255,0.9) 33%, rgba(255,255,255,0.9) 66%, 
        #dc2626 66%, #dc2626 100%);
    opacity: 0.2;
    animation: italian-wave 2.8s ease infinite;
}

@keyframes italian-wave {
    0%, 100% { transform: translateX(-5%) scale(1); }
    50% { transform: translateX(5%) scale(1.02); }
}

@keyframes active-glow {
    0% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.5); }
}

/* ========== ENHANCED LANGUAGE FLAGS WITH CULTURAL ELEMENTS ========== */
.language-flag {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Add cultural elements around flags */
.language-option[data-language="french"] .language-flag::before {
    content: '🥐';
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.language-option[data-language="french"]:hover .language-flag::before {
    opacity: 1;
    transform: rotate(15deg) scale(1.2);
}

.language-option[data-language="spanish"] .language-flag::before {
    content: '🎸';
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.language-option[data-language="spanish"]:hover .language-flag::before {
    opacity: 1;
    transform: rotate(-10deg) scale(1.2);
}

.language-option[data-language="german"] .language-flag::before {
    content: '🥨';
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.language-option[data-language="german"]:hover .language-flag::before {
    opacity: 1;
    transform: rotate(20deg) scale(1.2);
}

.language-option[data-language="italian"] .language-flag::before {
    content: '🍕';
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.language-option[data-language="italian"]:hover .language-flag::before {
    opacity: 1;
    transform: rotate(-15deg) scale(1.2);
}

.language-option:hover .language-flag {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.language-option.active .language-flag {
    animation: flag-celebration 0.6s ease;
}

/* ========== CULTURAL CELEBRATION ANIMATIONS ========== */
@keyframes flag-celebration {
    0% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.3) rotate(5deg); }
    75% { transform: scale(1.2) rotate(-2deg); }
    100% { transform: scale(1.1); }
}

/* French celebration - Eiffel Tower sparkle */
.language-option[data-language="french"].active .language-flag {
    animation: french-celebration 1.2s ease;
}

@keyframes french-celebration {
    0% { transform: scale(1); filter: brightness(1); }
    25% { transform: scale(1.2) rotate(-3deg); filter: brightness(1.3) hue-rotate(10deg); }
    50% { transform: scale(1.3) rotate(3deg); filter: brightness(1.5) hue-rotate(-10deg); }
    75% { transform: scale(1.2) rotate(-1deg); filter: brightness(1.2); }
    100% { transform: scale(1.1); filter: brightness(1); }
}

/* Spanish celebration - Flamenco passion */
.language-option[data-language="spanish"].active .language-flag {
    animation: spanish-celebration 1s ease;
}

@keyframes spanish-celebration {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.1) rotate(-8deg); }
    40% { transform: scale(1.2) rotate(8deg); }
    60% { transform: scale(1.3) rotate(-5deg); }
    80% { transform: scale(1.2) rotate(3deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

/* German celebration - Bavarian precision */
.language-option[data-language="german"].active .language-flag {
    animation: german-celebration 1.5s ease;
}

@keyframes german-celebration {
    0% { transform: scale(1); }
    25% { transform: scale(1.15) translateY(-5px); }
    50% { transform: scale(1.25) translateY(-8px); }
    75% { transform: scale(1.15) translateY(-5px); }
    100% { transform: scale(1.1) translateY(0); }
}

/* Italian celebration - Renaissance flourish */
.language-option[data-language="italian"].active .language-flag {
    animation: italian-celebration 1.3s ease;
}

@keyframes italian-celebration {
    0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    30% { transform: scale(1.2) rotate(10deg); filter: brightness(1.2); }
    60% { transform: scale(1.3) rotate(-5deg); filter: brightness(1.4); }
    90% { transform: scale(1.15) rotate(2deg); filter: brightness(1.1); }
    100% { transform: scale(1.1) rotate(0deg); filter: brightness(1); }
}

/* ========== ENHANCED TEXT STYLING ========== */
.language-name {
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.language-level {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ========== CHECKMARK ANIMATION ENHANCEMENT ========== */
.language-option.active::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #58cc02, #4ade80);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    animation: checkmark-bounce 0.6s ease;
    box-shadow: 0 4px 12px rgba(88, 204, 2, 0.4);
    border: 2px solid white;
    z-index: 4;
}

@keyframes checkmark-bounce {
    0% { 
        transform: scale(0) rotate(-180deg); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.3) rotate(-90deg); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
}

/* ========== SUBTLE ANIMATION FOR NON-ACTIVE CARDS ========== */
.language-option:not(.active) {
    animation: gentle-pulse 4s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.language-option:hover {
    animation: none; /* Stop pulse on hover */
}

/* ========== RESPONSIVE ENHANCEMENTS ========== */
@media (max-width: 768px) {
    .language-flag {
        font-size: 3rem;
    }
    
    .language-option {
        padding: var(--space-md);
    }
    
    .language-option:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .language-option.active {
        transform: translateY(-3px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .language-flag {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .language-name {
        font-size: 1.1rem;
    }
    
    .language-level {
        font-size: 0.8rem;
    }
    
    .language-option.active::after {
        width: 25px;
        height: 25px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
@media (prefers-reduced-motion: reduce) {
    .language-option,
    .language-flag,
    .language-option::before,
    .language-option::after {
        animation: none !important;
        transition-duration: 0.1s !important;
    }
}

@media (prefers-contrast: high) {
    .language-option {
        border: 3px solid #000;
    }
    
    .language-option.active {
        border-color: #fff;
        background: #000 !important;
        color: #fff !important;
    }
    
    .language-name,
    .language-level {
        text-shadow: 2px 2px 4px #000;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .language-option {
        background: #f5f5f5 !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .language-option::before,
    .language-option::after {
        display: none !important;
    }
    
    .language-name,
    .language-level {
        color: #000 !important;
        text-shadow: none !important;
    }
}
/* ========== ENHANCED HOVER & ACTIVE STATES ========== */
.language-option:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-option.active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    animation: active-glow 2s infinite alternate;
}

@keyframes active-glow {
    0% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.5); }
}

/* ========== ENHANCED LANGUAGE FLAGS ========== */
.language-flag {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.language-option:hover .language-flag {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.language-option.active .language-flag {
    animation: flag-celebration 0.6s ease;
}

@keyframes flag-celebration {
    0% { transform: scale(1); }
    25% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.3) rotate(5deg); }
    75% { transform: scale(1.2) rotate(-2deg); }
    100% { transform: scale(1.1); }
}

/* ========== ENHANCED TEXT STYLING ========== */
.language-name {
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.language-level {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ========== CHECKMARK ANIMATION ENHANCEMENT ========== */
.language-option.active::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #58cc02, #4ade80);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    animation: checkmark-bounce 0.6s ease;
    box-shadow: 0 4px 12px rgba(88, 204, 2, 0.4);
    border: 2px solid white;
    z-index: 4;
}

@keyframes checkmark-bounce {
    0% { 
        transform: scale(0) rotate(-180deg); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.3) rotate(-90deg); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
}

/* ========== SUBTLE ANIMATION FOR NON-ACTIVE CARDS ========== */
.language-option:not(.active) {
    animation: gentle-pulse 4s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.language-option:hover {
    animation: none; /* Stop pulse on hover */
}

/* ========== RESPONSIVE ENHANCEMENTS ========== */
@media (max-width: 768px) {
    .language-flag {
        font-size: 3rem;
    }
    
    .language-option {
        padding: var(--space-md);
    }
    
    .language-option:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .language-option.active {
        transform: translateY(-3px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .language-flag {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .language-name {
        font-size: 1.1rem;
    }
    
    .language-level {
        font-size: 0.8rem;
    }
    
    .language-option.active::after {
        width: 25px;
        height: 25px;
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
@media (prefers-reduced-motion: reduce) {
    .language-option,
    .language-flag,
    .language-option::before,
    .language-option::after {
        animation: none !important;
        transition-duration: 0.1s !important;
    }
}

@media (prefers-contrast: high) {
    .language-option {
        border: 3px solid #000;
    }
    
    .language-option.active {
        border-color: #fff;
        background: #000 !important;
        color: #fff !important;
    }
    
    .language-name,
    .language-level {
        text-shadow: 2px 2px 4px #000;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .language-option {
        background: #f5f5f5 !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .language-option::before,
    .language-option::after {
        display: none !important;
    }
    
    .language-name,
    .language-level {
        color: #000 !important;
        text-shadow: none !important;
    }
}

/* ========== CLARITY SECTION ========== */
.clarity-section h3 {
    color: #1cb0f6;
    margin-bottom: var(--space-md);
    font-size: 1.4rem;
    font-weight: 600;
}

.clarity-levels {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    padding: var(--space-md);
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.clarity-level {
    text-align: center;
    flex: 1;
    padding: 10px 5px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.clarity-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.5));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clarity-level:hover::before {
    opacity: 1;
}

.clarity-level.active {
    background: linear-gradient(135deg, #1cb0f6, #0ea5e9);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(28, 176, 246, 0.3);
}

.clarity-level.unlocked {
    background: linear-gradient(135deg, #58cc02, #4ade80);
    color: white;
    box-shadow: 0 2px 8px rgba(88, 204, 2, 0.2);
}

.clarity-level.locked {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.level-name {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-percent {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* ========== PROGRESS SECTION ========== */
.progress-section {
    background: linear-gradient(135deg, #58cc02, #4ade80);
    color: white;
    padding: var(--space-lg);
    border-radius: 15px;
    margin-bottom: var(--space-lg);
    box-shadow: 0 5px 15px rgba(88, 204, 2, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: progress-shine 4s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.progress-section h4 {
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
}

.progress-section p {
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 12px;
    border-radius: 6px;
    margin: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.progress-fill {
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.9));
    height: 100%;
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progress-glow 2s ease-in-out infinite alternate;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: progress-sweep 2s infinite;
}

@keyframes progress-glow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

@keyframes progress-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========== ACHIEVEMENTS SECTION ========== */
.achievements {
    background: linear-gradient(135deg, #fff3e0, #ffe0b3);
    padding: var(--space-lg);
    border-radius: 15px;
    border-left: 5px solid #ffc800;
    box-shadow: 0 4px 12px rgba(255, 200, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.achievements::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 200, 0, 0.05), transparent);
    transform: rotate(45deg);
    animation: achievement-shine 5s infinite;
}

@keyframes achievement-shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.achievements h4 {
    color: #e65100;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.achievement-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.achievement-badge {
    background: linear-gradient(135deg, #ffc800, #ffb300);
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: badge-float 3s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 200, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 179, 0, 0.5);
}

.achievement-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 200, 0, 0.4);
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .carpet-main-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: var(--space-lg);
    }
    
    .carpet-container {
        width: 400px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .magic-carpet-hero {
        min-height: 350px;
        background-position: center center;
        padding: var(--space-2xl) 0;
    }
    
    .magic-carpet-hero h1 {
        font-size: 2.5rem;
    }
    
    .carpet-container {
        width: 350px;
        height: 230px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .language-grid {
        grid-template-columns: 1fr;
    }
    
    .clarity-levels {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .clarity-level {
        min-width: 80px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .magic-carpet-hero {
        min-height: 300px;
        padding: var(--space-xl) 0;
    }
    
    .magic-carpet-hero h1 {
        font-size: 2rem;
    }
    
    .magic-carpet-hero p {
        font-size: var(--font-base);
    }
    
    .carpet-container {
        width: 320px;
        height: 210px;
    }
    
    .circle {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .mastery-circles {
        top: 10px;
        left: 10px;
        gap: 6px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .achievement-list {
        justify-content: center;
    }
    
    .carpet-main-content {
        padding: var(--space-md);
        border-radius: 15px;
    }
}

/* ========== ACCESSIBILITY ENHANCEMENTS ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .carpet-container {
        border-width: 4px;
        border-color: #000;
    }
    
    .language-option.active {
        border-color: #000;
        background: #fff;
        color: #000;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
    }
}

/* Focus styles for keyboard navigation */
.language-option:focus,
.btn:focus,
.clarity-level:focus {
    outline: 3px solid var(--duolingo-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .magic-carpet-hero,
    .action-buttons {
        display: none;
    }
    
    .carpet-main-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .carpet-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
