/*======================
  Custom Switch UI CSS 
=======================*/
.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 18px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d3455b;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #1aae9f;
}

input:focus + .slider {
  box-shadow: 0 0 1px #1aae9f;
}

input:checked + .slider:before {
  -webkit-transform: translateX(12px);
  -ms-transform: translateX(12px);
  transform: translateX(12px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*=============================
  Custom Checkbox UI CSS
==============================*/
.round-checkbox {
  position: relative;
}

.round-checkbox label {
  background-color: transparent;
  border: 1px solid #000;
  border-radius: 50%;
  cursor: pointer;
  height: 18px;
  left: 0;
  position: absolute;
  top: 0;
  width: 18px;
}

.round-checkbox label:after {
  border: 2px solid #000;
  border-top: none;
  border-right: none;
  content: "";
  height: 8px;
  left: 3px;
  opacity: 0;
  position: absolute;
  top: 0px;
  transform: rotate(-45deg);
  width: 16px;
}

.round-checkbox input[type="checkbox"] {
  visibility: hidden;
}

/* .round-checkbox input[type="checkbox"]:checked + label {
  background-color: #66bb6a;
  border-color: #66bb6a;
} */

.round-checkbox input[type="checkbox"]:checked + label:after {
  opacity: 1;
}

/*======================
  Custom Modal UI CSS 
=======================*/
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  padding: 0px !important;
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-container {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
}

.modal-dialog {
  width: 80%;
}
@media (max-width: 768px) {
  .modal-dialog {
    width: 90%;
  }
}
@media (max-width: 576px) {
  .modal-dialog {
    width: 95%;
  }
}
/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
}
@media (max-width: 768px) {
  .modal-content {
    padding: 10px;
  }
}
@media (max-width: 576px) {
  .modal-content {
    padding: 5px;
  }
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 36px;
  font-weight: bold;
  position: relative;
  top: -5px;
  opacity: 1;
  margin-left: auto;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* input[range] */
/*Chrome*/
@media screen and (-webkit-min-device-pixel-ratio:0) {
  input[type='range'] {
    -webkit-appearance: none;
    background-color: #e5e5e5;
    border-radius: 4px;
  }
  
  input[type='range']::-webkit-slider-runnable-track {
    height: 8px;
    /* -webkit-appearance: none; */
  }
  
  input[type='range']::-webkit-slider-thumb {
    position: relative;
    width: 20px;
    -webkit-appearance: none;
    height: 20px;
    background: #5757ff;
    border: solid 2px #e5e5e5;
    border-radius: 50%;
    top: -6px;
  }

}

input[type="range"] {
  height: 8px;
}
input[type="range"]::-moz-range-progress {
  height: 8px;
  background-color: #e5e5e5; 
}
input[type="range"]::-moz-range-track {
  height: 8px;
  background-color: #e5e5e5;
}
input[type='range']::-moz-range-thumb {
  position: relative;
  width: 20px;
  -webkit-appearance: none;
  height: 20px;
  background: #5757ff;
  border: solid 2px #e5e5e5;
  border-radius: 50%;
  top: -6px;
}