@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
}

/* Bacteria Animation */
.bacteria-container {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bacterium {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4ade80;
    box-shadow: 0 0 5px #4ade80;
    animation: pulse 2s infinite;
}

.bacterium.space {
    background-color: #60a5fa;
    box-shadow: 0 0 5px #60a5fa;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* Improved Clock Styles - FIXED HANDS */
.clock-svg-hand {
    /* Critical Fix: Ensure origin uses SVG coordinates */
    transform-box: view-box;
    transform-origin: 50px 50px;
    /* REMOVED transition to prevent conflict with JS animation frame */
}

/* Range Slider Styles */
input[type=range] {
    appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #334155;
    border-radius: 2px;
}
