/* Base styles and background */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: url('backgroundnew.jpg') no-repeat center center fixed; 
    background-size: cover;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Main container styling */
.container {
    max-width: 580px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    border-radius: 10px;
    text-align: center;
    position: relative; /* Needed for proper stacking */
    z-index: 2; /* Ensures above background elements */
}


/* Logo and sponsor logo settings */
.logo, .sponsor-logo {
    max-width: 60%;
    margin: 20px auto;
    display: block;
}

/* Container for buttons */
.button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative; /* Ensure stacking context */
}

/* Styles for role selection buttons */
.role-button, .open-modal-btn {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    flex: 1; /* Flexible filling of space */
    z-index: 10; /* High z-index to ensure it's on top */
}

/* Color styling for male and female buttons */
.male {
    background-color: #007bff;
}

.female {
    background-color: #ff69b4;
}

/* Hover effect for role buttons */
.role-button:hover {
    opacity: 0.9;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

/* Style for sponsor text */
.sponsor-text {
    color: #FFFFFF;
    font-size: 0.8em;
}

/* Input fields and buttons styling */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"],
button[type="submit"] {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Submit button specific styling */
button[type="submit"] {
    background-color: #7FBC5A;
    color: white;
}

button[type="submit"]:hover {
    background-color: #004494;
}


/* Adjusted container margin for smaller screens */
@media (max-width: 600px) {
    .container {
        margin: 20px 5px; /* Adjust margin for smaller screens */
    }
}


/* Modal specific styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Ensure modal is on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black with opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* Centered in the viewport */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Responsive width */
    position: relative;
    z-index: 101; /* Above the modal overlay */
}

/* Close button styles */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Button to open the modal */
.open-modal-btn {
    background-color: #555;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
}

.open-modal-btn:hover {
    background-color: #666;
}
