/* Base Styles */
body {
  font-family: 'Press Start 2P', cursive;
  margin: 0;
  padding: 0;
  background: #1c1c1c;
  color: #fff;
}

/* Header */
header {
  background: #800000;
  color: white;
  padding: 1.5rem;
  text-align: center;
  font-size: 1rem;
  text-shadow: 2px 2px #ffcccc;
}

/* Container */
.container {
  max-width: 900px;   
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Calendar UI */
.calendar-ui {
  text-align: center;
  position: relative; /* allow absolute positioning for arrows */
}

.calendar-header {
  display: flex;
  justify-content: flex-start; /* keep filter on the left */
  align-items: center;
  margin-bottom: 0.5rem;
}

.filter-btn,
.widget-btn {
  background-color: #660000;
  color: white;
  border: 2px solid white;
  padding: 0.5rem 1rem;
  font-size: 0.6rem;
  cursor: pointer;
  margin: 0.3rem;
}

.filter-btn.active {
  background-color: #ffcccc;
  color: #800000;
  border-color: #800000;
}

#filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.event-badge {
  font-size: 0.55rem;
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-badge.upcoming {
  background: #ffcc00;
  color: #1c1c1c;
}

.event-badge.past {
  background: #555;
  color: #ccc;
}

.event-countdown {
  margin-top: 0.6rem;
  font-size: 0.55rem;
  color: #ffcccc;
}

.event-position {
  margin-top: 0.4rem;
  font-size: 0.5rem;
  color: #bbb;
}

/* Event wrapper and side arrows */
.event-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.arrow {
  background-color: #660000;
  color: white;
  border: 2px solid white;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 77, 77, 0.3);
  transition: background-color 0.2s, color 0.2s;
}

.arrow:hover {
  background-color: #ffcccc;
  color: #800000;
}

.widget-btn:hover {
  background-color: #ffcccc;
  color: #800000;
}

/* Event Card */
.event-card {
  background: #cc0000;
  border: 2px solid white;
  border-radius: 6px; /* slightly less rounded to be squarer */
  padding: 1rem;
  margin: 0; /* handled by wrapper */
  width: 320px;
  max-width: 90%;
  aspect-ratio: 1 / 1; /* keep it square */
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
  font-size: 0.6rem;
  animation: bounceIn 0.4s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.event-date {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 0.6rem;
  text-transform: uppercase;
}

/* Animation */
@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Hamburger Menu */
#menu-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1000;
}

#menu-toggle .bar {
  height: 4px;
  background-color: #ff4d4d;
  border-radius: 2px;
  box-shadow: 0 0 4px #ff4d4d;
  transition: background 0.3s, box-shadow 0.3s;
}

#menu-toggle:hover .bar {
  background-color: #ffffff;
  box-shadow: 0 0 6px #ffffff;
}

#menu-box {
  position: absolute;
  top: 60px;
  left: 20px;
  background: #2b2b2b;
  border: 2px solid #800000;
  border-radius: 8px;
  padding: 12px;
  display: none;
  font-size: 0.6rem;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
  z-index: 999;
}

#menu-box a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 8px;
}

#menu-box a:hover {
  color: #ffcccc;
}