:root {
  --top-list-changed: 124px;
}
#icon-bulb .li-line,
#icon-bulb .li-state-line {
  stroke: var(--ic-fill);
}
#icon-bulb .li-state {
  fill: none;
}
#add-icon {
  --ic-fill: transparent;
}
#add-icon circle {
  display: none;
}
#add-icon path {
  --ic-fill: #8abd8a33;
}
#remove-icon {
  --ic-fill: transparent;
}
#remove-icon circle {
  display: none;
}
#remove-icon path {
  --ic-fill: #f7696982;
}
.main-head h1 + span {
  padding-left: 120px;
  margin-top: -28px;
}
@media (min-width: 600px) {
  .main-head h1 {
    padding-left: 54px;
  }
  .main-head h1 + span {
    padding-left: 54px;
    margin-top: 0px;
  }
}
@media (min-width: 900px) {
  .main-head h1 + span {
    padding-left: 120px;
    margin-top: -32px;
  }
}
h1 {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
}
.left-content {
  position: relative;
  -ms-flex: 1;
      flex: 1;
  overflow-y: auto;
}
.left-content ul#lightsLeft {
  transition: top 60ms ease-out;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
.left-content ul#lightsLeft li.light {
  margin: 8px 4px;
}
/* change box to save or dismiss changed scene settings */
#changedBox {
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: min-content min-content;
      grid-template-rows: min-content min-content;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  opacity: 0;
  color: white;
  background-color: hsl(15, 2%, 51%);
  margin: 8px 0;
  padding: 16px 8px;
  transition: opacity 0.4s ease-out 100ms;
}
#changedBox .btn {
  background-color: #706c6a;
  margin: 4px 8px;
}
#changedBox .btn:hover {
  color: white;
  background-color: #b9b6b5;
}
#changedBox p {
  text-align: center;
  -ms-grid-column-span: 2;
  -ms-grid-column: 1;
      grid-column: 1 / span 2;
}
body.changed #changedBox {
  opacity: 1;
}
body.changed #lightsLeft {
  top: var(--top-list-changed);
}
.dropzone {
  -ms-touch-action: pan-y;
      touch-action: pan-y;
}
.lights-orphan {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  overflow-y: auto;
}
#outer-dropzone {
  height: 140px;
}
#inner-dropzone {
  height: 80px;
}
.dropzone {
  transition: background-color 0.3s;
}
.drag-orig {
  z-index: -2;
  position: relative;
  opacity: 0.5;
}
.dropzone .light {
  padding: 0;
}
@keyframes add-group-animation {
  0% {
    height: 0px;
    min-height: 0;
  }
  100% {
    height: 64px;
    min-height: 64px;
  }
}
@keyframes remove-group-animation {
  0% {
    height: 64px;
    min-height: 64px;
  }
  100% {
    height: 0px;
    min-height: 0px;
  }
}
#lightsLeft .light {
  transition: opacity 200ms ease-out;
}
.lights-orphan .light {
  transition: opacity 200ms ease-out;
}
@media (max-width: 416px) {
  .lights-orphan .light {
    width: 100%;
  }
}
.light {
  /*touch-action: none;*/
  /*touch-action: pan-y;*/
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  border: 2px solid transparent;
}
.light.dying {
  opacity: 0.5;
}
.light.add-group {
  animation: add-group-animation 120ms ease-in forwards;
}
.light.remove-group {
  animation: remove-group-animation 120ms ease-in forwards;
}
.light .item-icon {
  max-width: 32px;
}
.light .item-icon svg {
  -ms-transform: scale(0.8);
      transform: scale(0.8);
}
.light .li-name,
.light .item-icon {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.light .li-name {
  -ms-flex: 1;
      flex: 1;
  display: unset;
  margin: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.light .item-push {
  min-width: 48px;
  max-width: 48px;
  width: 48px;
  height: 48px;
  -ms-flex: 1;
      flex: 1;
  margin: 4px 0px;
  border-radius: 2px;
}
.light .item-push:hover {
  background-color: #e0e0e0;
}
.light .item-push svg {
  -ms-transform: scale(0.7);
      transform: scale(0.7);
}
@media (min-width: 1200px) {
  .light .item-push {
    width: 24px;
  }
}
.light.drag-active {
  z-index: 4;
  position: relative;
  /*background-color: #fffde7;*/
  border: 2px solid #3e4e52;
}
body.include .item-nav {
  background-color: #73675f;
}
body.exclude .main {
  background-color: rgba(169, 169, 169, 0.5);
}
.drop-active {
  border-color: #aaa;
}
.drop-target {
  background-color: #29e;
}
.drag-drop {
  display: inline-block;
  min-width: 40px;
  padding: 2em 0.5em;
  color: #fff;
  background-color: #29e;
  border: solid 2px #fff;
  -ms-transform: translate(0px, 0px);
      transform: translate(0px, 0px);
  transition: background-color 0.3s;
}
.drag-drop.can-drop {
  color: #000;
  background-color: #4e4;
}
#progress {
  position: relative;
  -ms-flex: 1;
      flex: 1;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  height: 16px;
  overflow: hidden;
}
#progressBar {
  position: absolute;
  top: 0px;
  bottom: 0px;
  width: 0%;
  background-color: #55626b;
  box-sizing: border-box;
}
#time {
  margin-left: auto;
  padding-right: 41px;
  transition: opacity 500ms ease-out;
}
@media (max-width: 416px) {
  #time {
    padding-right: 0px;
  }
}
#lights-cont {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  -ms-flex-pack: justify;
      justify-content: space-between;
  -ms-flex: 1;
      flex: 1;
  padding-top: 34px;
  position: relative;
  transition: transform 100ms ease-out 300ms;
  z-index: 1;
  height: 1vh;
}
#lights-cont ul {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 0 40px;
  display: block;
}
@media (max-width: 416px) {
  #lights-cont ul {
    padding: 0 10px;
  }
}
.main {
  position: relative;
}
#lights-cont ul {
  transition: transform 150ms ease-out;
}
#lights-cont.search-active ul {
  -ms-transform: translateY(120px);
      transform: translateY(120px);
  transition: transform 240ms cubic-bezier(0, 0, 0, 1.63) 0ms;
  margin-bottom: 30vh;
}
#searchDiv {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 56px;
  right: 40px;
  height: 74px;
  opacity: 0;
  transition: opacity 100ms ease-out, transform 400ms ease-out;
  -ms-transform: translateY(120px);
      transform: translateY(120px);
}
@media (max-width: 416px) {
  #searchDiv {
    left: 16px;
    right: 16px;
  }
  #searchDiv p {
    font-size: 13px;
  }
}
.search-active + #searchDiv {
  z-index: 2;
  opacity: 1;
  transition: opacity 300ms ease-out 150ms;
  -ms-transform: translateY(150px);
      transform: translateY(150px);
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.new-light {
  animation: fadein 2s;
}
#lightsLeft {
  -ms-flex: 1;
      flex: 1;
  z-index: 1;
}
/* empty info on the left */
#leftEmptyInfo {
  z-index: -2;
  opacity: 0;
  position: absolute;
  top: 32%;
  left: 48px;
  max-width: 200px;
  transition: opacity 600ms ease-out;
}
#lightsLeft:empty + #leftEmptyInfo.init {
  opacity: 1;
  /*display: flex;
	flex-direction: column;*/
}
body.include #lightsLeft:empty + #leftEmptyInfo,
body.exclude #lightsLeft:empty + #leftEmptyInfo {
  opacity: 0;
}
#lightsLeft:empty + #leftEmptyInfo > svg {
  margin-top: 16px;
  max-width: 215px;
}
#lightsLeft.drop-active + div {
  opacity: 0;
}
#dragcage {
  position: fixed;
  width: 100%;
  z-index: 3;
}
