/* public/torsion_sim.css */

/* 1. 텍스트 기본 스타일 */
text {
    font-family: -apple-system, BlinkMacSystemFont, "Times New Roman", serif; /* LaTeX 느낌 */
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* 2. 애니메이션 정의 (비틀림 흐름) */
@keyframes torsion-flow-cw { /* 시계 방향 (오른쪽으로 흐름) */
    0% { transform: translateX(-15px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(15px); opacity: 0; }
}

@keyframes torsion-flow-ccw { /* 반시계 방향 (왼쪽으로 흐름) */
    0% { transform: translateX(15px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(-15px); opacity: 0; }
}

/* 3. 화살표(Chevrons) 스타일 */
.torsion-flow-arrow {
    fill: none;
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.flow-cw {
    stroke: #ff3b30; /* Red (또는 오렌지) */
    animation: torsion-flow-cw 1s linear infinite;
}

.flow-ccw {
    stroke: #007aff; /* Blue */
    animation: torsion-flow-ccw 1s linear infinite;
}

/* 4. 노드 텍스트 스타일 */
.node-label-text {
    font-family: -apple-system, sans-serif;
    font-weight: 800;
    font-size: 14px;
}

/* 5. 벡터 라벨 (LaTeX 스타일) */
.vector-label {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-weight: bold;
    font-size: 16px;
}
.vector-sub {
    font-size: 12px;
    baseline-shift: sub;
}