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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
}

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

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

header h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #00ffff, #39ff14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 5px;
}

.instruction {
    font-size: 0.9rem;
    color: #00ffff;
    font-weight: bold;
}

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

.canvas-container {
    position: relative;
    background: #000;
    border: 2px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

#canvas {
    display: block;
    cursor: crosshair;
}

.animation-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.animation-indicator.running {
    color: #39ff14;
}

.animation-indicator.paused {
    color: #ff6b35;
}

.controls-panel {
    min-width: 300px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    height: fit-content;
}

.control-section {
    margin-bottom: 25px;
}

.control-section h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.control-btn {
    background: linear-gradient(45deg, #333, #555);
    color: #ffffff;
    border: 1px solid #666;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: linear-gradient(45deg, #555, #777);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

label {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

input[type="range"] {
    width: 100%;
    margin: 5px 0 15px 0;
    appearance: none;
    height: 5px;
    background: #333;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

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

.info-panel {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

#infoPanelTitle {
    color: #39ff14;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

#infoPanelContent {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

#infoPanelStats {
    color: #00ffff;
    font-size: 0.9rem;
    background: rgba(0, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #00ffff;
}

footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    color: #666;
}

footer a {
    color: #00ffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .canvas-container {
        overflow-x: auto;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .controls-panel {
        min-width: auto;
    }
}

/* Glowing effects for better visual appeal */
.control-btn:active {
    transform: scale(0.98);
}

input[type="range"]:hover::-webkit-slider-thumb {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}