.modal-content-date-time ul {
  position: absolute;
  top: 120%;
  left: 0;
  right: 0;
  max-height: 10em;
  width: 100%;
  background: var(--white-color);
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  z-index: 100;
}

.modal-content-date-time ul.closed {
  display: none;
}

.modal-content-date-time ul.opened {
  display: block;
}

.modal-content-date-time ul::-webkit-scrollbar {
  width: 1em;
}

.modal-content-date-time ul::-webkit-scrollbar-thumb {
  background: var(--scroll-color);
  border: 0.4em solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}

.modal-content-date-time ul li {
  cursor: pointer;
  line-height: 1.35;
  color: black;
  padding-left: 20px;
  margin: 0;
}

.modal-content-date-time ul li:first-child {
  padding-top: 15px;
}

.modal-content-date-time ul li:last-child {
  padding-bottom: 15px;
}

.modal-content-date-time ul li:hover {
  color: var(--blue-color);
}

.arrow-down {
  transform: rotate(0deg);
  transition: transform 500ms;
}

.arrow-up {
  transform: rotate(180deg);
  transition: transform 500ms;
}

@media only screen and (max-width: 600px) {
  .modal-content-date-time ul {
    position: fixed;
    top: calc(var(--main-diff)*2);
    left: 0%;
    right: 0;
    max-height: 12rem;
    background: var(--white-color);
    overflow: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    z-index: 100;
  }

  .modal-content-date-time ul li {
    line-height: 3.35;
    padding-left: 0;
    justify-content: center;
    margin: 0;
  }

  .modal-content-date-time ul li:first-child {
    padding-top: 30px;
  }

  .modal-content-date-time ul li:last-child {
    padding-bottom: 30px;
  }
}