.calendar {
  display: inline-block;
  margin: 0 30px;
  vertical-align: top;
}

.cal-header {
  text-align: center;
  font-weight: 600;
  font-size: 1.2em;
  margin: 10px 0;
}

@media (max-width: 900px) {
  div#calendars {
    flex-wrap: wrap;
  }
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 40px);
  gap: 4px;
}

.cal-dayname {
  text-align: center;
  color: #444;
  font-size: 1em;
}

.cal-day {
  height: 40px;
  width: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 6px;
  font-size: 1rem;
}

.cal-day.available {
  background: #d6f5d6;
  color: #222;
}

.cal-day.booked {
  background: #ffc0bd;
  color: #fff;
}

.cal-day.checkin {
  background: linear-gradient(to top left, #ffc0bd 50%, #d6f5d6 50%);
}

.cal-day.checkout {
  background: linear-gradient(to bottom right, #ffc0bd 50%, #d6f5d6 50%);
}
.cal-day.checkin-checkout {
  background: linear-gradient(to bottom right, #ffc0bd 50%, #ffc0bd 50%);
}

.cal-day.past {
  background: #eee !important;
  color: #aaa !important;
  pointer-events: none;
}
.cal-legend{
    width: 100%;
    display: flex;
    padding: 20px 39px;
}
.cal-legend-available{    
    width: 20px;
    height: 20px;
    margin: 2px 8px 8px 15px;
    background: #ddffcc;}
.cal-legend-booked{
    width: 20px;
    height: 20px;
    background: #ffc0bd;
    margin: 2px 8px 8px 15px;
}
.nav-btn {
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  color: #444;
  background: #b1b1b1;
  border-radius: 0.375rem;
  padding: 3px;
  margin: 0 30px;
  transition: color 0.2s;
  display: flex;
    align-items: center;
}
@media (max-width:600px)
{
    .nav-btn{
        margin: 0;
    }
}
button#nextBtn {
    position: absolute;
    bottom: -50px;
    right: 25px;
}
button#prevBtn {
    left: 25px;
    position: absolute;
    bottom: -50px;
}

.nav-btn:disabled {
  background-color: #e4e4e4;
  cursor: not-allowed;
}

.nav-btn:hover:not(:disabled) {
  color: #000;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  position: relative;
}
