/* SIR Model (Epidemic Spread) Simulation - CSS */

.epidemics-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Courier New', monospace;
}

.epidemics-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 800px;
    margin: 0 auto;
}

#epidemicsCanvas {
    border: 1px solid #444;
    border-radius: 4px;
    display: block;
    cursor: pointer; /* Indicate that individuals can be clicked */
}

.epidemics-graph-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 800px;
    margin: 0 auto;
}

#epidemicsGraph {
    border: 1px solid #444;
    border-radius: 4px;
    display: block;
    background: #1a1a1a;
}

.epidemics-controls {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    width: 800px;
    margin: 0 auto;
    color: #fff;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: background 0.2s, opacity 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.control-row label {
    min-width: 150px;
    color: #ccc;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    margin: 0;
}

.control-row input[type="range"] {
    flex: 1;
    cursor: pointer;
    min-width: 100px;
    -webkit-appearance: none;
    height: 8px;
    background: #555;
    outline: none;
    border-radius: 4px;
}

.control-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ffff;
    cursor: pointer;
    border: 2px solid #fff;
}

.control-row input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ffff;
    cursor: pointer;
    border: 2px solid #fff;
}

.control-row span {
    min-width: 60px;
    text-align: right;
    color: #00ffff;
    font-weight: bold;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.info-display {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.info-display div {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.info-display span {
    color: #00ffff;
    font-weight: bold;
}


