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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 80px 20px 60px;
    text-align: center;
    border-bottom: 2px solid #00d4ff;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8em;
    color: #00d4ff;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3em;
    color: #cccccc;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-item {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: left;
}

.highlight-safe {
    background: rgba(0, 255, 100, 0.1);
    border-color: rgba(0, 255, 100, 0.3);
    text-align: center;
}

.highlight-label {
    display: block;
    color: #00d4ff;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.highlight-value {
    display: block;
    color: #ffffff;
    font-size: 1.05em;
}

/* Animation Section */
.animation-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2em;
    color: #00d4ff;
    margin-bottom: 40px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.main-content {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

#animationCanvas {
    border: 2px solid #00d4ff;
    border-radius: 8px;
    background: #000000;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 320px;
    flex-shrink: 0;
}

.controls, .legend, .info {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h2 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1.3em;
}

h3 {
    color: #00d4ff;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.control-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00d4ff 0%, #0080ff 100%);
    border: none;
    border-radius: 6px;
    color: #000000;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 212, 255, 0.3);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 212, 255, 0.5);
}

.control-btn:active {
    transform: translateY(0);
}

.speed-control {
    margin-top: 15px;
}

.speed-control label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
}

#speedValue {
    color: #00d4ff;
    font-weight: bold;
}

#speedSlider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

#speedSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00d4ff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

#speedSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00d4ff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.legend-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 12px;
}

.legend-item.sun {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
}

.color-box {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 10px currentColor;
    margin-top: 2px;
}

.legend-text {
    flex: 1;
    line-height: 1.5;
}

.legend-text strong {
    color: #ffffff;
    font-size: 1.05em;
}

.legend-text em {
    color: #aaaaaa;
    font-size: 0.9em;
}

.info p {
    line-height: 1.6;
    color: #cccccc;
    font-size: 0.95em;
}

@media (max-width: 1400px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }
    
    .sidebar {
        max-width: 1000px;
        width: 100%;
    }
}

/* Content Sections */
.content-section {
    padding: 60px 20px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.content-section:nth-child(even) {
    background: rgba(26, 26, 46, 0.3);
}

.content-section p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.highlight-text {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), transparent);
    border-left: 4px solid #00d4ff;
    padding: 20px;
    margin: 30px 0;
    font-size: 1.15em;
    font-weight: 500;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #00d4ff 0%, #0080ff 100%);
}

.data-table th {
    padding: 15px;
    text-align: left;
    color: #000000;
    font-weight: bold;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.data-table tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.source-note {
    font-style: italic;
    color: #aaaaaa;
    margin-top: 10px;
}

/* Composition Grid */
.composition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.composition-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.composition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.composition-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.composition-card h3 {
    color: #00d4ff;
    margin: 15px 0;
    font-size: 1.2em;
}

.composition-card p {
    color: #cccccc;
    font-size: 1em;
    line-height: 1.6;
}

/* Myth Cards */
.myth-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.myth-card {
    background: rgba(255, 100, 100, 0.05);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease;
}

.myth-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 100, 100, 0.5);
}

.myth-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.myth-icon {
    font-size: 2.5em;
    line-height: 1;
    flex-shrink: 0;
}

.myth-claim {
    color: #ff6b6b;
    font-size: 1.1em;
    margin: 15px 0;
    font-style: italic;
}

.myth-fact {
    color: #e0e0e0;
    font-size: 1em;
    line-height: 1.7;
}

/* Sources Section */
.sources-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.sources-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.sources-list a {
    color: #00d4ff;
    text-decoration: none;
}

.sources-list a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid #00d4ff;
}

.footer p {
    color: #888888;
    margin: 10px 0;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    #animationCanvas {
        width: 100%;
        height: auto;
    }
    
    .hero-highlights {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        flex-direction: column;
        align-items: center;
    }
    
    .sidebar {
        width: 100%;
        max-width: 500px;
    }
    
    .composition-grid {
        grid-template-columns: 1fr;
    }
    
    .myth-grid {
        grid-template-columns: 1fr;
    }
}
