body {
    font-family: sans-serif;
    text-align: center;
    background-color: #f8f8f8;
    user-select: none;
}

#simulationArea {
    position: relative;
    width: 950px; /* Šířka pro 3 objekty a nádoby */
    height: 600px; /* Výška */
    border: 1px solid #ccc;
    margin: 20px auto;
    background-color: #e9e9e9;
    overflow: hidden;
}

/* --- Přetahovatelné objekty --- */
.dynamometerObject {
    position: absolute;
    cursor: grab;
    z-index: 10;
    user-select: none;
    -webkit-user-drag: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dynamometerObject.dragging {
    cursor: grabbing;
    z-index: 20;
}

/* Pozice jednotlivých objektů */
#dynamometerObject1 { width: 60px; top: 30px; left: 50px; }
#dynamometerObjectL { width: 90px; top: 30px; left: 160px; }
#dynamometerObject2 { width: 50px; top: 30px; left: 300px; }

/* --- Popisek nad siloměrem --- */
.dynamometerLabel {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 3px;
    color: #333;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1px 4px;
    border-radius: 3px;
}

/* --- Siloměr --- */
.dynamometer {
    position: relative;
    width: 80%;
    max-width: 45px;
    height: 70px;
    background-color: #silver;
    border: 1px solid #555;
    border-radius: 3px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.dynamometer-body { height: 50px; }
.dynamometer-hook { width: 4px; height: 20px; background-color: #555; margin: 0 auto; position: absolute; bottom: -10px; left: 0; right: 0; }
.dynamometerReading {
    position: absolute;
    top: 5px; left: 0; width: 100%;
    text-align: center; font-size: 16px; font-weight: bold;
    color: black; background-color: white;
    padding: 2px 0; border-bottom: 1px solid #ccc;
}

/* --- Pomeranče --- */
.orange {
    position: relative;
    margin-top: 10px;
    border-radius: 50%;
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.2);
    z-index: 0;
    flex-shrink: 0;
}
#orange1 { /* Běžný */
    width: 60px; height: 60px;
    background-color: orange; border: 1px solid darkorange;
}
#orangeL.large { /* Velký */
    width: 90px; height: 90px;
    background-color: #ff8c00; border: 1px solid #cc7000;
}
#orange2.peeled { /* Oloupaný */
    width: 50px; height: 50px;
    background-color: #ffcc80; border: 1px solid #ffa726;
}

/* --- Šipky --- */
.forceArrows {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    transform: translate(-50%, -50%);
    overflow: visible;
    z-index: 1;
    pointer-events: none;
}
.arrow {
    position: absolute; left: 0; width: 10px;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    pointer-events: none;
}
.arrowLine { width: 3px; position: relative; }
.arrowHead {
    width: 0; height: 0;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    position: absolute;
    /* Hrot je již pozicován relativně k čáře, bude se posouvat s ní */
    left: 50%;
    transform: translateX(-50%);
}
.arrowLabel { font-size: 11px; font-weight: bold; position: absolute; white-space: nowrap; }

/* Šipka Fg (dolů) - Hnědá */
.fgArrow { top: 0; color: #8B4513; }
.fgArrow .arrowLine { background-color: #8B4513; }
.fgArrow .arrowHead {
    border-top: 8px solid #8B4513;
    bottom: -2px; /* Posun hrotu mírně pod konec čáry */
}
.fgArrow .arrowLabel { bottom: -15px; color: #8B4513; } /* Posun popisku */

/* Šipka Fvz (nahoru) - Červená */
.fvzArrow {
    bottom: 0; /* Začíná v centru a míří nahoru */
    /* ===== ZMĚNA ZDE ===== */
    color: red; /* Barva popisku */
    /* ===== KONEC ZMĚNY ===== */
}
.fvzArrow .arrowLine {
    /* ===== ZMĚNA ZDE ===== */
    background-color: red; /* Barva čáry */
    /* ===== KONEC ZMĚNY ===== */
    position: absolute;
    bottom: 0; /* Čára roste odspodu */
    left: 50%;
    transform: translateX(-50%);
    transition: height 0.1s linear;
}
.fvzArrow .arrowHead {
    /* ===== ZMĚNA ZDE ===== */
    border-bottom: 8px solid red; /* Barva hrotu, míří nahoru */
    /* ===== KONEC ZMĚNY ===== */
    top: -2px; /* Posun hrotu mírně nad (za) konec čáry */
    /* Poznámka: Pozice 'top: -2px' již zajišťuje, že hrot je na horním okraji čáry a posouvá se s ním */
}
.fvzArrow .arrowLabel {
    top: -15px; /* Posun popisku */
    /* ===== ZMĚNA ZDE ===== */
    color: red; /* Barva popisku */
    /* ===== KONEC ZMĚNY ===== */
}


/* --- Nádoby a kapaliny --- */
.container { position: absolute; width: 180px; height: 450px; border: 2px solid black; bottom: 20px; background-color: #f0f0f0; overflow: hidden; }
#waterContainer { left: 450px; }
#alcoholContainer { left: 700px; }
.liquid { position: absolute; bottom: 0; left: 0; width: 100%; border-top: 1px solid rgba(0,0,0,0.3); transition: height 0.1s linear; }
#waterLiquid { background-color: lightblue; border-top-color: blue; }
#alcoholLiquid { background-color: #c8e6c9; border-top-color: #388e3c; }
.label { position: absolute; top: 5px; left: 0; width: 100%; text-align: center; font-size: 14px; color: #333; font-weight: bold; }