#calendar-container {
  display: flex;
  flex-direction: column;

  background-color: #fafaff;
  border-radius: 12px;

  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

#loading-text-container {
  text-align: center;
  margin: 170px 0;
}

#top-bar {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;

  padding: 10px;

  font-size: 12pt;
}

#left-button {
  width: 14px;
  height: 25px;

  border: none;
  background-color: transparent;
  outline: none;

  padding: 0;

  cursor: pointer;
}

#left-button img {
  width: 14px;
  height: 25px;
}

#right-button {
  width: 14px;
  height: 25px;

  border: none;
  background-color: transparent;
  outline: none;

  padding: 0;

  cursor: pointer;
}

#right-button img {
  width: 14px;
  height: 25px;
  transform: scale(-1, 1);
}

#month-view {
  min-width: 150px;
  text-align: center;
}

#main-view {
  position: relative;
  display: flex;
  flex-direction: column;

  gap: 5px;
}

#day-headings {
  display: flex;

  flex-direction: row;
  justify-content: space-around;
}

.week-view {
  display: flex;

  flex-direction:row;
  justify-content: space-around;
}

.day-heading {
  width: 40px;
  height: 40px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.day-view {
  width: 40px;
  height: 40px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.day-view.clickable:hover {
  cursor: pointer;
  background-color: #dcdce5;
  border-radius: 10px;
}

.day-view.inactive {
  color: #b8b8cc;
}

.day-view.unavailable {
  background-color: #ffe8e8;
  border-radius: 10px;
  color: #ff4040;
}

.day-view.unavailable.inactive {
  background-color: #f0f0f4;
  color: #b8b8cc;
}

.day-view.today {
  font-weight: bold;
  font-size: 14pt;
}

#weekend-separator {
  position: absolute;
  left: 71%;
  top: 10px;
  bottom: 5px;
  width: 2px;
  background-color: #e2e2e9;
}

#legend {
  display: flex;
  flex-direction: row;

  padding: 10px 15px;
}

#unavailable-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

#unavailable-colour {
  background-color: #ffcccc;

  border-radius: 3px;

  width: 20px;
  height: 20px;
}


@media screen and (max-width: 490px) {
  #top-bar {
    padding: 8px;
    gap: 8px;
    font-size: 9pt;
  }

  #left-button {
    width: 10px;
    height: 19px;
  }

  #left-button img {
    width: 10px;
    height: 19px;
  }

  #right-button {
    width: 10px;
    height: 19px;
  }

  #right-button img {
    width: 10px;
    height: 19px;
  }

  #month-view {
    min-width: 114px;
  }

  #main-view {
    font-size: 9pt;
  }

  .day-heading {
    width: 30px;
    height: 30px;
  }

  .day-view {
    width: 30px;
    height: 30px;
  }

  .day-view.today {
    font-weight: bold;
    font-size: 11pt;
  }

  #unavailable-container {
    font-size: 9pt;
  }

  #unavailable-colour {
    width: 15px;
    height: 15px;
  }
}
