/* Global Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #e2d2d2;
    margin: 0;
    padding: 0;
    color: #0e0c0c;
}

/* Hero Section */
.hero {
    background-image: url('./Images/img.jpg'); 
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #161212;
    text-align: center;
    padding: 0 20px;
   
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.hero button {
    background-color: #d41a0d;
    border: none;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero button:hover {
    background-color: #580f1c;
}
.overlay-container {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 900px; 
}

.transparent-image {
    width: 100%;
    height: auto;
    opacity: 0.6; 
    position: relative;
}

.text-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%); 
    color: white; 
    z-index: 2; 
}

.text-content h1 {
    font-size: 2.9em;
    font-weight: bold;
    margin: 0;
}


/* Navigation Styles */
nav {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav a {
    text-decoration: none;
    color: #333;
    background-color: #c48389;
    margin: 0 15px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
}

nav a:hover {
    background-color: #e5b08c;
}

/* Main Content Styles */
main {
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 1200px;
}

h2 {
    color: #501119;
    margin-bottom: 20px;
}

h3 {
    color: #2c1017;
    margin-top: 40px;
    font-size: 1.7em;
}

p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 100;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Fundraiser List Styles */
#fundraiser-list div {
    border: 2px solid #c93c4f;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#fundraiser-list div:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    background-color: #d4617e;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}
footer h4 {font-size: 1.3em;}
footer p {
    margin: 0;
    font-size: 1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }

    nav a {
        padding: 10px;
        margin: 0 8px;
    }

    main {
        width: 95%;
    }
}
/* Header Styles */
h1 {
    text-align: center;
    color: #7e1b23;
    margin: 20px 0;
    font-size: 2.5em;
    margin-top: 5rem;
}

/* Fundraiser Details */
.fundraiser-details {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.fundraiser-details h3 {
    color: #3498db;
}

.fundraiser-details p {
    font-size: 1.1em;
    margin-bottom: 8px;
}

/* Donation List */
.donation-item {
    background-color: #ecf0f1;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

.donation-item p {
    margin: 0;
    font-size: 1em;
}

/* Donate Button */
.donatebutton {
    background-color: #e74c3c;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    margin-top: 15px;
    transition: background 0.3s;
}

.donatebutton:hover {
    background-color: #c0392b;
}

/* Form Styles */
form {
    background-color: #e7d4d4;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #d3445c;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

input[type="submit"], input[type="reset"] {
    padding: 12px 20px;
    background-color: #c7727d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

input[type="submit"]:hover, input[type="reset"]:hover {
    background-color: #c7727d;
}

/* Error Message Styling */
.error-message {
    color: red;
    font-weight: bold;
    text-align: center;
}

/* Fundraiser Results Styling */
#fundraiserResults {
    margin-top: 30px;
}

#fundraiserResults div {
    background-color: #ecf0f1;
    border-left: 5px solid #b84a53;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

#fundraiserResults div:hover {
    transform: scale(1.02);
}

#fundraiserResults h3 {
    margin: 0 0 10px;
    color: #993240;
}

#fundraiserResults p {
    margin: 5px 0;
    font-size: 1.1em;
}
input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

button[type="submit"] {
    padding: 12px 20px;
    background-color: #991858;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #b92444;
}

/* Donation Form Messages */
.message {
    margin-top: 20px;
    color: #27ae60;
    font-size: 1.1em;
}
input[type="text"], select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

button {
    padding: 12px 20px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-right: 10px;
}


/* Delete Button */
button[type="button"] {
    background-color: #e74c3c;
}

button[type="button"]:hover {
    background-color: #c0392b;
}

/* Select Fundraiser Section */
#fundraiser-id, #update-category {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* General Layout */
div {
    margin-bottom: 20px;
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
}

select {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

/* Styling for Dropdown Selectors */
select#category, select#update-category {
    background-color: #ecf0f1;
}

/* Basic styling for the table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Table headers styling */
table thead th {
    background-color: #ce414d; /* Primary color */
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Table rows styling */
table tbody tr {
    border-bottom: 1px solid #dddddd;
}

/* Table cells styling */
table tbody td {
    padding: 12px;
    text-align: center;
}

/* Zebra striping */
table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover effect for table rows */
table tbody tr:hover {
    background-color: #e2c2c2;
}

/* Numeric data right-align */
table tbody td:last-child,
table tbody td:nth-last-child(2) {
    text-align: right;
}

/* Responsive table - adjust for small screens */
@media (max-width: 768px) {
    table {
        font-size: 0.9rem;
    }

    table thead {
        display: none; /* Hide the header in mobile view */
    }

    table tbody tr {
        display: block;
        margin-bottom: 15px;
        border-bottom: 2px solid #ddd;
    }

    table tbody td {
        display: block;
        text-align: right;
        padding: 10px;
        position: relative;
    }

    table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-transform: uppercase;
    }
}