/* Body and General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Header Styles */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: linear-gradient(to right, #3399ff, #71e17c, #ffcc00, #ff6666);
    /* Autism awareness colors */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #333;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

/* Logo Styling */
.logo {
    width: 120px;
    height: auto;
    display: block;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.8));
}

/* Site Title Styling */
.site-title h1 {
    margin: 0;
    font-size: 1.8em;
    color: #fff;
    font-weight: bold;
}

/* Mobile Styling with Staggered Lines */
@media (max-width: 600px) {
    .site-title h1 {
        line-height: 1.2;
    }

    .site-title h1::before {
        content: "";
        display: block;
        margin-bottom: 5px;
    }

    .site-title h1 span:nth-child(1) {
        display: block;
        text-indent: 0px;
    }

    .site-title h1 span:nth-child(2) {
        display: block;
        text-indent: 10px;
        /* Indent second line */
    }

    .site-title h1 span:nth-child(3) {
        display: block;
        text-indent: 20px;
        /* Indent third line */
    }
}

/* Navigation Styles */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    /* Default gap between links */
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #333333;
    /* Dark text color */
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    padding: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    /* Subtle shadow to make text pop */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover Effect with High Contrast */
nav ul li a:hover {
    background-color: #ffcc00;
    /* Yellow hover effect */
    color: #000;
    /* Dark text on hover for contrast */
    border-radius: 5px;
}

/* Mobile Styles */
@media (max-width: 600px) {
    nav ul {
        gap: 10px;
        /* Reduce gap between links on mobile */
        flex-wrap: wrap;
        /* Allow links to wrap if needed */
    }
}

/* Main Content Areas */
.intro,
.quick-links,
.directory,
.forum {
    padding: 3px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.2);
    max-width: 1300px;
    position: relative;
    width: 90%;
    /* Default width */
}

@media (max-width: 600px) {

    .intro,
    .quick-links,
    .directory,
    .forum {
        width: 90%;
        /* Take 90% of the screen width on mobile */
        margin: 20px auto;
        /* Center it with auto margins */
        padding: 10px;
        /* Add a bit more padding for smaller screens */
    }
}


.intro:before,
.quick-links:before,
.directory:before,
.forum:before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 16px;
    /* Match the border radius with slight extension */
    background: linear-gradient(to bottom, rgba(240, 242, 245, 0) 0%, rgba(240, 242, 245, 1) 100%);
    z-index: -1;
    filter: blur(10px);
    /* Added blur for a noticeable effect */
}



/* Buttons */
.button {
    background-color: #3399ff;
    /* Blue */
    color: white;
    padding: 5px 5px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 10px;
}

/* Button Hover Effect */
.button:hover {
    background-color: #ff6666;
    /* Red hover */
}

/* Footer Styles */
footer {
    background: linear-gradient(to right, #ff6666, #3399ff, #ffcc00);
    /* Footer using autism colors */
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* About Us Page */
.about-us-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.about-us-image {
    text-align: center;
    margin-bottom: 20px;
}

.family-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}




/* Container for Button Alignment */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* Makes buttons and forms evenly distributed */
    align-items: center;
    gap: 10px;
    /* Spacing between different sections */
}

/* Add a Provider Button Margin */
.filter-section+a.button {
    margin-top: 10px;
    display: block;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Modal container - Full screen overlay */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    background-color: rgba(0, 0, 0, 0.5);
    /* Black background with transparency */

    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
}

/* Modal content box */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Responsive width */
    max-width: 400px;
    /* Limit modal size */
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* Shadow for depth */
}

/* Close button */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}

/* Input fields inside the modal */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    /* Adjusted margins for consistency */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Use existing button style - Apply any additional styling needed for the modal button */
.modal-content .button {
    width: 100%;
    /* Make the button full width inside the modal */
    margin-top: 10px;
}

/* Links inside the modal */
.modal-content a {
    color: #3399ff;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

/* Form container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f2f5;
    /* Same background color as the body */
    padding: 20px;
}

/* Form box styling */
.form-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

/* Form title */
.form-box h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Form group for label and input */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-box input[type="email"],
.form-box input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    margin-top: 5px;
    background-color: #f9f9f9;
}

/* Styling for all input fields, select dropdowns, and textareas with reduced margin */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    /* Reduced margin */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

.access-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Adjust as needed */
    align-items: center;
}

.access-levels label {
    display: flex;
    align-items: center;
}

.access-levels input[type="checkbox"] {
    margin-right: 5px;
    /* Spacing between checkbox and label text */
}

/* List Styling */
.provider-list-admin {
    list-style-type: disc;
    padding-left: 20px;
}

/* Flex container for aligning name and buttons */
.provider-item-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 600px;
    /* Set a maximum width */
}

.unapproved {
    background-color: #ffeb3b;
    /* Bright yellow background */
    color: #795548;
    /* Dark brown text */
}

/* Button styles */
.btn {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-block;
    margin-left: 5px;
}

.btn-update {
    background-color: #28a745;
    /* Green */
}

.btn-delete {
    background-color: #dc3545;
    /* Red */
}

.only-unapproved {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
}