/* ===== RESET AND GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  cursor: inherit;
  -webkit-user-select: inherit;
  -moz-user-select: inherit;
  -ms-user-select: inherit;
  user-select: inherit;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  touch-action: manipulation;
  text-rendering: optimizeLegibility;
  -ms-touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
  height: 100%;
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  overflow: hidden;
}

input {
  cursor: text;
  -webkit-user-select: default;
  -moz-user-select: default;
  -ms-user-select: default;
  user-select: default;
}

/* ===== NAVIGATION ===== */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: white;
  box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 1px 1px;
  font-family: sans-serif;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 5rem;
}

.nav-title {
  color: black;
  font-weight: bold;
  font-size: 24px;
}

.nav-btn.back {
  background-image: url(../../image/back-arrow.png);
  display: block;
  background-repeat: no-repeat;
  background-size: 100%;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
  z-index: 100;
  background-color: transparent;
  background-position: left center;
}

.nav-btn.help {
  background-color: rgb(255, 194, 52);
  color: rgb(255, 255, 255);
  cursor: pointer;
  text-align: center;
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 30rem;
  padding: 0.4rem;
}

/* ===== LAYOUT CONTAINERS ===== */
.main-container {
  display: flex;
  width: 100%;
  height: calc(100vh - 80px);
  position: relative;
  background: white;
  flex-direction: row;
  align-items: center;
  overflow-x: hidden !important;
  overflow: auto;
}

#container {
  position: relative;
  height: 100%;
  flex: 1;
  /* padding-top: 50px; */
  display: flex;
  align-items: center;
}

#multi_sequencer {
  width: 40%;
  height: 100%;
}

.metronome-vast {
  width: 100%;
  display: flex;
  justify-content: center;
}

.metronome-area {
  width: 100%;
}

/* ===== METRONOME MAIN CONTROLS ===== */
#main {
  position: relative;
  /* width: 700px;
  height: 700px; */
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin: auto;
}

.row {
  /* position: absolute;
  width: 300px; */
  display: flex;
  justify-content: center;
}

.tempo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* margin-bottom: 20px; */
  flex-direction: column;
}

.multi-sequencer {
  display: none;
}

.canvas-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.puck-button.prev {
  left: 40px;
  -webkit-transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
  transform: scaleX(-1);
}

.puck-button.next {
  right: 40px;
}

.puck-button.next, .puck-button.prev {
  -webkit-background-size: 120%;
  -moz-background-size: 120%;
  background-size: 120%;
  background-image: url(../../image/ui_arrow.svg);
  background-position: center 45%;
  position: absolute;
  width: 80px;
  height: 80px;
  z-index: 10;
  -webkit-box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.075);
  box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.075);
  border-radius: 100%;
}

.slider-controls {
  display: flex;
  justify-content: center;
  /* margin-bottom: 20px; */
}

.play-controls {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== BUTTONS ===== */
#init {
  margin: auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* padding-left: 3px; */
  border: none;
  font-size: 25px;
  background-color: #ffffff;
  color: #000000;
  -webkit-box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.075);
  box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.075);
  border: 2px solid #222;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

#init:hover {
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.fa-play {
  padding-left: 3px;
}

.button-group {
  position: relative;
  margin: auto;
  display: flex;
  gap: 10px;
}

.mute-btn {
  width: 150px;
  height: 50px;
  border-radius: 10px;
  border: 2px solid #222;
  font-size: 20px;
  background-color: #fff;
  cursor: pointer;
  color: #000000;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

#animMute {
  width: 140px;
  height: 50px;
  border-radius: 10px;
  border: 2px solid #222;
  font-size: 20px;
  background-color: #fff;
  cursor: pointer;
  color: #000000;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.mute-btn:hover,
#animMute:hover {
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* ===== TEMPO CONTROLS ===== */
#tempoSelect {
  align-items: center;
  width: 160px;
  height: 40px;
  padding-left: 10px;
  padding-right: 24px;
  font-size: 1.6rem;
  font-weight: 900;
  background-color: #ffffff;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  border: 2px solid #222;
  border-radius: 5px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="10" viewBox="0 0 24 24" width="10" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 30px;
}

#tempoDivider {
  position: absolute;
  top: 547px;
  left: 190px;
  width: 2px;
  height: 35px;
  background-color: rgba(128, 128, 128, 0.4);
}

#BPMnumber-show {
  margin: auto;
  height: 35px;
  width: 100px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 5px;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

h5 {
  font-family: "sans-serif", Arial, Helvetica;
  color: #000000;
  font-size: 20px;
  font-weight: 500;
}

/* ===== RANGE SLIDER ===== */
#range {
  position: absolute;
  top: 100px;
  width: 100px;
  height: 195px;
}

#BPMslider {
  position: relative;
  top: 30px;
  left: 20px;
  width: 10px;
  height: 10px;
}

#BPMIcon {
  width: 20px;
  height: 20px;
  background-color: #44c553;
  display: none;
}

/* ===== ANIMATIONS ===== */
.blinking {
  animation: blink 0.5s alternate infinite;
}

@keyframes blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.3;
  }
}

.display-animation {
  animation: slideInFromLeft 0.11s ease-out forwards;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-10%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== WAVE BACKGROUND ===== */
.wave-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.wave-anim {
  position: relative;
  text-align: center;
  background: linear-gradient(
    60deg,
    rgba(84, 58, 183, 1) 0%,
    rgba(0, 172, 193, 1) 100%
  );
  color: white;
}

.inner-wave-anim {
  display: flex;
  padding-top: 0vh;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
}

.waves {
  position: relative;
  width: 100%;
  height: 15vh;
  min-height: 100px;
  max-height: 150px;
  margin-bottom: -7px;
}

.content_blank {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20vh;
  background: #fff;
  text-align: center;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
  }
  .main-container {
    flex-direction: column;
    flex: 1;
  }
  #container {
    width: 100%;
    height: 50%;
    padding-top: 0px !important;
  }
  #multi_sequencer {
    width: 100%;
    flex: 1;
    /* margin-top: -100px; */
    margin-bottom: 50px;
  }
}

