/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    scroll-behavior: smooth;
    font-size: 100%;
}

:root {
    --body-background-color: #ffffff;
    --header-background-color: #222;
    --text-color: #fff;
    --nav-background: #f9f9f9;
    --nav-text-color: #222;
    --section-background: #f9f9f9;
    --section-text-color: #222;
    --button-background: #007bff;
    --button-text-color: white;
    --card-background: rgb(42, 41, 41);
    --card-text-color: #fff;
    --logo-url: url('images/logo.PNG'); /* Light mode logo */
    --background-image-url: url('images/background.PNG');  /* Light mode background image */
}

.dark-mode {
    --body-background-color: #222;
    --header-background-color: #222;
    --text-color: #fff;
    --nav-background: #333;
    --nav-text-color: #fff;
    --section-background: #444;
    --section-text-color: #fff;
    --button-background: #0056b3;
    --button-text-color: white;
    --card-background: #555;
    --card-text-color: #fff;
    --logo-url: url('images/logo.PNG'); /* Dark mode logo */
    --background-image-url: url('images/background.PNG');  /* Dark mode background image */
}

header .logo {
    max-width: 300px;
    display: block;
    margin: 0 auto 15px;
    background-image: var(--logo-url);
    background-size: contain;
    background-repeat: no-repeat;
    height: 300px; /* Adjust height as needed */
}

body {
    background: var(--body-background-color);
    background-image: var(--background-image-url);
    color: var(--text-color);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button */
#theme-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 12px;
    background: var(--button-background);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

/* Header */
header {
    text-align: center;
    padding: 160px 20px;
    max-width: 100%;
    background: var(--header-background-color);
    /** margin: 20px auto; */
}

header .logo {
    max-width: 300px;
    display: block;
    margin: 0 auto 15px;
}

header h1 {
    font-size: 1.5rem;
}

header h2 {
    font-size: 1.5rem;
}

header p {
    font-size: 0.8rem;
}

/* Navigation */
nav {
    background: var(--nav-background);
    opacity: 0.8;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 12px;
}

nav ul li {
    margin: 5px 10px;
}

nav ul li a {
    color: var(--nav-text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Sections */
section {
    padding: 50px 15px;
    text-align: center;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 55%;
    background: var(--section-background);
    color: var(--section-text-color);
}

section h2 {
    font-size: 1.3rem;
}

section p {
    font-size: 0.9rem;
}

/* About us */
.about-us {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.about {
    background: var(--card-background);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease;
    color: var(--card-text-color);
}

.about:hover {
    transform: translateY(-3px);
}

.about h3 {
    font-size: 1.5rem;
}

.about p {
    font-size: 1.2rem;
}

/* Events */
.event-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.event {
    background: var(--card-background);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease;
    margin-bottom: 10px;
    color: var(--card-text-color);
}

.event:hover {
    transform: translateY(-3px);
}

.event h3 {
    font-size: 1.2rem;
}

.event p {
    font-size: 0.8rem;
}

/* Registration Form */
.registration-form {
    max-width: 350px;
    margin: 0 auto;
    background: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: var(--card-text-color);
}

.registration-form h2 {
    font-size: 1.3rem;
}

.registration-form label {
    font-size: 0.9rem;
}

.registration-form input,
.registration-form select,
.registration-form button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
}

.registration-form button {
    background: var(--button-background);
    color: var(--button-text-color);
    font-size: 1rem;
    cursor: pointer;
}

.registration-form button:hover {
    background: var(--button-background);
    opacity: 0.9;
}

/* Floating Register Button */
.floating-register-btn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: var(--button-background);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.floating-register-btn a {
    color: var(--button-text-color);
    text-decoration: none;
}

.g-recaptcha {
    margin-bottom: 25px;
    max-width: 100%;
    padding: 12px;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    background: var(--section-background);
    color: var(--section-text-color);
}

/* Responsive Design */
@media (max-width: 768px)  {
    header h1 {
        font-size: 1.6rem;
    }

    header h2 {
        font-size: 1.2rem;
    }

    nav ul {
        padding: 8px;
    }

    section {
        padding: 30px 10px;
        max-width: 100%;
    }

    .event {
        max-width: 100%;
    }

    .registration-form {
        max-width: 100%;
        padding: 15px;
    }

    .g-recaptcha {
        bottom: 8px;
        right: 8px;
        padding: 15px;
    }

    .floating-register-btn {
        bottom: 8px;
        right: 8px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    footer {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px)  {
    header h1 {
        font-size: 1.6rem;
    }

    header h2 {
        font-size: 1.2rem;
    }

    nav ul {
        padding: 8px;
    }

    section {
        padding: 30px 10px;
        max-width: 100%;
    }

    .event {
        max-width: 100%;
    }

    .registration-form {
        max-width: 100%;
    }

    .floating-register-btn {
        bottom: 8px;
        right: 8px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .g-recaptcha {
        max-width: 100%;
    }

    footer {
        font-size: 0.8rem;
    }
}