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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.mind-map-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    overflow: auto;
}

#mind-map {
    width: 100%;
    height: 600px;
    display: block;
}

.node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.node circle {
    fill: #fff;
    stroke: #667eea;
    stroke-width: 3px;
    transition: all 0.3s ease;
}

.node text {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    fill: #333;
    text-anchor: middle;
    pointer-events: none;
}

.node:hover circle {
    fill: #667eea;
    stroke: #764ba2;
    stroke-width: 4px;
}

.node:hover text {
    fill: #333;
    font-weight: bold;
}

.link {
    fill: none;
    stroke: #667eea;
    stroke-width: 2px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.link:hover {
    opacity: 1;
    stroke-width: 3px;
}

.legend {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.legend h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.legend p {
    margin: 5px 0;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    #mind-map {
        height: 500px;
    }
    
    .node text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #mind-map {
        height: 400px;
    }
}