@keyframes "slide-up" {
  0% {
    transform: translate(-50%, 100%);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

.dp-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.75);
}

.dp-modal .dp {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 600px;
  width: calc(100% - 4em);
  transform: translate(-50%, -50%);
  animation: slide-up 0.3s forwards;
}

.dp {
  position: relative;
  background: #FFF;
  box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.25);
  line-height: 1.4;
  border-radius: 4px;
  z-index: 1000;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.dp-permanent {
  position: relative;
  font-size: 0.8em;
  width: 360px;
  max-width: 100vw;
}

.dp-permanent .dp {
  padding-top: 0;
  border: 1px solid #EEE;
  box-shadow: none;
  z-index: 0;
}

.dp-permanent .dp:before {
  display: none;
}

.dp-permanent .dp-close {
  display: none;
}

.dp-permanent .dp-clear {
  display: none;
}

.dp-cal {
  min-height: 300px;
}

.dp-below {
  position: absolute;
  font-size: 0.8em;
  width: 360px;
  max-width: 100vw;
}

.dp-months {
  padding: 24px;
}

.dp-months .dp-month {
  text-align: center;
  text-decoration: none;
  position: relative;
  color: #3B404D;
  border-radius: 2px;
  border: 0;
  background: transparent;
  width: 33%;
  display: inline-block;
  padding: 8px;
}

.dp-months .dp-month:hover {
  outline: none;
  background: #75BCFC;
  color: white;
}

.dp-years {
  padding: 8px 0;
  max-height: 360px;
  overflow: auto !important;
}

.dp-years .dp-year {
  text-align: center;
  text-decoration: none;
  position: relative;
  color: #3B404D;
  border-radius: 2px;
  border: 0;
  background: transparent;
  display: block;
  padding: 8px 40px;
  width: 100%;
}

.dp-years .dp-year:hover {
  outline: none;
  background: #75BCFC;
  color: white;
}

.dp-cal-month {
  text-align: center;
  text-decoration: none;
  position: relative;
  color: #3B404D;
  border-radius: 2px;
  border: 0;
  background: transparent;
  display: inline-block;
  font-size: 1.4em;
  padding: 2px 8px;
  outline: none;
  margin: 0 2px;
}

.dp-cal-year {
  text-align: center;
  text-decoration: none;
  position: relative;
  color: #3B404D;
  border-radius: 2px;
  border: 0;
  background: transparent;
  display: inline-block;
  font-size: 1.4em;
  padding: 2px 8px;
  outline: none;
  margin: 0 2px;
}

.dp-day {
  text-align: center;
  text-decoration: none;
  position: relative;
  color: #3B404D;
  border-radius: 2px;
  border: 0;
  background: transparent;
  width: 14.28571%;
  display: inline-block;
  padding: 3px;
  text-align: center;
}

.dp-day:hover {
  outline: none;
  background: #75BCFC;
  color: white;
}

.dp-cal-header {
  position: relative;
  text-align: center;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.dp-cal-header [type="button"]:hover {
  background: #75BCFC;
  color: white;
}

.dp-next {
  position: absolute;
  width: 30px;
  height: 30px;
  overflow: hidden;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  border-radius: 2px;
  border: 0;
  background: transparent;
  right: 24px;
}

.dp-next:before {
  content: '';
  border: 2px solid;
  width: 10px;
  height: 10px;
  display: inline-block;
  transform: rotate(-45deg);
  transition: border-color 0.2s;
  margin: 9px 0 40px 4px;
  border-left: 0;
  border-top: 0;
  margin-left: 0;
  margin-right: 4px;
}

.dp-prev {
  position: absolute;
  width: 30px;
  height: 30px;
  overflow: hidden;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  border-radius: 2px;
  border: 0;
  background: transparent;
  left: 24px;
}

.dp-prev:before {
  content: '';
  border: 2px solid;
  width: 10px;
  height: 10px;
  display: inline-block;
  transform: rotate(-45deg);
  transition: border-color 0.2s;
  margin: 9px 0 40px 4px;
  border-right: 0;
  border-bottom: 0;
}

.dp-day-today:after {
  content: '';
  height: 0;
  width: 0;
  border: 7px solid #227BD7;
  border-bottom-color: transparent;
  border-left-color: transparent;
  position: absolute;
  top: 0;
  right: 0;
}

.dp-cal-footer {
  text-align: center;
  background: #f5f5f5;
  display: flex;
  justify-content: space-between;
}

.dp-cal-footer [type="button"] {
  flex-grow: 1;
  border: 0;
  height: 40px;
}

.dp-cal-footer [type="button"]:hover {
  background: #75BCFC;
  color: white;
}

.dp-col-header {
  width: 14.28571429%;
  display: inline-block;
  padding: 8px;
  text-align: center;
  color: #AAA;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 0.8em;
  padding: 8px 0;
}

.dp-edge-day {
  color: #AAA;
}

.dp-current {
  outline: none;
  background: #75BCFC;
  color: white;
}

.dp-selected {
  background: #3B99FC;
  color: #FFF;
}

.dp-selected:hover {
  background: #3B99FC;
  color: #FFF;
}

.dp-day-disabled {
  background: transparent;
  color: #DDD;
}

.dp-day-disabled:hover {
  background: #DDD;
}

.dp-focuser {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
}

@media (max-width: 480px) {
  .dp-modal .dp {
    font-size: 0.9em;
    width: auto;
    width: 100%;
  }
  .dp-day-of-week {
    padding: 8px;
  }
  .dp-day {
    padding: 8px;
  }
}

@media (max-height: 480px) {
  .dp-modal .dp {
    font-size: 0.9em;
    width: auto;
    width: 100%;
  }
  .dp-day-of-week {
    padding: 8px;
  }
  .dp-day {
    padding: 8px;
  }
}
