body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-image: url('../images/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

header {
    margin-bottom: 20px;
}

main {
    max-width:500px;
    width:100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px; /* Maximum width for the form on larger screens */
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin: 0 20px; /* Small margin to avoid touching screen edges on mobile */
}

label {
    margin-top: 10px;
    text-align: left;
    color: black;
}

input, textarea {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

button {
    margin-top: 20px;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 600px) {
    form {
        width: 90%; /* Makes form wider on smaller screens */
        padding: 15px; /* Adjust padding for better fit */
    }

    input, textarea {
        font-size: 16px; /* Slightly larger text for readability */
    }

    button {
        font-size: 18px; /* Slightly larger button text */
    }
}

/* Media Queries for Mobile Responsiveness */
@media (min-width: 601px) {
    form {
        width: 90%; /* Makes form wider on smaller screens */
        padding: 15px; /* Adjust padding for better fit */
    }

    input, textarea {
        font-size: 16px; /* Slightly larger text for readability */
    }

    button {
        font-size: 18px; /* Slightly larger button text */
    }
}
