/* Resetting margin, padding, and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Full screen layout for the beer glass */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Lucida Handwriting', cursive;
}

/* Beer container as the entire browser window */
#beer-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.4), rgba(255, 214, 0, 1)), 
                linear-gradient(to bottom, #f6e27f 20%, #e3a651 100%);
    box-shadow: inset 0 -50px 80px rgba(255, 255, 255, 0.3),
                inset 0 80px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: background 2s ease, box-shadow 2s ease; /* Smooth transition for color change */
}

/* Pale beer state (whitish color) */
#beer-container.pale-beer {
    background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.4), rgba(183, 167, 134, 1)), 
                linear-gradient(to bottom, #f7f5d8 20%, #f0e6a1 100%);
}

/* Overlay with text */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.overlay h1 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 4vw;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    pointer-events: none; /* Prevents text from blocking clicks */
}

/* Bubble styling */
.bubble {
    position: absolute;
    bottom: -50px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: rise 8s infinite ease-out;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes rise {
    0% {
        transform: translateY(100%);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-110vh);
        opacity: 0;
    }
}

/* Hamburger menu styling */
.hamburger {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 20; /* Ensure it is above other elements */
}

/* Sidebar styling */
.sidebar {
    position: absolute;
    top: 0;
    left: -300px; /* Hidden off-screen initially */
    width: 300px; /* Width of the sidebar */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    transition: left 0.3s ease; /* Smooth transition for sliding in/out */
    z-index: 20; /* Ensure it is above other elements */
}

/* Close button styling */
.close-button {
    font-size: 2rem;
    cursor: pointer;
    color: white;
    float: right; /* Position to the right */
}

/* Links styling */
.sidebar a {
    color: #00cfff; /* Link color */
    text-decoration: none; /* No underline */
}

.sidebar a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Footer styling */
footer {
    height: 50px; /* Set a fixed height for the footer */
    background-color: rgba(0, 0, 0, 0);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}


/* Mobile and desktop responsiveness */
@media (max-width: 768px) {
    .overlay h1 {
        font-size: 8vw;
    }
}

