body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #1f2833, #0b0c10); /* Matching the WhyTry theme gradient */
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  width: 800px;
  background: #ffffff;
  padding: 30px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative; /* Reference point for absolute positioning */
}

#tap-container {
  position: absolute;
  top: 120px; /* Adjusted height so the tap reaches the bottom of the mug */
  left: 20px; /* Moved slightly to the right */
  margin-bottom: 20px;
  width: 300px;
  display: flex;
  justify-content: flex-start;
}

/* Rest of your original CSS remains unchanged */

#tap {
  width: 100px;
  background: #ccc;
  height: 40px;
  position: relative;
  border-radius: 5px;
}

#tap:after {
  content: "";
  display: block;
  position: absolute;
  border-top: 70px solid #ccc;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-radius: 0 0 40px 40px;
  height: 0;
  width: 20px;
  top: 10px;
  right: 10px;
  transform: rotate(-20deg);
  z-index: 2;
}

#tap:before {
  content: "";
  display: block;
  position: absolute;
  width: 70px;
  height: 60px;
  background: #888;
  left: -20px;
  top: -15px;
  border-radius: 0px 20px 20px 0px;
}

#handle {
  border-top: 100px solid #333;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  width: 20px;
  position: absolute;
  top: 30px;
  left: 80px;
  border-radius: 10px 10px 0 0;
  z-index: 3;
}

#handle:before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  background: #666;
  position: absolute;
  bottom: -20px;
  left: -5px;
  border-radius: 20px 20px 10px 10px;
}

#handle:hover {
  transform: rotate(6deg);
  transform-origin: center bottom;
}

#handle:hover:before {
  transform: rotate(0deg);
}

#pour {
  position: absolute;
  left: 92px;
  top: 100px;
  width: 16px;
  height: 0px;
  z-index: 1;
  background: rgba(229, 197, 57, 1);
  transition: 0s;
}

#pour.pouring {
  height: 240px;
  transition: 800ms ease;
}

#mug-container {
  position: relative;
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

#mug {
  border: 20px solid #ddd;
  border-bottom-width: 30px;
  width: 150px;
  height: 250px;
  border-top: none;
  border-radius: 0 0 10px 10px;
  position: relative;
}

#mug:before {
  position: absolute;
  content: "";
  display: block;
  bottom: -40px;
  height: 30px;
  width: 180px;
  left: -30px;
  background: #ddd;
}

#mug:after {
  position: absolute;
  content: "";
  display: block;
  right: -80px;
  top: 30px;
  width: 40px;
  height: 110px;
  border: 25px solid #ddd;
  border-left: none;
  border-radius: 0 50px 150px 0;
}

#beer {
  width: 100%;
  height: 0%;
  max-height: 100%;
  background: linear-gradient(
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 35%,
    rgba(237, 237, 173, 1) 43%,
    rgba(229, 197, 57, 1) 44%,
    rgba(229, 197, 57, 1) 100%
  );
  background-repeat: repeat;
  background-size: 100% 200%;
  position: absolute;
  bottom: 0;
  left: 0;
}

@keyframes beerFill {
  0% {
      height: 0%;
  }
  100% {
      height: 100%;
  }
}

#beer.fill {
  animation-name: beerFill;
  animation-duration: 10s;
  animation-fill-mode: forwards;
  background-position: 0% 70%;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}

h2, h3 {
  font-size: 1.5rem;
  margin: 10px 0;
  color: #555;
}

.helper {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #666;
}

.helper.mug {
  cursor: pointer;
  margin-left: 10px;
}
