/* Custom fonts */
@font-face {
  font-family: 'Title-Font';
  src: url('fonts/AdvercaseFont-Demo-Regular.otf');
}
@font-face {
  font-family: 'Body-Font';
  src: url('fonts/SeoulNamsanvert.ttf');
}

.overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark semi-transparent background */
  z-index: 1; /* Ensure it sits above other elements */
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  background-image: url('images/');
  font-family: 'Title-Font', sans-serif;
}

.btn{
  background: transparent;
  border: none;
  font-size: 20px;
  outline: none;
  color: grey;
}
.back-button {
  font-size: 24px;
  color: #333;
  cursor: pointer;
  margin-right: 10px;
}

.title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
}

.filter-icon {
  cursor: pointer;
  margin-left: auto;
}

.filter-container {
  position: relative;
  margin-left: auto;
}

/* Popup styling */
.filter-popup {
  display: none;
  position: absolute;
  top: 100px; /* Adjust this value as needed */
  right: 160px; /* Adjust as needed */
  background-image: url('images/gradient.png'); /* Set your background image */
  background-size: cover; /* Ensure the image covers the popup area */
  background-position: center; /* Center the image within the popup */
  background-color: rgba(255, 255, 255, 0.9); /* Optional: background color overlay */
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  width: 150px;
  z-index: 2; /* Ensure popup appears above overlay */
}

.filter-popup label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  color: #333; /* Ensure text is readable */
}

.filter-popup button {
  background-color: #4a4461;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}

/* General styling */
body {
  font-family: 'Body-Font', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f7f7;
}

/* Event section */
.events {
  padding: 20px;
  max-width: 600px;
  margin: auto;
}

/* Title styling */
.events h1 {
  font-family: 'Title-Font', serif;
  font-size: 36px;
  color: #333;
  margin-bottom: 15px;
}

/* Event day styling */
.event-day h2 {
  text-align:  center;
  font-family: 'Title-Font', sans-serif;
  font-size: 20px;
  color: #4a4461;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Event card styling */
.event-card {
  background-color: #F8f7f7;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

.event-info {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "SeoulHangang CB", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%
}

.event-details {
  display: flex;
  flex-direction: column;
}

.event-time {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.event-title {
  font-family: 'Title-Font', serif;
  font-size: 20px;
  color: #333;
  margin: 2px 0;
}

.event-location {
  font-family: 'Body-font';
  font-size: 20px;
  color: #999;
  margin-bottom: 10px;
}

.buy-ticket {
  background-color: #F5DEE5;
  color: #434D80;
  border: none;
  border-radius: 20px;
  font-size: 20px;
  cursor: pointer;
  font-family: 'Body-Font', sans-serif;
  display: flex;
width: 138px;
height: 48px;
padding: 4px 20px;
justify-content: center;
align-items: center;
gap: 10px;
flex-shrink: 0;
white-space: nowrap;
}
 /* Sticky navbar */
 .bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background-color: #3E3E53;
  padding: 10px;
  border-radius: 21px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.nav-item {
  position: relative;
  transition: transform 0.3s ease-out;
}

.nav-item img {
  width: 24px;
  transition: transform 0.3s ease-out;
}

.nav-item.active {
  transform: translateY(-20px); /* Lift active icon */
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0); /* Start with scale of 0 */
  width: 50px;
  height: 50px;
  background-color: #3E3E53; /* Circle color */
  border-radius: 50%;
  z-index: -1; /* Places the circle behind the icon */
  transition: transform 2s ease-out; /* Smooth expansion */
}

.nav-item.active::before {
  transform: translate(-50%, -50%) scale(1); /* Expands the circle smoothly */
}
/* Media Query for iPad */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .top-bar {
    padding: 20px 30px;
  }

  .btn {
    font-size: 24px;
  }

  .back-button {
    font-size: 28px;
  }

  .title {
    font-size: 28px;
  }

  .filter-popup {
    width: 200px;
    padding: 20px;
  }

  .events {
    padding: 30px;
    max-width: 800px;
  }

  .events h1 {
    font-size: 40px;
  }

  .event-card img {
    height: 300px;
  }

  .event-time, .event-title, .event-location, .buy-ticket {
    font-size: 22px;
  }

  .bottom-nav {
    padding: 15px;
    max-width: 700px;
  }

  .nav-item img {
    width: 30px;
  }
}


  /* Media queries */
  @media screen and (min-width: 400px) {
    .bottom-nav {
      max-width: 1080px;
    }