input[type=range] {
  -webkit-appearance: none; 
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
}


input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #4E2E80;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  margin-top: -7px; 
}


input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #4E2E80;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}


input[type=range]::-ms-thumb {
  width: 20px;
  height: 20px;
  background: #4E2E80;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}


.demo-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: default;
}

.demo-card:hover {
    transform: translateY(-5px);
}

.size-demo-card-body {
    min-width: 98%;
}


.btn-modch {
    min-width: 100px;
    min-height: 50px;
    border: 2px solid #4E2E80;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    padding: 10px;
    user-select: none;
    background-color: white;
    color: #4E2E80;
}

.btn-modch.active {
    background: linear-gradient(-45deg, rgba(78, 46, 128, 1) 27%, rgba(55, 63, 152, 1) 90%, rgba(235, 34, 39, 1) 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(78, 46, 128, 0.6);
}


.stream-container {
  min-height: 200px; 
}

@media (max-width: 767.98px) {
  .row {
    flex-direction: column;
  }
}

.ratio canvas {
  width: 100%;
  height: 100%;
  display: block;
}
