body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    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;
}

.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;
}

/* Song Selector Dropdown */
.song-selector {
    /* Apply base button styles */
    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;

    /* COMBINE background-image and background-gradient in one shorthand */
    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, /* Caret image */
        linear-gradient(45deg, #007bff, #0056b3); /* Blue gradient */
    background-size: 20px, auto; /* Size for caret, auto for gradient */
    
    color: white; /* Text color for the selected option in the button */
    
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    padding-right: 40px; /* Crucial space for the caret */
}

/* Add hover effect for the song selector to match other buttons */
.song-selector:hover {
    /* COMBINE background-image and background-gradient for hover state */
    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, /* Caret image */
        linear-gradient(45deg, #0056b3, #003d80); /* Darker blue on hover */
    background-size: 20px, auto; /* Size for caret, auto for gradient */

    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.5);
}

/* Style for the options within the dropdown when it's open */
.song-selector option {
    background-color: #1a1a1a; /* Black background for the dropdown options list */
    color: white; /* White text color for the options in the list */
}

/* Style for the hovered/selected option in the dropdown list */
.song-selector option:checked,
.song-selector option:hover {
    background-color: #0056b3; /* A slightly darker blue for hover/selection within the dropdown */
    color: white; /* Keep text white on hover/selection */
}


.song-selector:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Simulation Container */
.simulation-container {
    position: relative;
    width: 800px;
    height: 600px;
    max-width: 95vw;
    max-height: 70vh;
    border: 3px solid #007bff;
    border-radius: 12px;
    background: #1a1a1a;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    overflow: hidden;
}

/* Bouncing Box */
.bouncing-box {
    position: absolute;
    background: #ff007b;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 0, 123, 0.6);
    transition: box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

/* 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);
}

        
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 6px currentColor;
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2em;
    }
    .page-title {
        font-size: 1.5em;
    }
    .simulation-container {
        width: 90vw;
        height: 60vh;
    }
    .controls {
        gap: 10px;
    }
    .control-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    .song-selector {
        padding-right: 35px;
        background-size: 18px;
    }
}