/* global styles */
:root {
  --button-diameter: 200px;

  --trigger-1-color: red;
  --trigger-2-color: blue;
  --trigger-3-color: green;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgb(42, 14, 68) 10%, #0c192c 90%);
  overflow: hidden;
  z-index: -998;
}

.top-display {
  display: flex;
}

#passcode-sequence-display {
  margin: 2rem 3rem 0 auto;
  display: none;
  flex-direction: column;
  row-gap: 1rem;
  padding: 1rem;
  border: 3px solid white;
  border-radius: 2px;
}

.passcode-sequence-row {
  display: flex;
  flex-direction: row;
  column-gap: 1rem;
}

.passcode-circle-default {
  width: 30px;
  height: 30px;
  border: 3px solid white;
  border-radius: 50%;
}

#guitar-background {
  width: 100%;
  max-width: 1000px;
  height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
}

#start-button {
  height: 50px;
  width: 5rem;
  align-self: center;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

#incorrect-passcode-notifier {
  height: 50px;
  width: 50rem;
  text-align: center;
  align-self: center;
  font-size: 50px;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  color: white;
  display: none;
}

#execution-count {
  margin: 3rem 0 0 3rem;
  color: white;
  font-size: 60px;
}

.falling-button {
  width: var(--button-diameter);
  height: var(--button-diameter);
  border-radius: 50%;
  border: 5px solid white;
  position: absolute;
  top: calc(var(--button-diameter) * -1);
  animation: fall 3s linear 1;
  z-index: -1;
}

#fall-area-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
}

#fixed-buttons-container {
  width: 100%;
  display: flex;
  justify-content: space-around;
  margin-bottom: 15vh;
}

.fall-lane {
  width: var(--button-diameter);
  height: 100%;
  /* border: 1px solid white; */
}

@keyframes fall {
  0% {
    top: calc(var(--button-diameter) * -1);
    opacity: 0.1;
  }
  100% {
    top: calc(100%);
    opacity: 1;
  }
}

/* ************************************************************************************** */

.guitar-button {
  width: var(--button-diameter);
  height: var(--button-diameter);
  display: flex;
  align-items: center;
  font-size: 30px;
  justify-content: center;
  border-radius: 50%;
  color: #f9f9f9;
  cursor: pointer;
  transition: transform 0.1s, background-color 0.1s;
}


.ring {
  box-shadow: 0px 0px 10px white,
  0px 0px 12px white,
  0px 0px 14px white,
  0px 0px 16px white,
  0px 0px 18px white,
  0px 0px 20px white;
}

.guitar-button:active {
  transform: scale(0.95);
}

.flash-animation {
  animation: flash 0.3s forwards;
}


.flash-animation {
  animation: flash 0.5s;
}

.flash-red {
  animation: flashRed 0.5s;
}

.flash-blue {
  animation: flashBlue 0.5s;
}

.flash-green {
  animation: flashGreen 0.5s;
}

.game-mode-1 {
  background-color: inherit;
  border: 5px solid var(--trigger-1-color);
  transition: box-shadow 0.2s linear;
}

.game-mode-2 {
  background-color: inherit;
  border: 5px solid var(--trigger-2-color);
  transition: box-shadow 0.2s linear;
}

.game-mode-3 {
  background-color: inherit;
  border: 5px solid var(--trigger-3-color);
  transition: box-shadow 0.2s linear;
}

.ready-1 {
  background-color: var(--trigger-1-color) !important;
}
.ready-2 {
  background-color: var(--trigger-2-color) !important;
}
.ready-3 {
  background-color: var(--trigger-3-color) !important;
}

.wait-mode {
  background-color: gray;
}

@keyframes ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes flashRed {
  0%  {
      background-color: red;
  }
  25%  {
      background-color: rgb(184, 0, 0);
  }
  50% {
      background-color: rgb(184, 32, 32);
  }
  75%  {
      background-color: rgb(184, 64, 64);
  }
  100% {
      background-color: rgb(184, 96, 96);
  }
}

@keyframes flashBlue {
  0%  {
      background-color: rgb(128, 128, 128);
  }
  25% {
      background-color: rgb(0, 0, 184);
  }
  50% {
      background-color: rgb(32, 32, 184);
  }
  75% {
      background-color: rgb(64, 64, 184);
  }
  100% {
      background-color: rgb(96, 96, 184);
  }
}

@keyframes flashGreen {
  0%  {
      background-color: grey;
  }
  25% {
      background-color: rgb(0, 184, 0);
  }
  50% {
      background-color: rgb(32, 184, 32);
  }
  75% {
      background-color: rgb(64, 184, 64);
  }
  100% {
      background-color: rgb(96, 184, 96);
  }
}


.celebration {
  font-size: 70px;
  font-weight: bold;
  color: white;
  opacity: 0;
  transition: opacity 1s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hidden {
  display: none;
}

.confetti {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #FFC107;
  border-radius: 50%;
  animation: confettiAnimation 2s ease-in-out infinite;
}

.c1 { background-color: #FFC107; top: 10%; left: 10%; animation-delay: 0.1s; }
.c2 { background-color: #FF3D00; top: 10%; right: 10%; animation-delay: 0.3s; }
.c3 { background-color: #4CAF50; bottom: 10%; left: 10%; animation-delay: 0.5s; }
.c4 { background-color: #1976D2; bottom: 10%; right: 10%; animation-delay: 0.7s; }

@keyframes confettiAnimation {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  50% { transform: translateY(-300px) rotate(360deg); opacity: 0.5; }
  100% { transform: translateY(0) rotate(0); opacity: 0; }
}


.home-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #f5f5f5;
  color: #333;
  font-family: Arial, sans-serif;
  position: relative;
  opacity: 0;
  transition: opacity 1s;
  font-size: 50px;
}

.home-screen h1 {
  font-size: 60px;
}

.hidden {
  display: none !important;
}
