
#game-canvas {
  display: none;
  cursor: grab;
}

.game-background {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient( rgba(255, 255, 255, 0), rgba(255, 255, 255, 0), rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.546)), url("./images/Background-hallway.png");
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 2;
}

.background-blur {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 3;
  backdrop-filter: blur(3px);
}

.bins-div {
  margin: 0 5vw;
}

.bins {
  width: 100vw;
  position: absolute;
  align-items: center;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.draggable-elements {
  display: flex;
  justify-content: center;
  z-index: 100000000;
}

.droppable-elements {
  display: flex;
}

.draggable {
  width: 10rem;
  height: 10rem;
  align-items: center;
  justify-content: center;
  margin: 0rem 0.5rem;
  transition: opacity 0.2s;
  z-index: 100;
  animation: pulse .8s infinite ease-in-out;
}

@keyframes pulse {
  0%  {
    width: 10rem;
    height: 10rem;
  }
  50% {
    width: 10.5rem;
    height: 10.5rem;
  }
  100% {
    width: 10rem;
    height: 10rem;
  }
}

.draggable:hover {
  animation: none;
  width: 11rem;
  height: 11rem;
}

.droppable {
  z-index: 4;
  height: 16.5vw;
  width: 9vw;
  margin: 1rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  font-size: 4rem;
  font-weight: bold;
  transition: all .1s ease-in-out;
}

.droppable.droppable-hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  html { font-size: 14px; }
  .draggable-elements { margin: 1.5rem; }
}

.shake {
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-20px); }
  50% { transform: translateX(20px); }
  75% { transform: translateX(-20px); }
}

#level-up {
  display: none;
  scale: 0;
  opacity: 0;
}

.container {
  max-width: 100vw;
  height: 100vh;
  position: fixed;
  width: 100%;
  left: 50%;
  top: 3rem;
  z-index: 5;
  transform: translate(-50%, -25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container-inner {
  background: #ff490c;
  padding: 40px;
  border-radius: 30px;
  box-shadow: 5px 6px 0px -2px #d13100, -6px 5px 0px -2px #651e0b,
    0px -1px 0px 1px #743939, 0px 10px 0px 0px #610c14,
    0px -5px 0px 1px #ffecec, 0px 0px 100px 50px #2b2b2b64;
  width: 450px;
}

.content {
  background: radial-gradient(#fffbf3, #ffe19e);
  box-sizing: border-box;
  height: 220px;
  padding-top: 25px;
  border-radius: 20px 18px 20px 18px;
  box-shadow: 0px 0px 0px 6px #5e1e21, 0px 0px 8px 6px #84222b,
    inset 0px 0px 15px 0px #614506, 6px 6px 1px 1px #e69d65,
    -6px 6px 1px 1px #e68e65;
  text-align: center;
}

.names {
  margin-top: 20px;
  display: flex;
  justify-content: normal;
  align-items: center;
  box-sizing: border-box;

  span{
    padding: 20px;
    flex: 1;
    border-radius: 20px;
    font-family: "Poppins";
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: none;
    color: #000000ce;
    font-size: 30px;
    text-align: center;

    &.name{
      background: radial-gradient(#fff5e0, #ffe19e);
      box-shadow: 0px 0px 0px 6px #5e1e21, 0px 0px 8px 6px #84222b,
      inset 0px 0px 15px 0px #614506, 6px 6px 1px 1px #e69d65,
      -6px 6px 1px 1px #e68e65;
    }
  }
}

.bold {
  font-family: "PoppinsBold";
}

.error-modal p {
  background: radial-gradient(#fffbf3, #ffe19e);
  box-sizing: border-box;
  padding: 30px;
  border-radius: 20px 18px 20px 18px;
  box-shadow: 0px 0px 0px 6px #5e1e21, 0px 0px 8px 6px #84222b,
    inset 0px 0px 15px 0px #614506, 6px 6px 1px 1px #e69d65,
    -6px 6px 1px 1px #e68e65;
  text-align: center;
}

.error-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(#ff823a, rgb(234, 20, 20));
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14.5px);
  border: 1px solid rgba(228, 9, 9, 0.3);
  color: white;
  border-radius: 30px;
  box-shadow: 5px 6px 0px -2px #d13100, -6px 5px 0px -2px #651e0b,
    0px -1px 0px 1px #743939, 0px 10px 0px 0px #610c14,
    0px -5px 0px 1px #ffecec, 0px 0px 200px 1000px rgba(0, 0, 0, 0.642);
  padding: 50px;
  border-radius: 20px;
  z-index: 10000;
  text-align: center;
  font-family: "Poppins";
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: none;
  font-size: 30px;
  text-align: center;
}

.success-modal p {
  background: radial-gradient(#fffbf3, #ffe19e);
  box-sizing: border-box;
  padding: 30px;
  border-radius: 20px 18px 20px 18px;
  box-shadow: 0px 0px 0px 6px #5e1e21, 0px 0px 8px 6px #84222b,
    inset 0px 0px 15px 0px #614506, 6px 6px 1px 1px #e69d65,
    -6px 6px 1px 1px #e68e65;
  text-align: center;
}

.success-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(0, 0, 0);
  border-radius: 30px;
  background: radial-gradient(#6df68d, rgb(27, 180, 16));
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14.5px);
  border: 1px solid rgba(99, 228, 9, 0.3);
  box-shadow: 5px 6px 0px -2px #22da4d, -6px 5px 0px -2px #213e0d,
    0px -1px 0px 1px #3a7439, 0px 10px 0px 0px #0c612f,
    0px -5px 0px 1px #ffecec, 0px 0px 200px 1000px rgba(0, 0, 0, 0.642);
  padding: 50px;
  border-radius: 20px;
  z-index: 9999;
  text-align: center;
  font-family: "Poppins";
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: none;
  font-size: 30px;
  text-align: center;
  z-index: 10000000;
}

.modal-content {
  color: #000000;
  font-size: 30px;
  font-family: 'Poppins';
}

.confetti-animation {
  position: fixed;
  top: 0;
  align-self: start;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  z-index: 10000000000000000000000000;
  pointer-events: none;
}


#lives-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  z-index: 1000000;
  display: flex;
  gap: 5px; 
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: 15px;
  background: radial-gradient(#fff5e0, #ffe19e);
  box-shadow: 0px 0px 0px 6px #5e1e21, 0px 0px 8px 6px #84222b,
  inset 0px 0px 15px 0px #614506, 6px 6px 1px 1px #e69d65,
  -6px 6px 1px 1px #e68e65;
}

.heart {
  width: 35px;
  height: 35px;
}

.boom{
  width: 35px;
  height: 35px;
}

.game-over-modal p {
  background: radial-gradient(#fffbf3, #ffe19e);
  box-sizing: border-box;
  padding: 30px;
  border-radius: 20px 18px 20px 18px;
  box-shadow: 0px 0px 0px 6px #5e1e21, 0px 0px 8px 6px #84222b,
    inset 0px 0px 15px 0px #614506, 6px 6px 1px 1px #e69d65,
    -6px 6px 1px 1px #e68e65;
  text-align: center;
}

.game-over-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.951);
  z-index: 100000;
  text-align: center;
  font-family: "Poppins";
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: none;
  font-size: 30px;
  text-align: center;
  box-shadow: 5px 6px 0px -2px #555555, -6px 5px 0px -2px #373737,
    0px -1px 0px 1px #000000, 0px 10px 0px 0px #000000,
    0px -5px 0px 1px #ffecec, 0px 0px 200px 1000px rgba(0, 0, 0, 0.642);
  padding: 50px;
  border-radius: 20px;
}


@media screen and (max-width: 680px) {
  .droppable {
    z-index: 4;
    height: 150px;
    width: 75px;
  }
  .modal-content {
    font-size: 18px;
  }
  
  .modal-content .link {
    font-size: 12px;
  }

}

@media screen and (max-width: 980px) {
  .modal-content {
    font-size: 22px;
  }
  
  .modal-content .link {
    font-size: 14px;
  }

}