html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'VT323', monospace;
    background-color: #000;
    color: #0f0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    min-height: calc(100vh - 25%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer {
    background-color: #000;
    padding: 20px;
    text-align: center;
    border-top: 2px solid #0f0;
}

header {
    background-color: #000;
    padding: 20px;
    border-bottom: 2px solid #0f0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 24px; /* Reduced logo size */
    color: #0f0;
    margin: 0;
}

nav .nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

nav .nav-links li {
    margin-left: 20px;
}

nav .nav-links li a {
    color: #0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav .nav-links li a:hover {
    color: #ff0;
}

section {
    padding: 100px 20px;
}

.hero-content {
    text-align: center;
}

.hero-content .separator {
    font-size: 24px;
    margin-bottom: 40px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0f0;
    color: #000;
    text-decoration: none;
    border: 2px solid #0f0;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'VT323', monospace;
    text-align: center;
    margin: 10px 0;
}

.btn:hover {
    background-color: #000;
    color: #0f0;
    transform: scale(1.1);
}

.form-btn {
    width: 100%;
    box-sizing: border-box;
}

.project-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Ensures items wrap to a new line if there isn't enough space */
    min-height: 55vh;
    gap: 100px; /* Space between cards */
}

.project-card {
    background-color: #000;
    padding: 5px;
    border: 2px dashed #0f0;
    text-align: center;
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #0f0;
    position: relative;
    flex-basis: 200px; /* Sets a flexible base width */
    flex-grow: 1; /* Allows the card to grow if space allows */
    max-width: 300px; /* Max width for cards */
    margin: 10px; /* Spacing between cards */
}


.project-card::before,
.project-card::after {
    content: "╔═════════════════════════╗";
    color: #0f0;
    font-size: 14px;
    display: block;
    text-align: center;
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
}

.project-card::after {
    content: "╚═════════════════════════╝";
    top: auto;
    bottom: -18px;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card img {
    width: 100px; /* Smaller images */
    height: 100px;
    object-fit: cover;
    margin-bottom: 5px; /* Reduced margin */
}

.project-card h3 {
    font-size: 16px; /* Smaller font size */
    margin-bottom: 5px; /* Reduced margin */
}

.project-card p {
    font-size: 14px; /* Smaller font size */
    margin-bottom: 5px; /* Reduced margin */
}

.about-content,
.donate-content,
.contact-content {
    text-align: center;
}

.about-content h2,
.donate-content h2,
.contact-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-content p,
.donate-content p,
.contact-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

form {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #0f0;
    background-color: #000;
    color: #0f0;
    box-sizing: border-box;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 18px;
    background-color: #0f0;
    color: #000;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'VT323', monospace;
}

button[type="submit"]:hover {
    background-color: #000;
    color: #0f0;
    transform: scale(1.05);
}

footer {
    background-color: #000;
    padding: 20px;
    text-align: center;
    border-top: 2px solid #0f0;
}

.welcome-image {
    display: block;
    margin: 0 auto;
    width: 35%;
    max-width: 50%;
    height: auto;
}

/* Media Queries for Responsive Design */

@media (max-width: 768px) {
    nav .nav-links {
        flex-direction: column;
        align-items: center;
    }

    nav .nav-links li {
        margin: 10px 0;
    }

    .hero-content .separator {
        font-size: 18px;
    }

    .hero-content .button-group {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 40px 20px;
    }

    .project-card::before,
    .project-card::after {
        content: "╔═══════════════════════╗";
        font-size: 12px;
    }

    .about-content h2,
    .donate-content h2,
    .contact-content h2 {
        font-size: 28px;
    }

    .about-content p,
    .donate-content p,
    .contact-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    nav .nav-links {
        flex-direction: column;
        align-items: center;
    }

    nav .nav-links li {
        margin: 10px 0;
    }

    .hero-content .separator {
        font-size: 16px;
    }

    .hero-content .button-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: auto; /* Changed to auto for better fit */
        padding: 10px 15px; /* Adjusted padding */
    }

    section {
        padding: 40px 10px;
    }

    .project-card::before,
    .project-card::after {
        content: "╔═══════════════════╗";
        font-size: 10px;
    }

    .about-content h2,
    .donate-content h2,
    .contact-content h2 {
        font-size: 24px;
    }

    .about-content p,
    .donate-content p,
    .contact-content p {
        font-size: 14px;
    }
}
