/* Reset all default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Section to center everything */
.section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px; /* Fixed height */
    background-color: rgba(50, 150, 50, 0.8);

}

/* Container Box */
.container {
    max-width: 450px; /* Reduced width */
    width: 100%;
    height: 380px; /* Increased height */
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Heading Styling */
#heading {
    font-size: 34px; /* Larger size */
    font-weight: bold;
    margin-bottom: 25px; /* More space below */
}

/* Subtext Styling */
#subtext {
    font-size: 20px;
    margin-bottom: 25px; /* Equal space below heading and subtext */
}

/* Input Styling */
input {
    width: 85%;
    padding: 12px;
    border-radius: 5px;
    font-size: 18px;
    border: 1px solid #ccc;
    text-align: center;
    margin-bottom: 10px; /* Less space below input */
}

/* Submit Button */
#submit-button {
    width: 85%;
    padding: 12px;
    border-radius: 5px;
    font-size: 18px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 5px; /* Less space between input and button */
}

#submit-button:hover {
    background-color: #0056b3;
}

/* Success Message */
#message {
    font-size: 18px;
    font-weight: bold;
    color: green;
    display: none;
    margin-top: 20px;
}


/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .section {
        height: auto; /* Adjust height for smaller screens */
        padding: 40px 15px; /* More padding */
    }

    .container {
        max-width: 100%; /* Full width */
        width: 95%;
        padding: 30px 20px;
    }

    #heading {
        font-size: 28px; /* Smaller heading */
    }

    #subtext {
        font-size: 16px;
    }

    input, #submit-button {
        font-size: 14px;
        width: 100%; /* Full width for better input */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 25px 15px;
    }

    #heading {
        font-size: 24px;
    }

    #subtext {
        font-size: 14px;
    }

    input, #submit-button {
        font-size: 14px;
        width: 100%;
        padding: 10px;
    }
}
