body { margin: 0;     }
h1 {
    text-align: center;
    font-family: sans-serif;
    margin: 20px;
    color: white;
    position: absolute;
    width: 100%;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    }
#infoBox {
    position: absolute;
    top: 80px;
    left: 20px;
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-family: sans-serif;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    z-index: 2;
    width: 30%;
    height: 40%;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
    opacity: 0.8;
    }
#infoBox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    z-index: -1;
    }
#infoBox > * {
    position: relative;
    z-index: 1;
    }
#infoBox strong {
    font-size: 1.3em;
    color: #ffd700; 
    }
#instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: sans-serif;
    z-index: 2;
    text-align: center;
    }
#speedControl {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-family: sans-serif;
    z-index: 2;
    min-width: 200px;
    max-width: 15%;
    }
#speedControl h3 {
    margin: 0 0 10px 0;
    color: #ffd700;
    font-size: 1.1em;
    }
.speed-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 11%;
    margin: 5px 3px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
    font-weight: bold;
    }
.speed-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
    }
.speed-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.6);
    }
#speedSlider {
    width: 100%;
    margin: 10px 0;
    }
#speedValue {
    text-align: center;
    color: #ffd700;
    font-weight: bold;
    }
.pause-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    width: 100%;
    margin-top: 10px;
    }
.reset-btn {
    background: linear-gradient(135deg, #ffa751 0%, #ffe259 100%);
    width: 100%;
    margin-top: 10px;
    }
.realtime-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    width: 100%;
    margin-top: 10px;
    }
#displayControl {
    position: absolute;
    bottom: 80px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-family: sans-serif;
    z-index: 2;
    min-width: 200px;
    }
#displayControl h3 {
    margin: 0 0 10px 0;
    color: #ffd700;
    font-size: 1.1em;
    }
.checkbox-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s;
    }
.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.1);
    }
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    }
.checkbox-item label {
    cursor: pointer;
    user-select: none;
    }
#zoomControl {
    position: absolute;
    bottom: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-family: sans-serif;
    z-index: 2;
    min-width: 150px;
    }
#zoomControl h3 {
    margin: 0 0 10px 0;
    color: #ffd700;
    font-size: 1.1em;
    }
.zoom-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
    font-weight: bold;
    width: 100%;
    }
.zoom-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
    }