/* Apply flexbox to center the page */
body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align the content from the top */
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    position: relative; /* Ensure the logo is positioned relative to the body */
}

/* Container for the logo */
.logo-container {
    position: absolute; /* Position logo independently of the flow */
    top: 20px; /* Adjust for spacing from the top */
    left: 20px; /* Align logo to the left side */
    width: 100px; /* Fixed width for the logo */
    height: 100px; /* Fixed height to match the width */
    border-radius: 50%; /* Circular shape */
    overflow: hidden; /* Ensures image stays within the circle */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Adds a subtle shadow */
}

/* Logo Styling */
.logo-container img {
    width: 100%; /* Ensures the logo fits within the circle */
    height: 100%; /* Ensures the logo fits within the circle */
    object-fit: cover; /* Ensures the logo scales and fills the circle without stretching */
}

/* Styling for the login box */
.log_box, #Loggedin {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 120px; /* Ensures the login box does not overlap with the logo */
}

/* Hide the logged-in section by default */
#Loggedin {
    display: none;
}

/* Headings */
h1, h2 {
    margin-bottom: 20px;
    color: #333;
}

/* Styling for input fields */
input {
    margin-top: 15px;
    padding: 10px;
    width: 80%;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Styling for buttons */
button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: rgb(3, 2, 2);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #57ad5b;
}

/* Error messages */
.error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* Styling for balance */
span#user_balance {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin: 10px 0;
}

/* Styling for number buttons */
.input-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0;
}

.number {
    padding: 15px;
    font-size: 18px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.number:hover {
    background-color: #e0e0e0;
}

#out_btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #9b362f; /* Red color for logout button */
}
