/* view_campaigns.css */

/* Basic CSS for the View Campaigns page */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f3e9; /* Light beige background */
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.heading {
    font-family: 'League Spartan', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.connect-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 20px;
}

.connect-button:hover {
    background-color: #0056b3;
}

.wallet-info {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Campaign Tiles */
.campaign-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; /* Space between tiles */
}
/* Campaign card common styling */
.campaign-card {
    padding: 15px;
    margin: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Most recent (active) campaign style */
.recent-campaign {
    background-color: #d4edda; /* Light green background */
    border-color: #c3e6cb;
}

/* Expired campaigns style */
.expired-campaign {
    background-color: #f8d7da; /* Light red background */
    border-color: #f5c6cb;
}

/* Button styling for contribution */
.button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.button:hover {
    background-color: #218838;
}

.campaign-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s;
}

.campaign-card:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.campaign-card h3 {
    font-family: 'League Spartan', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.campaign-card p {
    font-size: 1rem;
    color: #555;
}

.button {
    background-color: #28a745; /* Green button */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    margin-top: 10px; /* Space above button */
    transition: background-color 0.3s ease-in-out;
}

.button:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Popup Styles */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000; /* On top of everything */
}

.popup-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    width: 400px;
    text-align: center;
}

.popup-content h2 {
    margin-bottom: 15px;
}

.popup-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.popup-content button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-content button:hover {
    background-color: #0056b3;
}

