/* (B) PERIOD SELECTOR */
#calPeriod input, #calPeriod select {
  padding: 10px;
  font-size: 1.2em;
  border: 0;
  outline: none;
  cursor: pointer;
  width: 10rem;
  max-width: 50%;
  background-color: transparent;
  text-align: center;
}
/* #calmonth { width: 180px; } */
/* #calyear { width: 100px; text-align: center; } */

/* (C) CALENDAR */
#calwrap {
  display: flex;
  flex-wrap: wrap;
}
.calsq {
  box-sizing: border-box;
  width: 14.28%;
  padding: 5px;
}
.calsq.head {
  font-weight: 100;
  text-align: center;
  border-bottom: 1px solid #494949;
  
}

.calsq.blank, .calsq.day {
  /* height: 120px; */
  overflow-y: auto;
  border-bottom: 1px solid #494949;
  text-align: center;
}

.calsq.day.has-events{
  cursor: pointer;
}

.calnum{
  line-height: 50px;
}

.calsq.day.has-events .calnum{
  background-color: #001962;
  color: #00f6d9;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: auto;
}

.day-colors {
  display: flex;
  flex-wrap: wrap;
  margin-top: 4px;
  justify-content: center;
}

.day-color {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  margin: 2px;
}

#calPeriod {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #494949;
  border-top: 1px solid #494949;
}



#eventsContainer{
  margin-top: 42px;
}

.event-content{
  border-bottom: 1px solid;
  margin-bottom: 16px;
}

.calsq.blank { background: rgba(0, 0, 0, 0.05); }
.calsq.today { background: rgba(255, 255, 255, 0.6); }
.calnum { color: #000; }
.calevt {
  height: 20px;
  font-size: 0.8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}
.calninja { display: none; }

/* (D) EVENT FORM */
#calblock {
  position: fixed;
  top: 0; left: 0;
  z-index: 998;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s;
  opacity: 0;
  visibility: hidden;
}
#calblock.show {
  opacity: 1;
  visibility: visible;
}
#calform {
  z-index: 999;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 320px;
  max-width: 400px;
  background: #fafafa;
  border: 1px solid #ccc;
  padding: 10px;
  width: 320px;
}
#calform label, #calform input, #calform textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 5px;
  resize: none;
}
#calform label { margin-top: 10px; }
#calformsave, #calformdel, #calformcx {
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 10px 0 !important;
  margin-top: 10px;
}
#calformsave { background: #5250da; }
#calformdel, #calformcx { background: #a22a2a; }


@media screen and (max-width: 37.5em){
  .calsq.head{
    white-space: nowrap;
  }
  .calsq.day.has-events .calnum{
    width: auto;
    height: auto;
    border-radius: 0;
  }
  .calnum{
    line-height: normal;
  }
}