/* General styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #020630;
    color: #fff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #222;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin-left: 150px;
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #1e90ff;
}

.login-btn {
    padding: 10px 20px;
    background-color: #1e90ff;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #1c7ed6;
}

.main {
    padding: 20px;
}

.hackathons-section {
    margin: 20px auto;
    max-width: 1200px;
}

.hackathons-section h1 {
    text-align: center;
}

.pop-out-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hackathon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hackathon-card {
    flex: 1;
    border: 1px solid #fdfdfd;
    border-radius: 10px;
    padding: 20px;
    background-color: #526cb2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.hackathon-card:hover {
    background-color: #3f3e3e;
}

.hackathon-card h2 {
    margin-top: 0;
    font-size: 24px;
}

.hackathon-card p {
    margin: 10px 0;
    font-size: 16px;
}

.hackathon-card a {
    color: #000a15;
    text-decoration: none;
}

.hackathon-card a:hover {
    text-decoration: underline;
}

/* Footer styles */
footer {
    background-color: #000214;
    padding: 20px 0;
    border-top: 1px solid #eaeaea;
    color: #f2efef;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
}

.footer-left, .footer-middle, .footer-right {
    flex: 1;
    margin: 0 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-logo img {
    width: 100px;
    margin-right: 10px;
}

.footer-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-buttons .footer-star-btn, .footer-buttons .footer-netlify-btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.footer-middle ul, .footer-right ul {
    list-style: none;
    padding: 0;
}

.footer-middle ul li, .footer-right ul li {
    margin-bottom: 10px;
}

.footer-middle ul li a, .footer-right ul li a {
    text-decoration: none;
    color: #f1eeee;
}

.footer-social-icons a {
    color: #ffffff;
    margin-right: 15px;
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #eaeaea;
    margin-bottom: -15px;
}

.footer-bottom a {
    color: #007bff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
    .navbar ul {
        margin-left: 0;
    }

    .hackathon-card {
        width: calc(50% - 20px); /* Adjust width for two cards per row with gap */
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul {
        flex-direction: column;
        margin-left: 0;
    }

    .navbar ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .hackathon-card {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        padding: 0 20px;
    }

    .footer-left, .footer-middle, .footer-right {
        margin: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px;
    }

    .logo {
        font-size: 20px;
    }

    .login-btn {
        padding: 8px 15px;
    }

    .hackathon-card {
        padding: 15px;
    }

    .footer-container {
        padding: 0 10px;
    }

    .footer-logo img {
        width: 80px;
    }

    .footer-buttons .footer-star-btn, .footer-buttons .footer-netlify-btn {
        padding: 8px 15px;
    }
}
