.elegant-calencar {
  max-width: 900px;
  text-align: center;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 5px;
  -webkit-box-shadow: 0px 19px 27px -20px rgba(0, 0, 0, 0.16);
  -moz-box-shadow: 0px 19px 27px -20px rgba(0, 0, 0, 0.16);
  box-shadow: 0px 19px 27px -20px rgba(0, 0, 0, 0.16);
}


.wrap-header {
  position: relative;
  width: 35%;
  z-index: 0;
  background: #6D28FF;
}

.wrap-header:after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: '';
  background: #150C2D;
  opacity: .5;
  z-index: -1;
}

@media (max-width: 767.98px) {
  .head-day {
    font-size: 48px;
    padding: 10px 0px;
  }
  
  .head-info{
    min-height: 145px;
  }
  .wrap-header {
    width: 100%;
    padding: 20px 0;
  }
}

#today {
  font-weight: 500;
}

.day-inactive {
  opacity: .3;
}

#disabled {
  cursor: default;
  background: #fff;
}

#disabled:hover {
  background: #fff;
  color: #c9c9c9;
}

#disabled:hover:after {
  background: transparent;
}

#reset {
  display: block;
  position: absolute;
  right: 0.5em;
  top: 0.5em;
  z-index: 999;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0 0.5em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 11px;
}

#reset:hover {
  color: #fff;
  border-color: #fff;
}

#reset:active {
  -webkit-transform: scale(0.8);
  -ms-transform: scale(0.8);
  transform: scale(0.8);
}


.pre-button {
  left: 5px;
}

.next-button {
  right: 5px;
}

.button-wrap {
  position: relative;
  padding: 10px 0;
}

.button-wrap .pre-button,
.button-wrap .next-button {
  cursor: pointer;
  width: 1em;
  height: 1em;
  line-height: 1em;
  border-radius: 50%;
  position: absolute;
  top: 0;
  font-size: 18px;
}

.button-wrap .pre-button i,
.button-wrap .next-button i {
  color: #cccccc;
}

.button-wrap .pre-button {
  left: 20px;
}

.button-wrap .next-button {
  right: 20px;
}

.calendar-wrap .current-month {
  margin-top: -15px;
  font-size: 18px;
}

.calendar-wrap .current-hour {
  margin-top: -15px;
  font-size: 18px;
}

.head-info {
  color: #fff;
  font-size: 16px;
  min-height: 230px;
}
.head-info p{
  margin-bottom: 10px;
}

.head-title {
  font-size: 22px;
  font-weight: 400;
  padding-bottom: 30px;
  line-height: 28px;
  color: #fff;
}

.head-day {
  font-size: 9em;
  line-height: 1;
  color: #fff;
}

.head-month {
  font-size: 2em;
  line-height: 1;
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 300;
}

.head-hour {
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 5px 15px;
  display: table;
  margin: 0 auto;
}

.calendar-wrap {
  width: 65%;
  background: #fff;
  padding: 40px 20px 20px 20px;
  min-height: 510px;
}

#calendar th {
  font-weight: 500 !important;
}

@media (max-width: 767.98px) {
  .calendar-wrap {
    width: 100%;
  }
}

#calendar {
  width: 100%;
}

#calendar tr {
  height: 4em;
}

#calendar thead tr {
  color: #150C2D;
  font-weight: 500;
}

#calendar tbody tr {
  color: #150C2D;
}

#calendar tbody td {
  width: 14%;
  border-radius: 50%;
  cursor: pointer;
  -webkit-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
  position: relative;
  z-index: 0;
}

#calendar tbody td:after {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  bottom: 0;
  content: '';
  width: 44px;
  height: 44px;
  margin: 0 auto;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  border-radius: 50%;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  z-index: -1;
}

.hours tbody td:after {
  width: 85% !important;
  border-radius: 0 !important;
  border: 1px solid #150C2D;
}

@media (prefers-reduced-motion: reduce) {
  #calendar tbody td:after {
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
  }
}

#calendar tbody .day-inactive:hover {
  color: #150C2D;
  border: none;
}

#calendar tbody td:hover,
.selected {
  color: #fff;
  border: none;
}

#calendar tbody .day-inactive:hover:after,
#calendar tbody #disabled:hover:after,
.selected:after {
  background: transparent;
  color: #150C2D !important;
}



#calendar tbody td:hover:after,
.selected:after {
  background: #150C2D;
}

#calendar tbody td:active {
  opacity:.5;
}