Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | /**
* Training component styles
* CSS classes for Html overlay components to avoid inline style manipulation
*/
/* Training Controls Button */
.training-button {
width: 100%;
height: 40px;
border: 2px solid rgba(255, 255, 255, 0.8);
border-radius: 8px;
color: #ffffff;
font-weight: bold;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.2s ease;
}
.training-button-start {
background: #00ff88;
}
.training-button-stop {
background: #ff4444;
}
.training-button:hover {
transform: scale(1.05);
box-shadow: 0 0 15px currentColor;
}
/* Training Mode Selector */
.mode-button {
background: rgba(45, 45, 45, 0.5);
border: 2px solid rgba(0, 255, 255, 0.4);
border-radius: 8px;
padding: 10px;
cursor: pointer;
text-align: left;
color: #ffffff;
transition: all 0.2s ease;
}
.mode-button.selected {
background: rgba(0, 255, 255, 0.25);
border-color: #00ffff;
box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}
.mode-button:not(.selected):hover {
background: rgba(64, 64, 64, 0.7);
border-color: #00ffff;
transform: scale(1.02);
}
.mode-button:focus-visible {
outline: 2px solid #00ffff;
outline-offset: 2px;
box-shadow: 0 0 12px rgba(0, 255, 255, 0.8);
}
/* Vital Point Button */
.vital-point-button {
background: rgba(45, 45, 45, 0.5);
border: 2px solid rgba(255, 170, 0, 0.5);
border-radius: 8px;
padding: 8px;
cursor: pointer;
text-align: left;
color: #ffffff;
transition: all 0.2s ease;
}
.vital-point-button.selected {
background: rgba(255, 170, 0, 0.3);
}
.vital-point-button:not(.selected):hover {
background: rgba(64, 64, 64, 0.7);
}
/* Training Feedback Animation - Fast and snappy */
@keyframes feedbackPulse {
0% {
transform: scale(0.9);
opacity: 0;
}
40% {
transform: scale(1.05);
}
100% {
transform: scale(1);
opacity: 1;
}
}
.training-feedback {
background: rgba(0, 0, 0, 0.9);
border: 3px solid #ffd700;
border-radius: 16px;
color: #ffd700;
text-align: center;
box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
animation: feedbackPulse 0.4s ease-out;
min-width: 200px;
}
.training-feedback.mobile {
padding: 15px 25px;
font-size: 18px;
}
.training-feedback.desktop {
padding: 20px 40px;
font-size: 24px;
}
/* Pulsing Status Indicator (replaces requestAnimationFrame) */
@keyframes statusPulse {
0%, 100% {
opacity: 0.6;
box-shadow: 0 0 8px currentColor;
}
50% {
opacity: 1;
box-shadow: 0 0 16px currentColor;
}
}
.status-indicator {
width: 12px;
height: 12px;
border-radius: 50%;
background: #00ff88;
}
.status-indicator.active {
animation: statusPulse 1s ease-in-out infinite;
}
.status-indicator.inactive {
background: #888888;
}
|