@font-face {
  font-family: 'PlayfairDisplay';
  src: url('PlayfairDisplay-Medium.ttf') format('truetype');
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'PlayfairDisplay', Georgia, serif;
  background-color: #f7f3f3;
  color: #420000;
}

/* ✅ SCROLL CONTAINER FOR CONSISTENCY */
.scroll-container {
  height: calc(100vh - 80px); /* Full height minus sticky navbar */
  overflow-y: auto;
}

/* ✅ CUSTOM SCROLLBAR (red track, cream thumb) */
.scroll-container::-webkit-scrollbar {
  width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #420000;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #f7f3f3;
  border-radius: 4px;
}

/* ✅ CALENDAR COMPONENT STYLING */
.calendar-container {
  max-width: 960px;
  margin: 30px auto;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.month-nav {
  font-size: 1.8rem;
  background-color: #420000;
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 45px;
  height: 45px;
  cursor: pointer;
}

#monthYear {
  font-size: 2.2rem;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.day-name {
  font-weight: bold;
  text-align: center;
}

.day {
  background-color: #f9eeee;
  border-radius: 12px;
  padding: 8px;
  min-height: 80px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.day.empty {
  background: transparent;
  box-shadow: none;
}

.date-number {
  font-size: 1.2rem;
  font-weight: bold;
}

.event {
  font-size: 0.85rem;
  margin-top: 4px;
  color: #7a3b3b;
  padding: 2px 4px;
  border-radius: 6px;
  background: #fcecec;
  text-align: left;
  line-height: 1.2;
  box-shadow: 0 0 2px rgba(66, 0, 0, 0.1);
}

.event-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff0f0;
  border: 2px solid #420000;
  padding: 24px;
  border-radius: 16px;
  z-index: 2000;
  max-width: 400px;
  width: 90%;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.event-popup.show {
  display: block;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  float: right;
  cursor: pointer;
  color: #420000;
}

.event-details h3 {
  margin-top: 0;
  font-size: 1.6rem;
}

.event-details p {
  font-size: 1.1rem;
  line-height: 1.6;
}
