body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    /* background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%); */
    background: black;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: scroll;
}

/* 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;
    margin-bottom: 20px;
}

/* 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;
}

/* Slider Controls */
.slider-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.slider-control label {
    font-size: 0.9em;
    font-weight: 600;
    color: #c0c0c0;
}

.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"]::-webkit-slider-thumb:hover {
    background: #0056b3;
}

.slider-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.slider-control input[type="range"]::-moz-range-thumb:hover {
    background: #0056b3;
}

/* 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 {
    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, #0056b3, #003d80);
    background-size: 20px, auto;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.5);
}

.selector option {
    background-color: #1a1a1a;
    color: white;
}

/* Canvas Wrapper - This is the key! */
.canvas-wrapper {
    position: relative;
    width: 900px;
    height: 900px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas Container */
.canvas-container {
    position: relative;
    width: 600px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    overflow: hidden;
}

/* Particle Canvas - Positioned absolutely to cover the wrapper */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

canvas:not(#particleCanvas) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Info Panel */
.info-panel {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    background: #333333;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

.info-text {
    color: #c0c0c0;
    font-size: 0.9em;
}

.stats {
    color: #007bff;
    font-weight: 600;
    margin-top: 10px;
}

/* 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);
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2em;
    }
    .page-title {
        font-size: 1.5em;
    }
    .canvas-wrapper {
        width: 90vw;
        height: 90vw;
        max-width: 800px;
        max-height: 800px;
    }
    .canvas-container {
        width: calc(85vw - 100px);
        height: calc(85vw - 100px);
        max-width: 500px;
        max-height: 500px;
    }
    .controls {
        gap: 10px;
    }
    .control-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    .selector {
        padding-right: 35px;
        background-size: 18px, auto;
    }
    .slider-control {
        font-size: 0.85em;
    }
    .slider-control input[type="range"] {
        width: 100px;
    }
}