/* styles.css */

/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
    line-height: 1.5;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Navigation menu */
nav {
    background-color: #0073e6;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

a {
    color: #0073e6;
    text-decoration: none;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Page header */
h1 {
    font-size: 2em;
    color: #0073e6;
    margin-bottom: 10px;
    font-weight: normal;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: normal;
}

h3 {
    font-size: 1.25em;
    color: #0073e6;
    font-weight: normal;
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Form styling */
form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

button {
    background-color: #0073e6;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
}

button:hover {
    background-color: #005bb5;
}

/* Event cards */
.event-card {
    background-color: #ffffff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.event-card h2 {
    color: #0073e6;
}

.event-card p {
    margin-top: 5px;
    line-height: 1.6;
}

.button-link {
    display: block;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    text-align: left;
    padding: 10px;
    margin: 10px auto;
    font-size: 18px;
    border-radius: 5px;
}

.button-link:hover {
    background-color: #45a049;
}

.event-list {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
}

.event-list li {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.event-list a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: left;
}

.event-box {
    background-color: #ffffff;
    padding: 5px;
    padding-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px auto;
}

.event-title {
    display: block;
    text-align: left;
    color: #333;
    font-size: 18px;
    margin: 10px;
    border-radius: 5px;
}

.event-description {
    display: block;
    text-align: left;
    color: #666;
    margin: 10px;
    border-radius: 5px;
}

.event-date {
    font-weight: bold;
    font-size: 12px;
    color: white;
    margin-right: 10px;
    background: #0073e6;
    padding: 10px;
    border-radius: 100px;
    margin: 10px;
}

.event-distance {
    font-weight: bold;
    font-size: 12px;
    color: white;
    margin-right: 10px;
    background: #bbbbbb;
    padding: 10px;
    border-radius: 100px;
}

.event-days {
    font-weight: bold;
    font-size: 12px;
    color: white;
    margin-right: 10px;
    background: #ee4b2b;
    padding: 10px;
    border-radius: 100px;
}

.tag {
    font-weight: bold;
    font-size: 14px;
    color: white;
    background: #0073e6;
    padding: 10px;
    border-radius: 100px;
}

table {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 5px;
    border-top: 1px solid;
    border-bottom: 1px solid;
}

.agenda-item {
    border: 1px solid #ccc;
    padding: 5px;
    margin-bottom: 5px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* Base styles */
.event-container {
    display: flex;
    flex-direction: column; /* Default for small devices */
    gap: 20px;
    margin-top: 20px;
}

.event-map {
    width: 100%; /* Full width for small devices */
    height: 300px; /* Default map height */
    max-width: 300px;
    margin: auto;
}

/* Larger devices: Display location and map side by side */
@media (min-width: 768px) {
    .event-container {
        flex-direction: row; /* Side by side for larger screens */
    }
    .event-map {
        min-width: 300px;
        height: 300px; /* Adjust height for larger layout */
        width: 30%; /* Adjust width for larger layout */
    }
    .event-location {
        width: 70%; /* Adjust width for location section */
    }
}