body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: black; /* Fallback in case image doesn't load */
}

.image-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.overlay {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.0); /* Transparent background */
    box-sizing: border-box;
    /* Width, position, etc., will be set via JS */
}

.text-container {
    margin-top: 0px; /* Adjust if needed */
    padding: 0;
}

.text-container p {
    margin: 15px 0 0; /* Increased top margin for better spacing below form */
    padding: 0 10px; /* Added horizontal padding for better centering */
    font-size: 1.4rem; /* Slightly larger base font for readability */
    color: white;
    text-align: center; /* Center the text for better appearance */
}

.text-container a {
    color: #00b7eb;
    text-decoration: none;
    font-size: 1rem;
    margin: 0px 0;
    display: inline;
}

.text-container a:hover {
    text-decoration: underline;
}

#signup-form {
    display: flex;
    align-items: center;
    padding: 0 10px; /* Added padding for better mobile spacing */
    justify-content: center; /* Center form items */
}

#signup-form input[type="email"] {
    padding: 12px; /* Slightly larger padding for touch targets */
    font-size: 1.1rem; /* Larger font for mobile readability */
    border: 1px solid white;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    flex-grow: 1;
    max-width: 300px;
    border-radius: 4px; /* Rounded corners for modern look */
}

#signup-form button {
    padding: 12px 24px; /* Larger padding for easier tapping */
    font-size: 1.1rem; /* Larger font */
    background-color: #00b7eb;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px; /* Rounded corners */
}

#signup-form button:hover {
    background-color: #009acd;
}

/* Responsiveness for smaller screens */
@media (max-width: 768px) {
    .overlay {
        padding: 15px; /* Increased padding for mobile */
    }

    .text-container p {
        font-size: 1.2rem; /* Adjusted for mobile */
        padding: 0 5px;
    }

    .text-container a {
        font-size: 1rem;
    }

    #signup-form {
        flex-direction: column;
        align-items: center; /* Center on mobile */
        padding: 0 5px;
    }

    #signup-form input[type="email"] {
        margin-right: 0;
        margin-bottom: 15px; /* Increased spacing */
        max-width: none;
        width: 100%;
        font-size: 1.2rem; /* Even larger on mobile */
    }

    #signup-form button {
        width: 100%; /* Full width button for easy tapping */
        font-size: 1.2rem;
    }
}