body {
  margin: 0;
  background: #f4f4f4;
}

h1 {
  text-align: center;
  margin-top: 30px;
  color: #000000;
}

.container {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  align-items: flex-start;
}

.info-panel {
  flex: 1 1 200px;
  background: white;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  height: fit-content;
}

.info-panel h2 {
  margin-top: 0;
  color: #000000;
}

.info-panel ul {
  list-style-type: none;
  padding-left: 0;
  line-height: 1.6;
  color: #000000;
}

.calendar-day-names {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  max-width: 100%;
  font-weight: bold;
  color: #27ae60;
  text-align: center;
  margin-bottom: 10px;
  padding: 0 10px;
}

.calendar-wrapper {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  padding: 10px;
}

.day {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  width: 100px;
  height: 100px;
  
}

.summary-overlay {
  display: none !important;
}

.day h3 {
  margin: 0 0 8px;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
  font-weight: bold;
}

/* REMOVED summary-overlay since we're using full popup now */

/* === Full-Screen Popup Styles === */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-content {
  background: white;
  color: #333;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
}

.popup-close:hover {
  color: #000;
}

.popup-date {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 15px;
}

.popup-summary {
  font-size: 1rem;
}


@media (max-width: 1024px) {
  h1 {
    font-size: 1.5rem;
    margin-top: 20px;
  }

  .container {
    flex-direction: column;
    padding: 0 10px;
    align-items: center;
  }

  .info-panel {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }

  .calendar-day-names {
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.8rem;
    gap: 5px;
    padding: 0;
  }

  .calendar-wrapper {
    grid-template-columns: repeat(7, 1fr);
    padding: 0;
    justify-items: center;
    gap: 11px;
  }

  .day {
    width: 80px;
    height: 80px;
    padding: 8px;
    font-size: 0.9rem;
  }

  .day h3 {
    font-size: 1rem;
  }

  .popup-content {
    width: 95%;
    padding: 20px;
  }

  .popup-date {
    font-size: 1rem;
  }

  .popup-summary {
    font-size: 0.9rem;
  }

  .popup-close {
    top: 8px;
    right: 12px;
    font-size: 20px;
  }
}


@media (max-width: 650px) {
  .day {
    width: 30px;
    height: 30px;
  }

}
