@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('img.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px;
    color: white;
    text-align: center;
}

header {
    margin-bottom: 40px; /* Space between header and the form */
}

header h1 {
    font-size: 28px;
    margin-bottom: 20px; /* Space between first and second header */
}

header h2 {
    font-size: 20px;
    margin-bottom: 15px; /* Space between subsequent headers */
}

.main {
    width: 420px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: white;
    padding: 40px 40px; /* Increase top padding for balanced spacing */
    border-radius: 15px;
    margin-bottom: 20px; /* Space between the form and footer */
}

.main form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px; /* Add space from the top edge of the form */
}

.main .textbox {
    position: relative;
    width: 100%;
}

.main .textbox input {
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    font-size: 16px;
    color: white;
    padding: 0 20px;
    text-align: center; /* Centers the placeholder text */
}

.main input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    text-transform: capitalize;
}

.main .button {
    width: 100%;
    height: 50px;
    background: white;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
}

.main .button:hover {
    background: rgba(255, 255, 255, 0.8);
    color: rgba(0, 0, 0, 1);
}

.output {
    margin-top: 20px;
    font-size: 18px;
    color: white;
    text-align: center;
}

footer {
    margin-top: auto; /* Push the footer to the bottom */
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}
