/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1C1C1C;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
}

/* Typography */
h1,
h2 {
    font-family: 'Bebas Neue', sans-serif;
    margin: 1rem 0;
    text-align: center;
}

h1.title {
    font-size: 2rem;
    color: #fff;
}

/* Header and Navigation */
header.navbar {
    display: flex;
    background-color: #161b22;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    gap: 2rem;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-weight: bold;
}

.navbar a {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1434A4;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.navbar a:hover::before {
    transform: scaleX(1);
    transform-origin: bottom center;
}

.navbar-item:hover {
    color: #1434A4 !important;
}

.navbar-item {
    color: white !important;
}

.navbar-burger {
    color: white !important;
}

/* Header content styling */
.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
    padding-left: 20px;
}

/* Header styles */
header h1 {
    font-family: 'Coiny', sans-serif;
    font-size: 30px;
    background-image: linear-gradient(to right, rgb(0, 140, 255), cyan, blue, rgba(0, 0, 0, 0.817));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-animation 150s linear infinite;
    opacity: 0.9;
    text-align: center;
    padding: 10px;
    margin: 0 auto;
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}


@keyframes rainbow-animation {
    to {
        background-position: 4500vh;
    }
}

/* Sponsorship Images */
.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-container .image {
    width: 200px;
    height: auto;
    object-fit: contain;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: #fff;
    padding: 0.5rem;
}

/* Learn More Section */
.learn-more {
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    margin: 2rem auto;
    padding: 2rem;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.learn-more h2 {
    font-size: 2rem;
    color: #333;
}

.learn-more p {
    font-size: 1.1rem;
    color: #666;
}

.learn-more button {
    background-color: #0070ff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.learn-more button:hover {
    background-color: #0056cc;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fadeIn 0.7s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Sponsorship Form Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsorship-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
}

.sponsorship-form h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.sponsorship-form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.sponsorship-form input,
.sponsorship-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
}

.sponsorship-form textarea {
    resize: none;
    height: 120px;
}

.sponsorship-form button {
    width: 100%;
    background-color: #0070ff;
    color: white;
    padding: 0.75rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sponsorship-form button:hover {
    background-color: #0056cc;
}

/* Modal Close Button */
.modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.modal .close:hover {
    color: black;
}

/* Media Query for 768px and below */
@media (max-width: 768px) {

    .navbar a {
        color: black !important;
    }

    /* General responsive adjustments */
    .header-content {
        justify-content: center;
    }

    .learn-more {
        margin: 1rem;
        padding: 1rem;
    }

    .image-container .image {
        display: grid !important;
        /* Switch to grid layout */
        gap: 1rem;
        /* Space between items */
        grid-template-columns: 1fr 1fr !important;
        /* Two equal-width columns */
    }

    .sponsorship-form {
        padding: 1rem;
    }
}