/* Basic Reset & Body Style */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    /* Light grey background */
    background-color: #f0f0f0;
    color: #333;
    padding: 20px;
}

.rss
{
    position: absolute;
    color: #e83e8c;
}

.rss img
{
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Centered Container */
.container {
    max-width: 800px; /* Adjust max-width as needed */
    background: linear-gradient(to bottom, #f8f9fa, #ffe4e1);
    margin: 20px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Main Heading */
h1 {
    text-align: center;
    color: #e83e8c; /* A pinkish color, adjust as you like */
    margin-bottom: 30px;
    font-weight: 600;
}

/* Event Box Styling */
.event-box {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    overflow: hidden; /* Ensures padding contains floated/inline-block elements */

    max-width: 400px;
    margin-left: auto; /* Center event box */
    margin-right: auto; /* Center event box */
}

.event-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

/* Event Image */
.event-box img {
    max-width: 100%; /* Responsive image */
    height: auto;
    border-radius: 6px; /* Slightly rounded corners for image */
    margin-bottom: 15px;
    display: block; /* Prevents extra space below image */
    margin-left: auto; /* Center image */
    margin-right: auto; /* Center image */
}

/* Event Title */
.event-box h2 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.4em; /* Slightly larger title */
    font-weight: 600;
}

/* Event Date */
.event-box .date {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
}

/* Event Description */
.event-box .description {
    font-size: 1em;
    color: #444;
    white-space: pre-wrap; /* Preserve line breaks from description */
    word-wrap: break-word; /* Prevent long URLs/words from overflowing */
}

/* Messages */
.no-events,
.error-message {
    text-align: center;
    font-size: 1.1em;
    color: #888;
    padding: 20px;
}

.error-message {
    color: #dc3545; /* Red color for errors */
    font-weight: bold;
    border: 1px solid #f5c6cb;
    background-color: #f8d7da;
    border-radius: 5px;
    padding: 15px;
}

/* Responsive Design */
@media (max-width: 600px) {
    body{
        padding: 0px;
    }

    .container
    {
        margin: 0px;
        padding: 15px;
    }
}