#calendar-wrapper {
  width: 100%;
  /* display: none; */
  box-sizing: border-box;
  font-size: inherit;
  background-color: #fff;
  animation: fade 0.5s ease forwards;
  z-index: 5;
  padding: 0 20px;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
#myCalendarWrapper {
  width: 100%;
  height: 90%;
  background-color: #fff;
  display: none;
}
.container-calendar {
  max-height: 82%;
  width: 100%;
  margin: 0 auto;
  overflow: auto;
  position: absolute;
  display: flex;
  align-items: center;
  flex-direction: column;
  top: 0;
  right: 0;
  background-color: #fff;
  z-index: 3;
  display: none;
  overflow: hidden;
}
@keyframes fill {
  0% {
    width: 0%;
    height: 0%;
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    width: 100%;
    height: 100%;
  }
}
@keyframes empty {
  0% {
    width: 100%;
    height: 100%;
  }
  50% {
    opacity: 0;
  }
  100% {
    width: 0%;
    height: 0%;
    top: 3vh;
    right: 10%;
    opacity: 0;
  }
}
h1 {
  margin-top: 2%;
  font-size: 20px;
  color: #060404;
}
.weekend {
  color: #000;
  font-weight: 500;
  font-size: 1.05em;
  text-shadow: -0.01ex 0 black, 0.01ex 0 black;
}
#r,
.holiday {
  background-color: #e9e9ec !important;
}

h5 {
  font-size: 15px;
  border-bottom: 2px solid #e9e9ec !important;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 5px 5px rgba(117, 116, 116, 0.2),
    0px 0px 5px rgba(117, 116, 116, 0.1);
}
h5:hover {
  box-shadow: 0 5px 5px rgba(117, 116, 116, 0.4),
    0px 0px 5px rgba(117, 116, 116, 0.3);
  transform: scale(1.05);
}

#calendar-wrapper .header {
  font-size: 1.2em;
  box-sizing: inherit;
  text-align: center;
  border-bottom: 0px;
  background-color: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

#calendar-wrapper header h4 {
  padding: 0;
  margin: 0;
  color: #000;
}

#calendar {
  box-sizing: inherit;
  padding: 0;
  margin: 1em 0em 0em 0em;
}

#calendar #calendar-days,
#calendar #calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  box-sizing: inherit;
  margin: 0;
}

#calendar #calendar-days {
  justify-items: center;
  grid-row: 1/2;
  grid-column: 1/2;
  font-size: 1.1em;
  pointer-events: none;
}

#calendar #calendar-grid {
  grid-template-rows: repeat(6, 1fr);
  justify-items: flex-start;
  grid-row: 2/-1;
  grid-column: 1/2;
  width: 100%;
}

#calendar #calendar-grid > time {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0.5em;
  width: 80%;
  background-color: rgba(108, 108, 108, 0.02);
  border-radius: 3px;
  box-sizing: inherit;
  font-size: 1.1em;
  padding: 5px;
}

#calendar #calendar-grid time.selected,
#calendar #calendar-grid time.selected:focus {
  outline: none;
  border-bottom: 2px solid #000;
  border-radius: 3px !important;
  box-sizing: inherit;
  color: #000000;
  border-radius: 0px;
  text-shadow: -0.03ex 0 black, 0.03ex 0 #000;
  box-shadow: none !important;
}

#calendar #calendar-grid time.disabled,
#calendar #calendar-grid time.disabled:focus {
  outline: none;
  border: 2px solid transparent;
  box-sizing: inherit;
  cursor: not-allowed;
  background-color: rgba(30, 39, 51, 0.2);
  box-shadow: 1px 1px rgba(0, 0, 0, 0);
}

#calendar #calendar-grid > *:hover {
  box-sizing: inherit;
  text-shadow: -0.03ex 0 black, 0.03ex 0 black;
}

#calendar-wrapper header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0px 50px;
  border-bottom: none;
}

#calendar-wrapper header button {
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 2em;
  width: 1em;
  margin: 0;
  outline: none;
}

#calendar-wrapper header button:hover {
  opacity: 0.75;
}

#calendar-wrapper header button svg {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 15px;
  display: block;
  box-sizing: inherit;
}

#calendar-wrapper header button:last-of-type {
  transform: rotate(180deg);
}
