#calendar {
  width: 100%;
  display: table;
}

#calendar a {
  color: #8e352e;
  text-decoration: none;
}

#calendar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: table-row;
}

#calendar li {
  display: table-cell;
  /*float: left;*/
  width: 13%;
  padding: 5px;
  box-sizing: border-box;
  border: 1px solid rgba(122, 160, 186, 0.5);
  /*  margin-right: -1px;
  margin-bottom: -1px;*/
}

#calendar ul.weekdays {
  height: 40px;
  background: #7aa0ba;
}

#calendar ul.weekdays li {
  text-align: center;
  text-transform: uppercase;
  line-height: 20px;
  border: none !important;
  padding: 10px 6px;
  color: #fff;
  font-size: 13px;
}

#calendar li.days  {
  /*height: 280px;*/
}

#calendar li.day:hover {
  background: #fcec92;
  /*border: 1px solid black;*/
}

#calendar li.subject {
  background: #86a3b7;
  width: 8%;
  color: white;
  text-align: center;
  vertical-align: middle;
}

#calendar .cweek {
  display: none;
}


/* ============================
                Mobile Responsiveness
   ============================*/

@media(max-width: 768px) {
  #calendar .weekdays,
  #calendar .other-month {
    display: none;
  }
  #calendar li,
  #calendar li.subject {
    display: block;
    height: auto !important;
    border: 1px solid rgba(122, 160, 186, 0.5);
    width: 100%;
    padding: 10px;
    /*margin-bottom: -1px;*/
  }
  #calendar .date {
    float: none;
  }
  #calendar li.cweek, #calendar li.cweek:hover {
    display: block;
    background: #7aa0ba;
    color: white;
  }
}
