/* --- RESPONSIVE OUTER CONTAINER SELECTION --- */
.calendar-wrapper {
  width: 100%;
  max-width: 600px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 20px 15px;
  box-sizing: border-box;
}

/* --- CALENDAR INNER NAMESPACED STYLES --- */
.calendar-container {
  font-family: Arial, sans-serif;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  box-sizing: border-box;
  width: 100%;
}

.calendar-container * {
  box-sizing: border-box;
}

.calendar-container .calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-container .calendar-header h2 {
  font-size: 1.4rem;
  margin: 0;
  padding: 0;
  color: #333333;
}

.calendar-container .calendar-header button {
  background: #007bff;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}

.calendar-container .calendar-header button:hover {
  background: #0056b3;
}

.calendar-container .weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  color: #666666;
  margin-bottom: 10px;
}

.calendar-container .calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-container .calendar-days div {
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, transform 0.1s;
  color: #333333;
  font-size: 0.95rem;
}

.calendar-container .calendar-days div:hover:not(.empty) {
  background: #e9ecef;
}

/* Day with an event scheduled */
.calendar-container .calendar-days div.has-event {
  background: #e3f2fd;
  color: #007bff;
  font-weight: bold;
  border: 1px solid #007bff;
}

.calendar-container .calendar-days div.has-event:hover {
  background: #caf0f8;
}

/* Padding empty blocks */
.calendar-container .calendar-days div.empty {
  cursor: default;
  background: none;
}

/* --- CUSTOM MODAL POPUP STYLES --- */
.event-modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); 
  z-index: 10000; 
  justify-content: center;
  align-items: center;
}

.event-modal .modal-content {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 320px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  font-family: Arial, sans-serif;
  animation: fadeInModal 0.2s ease-out;
}

.event-modal .close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  font-weight: bold;
  color: #aaaaaa;
  cursor: pointer;
}

.event-modal .close-button:hover {
  color: #333333;
}

.event-modal h3 {
  margin-top: 0;
  color: #007bff;
  font-size: 1.2rem;
}

.event-modal p {
  color: #555555;
  line-height: 1.4;
  margin-bottom: 0;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}












ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #333333;
  display: flex;
  border-bottom:3px solid;
  border-image: linear-gradient(270deg, #004e32 0%, #39FF14 100%)3;
  border-width: 0 0 0.5px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  flex-wrap: nowrap;        
    overflow-x: auto;         
    white-space: nowrap; 
    -webkit-overflow-scrolling: touch;
}
ul::-webkit-scrollbar{
  display:none;
}

ul li a {
  display: block;
  color: white;
  padding: 14px 16px;
  text-decoration: none;
}

ul li a:hover {
  background-color: #111111;
}
ul li a.active {
  background-color: #04AA6D;
}
li{
  font-family:Lato;
  border-right:1px solid white;
}
body{
  margin: 0;
  background-image: radial-gradient(at top right,white,whitesmoke,rgb(209, 204, 204));
} 
h2 {
  position: relative;
  text-decoration: none;
  width: fit-content;
  text-align: center;
  margin: 3%;
}

h2::after {
  content: '';
  position: absolute;
  /* 1. Set full width permanently */
  width: 100%; 
  height: 2px;
  bottom: -2px;
  left: 0;
  background-image: radial-gradient(at bottom right, black, rgb(58, 57, 57));
  
  /* 2. Animate the transform property instead of width */
  transition: transform 0.3s ease; 
  
  /* 3. Start shrunk to 0, pivoting from the right */
  transform: scaleX(0);
  transform-origin: bottom right;
}

h2:hover::after {
  /* 4. Scale up to full width on hover, pivoting from the left */
  transform: scaleX(1); 
  transform-origin: bottom left;
}
h1 {
  position: relative;
  text-decoration: none;
  width: fit-content;
  text-align: center;
  margin: 3%;
}

h1::after {
  content: '';
  position: absolute;
  /* 1. Set full width permanently */
  width: 100%; 
  height: 2px;
  bottom: -2px;
  left: 0;
  background-image: linear-gradient(to right, black, rgb(63, 61, 61));
  
  /* 2. Animate the transform property instead of width */
  transition: transform 0.3s ease; 
  
  /* 3. Start shrunk to 0, pivoting from the right */
  transform: scaleX(0);
  transform-origin: bottom right;
}

h1:hover::after {
  /* 4. Scale up to full width on hover, pivoting from the left */
  transform: scaleX(1); 
  transform-origin: bottom left;
}
p{
  text-align: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-image: linear-gradient(to top left, black,rgb(26, 24, 24));
  color: transparent;
  background-clip: text;
}
#day{
  border: 2px solid black;
  margin:4%;
  padding: 3%;
  box-shadow: 4px 4px 1px black;
  transition: transform 0.3s ease;
}
#day:hover{
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}