/* ------------------------------------------
 * IT书包
 * 网址：www.itshubao.com
 * 整理：yinq<3331653644@qq.com> 
 -------------------------------------------- */

* {
  box-sizing: border-box;
}
*::-moz-selection {
  background-color: rgba(230, 126, 34, 0.5);
}
*::selection {
  background-color: rgba(230, 126, 34, 0.5);
}

.cf:before, .cf:after {
  content: " ";
  display: table;
}

.cf:after {
  clear: both;
}

body {
  width: 100vw;
  min-height: 100vh;
  display: block;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  background-image: -webkit-linear-gradient(55deg, #9b59b6 0%, #d35400 100%);
  background-image: linear-gradient(35deg, #9b59b6 0%, #d35400 100%);
  background-repeat: no-repeat;
  background-size: cover;
  color: #5C778C;
  font-family: "Ubuntu";
  font-size: 15px;
}

main {
  width: 100%;
  max-width: 960px;
  margin: auto;
}

.calendar {
  margin: auto;
  margin-top: 15px;
  width: 450px;
  height: 450px;
  padding: 20px;
  display: block;
  position: relative;
  z-index: 2;
  background-color: #e9e9e9;
  border-radius: 4px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.calendar .month {
  width: 100%;
  height: 50px;
  display: block;
  position: relative;
  z-index: 3;
}
.calendar .month h1 {
  margin: 0;
  text-transform: uppercase;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}
.calendar .day-name {
  width: 100%;
  display: block;
}
.calendar .day-name .col {
  color: #aaa;
  font-weight: 600;
  cursor: auto;
}
.calendar .day-number {
  width: 100%;
  height: 75px;
  display: block;
}

.col {
  width: 38px;
  height: 38px;
  float: left;
  margin: 10px;
  font-weight: 500;
  position: relative;
  z-index: 4;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-radius: 50%;
  cursor: pointer;
  -webkit-transition: background-color 0.3s cubic-bezier(0.82, 0.01, 0.77, 0.78), color 0.2s linear, 0.2s box-shadow 0.2s linear;
  transition: background-color 0.3s cubic-bezier(0.82, 0.01, 0.77, 0.78), color 0.2s linear, 0.2s box-shadow 0.2s linear;
}
.col.empty {
  cursor: auto;
}
.col.past {
  color: #bbb;
}
.col.past::before {
  display: block;
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  -webkit-transform: translateY(-45%) translateX(-50%) rotateZ(-45deg);
          transform: translateY(-45%) translateX(-50%) rotateZ(-45deg);
  content: "";
  height: 2px;
  width: 35%;
  border-radius: 2px;
  background-color: #e74c3c;
}
.col.active {
  background-color: #2ecc71;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}
.col.active.past {
  background-color: rgba(243, 156, 18, 0.25);
}