/* Global styles */
body {
    background-color: #FFD700;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    margin: 0;
    overflow: hidden;
    touch-action: manipulation;
    font-size: 16px;
    overscroll-behavior: none;
}

html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

/* Beer Foam Background */
.foam-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background-color: #FFF;
    z-index: 9;
}

/* Beer Foam Bubbles */
.foam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: transparent;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    overflow: hidden;
    z-index: 10;
}

.foam .bubble {
    width: 240px;
    height: 160px;
    border-radius: 50%;
    background-color: #FFF;
    border: 2px solid black;
    position: relative;
    top: -80px;
    margin-left: -20px;
}

.foam .bubble:nth-child(1) {
    width: 270px;
    height: 180px;
    top: -90px;
}

.foam .bubble:nth-child(2) {
    width: 255px;
    height: 170px;
    top: -85px;
}

.foam .bubble:nth-child(3) {
    width: 285px;
    height: 190px;
    top: -95px;
}

.foam .bubble:nth-child(4) {
    width: 247px;
    height: 165px;
    top: -82px;
    z-index: 11;
}

.foam .bubble:nth-child(5) {
    width: 262px;
    height: 175px;
    top: -87px;
}

.container {
    width: 80%;
    max-width: 400px;
    text-align: center;
    overflow: hidden;
    background-color: #FFD700;
    border-radius: 25px;
    padding: 20px;
    z-index: 1;
    margin-top: 60px;
}

/* Footer */
footer {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #FFF;
    border-top: 2px solid black;
    border-radius: 25px 25px 0 0;
}

/* Buttons */
button {
    background-color: #FFD700;
    color: black;
    border: 2px solid black;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px 0;
}

button:hover {
    background-color: black;
    color: white;
}

/* Input fields */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    background-color: white;
    color: black;
    border: 2px solid black;
    border-radius: 25px;
    padding: 10px;
    width: 100%;
    margin: 10px 0;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: black;
    font-size: 16px;
}

/* Prevent zoom and scroll on mobile input focus */
@media (max-width: 768px) {
    html {
        font-size: 16px;
        height: 100%;
        overflow: hidden;
    }
    body {
        height: 100%;
        width: 100%;
        overflow: hidden;
        overscroll-behavior: none;
        position: fixed;
    }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea {
        font-size: 16px;
    }
}

/* Form styling */
form {
    border-radius: 25px;
    padding: 20px;
    margin: 20px 0;
    background-color: #FFD700;
}

/* Headings and Text */
h1 {
    color: black;
    font-size: 24px;
}

h2, h3 {
    color: black;
    font-size: 18px;
}

p {
    color: black;
    font-size: 16px;
}

/* Welcome message */
#welcome-message {
    font-size: 18px;
    font-weight: bold;
    color: black;
}

/* Utility Classes */
.center {
    text-align: center;
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
}
