.main_container{ width: 100vw; height: 20vh; display: flex; justify-content: center; align-items: center; flex-direction: column; } .slider-container,.slider-container2 { position: relative; width: 50%; margin-top: 20px; display: flex; justify-content: center; gap: 30px; } .slider { position: relative; width: 50%; height: 15px; background-color: #ccc; border-radius: 0; transform: translateY(3px); } .slider-blue,.slider-blue2 { position: absolute; top: 0; left: 0; height: 100%; background-color: gray; border-radius: 5px; z-index: 99; } .slider-red,.slider-red2 { position: absolute; top: 0; right: 0; height: 100%; background-color: grey; border-radius: 5px; width: 100% !important; z-index: 1; } .slider-thumb,.slider-thumb2 { position: absolute; top: -7px; left: 50%; transform: translate(-50%,-2px); width: 30px; height: 30px; border-radius: 50%; background-color: white; box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); cursor: pointer; z-index: 100; display: none; } .slider-labels { display: flex; justify-content: center; width: 100%; margin-top: 10px; font-size: 10px; } .slider-label-min, .slider-label-min2, .slider-label-max ,.slider-label-max2 { display: flex; flex-direction: column; align-items: center; } .slider-label-variable,.slider-label-variable2 { margin-top: 5px; font-weight: bold; } .slider-label-value,.slider-label-value2 { width: 5rem; font-weight: bold; } .input-fields{ display: flex; flex-direction: column; gap: 2px; } .res{ margin-top: 2rem; } button{ margin-top: 1rem; }