/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Header styles */
header {
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Navigation Bar */
nav {
    background-color: #333;
    padding: 0 0;
    text-align: center;
}

nav ul {
    list-style: none;
    display: inline-flex;
    gap: 1em;
}

nav ul li {
    display: inline;
    position: relative; /* To position the dropdown content */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 0 0;
    /* padding: 10px 15px; */
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #4CAF50;
    border-radius: 5px;
}

/* Dropdown Styles */
nav ul li.dropdown:hover .dropdown-content {
    display: block;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Open downward */
    left: 50%; /* Center relative to the parent button */
    transform: translateX(-50%); /* Adjust for exact centering */
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

nav .dropdown-content a {
    color: white;
    text-decoration: none;
    padding: 0.1em 1em;
    display: block;
    transition: background-color 0.3s ease;
}

nav .dropdown-content a:hover {
    background-color: #4CAF50;
}

/* Main content styles */
main {
    padding: 20px;
    text-align: center;
    min-height: 100vh;
    padding-bottom: 50px;
}

p {
    font-size: 18px;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    /*text-align: center;*/
    padding: 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer-container {
    justify-content: space-between;
    display: flex;
    align-items: center;
    max-width: 610px; /* Matches the width of your event cards */
    margin: 0 auto; /* Centers the footer content */
    width: 100%; /* Ensures responsiveness */
}

.footer-container a {
    color: white;
    text-decoration: none;
}

.footer-container a:hover {
    text-decoration: underline;
}

.footer-left {
    text-align: left;
    flex: 1;
    padding-left: 1em;
    /*background-color: gainsboro;*/
}

.footer-right {
    text-align: right;
    flex: 1;
    padding-right: 1em;
    /*background-color: gray;*/
}

h2 {
    font-size: 24px;
    margin-top: 1rem;
    padding-top: 1rem;
    margin-bottom: 1rem;
    color: #4CAF50;
}

/* Event Cards */
.event-cards {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0px;
    text-align: left;
}

.info-cards {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0px;
    text-align: left;
}

.info-cards p {
    text-align: left;
    padding-bottom: 1rem;
    font-size: 1.1em;
}

.info-cards ul, ol {
    padding-left: 1.5rem;
    font-size: 1.1em;
}

/* Event Card Styling */
/*.event-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
}*/

summary {
    position: relative;
    padding: 1rem 2em 1rem 0;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
  }
  summary::marker {
    content: none;
  }
  summary::before,
  summary::after {
    content: '';
  }
  summary::before,
  summary::after {
      width: .75em;
      height: 0;
      border-bottom: 2px solid;
      position: absolute;
      top: calc(50% - 1px);
      right: 0;
      transform: translateY(-50%);
    }
  summary::after {
    transform: rotate(90deg);
    transform-origin: 50% 50%;
  }
  [open] summary::after {
    transform: rotate(0deg);
  }

  details {
    border: 1px solid;
    padding: 0 1rem;
    background: white;
  }
  details + details {
    border-top: none;
  }
  details[open] {
      padding-bottom: 1em;
  }  


/* Details Styling */
.event-card p {
    font-size: 1.0rem;
    margin: 10px 0;
}

.event-card a {
    display: inline-block;
    margin-top: 5px;
    color: #4CAF50;
    text-decoration: none;
    /*font-weight: bold;*/
    /*font-size: 12px;*/
    font-size: 0.75rem;
}

.event-card a:hover {
    text-decoration: underline;
}

.event-datetime {
    color: #757575;
    font-size: 0.7em;
    display: block;
    line-height: 2;
    /* background-color: skyblue; */
}

.event-date-symbol::after {
    content: "📅 ";
}

.event-time-symbol::after {
    content: " ⏰ ";
}

.event-location {
    font-size: 0.6em;
    display: block;
    line-height: 2;
    /* background-color: orange; */
}

.event-separator-p {
    font-size: 0.8em;
}

.event-title {
    font-size: 0.9em;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    gap: 0;
    color: #4CAF50;
    /* background-color: red; */
    display: block;
}

.event-separator-h {
    font-size: 0.8em;
}

.event-congregate {
    font-size: 0.8em;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    gap: 0;
    /* background-color: lime; */
    display: block;
}

a {
    margin-top: 5px;
    color: #4CAF50;
    text-decoration: none;
    text-align: center;
    /*font-weight: bold;*/
    /*font-size: 12px;*/
    /*font-size: 0.75rem;*/
}

a:hover {
    text-decoration: underline;
}
