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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0c0c23 0%, #1a1a3a 50%, #2d2d5f 100%);
    color: #ffffff;
    min-height: 100vh;
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #1e3a8a 0%, #000814 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px #00f5ff;
    animation: pulse 2s infinite;
}

.header p {
    font-size: 1.2rem;
    color: #00f5ff;
    font-weight: 300;
}

@keyframes pulse {
    0%, 100% { text-shadow: 0 0 20px #00f5ff; }
    50% { text-shadow: 0 0 30px #00f5ff, 0 0 40px #00f5ff; }
}

.main-content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.canvas-container {
    flex: 1;
    position: relative;
    min-width: 300px;
}

#canvas {
    border: 3px solid #00f5ff;
    border-radius: 10px;
    background: #000814;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    cursor: crosshair;
    width: 100%;
    height: auto;
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: #00f5ff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #00f5ff;
    pointer-events: none;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
}

.control-panel {
    width: 300px;
    background: rgba(30, 58, 138, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.control-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.control-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.control-section h3 {
    color: #ff8500;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-shadow: 0 0 10px #ff8500;
}

.control-section label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #b3d9ff;
}

.control-section input[type="range"] {
    width: 100%;
    margin-top: 8px;
    background: transparent;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #00f5ff, #ff8500);
    outline: none;
}

.control-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00f5ff;
    cursor: pointer;
    box-shadow: 0 0 10px #00f5ff;
}

.control-section input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00f5ff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px #00f5ff;
}

.control-section button {
    background: linear-gradient(135deg, #ff8500 0%, #ff6b00 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    margin: 5px 5px 5px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 133, 0, 0.3);
}

.control-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 133, 0, 0.4);
    background: linear-gradient(135deg, #ff6b00 0%, #ff5500 100%);
}

.control-section select {
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #00f5ff;
    border: 1px solid #00f5ff;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
}

.control-section input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #00f5ff;
}

.info-panel {
    background: rgba(30, 58, 138, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.stats span {
    color: #00f5ff;
    font-size: 1rem;
    text-shadow: 0 0 5px #00f5ff;
}

.facts {
    text-align: center;
    font-style: italic;
    color: #ff8500;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #b3d9ff;
    font-size: 0.9rem;
}

footer a {
    color: #00f5ff;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-shadow: 0 0 10px #00f5ff;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .control-panel {
        width: 100%;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .app-container {
        padding: 10px;
    }
}

/* Special effects */
.control-section button:active {
    transform: scale(0.95);
}

#canvas:hover {
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.5);
}

/* Loading animation for fun */
@keyframes thermalPulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header {
    background-size: 200% 200%;
    animation: thermalPulse 4s ease infinite;
}