* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #0d0453;
}

.logo {
    width: 98%;
    height: max-content;
}


/* Reset basic styling */


/* Responsive Header */

.responsive-header {
    background-image: url('logo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    color: #fff;
    position: relative;
}


/* Optional dark overlay for text readability */

.responsive-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.responsive-header * {
    position: relative;
    z-index: 1;
}


/* Home Content */

.home-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 2rem;
}

.home-content h3 {
    font-size: 2rem;
    font-family: 'Cormorant Garamond', serif;
}

.home-content p {
    font-size: 1rem;
    line-height: 1.6;
}


/* Auth Links */

.auth-links {
    text-align: right;
    padding: 0px;
    color: #fff;
}

.auth-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 3px;
}

.auth-links a:hover {
    text-decoration: underline;
}


/* Search Bar */

#searchBar {
    display: block;
    margin: 20px auto;
    padding: 10px;
    width: 90%;
    max-width: 500px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 15px;
}


/* Event Container */

.event-container {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}


/* Success message */

#successMessage {
    text-align: center;
    font-weight: bold;
}


/* Media Queries */

@media (max-width: 768px) {
    .home-content h3 {
        font-size: 1.5rem;
    }
    .home-content p {
        font-size: 0.9rem;
    }
    .auth-links {
        font-size: 14px;
        flex-wrap: wrap;
    }
    .responsive-header {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .home-content {
        padding: 1rem;
    }
    .auth-links {
        font-size: 12px;
    }
}

main {
    padding: 20px;
}

.event-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(228, 14, 14, 0.1);
    color: #0f0f0f;
}

.event-card h2 {
    margin-top: 0;
    color: blue;
}

.event-card button {
    background-color: #1e88e5;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-container {
    max-width: 500px;
    color: whitesmoke;
    margin: 60px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

form input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    background-color: rgb(186, 219, 219);
}

form button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

form p {
    margin-top: 15px;
    text-align: center;
}

textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #140202;
    resize: vertical;
    background-color: rgb(186, 219, 219);
}

button[onclick^="unregisterEvent"] {
    background-color: #e53935 !important;
}