body {
  margin: 0px;
  padding: 0px;
  font-family: Arial, sans-serif;
}

.events-heading {
  color: #f5f5f5;
  min-width: 222px;
  text-align: center;
  border-radius: 10px;
}

.event-title {
  position: relative;
  top: -5px;
  height: 40px;
  white-space: normal; /* Prevent line breaks */
  overflow: visible; /* Hide overflowing text */
  text-overflow: clip; /* Display an ellipsis (...) for truncated text */
  display: flex;
  align-items: center;
  background-color: #444444;
  padding: 5px;
  z-index: 5;
}

.light-theme .event-title {
  background-color: #f5f5f5;
}

.light-theme .event-title .event-text {
  color: #000;
}

.event-title .event-text {
  font-size: 15px;
  font-weight: bold;
  color: #f5f5f5;
  padding: 5px;
}

.event-location {
  display: flex;
  position: relative;
  top: -5px;
  padding: 5px;
  border-top: 2px solid #000000;
  border-right: 10px solid #4a4545e0;
  border-left: 10px solid #4a4545e0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 12px !important;
  font-weight: bold;
  background-color: #444444;
  z-index: 10;
}

.event-location .event-icon {
  display: flex;
  position: relative;
  top: 4px;
  left: 4px;
  width: 15px;
  height: 15px;
  background-color: #f5f5f5;
  color: #f5f5f5;
  border-radius: 50%;
  margin-right: 10px;
  z-index: 11;

  filter: invert(1);
}

.light-theme .event-location {
  background-color: #f5f5f5;
  color: #000000;
  display: flex;
  position: relative;
  top: -5px;
  padding: 5px;
  border-top: 2px solid #000000;
  border-right: 10px solid #f5f5f5;
  border-left: 10px solid #f5f5f5;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 12px !important;
  font-weight: bold;
  background-color: #f5f5f5;
  z-index: 10;
}

.light-theme .event-location .event-icon {
  background-color: #f5f5f5;
  color: #000000;
  filter: invert(0);
}

.event-description {
  display: flex;
  position: relative;
  top: -5px;
  border-top: 2px solid #000000;
  border-right: 10px solid #4a4545e0;
  border-left: 10px solid #4a4545e0;
  padding: 5px;
  font-size: 12px !important;
  font-weight: bold;
  background-color: hsla(0, 4%, 28%, 0.88);
  z-index: 10;
  margin-bottom: 0px;
}

.light-theme .event-description {
  background-color: #f5f5f5;
  color: #000000;
  display: flex;
  position: relative;
  top: -5px;
  padding: 5px;
  border-top: 2px solid #000000;
  border-right: 10px solid #f5f5f5;
  border-left: 10px solid #f5f5f5;
  font-size: 12px !important;
  font-weight: bold;
  background-color: #f5f5f5;
  z-index: 10;
}

.event-time {
  display: flex;
  position: relative;
  top: -5px;
  border-top: 2px solid #000000;
  border-right: 10px solid #4a4545e0;
  border-left: 10px solid #4a4545e0;
  padding: 5px;
  font-size: 12px !important;
  font-weight: bold;
  background-color: hsla(0, 4%, 28%, 0.88);
  z-index: 10;
  margin-bottom: 0px;
}

.event-time .event-icon {
  display: flex;
  position: relative;
  top: 4px;
  left: 4px;
  width: 15px;
  height: 15px;
  background-color: #f5f5f5;
  color: #f5f5f5;
  border-radius: 50%;
  margin-right: 10px;
  z-index: 11;

  filter: invert(1);
}

.light-theme .event-time {
  background-color: #f5f5f5;
  color: #000000;
  display: flex;
  position: relative;
  top: -5px;
  padding: 5px;
  border-top: 2px solid #000000;
  border-right: 10px solid #f5f5f5;
  border-left: 10px solid #f5f5f5;
  font-size: 12px !important;
  font-weight: bold;
  background-color: #f5f5f5;
  z-index: 10;
}

.light-theme .event-time .event-icon {
  background-color: #f5f5f5;
  color: #000000;
  filter: invert(0);
}

.light-theme .events-heading {
  background-color: #3239ff;
}

h1 {
  margin: 0;
}

.show {
  display: block !important;
}

.hide {
  display: none !important;
}

.dark-theme {
  background-color: #111;
  color: #f5f5f5;
}

.light-theme {
  background-color: #f5f5f5;
  color: #333;
}

main {
  padding: 0px;
}

.event-group {
  position: relative;
  margin-bottom: 20px;
}

.month-bar {
  position: sticky;
  top: 140px;
  left: 0;
  width: 100%;
  min-width: 222px;
  text-align: center;
  z-index: 12;
  border-radius: 10px;
}

.event {
  padding-left: 10px;
  padding-right: 10px;
  background-color: #222;
  color: #f5f5f5;
  display: flex;
  position: relative;
  border-radius: 8px;
  margin-right: 5px;
  transition: background-color 0.3s ease;
}

.light-theme .event {
  background-color: #e6dcdc;
  color: #333;
}

.light-theme .event:nth-child(odd) {
  background-color: #d1e5c9;
}

.event-thumbnail {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 0px;
  border-radius: 8px;
  overflow: hidden;
}

.event-thumbnail img {
  width: 100%;
  height: auto;
}

.category-box {
  position: absolute;
  top: 5px;
  left: 40px;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #f5f5f5;
  z-index: 10;
}

.event-content {
  flex: 1;
  max-width: calc(100% - 120px);
}

.event-content.desktop {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.event h2 {
  margin: 0;
  font-size: 20px;
}

.event-details {
  margin-top: 10px;
}

.event-details p {
  margin: 5px 0;
}

.date-circle {
  position: absolute;
  top: -10px;
  left: -3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #333;
  color: #f5f5f5;
  z-index: 6;
}

.date {
  font-size: 18px;
  font-weight: bold;
}

.weekday {
  font-size: 12px;
}

.light-theme .date-circle {
  background-color: #ff7777;
}

@media screen and (min-width: 769px) {
  .date-circle {
    left: -3px;
    width: 50px;
    height: 50px;
  }

  .event-thumbnail {
    max-width: 100%;
    margin-right: 0;
  }

  .event-content {
    max-width: 100%;
  }

  .event-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
  }

  .event {
    flex: 1;
    flex-direction: column;
    max-width: 450px;
    min-width: 250px;
    margin-bottom: 20px;
  }
}

/* mobilemenu.css */

header {
  position: sticky;
  top: 0;
  left: 0;
  background-color: #333;
  color: #f5f5f5;
  display: flex;
  min-width: 250px;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  z-index: 16;
  border-radius: 10px;
}

.light-theme header {
  background-color: #f5f5f5;
  color: #333;
}

.mobile-menu-toggle {
  display: none;
  padding: 15px;
}

.mobile-menu ul {
  list-style-type: none; /* Removes the bullet points */
  padding-left: 0; /* Removes the default padding */
  display: flex; /* Makes the menu items display horizontally */
}

.mobile-menu ul li a {
  color: #f5f5f5; /* Changes the color of the URLs to white */
  text-decoration: none; /* Removes the underline from the URLs */
  padding: 10px 20px; /* Increases the clickable area */
  font-size: 18px; /* Increases the font size */
  position: relative; /* Required for the underline animation */
}

.light-theme .mobile-menu ul li a {
  color: #000; /* Changes the color of the URLs to white */
  text-decoration: none; /* Removes the underline from the URLs */
  padding: 10px 20px; /* Increases the clickable area */
  font-size: 18px; /* Increases the font size */
}

.mobile-menu ul li a.active {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

/* Underline animation */
.mobile-menu ul li a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ff6347;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.mobile-menu ul li a.active::before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.mobile-menu ul li a:hover::before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

/* Hide focus box */
.mobile-menu ul li a:focus {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

#search-icon svg {
  width: 20px;
  height: 20px;
  cursor: pointer;
  fill: white;
}

.light-theme #search-icon svg {
  width: 20px;
  height: 20px;
  cursor: pointer;
  fill: black; /* Set the SVG fill color to white */
}

#themeToggle {
  position: relative;
  top: -5px;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

body.dark-theme #themeToggle {
  background-color: #f5f5f5; /* white button for dark theme */
  color: #000;
}

body.light-theme #themeToggle {
  background-color: #000; /* black button for light theme */
  color: #f5f5f5;
}

.light-theme #search-icon svg.black-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  fill: black; /* Set the SVG fill color to white */
}

#search-box {
  position: relative; /* Add position relative */
  display: none;
  align-items: center;
  padding: 10px;
}

#search-input {
  position: absolute;
  top: -16px;
  right: 15px;
  width: 300px;
  padding: 10px;
  padding-right: 40px; /* Increase right padding to accommodate the "X" icon */
  font-size: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

#close-search-box {
  position: absolute;
  top: 5px;
  right: 15px;
  padding: 10px;
  transform: translateY(-50%); /* Use transform to vertically center the "X" */
  font-size: 24px;
  color: black;
  cursor: pointer;
  opacity: 0.7;
}

#close-search-box:hover {
  opacity: 1;
}

/* Styles for desktop mode */
@media screen and (min-width: 768px) {
  /* Add your desktop-specific styles here */
  body {
    font-size: 16px;
  }

  .logo img {
    width: 110px;
    height: auto;
    padding: 5px;
  }

  .month-bar {
    position: sticky;
    top: 127px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: flex;
    position: static;
    background: transparent;
    flex-direction: row;
    justify-content: space-between;
    width: auto;
    padding: 0;
  }

  .mobile-menu ul {
    flex-direction: row;
    margin: 0;
  }

  .mobile-menu ul li {
    margin-right: 1em;
  }

  .mobile-menu ul li:last-child {
    margin-right: 0;
  }
}

/* Styles for the mobile menu */
@media screen and (max-width: 300px) {
  .month-bar {
    position: sticky;
    top: 10px;
    left: 0px;
  }
}

/* Styles for the mobile menu */
@media screen and (max-width: 768px) {
  /* Show the mobile menu toggle on mobile devices */
  .mobile-menu-toggle {
    display: block;
    cursor: pointer;
  }

  #search-box {
    position: absolute;
    top: 33px;
    right: -14px;
    align-items: center;
    padding: 10px;
  }

  #themeToggle {
    display: block;
  }

  #search-input {
    position: absolute;
    top: -26px;
    right: 15px;
    width: 300px;
    padding: 10px;
    padding-right: 40px; /* Increase right padding to accommodate the "X" icon */
    font-size: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
  }

  #close-search-box {
    position: absolute;
    top: -6px;
    right: 15px;
    padding: 10px;
    transform: translateY(
      -50%
    ); /* Use transform to vertically center the "X" */
    font-size: 24px;
    color: black;
    cursor: pointer;
    opacity: 0.7;
  }

  #themeToggle {
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }

  .light-theme .mobile-menu-toggle {
    display: block;
    cursor: pointer;
    background-color: #f5f5f5;
    color: #000;
  }

  .logo img {
    width: 44px;
    height: auto;
  }

  header {
    position: relative;
    top: 0px;
    left: 0px;
    min-width: 222px;
  }

  .month-bar {
    position: sticky;
    top: 0px;
    left: 0px;
    padding: -10px;
  }

  /* Style the mobile menu toggle icon */
  .mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #f5f5f5;
    margin-bottom: 5px;
  }

  /* Style the mobile menu toggle icon */
  .light-theme .mobile-menu-toggle span {
    background-color: #000;
  }

  .event-list {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
  }

  /* Style the mobile menu to appear as a slide-down overlay */
  body.mobile-menu-open {
    overflow: hidden;
  }

  /*.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%; 
    width: 88%; 
    height: 100%;
    background: #333;
    transition: left 0.3s ease; 
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(5px); 
  }*/

  .light-theme .mobile-menu {
    background: #f5f5f5;
  }

  .event {
    flex: 1;
    flex-direction: column;
    max-width: 768px;
    min-width: 250px;
    margin-bottom: 20px;
  }

  .event-title .event-text {
    font-size: 16px;
    font-weight: bold;
    color: #f5f5f5;
    padding: 5px;
  }
}
.category-box.health-wellness {
  background-color: #f44336;
  color: #f5f5f5;
}

.category-box.classes-workshops {
  background-color: #e91e63;
  color: #f5f5f5;
}

.category-box.music {
  background-color: #9c27b0;
  color: #f5f5f5;
}

.category-box.art {
  background-color: #673ab7;
  color: #f5f5f5;
}

.category-box.community {
  background-color: #3f51b5;
  color: #f5f5f5;
}

.category-box.opening-reception {
  background-color: #2196f3;
  color: #f5f5f5;
}

.category-box.sports-rec {
  background-color: #03a9f4;
  color: #f5f5f5;
}

.category-box.yoga {
  background-color: #00bcd4;
  color: #f5f5f5;
}

.category-box.live-music {
  background-color: #009688;
  color: #f5f5f5;
}

.category-box.art-exhibits {
  background-color: #4caf50;
  color: #f5f5f5;
}

.category-box.theater {
  background-color: #8bc34a;
  color: #f5f5f5;
}

.category-box.film {
  background-color: #cddc39;
  color: #f5f5f5;
}

.category-box.talks-lectures {
  background-color: #ffeb3b;
  color: #f5f5f5;
}

.category-box.dance {
  background-color: #ffc107;
  color: #f5f5f5;
}

.category-box.education {
  background-color: #ff9800;
  color: #f5f5f5;
}

.category-box.literary-arts {
  background-color: #ff5722;
  color: #f5f5f5;
}

.category-box.comedy {
  background-color: #795548;
  color: #f5f5f5;
}

.category-box.photography {
  background-color: #9e9e9e;
  color: #f5f5f5;
}

.category-box.exercise {
  background-color: #607d8b;
  color: #f5f5f5;
}

.category-box.food {
  background-color: #b71c1c;
  color: #f5f5f5;
}

.category-box.dj-dance-party {
  background-color: #880e4f;
  color: #f5f5f5;
}

.category-box.benefit {
  background-color: #4a148c;
  color: #f5f5f5;
}

.category-box.opera {
  background-color: #311b92;
  color: #f5f5f5;
}

/* For the empty category, you can choose to hide it or assign a default color */
.category-box.empty {
  display: none;
  /* Or assign a color: */
  /* background-color: #1A237E; */
  /* color: #f5f5f5; */
}

.month-bar.january {
  background-color: #2196f3;
  color: #f5f5f5;
}

.month-bar.february {
  background-color: #9c27b0;
  color: #f5f5f5;
}

.month-bar.march {
  background-color: #ff5722;
  color: #f5f5f5;
}

.month-bar.april {
  background-color: #4caf50;
  color: #f5f5f5;
}

.month-bar.may {
  background-color: #ffeb3b;
  color: #333;
}

.month-bar.june {
  background-color: #795548;
  color: #f5f5f5;
}

.month-bar.july {
  background-color: #00bcd4;
  color: #f5f5f5;
}

.month-bar.august {
  background-color: #607d8b;
  color: #f5f5f5;
}

.month-bar.september {
  background-color: #f44336;
  color: #f5f5f5;
}

.month-bar.october {
  background-color: #e91e63;
  color: #f5f5f5;
}

.month-bar.november {
  background-color: #3f51b5;
  color: #f5f5f5;
}

.month-bar.december {
  background-color: #9e9e9e;
  color: #f5f5f5;
}

/* Style for the search form and its container */
.search-form-container {
  display: flex;
  flex-direction: column; /* Added to stack the h2 and form vertically */
  align-items: flex-end; /* Aligns items to the right */
  justify-content: center;
  margin: 5px 0;
  padding: 5px;
  border-radius: 25px;
  background-color: #444444;
}

.search-form-container h2 {
  align-self: flex-end; /* Aligns the h2 to the right */
  color: #f5f5f5; /* Added to make the h2 visible against the dark background */
}

.search-form-container .search-form-spacer {
  position: relative;
  padding-left: 10px;
}

.search-form-container .search-form input[type="text"],
.search-form-container .search-form input[type="date"],
.search-form-container .search-form select,
.search-form-container .search-form button {
  margin: 10px; /* Added margin around all form elements */
  padding: 10px;
  margin-top: 10px; /* Added margin to the top */
  margin-bottom: 10px; /* Added margin to the bottom */
}

.search-form-container .search-form {
  display: flex;
  align-items: center;
  border: 2px solid #f5f5f5;
  border-radius: 25px;
  padding: 5px;
  background-color: #f5f5f5;
  width: 100%; /* Ensures the form takes up the full width of the container */
}

.search-form-container .search-form input {
  border: none;
  margin: 10px;
  padding: 15px; /* Increased padding for larger input box */
  font-size: 16px;
  background-color: transparent;
  color: #000;
  width: 70%; /* Added width to ensure adequate space for text input */
}

.search-form-container .search-form input[type="submit"] {
  border: none;
  padding: 15px 20px; /* Increased padding for larger input box */
  font-size: 16px;
  background-color: #f5f5f5;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 25px; /* Increased border-radius */
}

.search-form-container .search-form input[type="submit"]:hover {
  background-color: #333;
  color: #f5f5f5;
}

/* Light theme styles */
.light-theme .search-form-container {
  background-color: #f5f5f5;
}

.light-theme .search-form-container .search-form {
  border-color: #000;
}

.light-theme .search-form-container .search-form input[type="text"] {
  color: #000;
}

.light-theme .search-form-container .search-form input[type="submit"] {
  background-color: #000;
  color: #f5f5f5;
}

.light-theme .search-form-container .search-form input[type="submit"]:hover {
  background-color: #f5f5f5;
  color: #000;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  margin: auto;
  margin-top: 20px;
  padding: 20px;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-height: 88vh; /* 70% of the viewport height */
  overflow-y: auto; /* Add scroll if necessary */
  background-color: #fefefe;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Light theme styles */
.light-theme .modal-content {
  background-color: #f5f5f5;
  color: #000;
}

.light-theme .close {
  color: #000;
}

/* Dark theme styles */
.dark-theme .modal-content {
  background-color: #444444;
  color: #f5f5f5;
}

.dark-theme .close {
  color: #f5f5f5;
}

/* CSS for the thumbnail in the modal */
.modal-content .event-thumbnail {
  max-width: 320px;
  height: auto;
  display: block; /* This makes the image a block element, which allows margins to be applied */
  margin: 0 auto; /* This centers the image horizontally */
  padding: 20px;
}

.no-results {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px; /* Adjust the height as needed */
  font-size: 18px;
  color: #555;
}
