/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px; /* Add padding to cover the gap */
  background: #f0f0f0;
  overflow-x: hidden;
}

header {
  background: #333;
  color: #fff;
  padding: 0; /* Remove top and bottom padding */
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.heading {
  text-align: center; /* Center align the text */
  padding: 20px 0; /* Add top and bottom padding */
  font-family: Arial, sans-serif; /* Specify font family */
  font-size: 24px; /* Adjust font size */
  font-weight: bold; /* Optionally make the font bold */
  color: #333; /* Optionally specify text color */
}


.container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 20px;
  max-width: 100%;
  margin-top:20px; /* Center the container horizontally */
  box-sizing: border-box;
}

.left, .right {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
  margin:30px;
}

.left {
  max-width: 100%;
}

.right {
  max-width: 100%;
}

.calendar {
  width: 100%;
  /* background-color: #729EA1; */
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.calendar-days {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.calendar-days div {
  /* flex: 1; */
  text-align: center;
}

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px; /* Add gap between date squares */
}

.weekdays, .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.weekdays div, .days div {
  text-align: center;
  /* Square dates */
  width: 40px; /* Adjust width for desired size */
  height: 40px; /* Adjust height for desired size */
  line-height: 40px; /* Center text vertically */
  /* border: 1px solid #729EA1; Add border for square shape */
  box-sizing: border-box; /* Include border in width/height */
}

.month {
  display: flex; /* Use flexbox */
  justify-content: center; /* Center align items horizontally */
  align-items: center; /* Center align items vertically */
  margin-bottom: 20px;
}

.prev,
.next {
  margin: 0 10px; /* Add margin between the arrows and the date */
}
.date {
  font-size: 18px;
  font-weight: bold;
}

.days .day {
  cursor: pointer;
}

.day.prev-date, .day.next-date {
  color: #ccc;
}

.day.today {
  border: 2px solid #333;
  border-radius: 50%;
}

.day.active {
  background: #333;
  color: #fff;
  border-radius: 50%;
}

.goto-today {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
}

.goto input {
  padding: 5px;
  width: 80px;
}

.goto button, .today button {
  padding: 5px 10px;
  cursor: pointer;
}

.events {
  margin-top: 50px; /* Add space between calendar and events */
  background-color: #729EA1; /* Light gray background */
  border-radius: 5px; /* Gentle rounded corners */
  padding: 20px; /* Add some padding for breathing room */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.event {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px; /* Adjust spacing between events */
  border-bottom: 1px solid #ddd; /* Add a subtle separator line */
  padding-bottom: 10px; /* Add space below the separator */
  cursor: pointer; /* Make events clickable (optional) */

}

.event .title {
  display: flex;
  align-items: center;
  font-family: 'Open Sans', sans-serif; /* Use a more modern font */
  font-size: 16px;
  font-weight: bold; /* Emphasize event titles */
}

.event .title i {
  margin-right: 10px;
  color: #333;
  font-size: 18px; /* Slightly larger icon for better visibility */
}

.event .event-title {
  color: #333; /* Darker text for better contrast */
}

.event .event-time {
  color: #777;
  font-size: 14px;
  font-style: italic; /* Add some flair with italics */
  margin-top: 5px; /* Add some space between title and time */
}


@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    padding: 10px;
  }

  .left, .right {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 10px 0;
  }

  .left {
    order: 1;
  }

  .right {
    order: 2;
  }
}

@media (max-width: 768px) {
  .month i {
    font-size: 18px;
  }

  .date {
    font-size: 20px;
  }

  .weekdays div, .days div {
    padding: 5px 0;
  }

  .goto input {
    width: 60px;
  }

  .event .title {
    flex-direction: column;
    align-items: flex-start;
  }

  .goto-today {
    flex-direction: column;
    align-items: center;
  }

  .goto input {
    margin-bottom: 10px;
  }

  .goto button, .today button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    overflow-x: hidden;
  }

  .date {
    font-size: 18px;
  }

  .weekdays div, .days div {
    padding: 5px 0;
    font-size: 12px;
  }

  .goto input {
    width: 50px;
  }

  .goto button, .today button {
    width: 100%;
    padding: 5px;
  }

  .events {
    margin-top: 10px; /* Add space between calendar and events */
  }

  .event .event-title {
    font-size: 14px;
  }

  .event .date {
    font-size: 12px;
  }
}
