*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.page-template-calendar {
  overflow: hidden;
  margin: 0;
  padding: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#calendar {
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  width: 100%;
  height: 100%;
  margin:0 auto;
  padding:0 30px 30px;
}

#calendarForm {
  width: 420px;
  height: 200px;
  overflow: hidden;
  position: absolute;
  left: calc(50% - 420px);
  margin-left:-30px;
  background-color: #15161b;
}

.calendar-content .header {
  height: 59px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 100;
  background: #5d5fef;
  border-radius: 5px 5px 0 0;
}

.calendar-content .header h1 {
  margin: 0;
  padding: 0;
  font-size: 30px;
  line-height: 60px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.week .day {
  width: auto;
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  max-width: 100%;
}
.week .day:not(.unavailable){
  background-color: #5d5fef;
  cursor: pointer;
}
.week .day:not(.unavailable) .day-name,
.week .day:not(.unavailable) .day-number{
  color: #fff;
}
.left,
.right {
  position: absolute;
  width: 0px;
  height: 0px;
  border-style: solid;
  top: 50%;
  margin-top: -7.5px;
  cursor: pointer;
}

.left {
  border-width: 7.5px 10px 7.5px 0;
  border-color: transparent #fff transparent transparent;
  left: 20px;
}

.right {
  border-width: 7.5px 0 7.5px 10px;
  border-color: transparent transparent transparent #fff;
  right: 20px;
}

.month {
  opacity: 0;
  margin-top: 60px;
}

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

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

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

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

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

.week {
  display: flex;
}

.day {
  color: #000;
  display: flex;
  margin: 0.25rem;
  flex-flow: column;
  border-radius: 0.2rem;
  padding: 1rem;
  font-weight: 300;
  font-size: 0.8rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px 0 rgb(31 38 135 / 22%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
}

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

.day.today {
  color: rgb(255, 221, 64);
  border: 1px solid #5d5fef;
  background: #f1f1ff !important;
}

.day.today .day-name{
  color: #5d5fef !important;
}
.day.today .day-number{
  color: #5d5fef !important;
  font-weight: bold;
}

.day-name {
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 0.7px;
  color: #5d5fef;
  font-weight: 700;
}

.day-number {
  font-size: 24px;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.day .day-events {
    list-style: none;
    margin-top: 3px;
    text-align: left;
    line-height: 6px;
    max-height: 64px;
    overflow-y: auto;
}

.day .day-events span {
    vertical-align: middle;
    display: table;
    padding: 0;
    margin: 0;
    line-height: 12px;
    margin: 1px;
    font-weight: 500;
    padding: 2px 4px;
    font-size: 12px;
    border-radius: 2px;
}
.day-events::-webkit-scrollbar {
  width: 1px;
}

/* Track */
.day-events::-webkit-scrollbar-track {
  background: #5d5fef; 
}
 
/* Handle */
.day-events::-webkit-scrollbar-thumb {
  background: #5d5fef; 
}

.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);
}
.red {
  background: rgba(255, 0, 0, 1);
}
.purple {
  background: rgb(128,0,128);
}
.skyblue {
  background: rgb(135 206 235);
}

.arrow {
  position: absolute;
  top: -10px;
  left: 13px !important;
  margin-left: 0;
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 10px 10px 10px;
  border-color: transparent transparent rgb(222 222 255) transparent;
  transition: all 0.7s ease;
  display: none;
}
.day > .details{
  display: none;
}
.day.active > .details {
  display: flex;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  height: 100%;
  width: 100%;
  background: rgb(4 4 4 / 65%);
  box-shadow: 0 6px 20px 0 rgb(31 38 135 / 0%);
  border-radius: 10px;
  border: 1px solid rgb(200 200 255);
  padding: 30px 15px;
  min-width: 100%;
  align-items: center;
  justify-content: center;
}
.day > .details > .events {
  font-size: 14px;
  background: #5d5fef;
  padding: 20px;
  border-radius: 10px;
  border: solid 3px #a4a5ff;
  max-height: 70%;
  overflow: auto;
}
.day > .details > .events .event:not(:last-child) {
    margin: 0 0 10px;
}
.week .day.today.unavailable {
    opacity: 1;
}
.week .day.unavailable {
  /* opacity: 0.3; */
  pointer-events: none;
}
/* Handle on hover */
.day > .details > .events::-webkit-scrollbar-thumb:hover {
  background: #555; 
}
.event {
  font-size: 14px;
  line-height: 19px;
  letter-spacing: 0.5px;
  padding: 2px 11px;
  vertical-align: top;
  display: flex;
  font-weight: 500;
  color: #fff;
}

.event.empty {
  color: #737791;
}

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

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

.legend {
  position: absolute;
  top: 63px;
  width: calc(100% - 60px);
  height: 30px;
  background: #dedeff;
  line-height: 30px;
  padding: 0 10px;
  text-align: center;
}
.day.active {
    position: relative;
}
.entry {
  position: relative;
  padding: 0 0 0 30px;
  font-size: 14px;
  display: inline-block;
  line-height: 30px;
  background: transparent;
}

.entry:after {
  position: absolute;
  content: "";
  height: 10px;
  width: 10px;
  top: 10px;
  left: 10px;
}

.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);
}
.entry.red:after {
  background: rgba(255, 0, 0, 1);
}
.entry.purple:after {
  background: rgb(128,0,128);
}
.entry.skyblue:after {
  background: rgb(135 206 235);
}
/* Animations are cool!  */
@-webkit-keyframes moveFromTopFade {
  from {
    opacity: 0.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: 0.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(0.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(0.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(0.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(0.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;
  }
}

@media(max-width:767px){
  .day {
    padding: 5px;
    margin: 1px;
  }
  #calendar {
    padding: 0 ;
  }
  .day-number {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .calendar-content .header h1 {
    font-size: 20px;
    line-height: 40px;
  }
  .calendar-content .header {
    height: 41px;
  }
  .legend {
    position: absolute;
    top: 42px;
    width: 100%;
    height: auto;
  }
  .month {
    margin-top: 70px;
  }
  .day-name{
    margin-bottom: 2px;
  }
  .main-notification,
  .main-notification .notification{
    width: 100%;
    min-width: 100%;
  }
  .main-notification .notification{
    padding: 15px 70px 15px 15px;
  }
  .day .day-events span {
      line-height: 12px;
      font-size: 10px;
      display: table;
      margin: 0 0 3px;
  }
  .week {
      flex-wrap: wrap;
      gap: 5px;
  }
  .week .day {
    flex-basis: 100%;
  }
  .month.new .week:not(:last-child){
    margin-bottom: 5px;
  }
  .day .day-events {
    list-style: none;
    margin-top: 3px;
    text-align: left;
    line-height: 6px;
    max-height: 40px;
    overflow-y: auto;
    position: absolute;
    width: calc(100% - 40px);
    left: 40px;
    top: 1px;
  }
  .week .day{
    position: relative;
  }
}

@media(max-width:450px){
  .month {
    margin-top: 100px;
  }
}