body, html {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  transition: all 0.2s;
  background-color: #242526;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.main {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.on {
  background-color: #ffffff;
}

#switch {
  width: 3rem;
  height: 3rem;
  border: none;
  top: 3%;
  right: 3%;
  position: absolute;
  background: url("./assets/hurray.svg") center no-repeat;
  cursor: pointer;
}

#switch:focus-visible {
  outline: none;
}

#switch:hover {
  animation: firing 1s ease infinte;
  -webkit-animation: firing 1s ease infinite;
}

@keyframes firing {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  75% {
    transform: scale(1.5);
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@-webkit-keyframes firing {
  0% {
    -webkit-transform: scale(0.5);
    opacity: 1;
  }

  75% {
    -webkit-transform: scale(1.5);
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    -webkit-transform: scale(1.5);
  }
}

h1 {
  opacity: 0;
  font-size: 27vw;
  margin: 0;
  line-height: 1;
  padding: 0;
  display: inline-block;
}

.olga {
  position: relative;
  backface-visibility: hidden;
  perspective: 500px;
  /* margin: 2vw 0; */
  display: inline-block;
  margin-top: 3vw;
}

.olga-slices {
  position: absolute;
  display: flex;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.o, .l, .g, .a {
  width: 25%;
}

.slice, .color-range {
  position: absolute;
  transition: transform 0.2s ease-in-out;
  border-radius: 0.5rem;
  background-color: black;
  width: 6.3%;
  padding-top: 4.5%;
  box-shadow: 0 2px 8px 0 rgba(128, 128, 128, 1);
  cursor: pointer;
}

.slice:hover, .current-sound {
  z-index: 1;
  transform: scale(1.2);
}

.slice-1 {
  left: 7%;
  top: 17%;
}

.slice-2 {
  left: 13%;
  top: 17%;
}

.slice-3 {
  left: 3%;
  top: 30%;
}

.slice-4 {
  left: 17%;
  top: 30%;
}

.slice-5 {
  left: 1%;
  top: 43%;
}

.slice-6 {
  left: 19%;
  top: 43%;
}

.slice-7 {
  left: 3%;
  top: 56%;
}

.slice-8 {
  left: 17%;
  top: 56%;
}

.slice-9 {
  left: 7%;
  top: 69%;
}

.slice-10 {
  left: 13%;
  top: 69%;
}

.slice-11 {
  left: 29%;
  top: 17%;
}

.slice-12 {
  left: 29%;
  top: 30%;
}

.slice-13 {
  left: 29%;
  top: 43%;
}

.slice-14 {
  left: 29%;
  top: 56%;
}

.slice-15 {
  left: 29%;
  top: 69%;
}

.slice-16 {
  left: 35%;
  top: 69%;
}

.slice-17 {
  left: 41%;
  top: 69%;
}

.slice-18 {
  left: 64%;
  top: 17%;
}

.slice-19 {
  left: 58%;
  top: 17%;
}

.slice-20 {
  left: 52%;
  top: 25%;
}

.slice-21 {
  left: 51%;
  top: 38%;
}

.slice-22 {
  left: 51%;
  top: 51%;
}

.slice-23 {
  left: 53%;
  top: 63%;
}

.slice-24 {
  left: 58%;
  top: 69%;
}

.slice-25 {
  left: 64%;
  top: 69%;
}

.slice-26 {
  left: 68%;
  top: 56%;
}

.slice-27 {
  left: 68%;
  top: 43%;
}

.slice-28 {
  left: 62%;
  top: 43%;
}

.color-range {
  left: 84%;
  top: 58%;
  width: 8%;
  padding-top: 0;
}

.color-range:hover {
  transform: unset;
}

.slice-29 {
  left: 85%;
  top: 17%;
}

.slice-30 {
  left: 81%;
  top: 30%;
}

.slice-31 {
  left: 89%;
  top: 30%;
}

.slice-32 {
  left: 78%;
  top: 43%;
}

.slice-33 {
  left: 92%;
  top: 43%;
}

.slice-34 {
  left: 77%;
  top: 56%;
}

.slice-35 {
  left: 93%;
  top: 56%;
}

.slice-36 {
  left: 77%;
  top: 69%;
}

.slice-37 {
  left: 93%;
  top: 69%;
}

@media screen and (max-width: 768px) {
  /* .main {
    padding-top: 30%;
  } */

  .olga h1 {
    font-size: 33vw;
  }

  .slice {
    border-radius: 0.125rem;
  }

  .slice:hover, .current-sound {
    transform: scale(1.5);
  }

  .control-panel {
    width: 95%;
    margin-top: 12%;
  }

  .toggle-play {
    width: 13% !important;
  }

  #title {
    margin-top: 22% !important;
    font-size: medium !important;
  }

  #color-bar {
    font-size: 0.3em !important;
  }

  #volume-bar, #volume {
    display: none;
  }

  #shuffle-icon {
    width: 2rem !important;
  }
}