html {
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 20px;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
}

h1 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.5rem;
}

p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
}

.container-image {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.image-wrapper {
    text-align: center;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    position: relative;
}

.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.navbar {
    background-color: #2c3e50;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 100%;
}

.navbar a {
    text-decoration: none;
    color: white;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-weight: 600;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.navbar a:hover {
    background-color: #34495e;
}

.navbar a.active {
    background-color: #0d6efd;
    color: white;
}

.creative-wrapper {
    background: #1a1a2e;
    border: none;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

#creative-chart {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
}

.chart-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    font-size: 14px;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: opacity 0.2s ease-in-out;
    text-align: left;
    z-index: 100;
    border-left: 4px solid #0d6efd;
}

.pulsing-node {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; stroke-width: 2px; }
    50% { transform: scale(1.4); opacity: 1; stroke-width: 4px; }
    100% { transform: scale(1); opacity: 0.8; stroke-width: 2px; }
}

.bg-star {
    fill: white;
    animation: twinkle var(--duration, 3s) infinite ease-in-out;
}

@keyframes twinkle {
    0% { opacity: 0.1; transform: scale(0.8); }
    50% { opacity: 0.7; transform: scale(1.3); }
    100% { opacity: 0.1; transform: scale(0.8); }
}