@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playwrite+FR+Moderne:wght@100..400&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

html {
  font-family: "Playwrite FR Moderne", "Twemoji Country Flags", "Roboto", cursive;
  font-size: 10px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f4f4f4;
}

.beer {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #f8c471, #f39c12);
  overflow: hidden;
}

.foam {
  position: absolute;
  top: -205px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 400px;
  background: #fff;
  border-radius: 50%;
  z-index: 2;
  border: 5px solid rgb(229 161 63 / 54%);
}

.foam::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 34px;
  width: 200px;
  height: 400px;
  background: #fff;
  border-radius: 50%;
  z-index: 0;
}

.foam::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: 150px;
  width: 300px;
  height: 600px;
  background: #fff;
  border-radius: 50%;
  z-index: 0;
}

@keyframes foam-pulsate {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.foam-drip {
  position: absolute;
  bottom: -20px;
  width: 70px;
  height: 100px;
  background: #fff;
  border-radius: 50%;
  z-index: 1;
  animation: drip 3s ease-in-out infinite;
}

.foam-drip:nth-child(1) {
  left: 80px;
  animation-delay: 0s;
  width: 100px;
  height: 120px;
}

.foam-drip:nth-child(2) {
  animation-delay: 1s;
  right: 245px;
  animation-delay: 0.5s;
  width: 100px;
  height: 120px;
  bottom: -170px;
}

@keyframes drip {
  0% {
    transform: translateY(-50px) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(30px) scale(1);
    opacity: 1;
  }
  80% {
    transform: translateY(calc(100vh)) scale(0.9);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh)) scale(0.6);
    opacity: 0;
  }
}

.beer-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 0 5px 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  word-break: break-word;
}

.beer-content span {
  font-size: 6.2rem;
  z-index: 2;
  line-height: 1.5;
}

.beer-content-main {
  padding: 30px;
}

.glass {
    position: absolute;
    top: 0;
    left: 0;
    top: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: 5px solid rgb(229 161 63 / 54%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    color: #fff;
    text-align: center;
    /* width: 300px; */
    /* margin: 50px auto; */
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2) 5%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0.2) 95%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: none;
}

.bubbles {
  position: absolute;
  bottom: 5%;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allow clicks to pass through */
}

.bubble {
  position: absolute;
  bottom: 0;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  opacity: 0.8;
  animation: rise 4s infinite ease-in-out;
  filter: blur(4px);
}

/* Random Bubble Positions and Sizes */
.bubble:nth-child(1) {
  left: 20%;
  animation-duration: 3s;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  left: 40%;
  animation-duration: 4s;
  animation-delay: 1s;
}

.bubble:nth-child(3) {
  left: 60%;
  animation-duration: 3.5s;
  animation-delay: 0.5s;
}

.bubble:nth-child(4) {
  left: 80%;
  animation-duration: 5s;
  animation-delay: 1.5s;
}

.bubble:nth-child(5) {
  left: 50%;
  animation-duration: 2.8s;
  animation-delay: 2s;
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-400px) scale(1);
    opacity: 0;
  }
}