#appointment {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
  min-height: 100vh;
  max-width: 1400px;
}

#means div {
  margin: 70px auto;
}

#means * {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #254E70;
}

/* ICONS */
#means i {
  font-size: 30px;
}

#scroll-notice {
  position: absolute;
  bottom: 0;
  margin-bottom: 2vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #254E70;
  animation: floating 3s infinite;
}

#exceptionnal {
  width: 90%;
  max-width: 300px;
  min-width: 260px;
  text-align: justify;
}
#exceptionnal * {
  color: red;
}

#modify {
  padding: 10px 18px;
  background: #C13874;
  color: white;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
}

/* ==== CENTER THE SCHEDULE IN THE PAGE ==== */
#schedule {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
}

#schedule input[type='submit'] {
  padding: 10px 18px;
  font-size: 15px;
  border-radius: 10px;
  background: #C13874;
  color: white;
}

/* Hide the mobile_schedule for desktop version */

#mobile {
display: none;
}

/* ==== GENERAL STYLE OF THE SCHEDULE ==== */
#desktop {
  /* display: flex;
  justify-content: center;
  flex-direction: column; schedule is divided into a top and bottom part */
  width: 70%;
  max-width: 900px;
  min-width: 300px;
  border-radius: 10px;
  padding: 25px;
  margin: 7vh auto;
}

/* ==== STYLING OF THE TOP PART ==== */
.top_schedule {
  display: flex;
  flex-direction: row;
  color: #254E70;
  width: 105%;
}

.top_schedule div {
  width: 70%; /* width of each timestamp cell */
  text-align: center;
}

.exception_timeline {
  padding-left: 20px;
}

#schedule_padding_fix {
  width: 70%; /* width of the empty top-left corner cell */
}

/* ==== STYLING OF THE BOTTOM PART ==== */
#bottom_schedule { /* bottom part is divided into 2 other parts:
                  the name of each day & the opening hours */
  width: 100%;
}

/* ==== STYLING OF THE DAYS DIVISION ==== */
#bottom_schedule > div {
  display: flex;
  flex-direction: row;
  margin: 10px 0;
  font-size: 14px;
  height: 60px;
}

#bottom_schedule > div > span {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #254E70;
  font-size: 15px;
  font-weight: 500;
  width: 55px;
}
.morning {
  width: 40%;
  margin-left: 4%;
  margin-right: 4%;
}
.afternoon {
  width: 44%;
  margin-left: 4%;
  margin-right: 0%;
}
.display_schedule {
  display: flex;
  height: 75%;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  color: white;
  background: rgba(65, 160, 65, 0.7);
  padding-left: 15px;
  padding-right: 15px;
}
.display_schedule input {
  width: 21px;
  background: rgba(65, 160, 65, 0.7);
  color: white;
  font-weight: 400;
}
.scheduleTime {
  display: flex;
}
.scheduleTime p {
  margin: auto;
  margin-left: 2px;
  margin-right: 2px;
}

.inputContainer {
  flex-direction: column;
  display: flex;
}

.arrow {
  width: 1px;
  height: 1px;
  border: solid white;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  margin: auto;
}
.arrow:hover {
  cursor: pointer;
}
.arrow:active {
  box-shadow: 1px 1px #888888;
}
.arrow.up {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}
.arrow.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.closeOption {
  display: none;
  font-weight: 400;
  color: grey;
}
.closeOption.translatedToLeft {
  position: absolute;
  background-color: grey;
  color: white;
  border-radius: 30px 0px 0px 30px;
  padding: 3px 10px;
}
.closeOption.translatedToRight {
  position: absolute;
  background-color: grey;
  color: white;
  border-radius: 0px 10px 10px 0px;
  padding: 3px 10px;
}


.closed { /* styling of closed cabinet (important because on the same level
          as the other divisions) */
  /*justify-content: center !important;*/
  background: none !important;
  color: white !important;
  font-weight: 400;
  background: rgba(255, 142, 142, 0.7) !important;
}
.closed input{
  background: rgba(255, 142, 142, 0.7) !important;
}

.closedText {
  justify-content: center;
  margin: auto;
}

#scheduleUpdateButton {
  text-decoration: none;
  padding: 16px 12px;
  margin: 30px 5px;
  border-radius: 10px;
  font-weight: 400;
  font-size: 17px;
  width: 60%;
  min-width: 120px;
  max-width: 250px;
  transition: background-color 0.2s;
  margin-left: auto;
  margin-right: auto;
  border: 1px grey solid;
}

#scheduleUpdateButton:hover {
  background-color: rgba(0, 153, 51, 0.2);
  transition: background-color 0.3s;
  cursor: pointer;
}

@media screen and (max-width: 760px) {
  #appointment {
    min-height: auto;
  }

  #desktop {
    display: none;
  }

  #mobile {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin: 50px 0px;
  }

  #mobile > div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 2px 10px;
    width: 300px;
    border-radius: 10px;
  }

  #mobile > div > div {
    display: flex;
    flex-direction: row;
  }

  .mobile > div {
    display: inline-flex;
  }

  .time_mobile {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .time_mobile > div {
    margin: 1px;
  }

  .half_day {
    width: 100px;
    border-radius: 10px;
    justify-content: center;
  }

  .opened_mobile {
    background: rgba(65, 160, 65, 0.7);
    color: white;
    font-weight: 400;
    padding: 15px 0;
  }

  .closed_mobile {
    background: rgba(255, 142, 142, 0.8);
    color: white;
    font-weight: 400;
    justify-content: center;
    padding: 24px 0;
  }
}

@media screen and (max-width: 1234px) {
  #scroll-notice {
    display: none;
  }
  
  #appointment {
    flex-direction: column;
    margin-top: 70px;
    justify-content: flex-start;
  }
}