.toggleimage {
  padding: 2% 5%;
}

.container-wrapper {
  padding: 30px;
  border-radius: 20px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 auto;
}

td {
  padding: 5px;
  text-align: center;
  vertical-align: middle;
}

/* Color classes */
.orange {
  background-color: #f5b123ff !important;
}

.green {
  background-color: #ffd47aff !important;
}

.blue {
  background-color: #073763 !important;
}

.skyblue {
  background-color: #249cf3 !important;
}

.pink {
  background-color: #fee7b6 !important;
}

/* color changes */
/* Primary colors */
.gusto-gold {
  background-color: #F5B123FF;
}

.flame {
  background-color: #DA591B;
}

.yale-blue {
  background-color: #073763;
}

/* Secondary / supporting colors */
.topaz {
  background-color: #FFD47AFF;
}
.dark-topaz{
 background-color: #F2A93bff;
}

.light-blue{
 background-color: #3c78d8ff;
}
/* .light-purple{
 background-color: #6b4effff;
} */

.light-sky {
  background-color: #a4c2f4ff;
}

.light-purple {
  background-color: #b4a7d6ff;
}


.peach {
  background-color: #FEE7B6;
}

/* Neutrals */
.seasalt {
  background-color: #F7F7F8;
}

.snow {
  background-color: #FDF8F6;
}

.isabelline {
  background-color: #F1EFED;
}

/* Circle boxes - Default for small screens */
.box {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.box:hover {
  transform: scale(1.1);
}

/* Horizontal Toggle Switch 1 */
.switch1 {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 40px;
}

.switch1 .input1 {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider1 {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #6b4effff;;
  border-radius: 40px;
  transition: background-color 0.4s ease;
}

.slider1::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  left: 0;
  top: 0;
  background-color: #249cf3;
  border-radius: 50%;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.input1:checked + .slider1 {
  background-color: #249cf3;
}

.input1:checked + .slider1::before {
  left: calc(100% - 40px);
  background-color: #0071ec;
}

/* Horizontal Toggle Switch 2 */
.switch2 {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 40px;
}

.switch2 .input2 {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider2 {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0071ec;
  border-radius: 40px;
  transition: background-color 0.4s ease;
}

.slider2::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  left: 0;
  top: 0;
  background-color: #249cf3;
  border-radius: 50%;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.input2:checked + .slider2 {
  background-color: #249cf3;
}

.input2:checked + .slider2::before {
  left: calc(100% - 40px);
  background-color: #0071ec;
}

/* Vertical Toggle Switch 3 */
.switch3 {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 100px;
}

.switch3 .input3 {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider3 {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: #FFD47AFF;
  border-radius: 40px;
  transition: background-color 0.4s ease;
}

.slider3::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  left: 0;
  top: 0;
  background-color: #0071ec;
  border-radius: 50%;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.input3:checked + .slider3 {
  background-color: #0071ec;
}

.input3:checked + .slider3::before {
  top: calc(100% - 40px);
  background-color: #FFD47AFF;
}

/* Width-based responsive breakpoints */

/* 768px width */
@media (min-width: 768px) {
  .box {
    width: 50px;
    height: 50px;
  }

  .switch1,
  .switch2 {
    height: 50px;
  }

  .slider1::before,
  .slider2::before {
    width: 50px;
    height: 50px;
  }

  .input1:checked + .slider1::before,
  .input2:checked + .slider2::before {
    left: calc(100% - 50px);
  }

  .switch3 {
    width: 50px;
    height: 125px;
  }

  .slider3::before {
    width: 50px;
    height: 50px;
  }

  .input3:checked + .slider3::before {
    top: calc(100% - 50px);
  }

  td {
    padding: 6px;
  }
}

/* 992px width */
@media (min-width: 992px) {
  .box {
    width: 58px;
    height: 58px;
  }

  .switch1,
  .switch2 {
    height: 58px;
  }

  .slider1::before,
  .slider2::before {
    width: 58px;
    height: 58px;
  }

  .input1:checked + .slider1::before,
  .input2:checked + .slider2::before {
    left: calc(100% - 58px);
  }

  .switch3 {
    width: 58px;
    height: 145px;
  }

  .slider3::before {
    width: 58px;
    height: 58px;
  }

  .input3:checked + .slider3::before {
    top: calc(100% - 58px);
  }

  td {
    padding: 8px;
  }
}

/* 1200px width */
@media (min-width: 1200px) {
  .box {
    width: 65px;
    height: 65px;
  }

  .switch1,
  .switch2 {
    height: 65px;
  }

  .slider1::before,
  .slider2::before {
    width: 65px;
    height: 65px;
  }

  .input1:checked + .slider1::before,
  .input2:checked + .slider2::before {
    left: calc(100% - 65px);
  }

  .switch3 {
    width: 65px;
    height: 162px;
  }

  .slider3::before {
    width: 65px;
    height: 65px;
  }

  .input3:checked + .slider3::before {
    top: calc(100% - 65px);
  }

  td {
    padding: 9px;
  }
}

/* 1400px width */
@media (min-width: 1400px) {
  .box {
    width: 72px;
    height: 72px;
  }

  .switch1,
  .switch2 {
    height: 72px;
  }

  .slider1::before,
  .slider2::before {
    width: 72px;
    height: 72px;
  }

  .input1:checked + .slider1::before,
  .input2:checked + .slider2::before {
    left: calc(100% - 72px);
  }

  .switch3 {
    width: 72px;
    height: 180px;
  }

  .slider3::before {
    width: 72px;
    height: 72px;
  }

  .input3:checked + .slider3::before {
    top: calc(100% - 72px);
  }

  td {
    padding: 10px;
  }
}

/* 1600px width (Apple M-series displays) */
@media (min-width: 1600px) {
  .box {
    width: 80px;
    height: 80px;
  }

  .switch1,
  .switch2 {
    height: 80px;
  }

  .slider1::before,
  .slider2::before {
    width: 80px;
    height: 80px;
  }

  .input1:checked + .slider1::before,
  .input2:checked + .slider2::before {
    left: calc(100% - 80px);
  }

  .switch3 {
    width: 80px;
    height: 200px;
  }

  .slider3::before {
    width: 80px;
    height: 80px;
  }

  .input3:checked + .slider3::before {
    top: calc(100% - 80px);
  }

  td {
    padding: 12px;
  }
}

/* 1920px width (Large desktop screens) */
@media (min-width: 1920px) {
  .box {
    width: 90px;
    height: 90px;
  }

  .switch1,
  .switch2 {
    height: 90px;
  }

  .slider1::before,
  .slider2::before {
    width: 90px;
    height: 90px;
  }

  .input1:checked + .slider1::before,
  .input2:checked + .slider2::before {
    left: calc(100% - 90px);
  }

  .switch3 {
    width: 90px;
    height: 225px;
  }

  .slider3::before {
    width: 90px;
    height: 90px;
  }

  .input3:checked + .slider3::before {
    top: calc(100% - 90px);
  }

  td {
    padding: 14px;
  }
}

/* Hover effects */
.slider1:hover,
.slider2:hover,
.slider3:hover {
  filter: brightness(1.1);
}

/* Active state */
.slider1:active::before,
.slider2:active::before,
.slider3:active::before {
  transform: scale(0.95);
}
