:root {
    --primary-color: #3498db;
    --text-color: #333;
    --background-color: #f5f7fa;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-color: rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    transition: background-color var(--transition-speed);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px var(--shadow-color);
}

.language-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.language-selector a {
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: all var(--transition-speed);
}

.language-selector a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.language-selector a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Main Content Styles */
main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    animation: slideIn 0.5s ease-in-out;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--shadow-color);
}

.info-card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h2 i {
    font-size: 1.2rem;
}

.greeting {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: #555;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stat-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #555;
}

.value {
    font-weight: 600;
    color: var(--primary-color);
}

/* Flag Styles */
.flag {
    font-size: 1.2rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* Interactive Content */
.interactive-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.interactive h3 {
    margin-bottom: 15px;
    color: #555;
}

.color-picker {
    margin-bottom: 20px;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.tracker-box {
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
}

.mouse-position {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 10px;
    font-family: monospace;
}

canvas {
    border: 1px dashed #ddd;
    border-radius: 4px;
    width: 100%;
    cursor: crosshair;
}

/* Footer Styles */
footer {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #777;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
}

/* Dark mode support for users with system preference */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #eaeaea;
        --background-color: #121212;
        --card-bg: #1e1e1e;
        --shadow-color: rgba(0, 0, 0, 0.3);
        --hover-color: rgba(255, 255, 255, 0.05);
    }
    
    .label {
        color: #bbb;
    }
    
    .greeting {
        color: #bbb;
    }
    
    .info-card h2 {
        color: var(--primary-color);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .tracker-box {
        background-color: rgba(30, 30, 30, 0.8);
        border-color: #333;
    }
    
    canvas {
        border-color: #444;
    }
    
    footer {
        border-top-color: rgba(255, 255, 255, 0.1);
        color: #999;
    }
} 