.calendar {
  width: 100%;
  box-sizing: border-box;
  /* overflow: hidden; */
  display: flex;
  padding-right: 10px;
}

@media screen and (max-width: 1170px) {
  .calendar {
    padding-left: 2%;
    padding-right: 2%;
  }
}

@media screen and (max-width: 750px) {
  .calendar {
    flex-direction: column;
  }
}

.calendar div,
.calendar span,
.calendar a,
.calendar button,
.calendar select {
  box-sizing: border-box;
}

.calendar input,
.calendar button,
.calendar select {
  margin: 0;
  padding: 0;
}

.calendar select {
  border: none;
  font-size: 18px;
  padding: 10px;
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  color:  #000000; /*hpilee-20240108  */
  font-weight: bold; /*hpilee-20240108  */
}

.calendar select::-ms-expand {
  display: none;
}

.calendar select:focus {
  outline: 1px solid cornflowerblue;
}

.calendar select::-ms-value {
  background: none;
  color: #000;
}

.calendar .month-selector {
  margin-right: 1px;
}

.calendar .calendar-container {
  border-radius: 10px;
  padding-bottom: 10px;
  min-width: 350px;
  height: 350px;
  flex-grow: 1;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  position: relative;
}

@media screen and (max-width: 750px) {
  .calendar .calendar-container {
    min-width: auto;
  }
}

.calendar-loading-overlay,
.event-list-loading-overlay {
  position: absolute;
  width: 100%;
  pointer-events: none;
  background-color: rgba(10, 10, 10, 0.2);
  top: 0px;
  bottom: 0px;
  display: none;
}

.event-list-loading-overlay {
  top: 0;
}

.calendar-loading-overlay.loading,
.event-list-loading-overlay.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: initial;
  z-index: 100;
}

.calendar-loading-overlay:after,
.event-list-loading-overlay:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: loading 1.2s linear infinite;
}

@media screen and (max-width: 750px) {
  .event-list-loading-overlay:after {
    width: 30px;
    height: 30px;
  }
}

@keyframes loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.calendar-header {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-left-arrow,
.calendar-right-arrow {
  width: 50px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border: none;
}

.calendar-left-arrow-btn,
.calendar-right-arrow-btn {
  height: 95%; /*hpilee-20240108 100%*/
  width: 50px;
  border: none;
}

.calendar-left-arrow-btn:focus,
.calendar-right-arrow-btn:focus {
  outline: 1px solid cornflowerblue;
}

.calendar-left-arrow .line-1,
.calendar-left-arrow .line-2,
.calendar-left-arrow .line-3,
.calendar-right-arrow .line-1,
.calendar-right-arrow .line-2,
.calendar-right-arrow .line-3 {
  /*height: 0px;
  width: 0px;
  background-color: rgb(0, 0, 0);*/
  height: 3px;
  width: 15px;
  background-color: rgb(60, 60, 60);
}
/*hplee-20230510-
original:
height: 3px;
  width: 15px;
  background-color: rgb(60, 60, 60);
*/

.calendar-left-arrow .line-2,
.calendar-right-arrow .line-2 {
  width: 20px;
}

.calendar-left-arrow .line-1 {
  transform: rotate(-45deg) translate(13px, 6px);
}

.calendar-left-arrow .line-3 {
  transform: rotate(45deg) translate(-13px, 18px);
}

.calendar-right-arrow .line-1 {
  transform: rotate(45deg) translate(12px, -19px);
}

.calendar-right-arrow .line-3 {
  transform: rotate(-45deg) translate(-12px, -6px);
}

.calendar-week {
  /* background-color: rgb(98, 177, 67);*/
  background-color: rgba(76 126 32);
  color: #fff;
  font-weight: bold;
  height: 50px;
}




.calendar-week,
.week-row {
  display: flex;
}

.week-row {
  height: 40px;
}

.calendar-weekday,
.day-in-week {
  max-width: calc(100% / 7);
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.day-in-week {
  background-color: #fff;
  border: none;
  /* outline: none; */
  transition: background-color 0.3s;
}

.day-in-week:focus {
  outline: none;
  /* border: 1px solid cornflowerblue; */
  border: 1px solid #004bd6;
}


.event-header {
  font-size: 20px;	
  color: #fff;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background-color: rgb(98, 177, 67);*/
  background-color: rgba(76 126 32);
  padding: 10px
}

.has-event-date {
  color: #fff;
  font-weight: bold;
}

.has-event-date > .circle-in-day {
  /* background-color: rgba(98, 177, 67, 1);*/
  background-color: rgba(76 126 32);
}

/*hpilee-20231229 */
.has-holiday-date {
  color: #fff;
  font-weight: bold;
}

.has-holiday-date > .circle-in-day {
  /* background-color: rgba(98, 177, 67, 1);*/
  background-color: #eb0000;
}

.only-holiday-date {
  color: #eb0000;
  font-weight: bold;
}

.circle-in-day {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: default;
  pointer-events: none;
}

.last-or-next-month-day {
  color: rgba(0, 0, 0, 0);
}

.last-or-next-month-day:focus {
  outline: none;
}

.current-selected-date {
  background-color: rgb(233, 233, 233);
}

.today {/*hpilee-20231229*/
  border: solid thin black; 
  border-width: 3px;
}

.calendar .event-container {
  flex-grow: 1;
  width: 350px;
  min-width: 350px;
  height: 350px;
  margin-left: 5px;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  position: relative;
}

@media screen and (max-width: 750px) {
  .calendar .event-container {
    /* min-height: 150px; */
    height: 100%;
    max-height: 350px;
    width: 100%;
    min-width: auto;
    margin-top: 10px;
    margin-left: 0;
  }
}

.event-info {
  padding: 5px 10px;
  font-size: 16px;
  overflow-wrap: break-word;
}

.event-info:first-child {
  padding-top: 10px;
}

.event-info:last-child {
  padding-bottom: 10px;
}

.event-info-link {
  text-decoration: none;
}

.event-info-title {
  padding-top: 5px;
  padding-bottom: 5px;
  /*color: rgb(100, 100, 100); */
  color: #000;  
  font-weight: bold;
  font-size: 1.3em;
}

.event-info-title:hover {
  text-decoration: underline;
}

.event-info-description {
  color: rgba(117, 117, 117, 1);
}

.event-info-date {
  color: #f37936;
  font-size: 14px;
  margin-top: 3px;
}

.no-event {
  height: 100%;
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: rgb(100, 100, 100);
}
