#calendar {
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  width: 90%;
  margin-right: auto;
  height: 355px;
  overflow: hidden;
}

#calendar .header {
  width: 100%;
  background: #004C98;
  text-align: center;
  position:relative;
  z-index: 100;
  padding: 8px 30px;
  height: max-content;
}

#calendar .header h1 {
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 100;
  letter-spacing: 1px;
  color: #fff;
}

#calendar .left, #calendar .right {
  position: absolute;
  width: 7px;
  height: 10px;;
  border: none;
  top: 50%;
  margin-top: -5px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

#calendar .left {
  background-image: url('../img/Path 582.png');
  left: 30px;
}

#calendar .right {
  background-image: url('../img/Path 583.png');
  right: 30px;
}

.month {
  /*overflow: hidden;*/
  opacity: 0;
}

.month.new {
  -webkit-animation: fadeIn 1s ease-out;
  opacity: 1;
}

.month.in.next {
  -webkit-animation: fadeIn .4s ease-out;
  -moz-animation: fadeIn .4s ease-out;
  animation: fadeIn .4s ease-out;
  opacity: 1;
}

.month.out.next {
  -webkit-animation: fadeOut .4s ease-in;
  -moz-animation: fadeOut .4s ease-in;
  animation: fadeOut .4s ease-in;
  opacity: 1;
}

.month.in.prev {
  -webkit-animation: fadeIn .4s ease-out;
  -moz-animation: fadeIn .4s ease-out;
  animation: fadeIn .4s ease-out;
  opacity: 1;
}

.month.out.prev {
  -webkit-animation: fadeOut .4s ease-in;
  -moz-animation: fadeOut .4s ease-in;
  animation: fadeOut .4s ease-in;
  opacity: 1;
}

.week {
 background: #fff;
}

.day {
  display: inline-block;
  width: 14.285%;
  /* padding: 10px; */
  text-align: center;
  vertical-align: top;
  cursor: pointer;
  background: #fff;
  position: relative;
  z-index: 100;
}

.day:has(.orange) .day-number{
  background-color: var(--theme-color) !important;
  color: #fff !important;
}

.day.other {
 color: rgba(255, 255, 255, .3);
}

.day.other .day-number{
  color: #AAAAAA;
}

.day.today {
  color: rgba(156, 202, 235, 1);
}

.day.today .day-number{
  /* background-color: var(--theme-color);
  color: #fff; */
  color: #000;
}

.day-name {
  font-size: 11px;
  text-transform: uppercase;
  color: #000;
  letter-spacing: .7px;
  background-color: #ECECEC;
  border: 1px solid #F6F6F6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-weight: 600;
  display: none;
}
.week:nth-child(1) .day-name{
  display: flex;
}

.day-number {
  font-size: 12px;
  border: 1px solid #F6F6F6;
  /* color: #000; */
  padding: 8px;
  /* font-weight: bold; */
}

.day.day-number{
  color: #000000;
}


.day .day-events {
  list-style: none;
  text-align: center;
  height: 12px;
  line-height: 6px;
  overflow: hidden;
  border: 1px solid #F6F6F6;
  display: none;
}

.day .day-events span {
  vertical-align: top;
  display: inline-block;
  padding: 0;
  margin: 0;
  width: 5px;
  height: 5px;
  line-height: 5px;
  margin: 0 1px;
}

.blue { background: rgba(156, 202, 235, 1); }
.orange { background: rgba(247, 167, 0, 1); }
.green { background: rgba(153, 198, 109, 1); }
.yellow { background: rgba(249, 233, 0, 1); }

.details {
  position: relative;
  width: 100%;
  height: 75px;
  background: var(--light-blue);
  /* margin-top: 5px; */
  border-radius: 4px;
}

.details.in {
  -webkit-animation: moveFromTopFade .5s ease both;
  -moz-animation: moveFromTopFade .5s ease both;
  animation: moveFromTopFade .5s ease both;
}

.details.out {
  -webkit-animation: moveToTopFade .5s ease both;
  -moz-animation: moveToTopFade .5s ease both;
  animation: moveToTopFade .5s ease both;
}

#calendar .arrow {
  position: absolute;
  top: -5px;
  left: 50%;
  margin-left: -2px;
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 5px 5px 5px;
  border-color: transparent transparent rgba(164, 164, 164, 1) transparent;
  transition: all 0.7s ease;
}

#calendar .events {
  height: 75px;
  padding: 7px 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.events.in {
  -webkit-animation: fadeIn .3s ease both;
  -moz-animation: fadeIn .3s ease both;
  animation: fadeIn .3s ease both;
}

.events.in {
  -webkit-animation-delay: .3s;
  -moz-animation-delay: .3s;
  animation-delay: .3s;
}

.details.out .events {
  -webkit-animation: fadeOutShrink .4s ease both;
  -moz-animation: fadeOutShink .4s ease both;
  animation: fadeOutShink .4s ease both;
}

.events.out {
  -webkit-animation: fadeOut .3s ease both;
  -moz-animation: fadeOut .3s ease both;
  animation: fadeOut .3s ease both;
}

.event {
  font-size: 16px;
  line-height: 22px;
  letter-spacing: .5px;
  padding: 2px 16px;
  vertical-align: top;
}

.event.empty {
  color: #212529;
}

.event-category {
  height: 10px;
  width: 10px;
  display: inline-block;
  margin: 6px 0 0;
  vertical-align: top;
}

.event span {
  display: inline-block;
  padding: 0 0 0 7px;
  font-size: 12px;
}

.legend {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30px;
  background: #ECECEC;
  line-height: 30px;

}

.entry {
  position: relative;
  padding: 0 0 0 25px;
  font-size: 13px;
  display: inline-block;
  line-height: 30px;
  background: transparent;
}

.entry:after {
  position: absolute;
  content: '';
  height: 5px;
  width: 5px;
  top: 12px;
  left: 14px;
}

.entry.blue:after { background: rgba(156, 202, 235, 1); }
.entry.orange:after { background: rgba(247, 167, 0, 1); }
.entry.green:after { background: rgba(153, 198, 109, 1); }
.entry.yellow:after { background: rgba(249, 233, 0, 1); }

/* Animations are cool!  */
@-webkit-keyframes moveFromTopFade {
  from { opacity: .3; height:0px; margin-top:0px; -webkit-transform: translateY(-100%); }
}
@-moz-keyframes moveFromTopFade {
  from { height:0px; margin-top:0px; -moz-transform: translateY(-100%); }
}
@keyframes moveFromTopFade {
  from { height:0px; margin-top:0px; transform: translateY(-100%); }
}

@-webkit-keyframes moveToTopFade {
  to { opacity: .3; height:0px; margin-top:0px; opacity: 0.3; -webkit-transform: translateY(-100%); }
}
@-moz-keyframes moveToTopFade {
  to { height:0px; -moz-transform: translateY(-100%); }
}
@keyframes moveToTopFade {
  to { height:0px; transform: translateY(-100%); }
}

@-webkit-keyframes moveToTopFadeMonth {
  to { opacity: 0; -webkit-transform: translateY(-30%) scale(.95); }
}
@-moz-keyframes moveToTopFadeMonth {
  to { opacity: 0; -moz-transform: translateY(-30%); }
}
@keyframes moveToTopFadeMonth {
  to { opacity: 0; -moz-transform: translateY(-30%); }
}

@-webkit-keyframes moveFromTopFadeMonth {
  from { opacity: 0; -webkit-transform: translateY(30%) scale(.95); }
}
@-moz-keyframes moveFromTopFadeMonth {
  from { opacity: 0; -moz-transform: translateY(30%); }
}
@keyframes moveFromTopFadeMonth {
  from { opacity: 0; -moz-transform: translateY(30%); }
}

@-webkit-keyframes moveToBottomFadeMonth {
  to { opacity: 0; -webkit-transform: translateY(30%) scale(.95); }
}
@-moz-keyframes moveToBottomFadeMonth {
  to { opacity: 0; -webkit-transform: translateY(30%); }
}
@keyframes moveToBottomFadeMonth {
  to { opacity: 0; -webkit-transform: translateY(30%); }
}

@-webkit-keyframes moveFromBottomFadeMonth {
  from { opacity: 0; -webkit-transform: translateY(-30%) scale(.95); }
}
@-moz-keyframes moveFromBottomFadeMonth {
  from { opacity: 0; -webkit-transform: translateY(-30%); }
}
@keyframes moveFromBottomFadeMonth {
  from { opacity: 0; -webkit-transform: translateY(-30%); }
}

@-webkit-keyframes fadeIn  {
  from { opacity: 0; }
}
@-moz-keyframes fadeIn  {
  from { opacity: 0; }
}
@keyframes fadeIn  {
  from { opacity: 0; }
}

@-webkit-keyframes fadeOut  {
  to { opacity: 0; }
}
@-moz-keyframes fadeOut  {
  to { opacity: 0; }
}
@keyframes fadeOut  {
  to { opacity: 0; }
}

@-webkit-keyframes fadeOutShink  {
  to { opacity: 0; padding: 0px; height: 0px; }
}
@-moz-keyframes fadeOutShink  {
  to { opacity: 0; padding: 0px; height: 0px; }
}
@keyframes fadeOutShink  {
  to { opacity: 0; padding: 0px; height: 0px; }
}