.beer-meter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    justify-content: center;
    padding: 20px;
}

.beer-glass {
    width: 60px;
    height: 120px;
    position: relative;
}

.beer-fill {
    transition: height 1s ease-in, y 1s ease-in;
}

.foam {
    transition: opacity 0.5s ease-in;
}

.bubble {
    animation: rise 3s infinite ease-in-out;
}

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px);  /* Adjust distance based on your beer height */
        opacity: 0;
    }
}

/* Optional: Add some random delays for the bubbles to rise at different times */
.bubble:nth-child(1) {
    animation-delay: 0s;
}
.bubble:nth-child(2) {
    animation-delay: 1s;
}
.bubble:nth-child(3) {
    animation-delay: 2s;
}
.bubble:nth-child(4) {
    animation-delay: 1.5s;
}
.bubble:nth-child(5) {
    animation-delay: 2.5s;
}

.beer-goal-info {
    font-family: Arial, sans-serif;
    text-align: center;
    margin-top: 20px;
    background-color: #fffbe6;
    border: 1px solid #f2c94c;
    padding: 10px;
    border-radius: 6px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.beer-goal-info p {
    margin: 5px 0;
    font-size: 16px;
    color: #333;
}

.beer-goal-container {
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
    font-family: 'Arial', sans-serif;
    padding: 20px;
    background-color: #fef9e7;
    border: 2px solid #f4d03f;
    border-radius: 10px;
}

.beer-goal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #6e5c1c;
}

.beer-progress-bar {
    width: 100%;
    background-color: #eee;
    height: 25px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.beer-progress-fill {
    background: linear-gradient(90deg, #f7c948, #f0a500);
    height: 100%;
    width: 0%;
    transition: width 1.5s ease-out;
    border-radius: 15px;
}

.beer-progress-text {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}