@import url(https://fonts.googleapis.com/css?family=Sintony);
@import url(https://fonts.googleapis.com/css?family=Lato:400,300);

* {
  box-sizing: border-box;
}

.orbit-control {
  font-size: clamp(0.7em, 1vw, 1em);
}

.toggler3way{
  display: block;
  margin:auto;
  height:2em;
  line-height:2em;
  border-radius:0.3em;
  background:#ccc;
  position:relative;
  float:left;
  background: rgb(43, 43, 43);
  border: 2px solid #00E676;
}

.switcher.Xaxis,
.switcher.Yaxis,
.switcher.Zaxis{
  cursor:pointer;
  position:relative;
  display:block;
  float:left;
  -webkit-transition: 300ms ease-out;
  -moz-transition: 300ms ease-out;
  transition: 300ms ease-out;
  padding: 0 1em;
  color: white;
}
.selector{
  top:-2px;
  text-align:center;
  position:absolute;
  width:0;
  box-sizing:border-box;
  -webkit-transition: 300ms ease-out;
  -moz-transition: 300ms ease-out;
  transition: 300ms ease-out;
  border-radius:0.3em;  
  color:white;
  /* 
  -moz-box-shadow: 0px 2px 7px 0px #9b9b9b;
  -webkit-box-shadow: 0px 2px 7px 0px #9b9b9b;
  -o-box-shadow: 0px 2px 7px 0px #9b9b9b;
  box-shadow: 0px 2px 7px 0px #9b9b9b;
  filter:progid:DXImageTransform.Microsoft.Shadow(color=#9b9b9b, Direction=180, Strength=13);
   */
}

/* Sliders CSS Stylesheet */

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  margin: 15px 0;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: rgba(36, 36, 36);

  border: 0.2px solid #010101;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 1px 1px 1px #00e676, 0px 0px 1px #00ff83;
  border: 1px solid rgba(0, 230, 118, 0.46);
  height: 27px;
  width: 16px;
  border-radius: 3px;
  background: rgba(0, 230, 118, 0.73);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -10.2px;
}
/*
input[type=range]:focus::-webkit-slider-runnable-track {
  background: #ffffff;
}
*/
input[type=range]::-moz-range-track {
  width: 100%;
  height: 6.6px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #020000, 0px 0px 1px #1c0000;
  background: #ffffff;
  border-radius: 25px;
  border: 0px solid #010101;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #00e676, 0px 0px 1px #00ff83;
  border: 1px solid rgba(0, 230, 118, 0.46);
  height: 27px;
  width: 16px;
  border-radius: 3px;
  background: rgba(0, 230, 118, 0.73);
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 6.6px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: #808080;
  border: 0px solid #010101;
  border-radius: 50px;
  box-shadow: 1px 1px 1px #020000, 0px 0px 1px #1c0000;
}
input[type=range]::-ms-fill-upper {
  background: #ffffff;
  border: 0px solid #010101;
  border-radius: 50px;
  box-shadow: 1px 1px 1px #020000, 0px 0px 1px #1c0000;
}
input[type=range]::-ms-thumb {
  box-shadow: 1px 1px 1px #00e676, 0px 0px 1px #00ff83;
  border: 1px solid rgba(0, 230, 118, 0.46);
  height: 27px;
  width: 16px;
  border-radius: 3px;
  background: rgba(0, 230, 118, 0.73);
  cursor: pointer;
  height: 6.6px;
}
input[type=range]:focus::-ms-fill-lower {
  background: #ffffff;
}
input[type=range]:focus::-ms-fill-upper {
  background: #ffffff;
}

/* Play/Pause Button Stylesheet */


#playbtn {
  display: flex;
  justify-content: center;
}


button {
  width: 90px;
  box-sizing: border-box;
  padding: 20px;
  margin: 0 15px;
  border: none;
  outline: none;
  
  fill: #00E676;
  background-color: rgb(43,43,43);
  
  border-radius: 50%;
  box-shadow: 0 5px 10px rgba(0,0,0,0.25);
  cursor: pointer;
}

.rotate {
  transform: rotate(90deg);
}

/* Box Stylesheet */

.boxes {
    height: 32px;
    width: 32px;
    position: relative;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    margin-top: 32px;
    -webkit-transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
    transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
}
.boxes .box {
    width: 32px;
    height: 32px;
    top: 0px;
    left: 0;
    position: absolute;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.boxes .box:nth-child(1) {
    -webkit-transform: translate(100%, 0);
    transform: translate(100%, 0);
    -webkit-animation: box1 1s linear infinite;
    animation: box1 1s linear infinite;
}
.boxes .box:nth-child(2) {
    -webkit-transform: translate(0, 100%);
    transform: translate(0, 100%);
    -webkit-animation: box2 1s linear infinite;
    animation: box2 1s linear infinite;
}
.boxes .box:nth-child(3) {
    -webkit-transform: translate(100%, 100%);
    transform: translate(100%, 100%);
    -webkit-animation: box3 1s linear infinite;
    animation: box3 1s linear infinite;
}
.boxes .box:nth-child(4) {
    -webkit-transform: translate(200%, 0);
    transform: translate(200%, 0);
    -webkit-animation: box4 1s linear infinite;
    animation: box4 1s linear infinite;
}

.boxes .box > div {
    background: #5C8DF6;
    --translateZ: 15.5px;
    --rotateY: 0deg;
    --rotateX: 0deg;
    position: absolute;
    width: 100%;
    height: 100%;
    background: #5C8DF6;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    -webkit-transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
    transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
}

.boxes .box > div:nth-child(1) {
    top: 0;
    left: 0;
    background: #5C8DF6;
}
.boxes .box > div:nth-child(2) {
    background: #145af2;
    right: 0;
    --rotateY: 90deg;
}
.boxes .box > div:nth-child(3) {
    background: #447cf5;
    --rotateX: -90deg;
}
.boxes .box > div:nth-child(4) {
    background: #DBE3F4;
    top: 0;
    left: 0;
    --translateZ: -90px;
}

@keyframes box1 {
    0%,
    50% {
        transform: translate(100%, 0);
    }
    100% {
        transform: translate(200%, 0);
    }
}

@keyframes box2 {
    0%{
        transform: translate(0, 100%);
    }
    50% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100%, 0);
    }
}

@keyframes box3 {
    0%,
    50% {
        transform: translate(100%, 100%);
    }
    100% {
        transform: translate(0, 100%);
    }
}

@keyframes box4 {
    0%{
        transform: translate(200%, 0);
    }
    50% {
        transform: translate(200%, 100%);
    }
    100% {
        transform: translate(100%, 100%);
    }
}

/* Radio Stylesheet */

input[type="radio"] {
  display: none;
}
input[type="radio"]:checked + label span {
  transform: scale(1.25);
}
input[type="radio"]:checked + label .red {
  border: 2px solid #C92B68;
}
input[type="radio"]:checked + label .orange {
  border: 2px solid #F2711C;
}
input[type="radio"]:checked + label .yellow {
  border: 2px solid #FBBD08;
}
input[type="radio"]:checked + label .green {
  border: 2px solid #5FA777;
}
input[type="radio"]:checked + label .blue {
  border: 2px solid #2185d0;
}
input[type="radio"]:checked + label .violet {
  border: 2px solid #6435C9;
}
input[type="radio"]:checked + label .pink {
  border: 2px solid #F7879A;
}

label {
  display: table-cell;
  width: 25px;
  height: 25px;
  cursor: pointer;
}
label:hover span {
  transform: scale(1.25);
}
label span {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform .2s ease-in-out;
}
label span.red {
  background: #C92B68;
}
label span.orange {
  background: #DB7146;
}
label span.yellow {
  background: #FBBD08;
}
label span.green {
  background: #5FA777;
}
label span.blue {
  background: #2185d0;
}
label span.violet {
  background: #6435C9;
}
label span.pink {
  background: #F7879A;
}

.dashboard-label {
  color: white;
}

.superscript {
  position: relative; top: -0.5em;
  font-size: 10px;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}
.tooltip:after {
  content: attr(data-tip);
  position: absolute;
  bottom: 24px;
  left: -10px;
  min-width: 100px;
  max-width: 300px;
  padding: 5px 7px 5px 10px;
  pointer-events: none;
  font-size: 0.75em;
  background-color: #001331;
  color: #FFF;
  border-radius: 2px;
}
.tooltip:before {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  left: 5px;
  bottom: 18px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #001331;
}
.tooltip:before, .tooltip:after {
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-out, margin 0.2s ease-out;
}
.tooltip:hover {
  color: #999;
}
.tooltip:hover:before, .tooltip:hover:after {
  opacity: 1;
  margin-bottom: 3px;
  visibility: visible;
}

.tooltip-bottom:after {
  top: 24px;
}
.tooltip-bottom:before {
  top: 18px;
  border-top: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #001331;
}
.tooltip-bottom:hover:before, .tooltip-bottom:hover:after {
  bottom: auto;
  margin-bottom: 0;
  margin-top: 3px;
}

html, body {
  margin:0;
  padding:0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family:sintony;
}
canvas {
    padding: 0;
    margin: auto;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.loader-text {
  position: absolute;
  bottom: 25%;
}
#p5_loading {
    background: rgba(249, 251, 255,0.6);
    color: #ADAFB6;
    padding: 1.25em;
    box-sizing: border-box;
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
    min-height: 100vh;
    font-family: Roboto, Arial;
    justify-content: center;
    align-items: center;
}
.heading-text {
  color:black;
  font-family:'Poppins',sans-serif;
  font-weight:500;
  text-align:center;
  letter-spacing:.4rem;
  margin:.5rem;
}
#playground {
  display: none;
  /* overflow: scroll; */
  width: 100%;
  height: 100%;
}
#dashboard {
  background-color: #111;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5);
  padding: 1.5rem 1rem;
  width: 20%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
#renderer {
  width: 80%;
}
.picker {
  margin:auto;
  font-size:1em;
  height:2em;
  line-height:2em;
  border-radius:0.3em;
  background:#ccc;
  position:relative;
  display:block;
  float:left;
  background: rgb(43, 43, 43);
  padding: 0.2rem 0.1rem;
}
p {
  color: white;
}
.pclose {
  margin-bottom: 0;
}
.orbit-control {
  display: flex;
}
#ret-li {
  width: clamp(100px, 15vw, 250px);
}
.cont {
  height: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.controls {
  display: flex;
  flex-direction: column;
}
.playback {
  margin-bottom: 30px;
}
.palette-picker {
  margin-bottom: 30px;
}
.rotnav {
  position: absolute;
  margin-top: 50%;
  margin-left: 1.25em;
  -webkit-transform-origin: 0 50%;
      -moz-transform-origin: 0 50%;
      -ms-transform-origin: 0 50%;
        -o-transform-origin: 0 50%;
          transform-origin: 0 50%;
  /* Safari */
  -webkit-transform: rotate(-90deg);
  /* Firefox */
  -moz-transform: rotate(-90deg);
  /* IE */
  -ms-transform: rotate(-90deg);
  /* Opera */
  -o-transform: rotate(-90deg);
  display: flex;
  padding: 0 9.375em;
}
.rotlinks {
  margin: 0 0.9375em;
  text-decoration: none;
  outline: 0;
  color: #219961;
  border-bottom: solid 1px rgb(43,43,43);
}
#s1, #s2, #s3 {
  display: flex;
  justify-content: space-between;
}

#toggle-song::file-selector-button {
  background: #49c086;
  color: white;
  border: none;
  padding: 4px 12px;
  margin-right: 10px;
  border-radius: 4px;
  cursor: pointer;
}

#toggle-song {
  color: white;
}

@media (max-width: 500px) and (orientation: landscape) {
  #heading {
    font-size: 18px;
  }

  .lgallery {
    margin: 0;
    width: 50px;
  }

  .toggle-song {
    display: block;
  }

  .toggle-song .button {
    padding: 4px 8px;
  }

  /* Hide label, rely on button only */
  .toggle-song .label {
    display: none;
  }

  #playbtn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  #toggler {
    padding: 12px 18px;
    margin: 0 0 0 20px;
  }

  #play-svg {
    width: 15px;
  }

  .slider {
    height: 0; /* or display: none */
  }

  .rotation-group {
    margin: 5px 0 0 0;
  }

  #axisBx, #axisBy, #axisBz,
  #axisAx, #axisAy, #axisAz {
    padding: 0 5px;
  }

  .dashboard-text {
    font-size: 12px;
  }

  /* Swap labels for popups */
  .dashboard-label {
    display: none;
  }

  .popup {
    display: inline-block;
  }
}

.hidden {
  display: none !important;
}

.hr-text {
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: center;
  height: 1.5em;
  opacity: 0.5;
}
.hr-text:before {
  content: "";
  background: linear-gradient(to right, transparent, #00E676, transparent);
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
}
.hr-text:after {
  content: attr(data-content);
  position: relative;
  display: inline-block;
  color: black;
  padding: 0 0.5em;
  line-height: 1.5em;
  color: #00E676;
  background-color: #111;
}

.now-playing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #00E676;
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.5rem;
  width: 100%;
}

.now-playing .label {
  flex-shrink: 0;
}

.info-container {
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
  color: #00E676;
  max-width: 70%;
  height: 1.2em;
}

.load-info {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-text 10s linear infinite;
}

@keyframes scroll-text {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.custom {
  margin-left: 10px;
}

.color-picker {
  display: inline-block;
  transition: transform .2s ease, box-shadow .3s ease;
}
.color-picker.active {
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--picker-color, #1DB8CE);
}

#toggler.playing {
  animation: pulse 1.2s infinite ease-in-out;
  --glow-color: #00E676; /* default fallback */
}

@keyframes pulse {
  0%   { box-shadow: 0 0 10px var(--glow-color); }
  50%  { box-shadow: 0 0 25px var(--glow-color); }
  100% { box-shadow: 0 0 10px var(--glow-color); }
}