/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: white;
  background-size: cover;
  background-repeat: repeat-x;
  animation: moveBackground 30s linear infinite;
}

@keyframes moveBackground {
  from { background-position: 0 0; }
  to { background-position: 1000px 0; }
}
header {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0,0,0,0.5);
}

main {
  flex: 1;
  text-align: center;
  padding: 2rem 1rem;
}

.city-selector {
  margin-bottom: 2rem;
}

select, button {
  padding: 0.5rem;
  font-size: 1rem;
}

button {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #cc0000;
}

.weather-card {
  width: 300px;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(0,0,0,0.6);
  border-radius: 10px;
}

footer {
  text-align: center;
  padding: 1rem;
  background: rgba(0,0,0,0.5);
}

#bubble-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}
.bubble {
  position: absolute;
  bottom: -80px;

  max-width: 220px;
  padding: 1rem 1.2rem;
  border-radius: 50px;
  text-align: center;
  font-size: 0.9rem;

  color: white;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;

  background: radial-gradient(
    circle at top left,
    rgba(255,255,255,0.6),
    rgba(255,255,255,0.15)
  );

  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);

  box-shadow:
    inset -5px -5px 15px rgba(255,255,255,0.25),
    inset 5px 5px 15px rgba(255,255,255,0.05),
    0 10px 30px rgba(0,0,0,0.3);

  animation: floatUp 10s linear forwards;
}

.bubble::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 12px;
  width: 30px;
  height: 15px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
}

#music-btn {
  margin-top: 1rem;
  background: #44aaff;
}

#music-btn:hover {
  background: #2277cc;
}


@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) scale(1.1);
    opacity: 0;
  }
}

/* POP */
.bubble.pop {
  animation: pop 0.4s ease-out forwards;
}

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