@import url('https://fonts.googleapis.com/css2?family=Bitcount+Grid+Single:wght@100..900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  font-family: "Bitcount Grid Single", monospace, system-ui;
}

body {
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: linear-gradient(-45deg, #ff4e50, #f9d423, #24c6dc, #514a9d);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Player areas */
.player1, .player2 {
  position: absolute;
  width: 100%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 2rem;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
  pointer-events: none;
}

.player1 { top: 0; }
.player2 { bottom: 0; }

/* Bar */
.bar {
  position: absolute;
  left: 2.5%;
  width: 95%;
  height: 20vh;
  background: rgba(255, 255, 255, 0.226);
  backdrop-filter: blur(3px);
  top: 40vh;
  border-radius: 25px;
  transition: top 0.1s ease-out;
  box-shadow: inset -3px -4px 30px rgba(255, 255, 255, 0.712);  
}

/* Winner Text */
.winner {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.432);
  color: #111;
  padding: 10px 25px;
  border-radius: 12px;
  font-size: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
  z-index: 20;
  box-shadow: inset 0 0 20px rgba(255,255,255,0.5);
}

/* Flash overlay */
.flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 15;
  pointer-events: none;
  display: none;
}

.flash.show {
  display: block;
  animation: flashAnim 1s ease-in-out;
}

@keyframes flashAnim {
  0% { background: rgba(255,255,255,0); }
  50% { background: rgba(255,255,255,0.8); }
  100% { background: rgba(255,255,255,0); }
}

/* Bubble effect */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  pointer-events: none;
  animation: pop 0.7s ease-out forwards;
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Menu container */
.menue {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px; /* space between buttons */
  z-index: 30;
}

/* All buttons inside menu */
.menue button {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  animation: spin 6s linear infinite; /* optional, for reset btn only if you want */
  box-shadow: inset -2px -2px 10px rgba(255, 255, 255, 0.637) ;
}

/* Hover effect for buttons */
.menue button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Images inside buttons */
.menue button img {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

