/* 
    TODO: Description of file
*/
* {
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    
}
body {
    background: #f4f6f9; /* matches index, can change later*/
    color: #1f2937;
    text-align: center;
    margin-top: 0;
    font-size: 20px;
}
/* my adjustments made it so we need some more line spacing on the page */
h1 {
    margin-top: 20px;
    margin-bottom: 10px; /* Space below main heading */
}
p {
    margin-bottom: 20px; /* Space below paragraph before button */
}

.navbar {
    background: #0f172a;
    padding: 18px 40px;
    display: flex;
    justify-content: center;
    gap: 25px;
    top: 0;
    flex-wrap: wrap;
}

.navbar a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.navbar a:hover {
    background: #2563eb;
}

/* food donation information */
.food {
    margin: 60px auto; /* Space between donation and food section */
    background: white; /* White card background */
    padding: 40px; /* Space inside card */
    width: 80%; /* Card width */
    border-radius: 20px; /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* shadow */
}
.food h2 {
    margin-bottom: 20px; /* Space below heading */
    font-weight: 600; /* bold heading */
}

.donate {
    margin: 60px;
}
.donate p {
    margin-top: 20px;
}
.donate button {
    background-color: #28A745;
    color: white;
    padding: 15px 30px;
    font-size: 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}
.donate button:hover {
    background-color: #218838;
}

.volunteer {
    margin: 60px;
}
.volunteer p {
    margin-top: 20px;
}
.volunteer button {
    background-color: #475EF5;
    color: white;
    padding: 15px 30px;
    font-size: 25px;
    border:none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(71, 94, 245, 0.3);
}
.volunteer button:hover {
    background-color: blue;
}
    
/* supports mobile view */
@media (max-width: 768px) {
    .navbar {
        gap: 12px; /* reduce spacing between links */
        padding: 15px 20px; /* reduce padding so it fits better */
    }
    body {
        margin-top: 160px; /* extra space so wrapped navbar does not cover content */
    }
    .food-section {
        width: 90%; /* makes card fit nicely on mobile */
        padding: 25px; /* smaller padding */
    }
}