@import url("https://fonts.googleapis.com/css2?family=Bubblegum+Sans&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  background-image: url("./assets/background-by-mcmurryjulie.png");
  background-color: hsl(0, 0%, 60%);
  font-family: "Bubblegum Sans", sans-serif;
}

header {
  background-color: hsl(0, 0%, 90%);
  text-align: center;
  padding: 1em;
}

h1 {
  color: hsl(220, 100%, 65%);
  font-size: 3em;
  text-shadow: 2px 2px 4px hsl(0, 0%, 10%);
}

#info {
  height: 5svh;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  gap: 2em;
  background-color: hsl(0, 0%, 90%);
  font-size: 1.5em;
}

#playarea {
  height: 80svh;
  position: relative;
}

#play-btn {
  padding: 0.75em;
  font-size: 1.5em;
  position: absolute;
  top: 2svh;
  right: 30svw;
  border-radius: 50px;
  background-color: hsl(40, 100%, 50%);
  border: none;
  color: hsl(0, 0%, 20%);
}

#play-btn:hover {
  box-shadow: 2px 2px 2px black;
  color: red;
  transform: translateY(-5px);
  transition: all 0.2s ease;
}

.hidden {
  display: none;
}

.bubble {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  /* some help from an LLM for background, box-shadow, filter */
  background: radial-gradient(
    circle at 30% 30%,
    var(--bubble-color),
    hsla(255, 100%, 100%, 0.2)
  );
  box-shadow: inset 0 0 10px hsla(0, 0%, 100%, 0.5),
    0 0 5px hsla(0, 0%, 0%, 0.2);
  filter: brightness(1.1) contrast(0.9);
  outline: 1px dashed hsl(0, 0%, 90%);
  cursor: crosshair;
  animation: floatUp 5s linear;
}

@keyframes floatUp {
  from {
    bottom: 0;
    transform: translateX(0);
  }
  to {
    bottom: 95%;
    transform: translateX(var(--drift));
  }
}
