.mgslider-wrapper { border-spacing: 3px 10px; width: 80%; table-layout: fixed; margin: 0 auto; margin-top: 28px; } .mgslider-wrapper td { border: 0 !important; background: transparent !important; box-shadow: none !important; } .mgslider-middle { width: auto; position: relative; padding-top: 0; padding-bottom: 26px; vertical-align: middle; } .mgslider-show { text-align: center; } .mgslider-limit { width: auto !important; min-width: 0 !important; max-width: none !important; text-align: center; font-weight: 900; font-size: 1.4rem; line-height: 1; white-space: nowrap; overflow: hidden; padding: 0; box-sizing: border-box; } .mgslider-end-labels { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; pointer-events: none; } .mgslider-limit-left, .mgslider-limit-right { position: absolute; top: 0; } .mgslider-limit-left { left: 4px; transform: translateX(-50%); } .mgslider-limit-right { right: 4px; transform: translateX(50%); } .mgslider-live-value { position: absolute; top: -22px; left: 0; transform: translateX(-50%); font-size: 0.95rem; font-weight: 600; color: #1e5bff; font-variant-numeric: tabular-nums; pointer-events: none; line-height: 1; z-index: 3; background: #fff; padding: 0 2px; } .mgslider-limit, .mgslider-value { font-variant-numeric: tabular-nums; } .mgslider-before { height: 10px; width: 100%; background: #ccc; border-radius: 6px; } .mgslider-feedback { display: none !important; } .container { display: flex; flex-direction: column; gap: 20px; } .bottom-row { display: flex; justify-content: space-between; gap: 20px; } .interactive-text { flex: 1; } .static-image { flex: 1; text-align: center; } img { max-width: 100%; height: auto; } /* Base styling for the input range */ input[type=range].mgslider { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 6px; background: #ccc; /* fallback */ background-image: linear-gradient(to right, #1e5bff 0%, #ccc 0%); outline: none; transition: background 0.3s ease; } /* Track (Chrome/Safari) */ input[type=range].mgslider::-webkit-slider-runnable-track { height: 10px; border-radius: 6px; background: transparent; } /* Thumb (Chrome/Safari) */ input[type=range].mgslider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; height: 20px; width: 20px; border-radius: 50%; background: #1e5bff; margin-top: -5px; /* aligns thumb vertically */ cursor: pointer; box-shadow: none; } /* Glow only while mouse is on the dot */ input[type=range].mgslider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 0.2rem rgba(30, 91, 255, 0.28); } /* Firefox track */ input[type=range].mgslider::-moz-range-track { height: 10px; border-radius: 6px; background: transparent; } /* Firefox thumb */ input[type=range].mgslider::-moz-range-thumb { height: 20px; width: 20px; border-radius: 50%; background: #1e5bff; border: none; cursor: pointer; box-shadow: none; } input[type=range].mgslider::-moz-range-thumb:hover { box-shadow: 0 0 0 0.2rem rgba(30, 91, 255, 0.28); }