html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100vh;
}
body {
  text-align: right;
}

.header {
  width: 100%;
  height: 40px;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
}


.header img {
  max-height: 40px;
  position: absolute;
  top: 5px;
  left: 20px;
}


.topnav {
  overflow: hidden;
  position: relative;
  padding: 10px;
}

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
  display: none;
}

.topnav a {
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}

.topnav img {
  max-height: 40px;
  position: absolute;
  top: 20px;
  left: 20px;
}

/* Style the hamburger menu */
.topnav a.icon {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

/* Add a grey background color on mouse-over */
.topnav a:hover {
  color: black;
}

/* Style the active link (or home/logo) */
.active {
  color: white;
}




.event-panel {
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.event-panel h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

.event-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.event-card h3 {
  color: #007bff;
  margin: 0;
  font-size: x-large;
}

.event-card a {
  text-decoration: none;
}

.event-date, .event-location {
  font-size: 0.9em;
  color: #666;
}

.event-image {
  position: absolute;
  width: 25%;
  top: 0;
  left: 0;
}

.event-button {
  background-color: #28a745;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start; /* Aligns button to the left within the flex container */
}

.event-button:hover {
  background-color: #218838;
}

/* Basic responsiveness for smaller screens */
@media (max-width: 600px) {
  .event-panel {
    width: 95%;
    padding: 15px;
  }
}