body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: black;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Header */
.header {
    text-align: center;
    padding: 20px 0 10px 0;
    z-index: 10;
}

.site-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #007bff;
    text-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
    margin-bottom: 5px;
}

.page-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 10px;
}

.description {
    font-size: 1em;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

/* Controls */
.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.control-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.control-btn:hover {
    background: linear-gradient(45deg, #0056b3, #003d80);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.5);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn:disabled {
    background: #5a6268;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(51, 51, 51, 0.9);
    color: #e0e0e0;
    padding: 8px 16px;
    border: 1px solid #444;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.back-btn:hover {
    background: rgba(71, 71, 71, 0.9);
    transform: translateY(-1px);
}

/* Slider Controls */
.slider-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #c0c0c0;
}

.slider-control label {
    font-size: 0.9em;
    font-weight: 600;
}

.slider-control input[type="range"] {
    width: 120px;
    height: 6px;
    background: #444;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Dropdown Selectors */
.selector {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: 
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 10px center,
        linear-gradient(45deg, #007bff, #0056b3);
    background-size: 20px, auto;
    color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
}

.selector:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.5);
}

.selector option {
    background-color: #1a1a1a;
    color: white;
}

.canvas-wrapper {
    position: relative;
    width: 600px;
    height: 600px;
    max-width: 90vw;
    max-height: 90vw;
}

.canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#particleCanvas {
    z-index: 5;
    pointer-events: none;
}

#imageCanvas { z-index: 1; }
#circleCanvas { z-index: 2; }
#ballCanvas { z-index: 3; }


.info-panel {
    margin-top: 20px;
    text-align: center;
    background: #2a2a2a;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stats {
    color: #007bff;
    font-weight: 600;
}