#calendar {
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  width: 380px;
  margin: 0 auto;
  height: 570px;
  overflow: hidden;
}

.header {
  height: 50px;
  width: 380px;
  background: rgba(216, 216, 216, 1);
  text-align: center;
  position: relative;
  /* z-index: 100; */
  border-radius: 16px 16px 0 0;
  padding: 0;
}

.header h1 {
  margin: 0;
  padding: 0;
  font-size: 20px;
  line-height: 50px;
  font-weight: 700;
  letter-spacing: 1px;
    text-transform: uppercase;
    color: black;
}

.left, .right {
  position: absolute;
  width: 0px;
  height: 0px;
  border-style: solid;
  top: 50%;
  margin-top: -7.5px;
  cursor: pointer;
    color: black;
}

.left {
  border-width: 7.5px 10px 7.5px 0;
  border-color: transparent black transparent transparent;
  left: 20px;
}

.right {
  border-width: 7.5px 0 7.5px 10px;
  border-color: transparent transparent transparent black;
  right: 20px;
}

.month {
  /*overflow: hidden;*/
  opacity: 0;
}

.month.new {
  -webkit-animation: fadeIn 1s ease-out;
  opacity: 1;
  padding-bottom: 16px;
}

.month.in.next {
  -webkit-animation: moveFromTopFadeMonth .6s ease-out;
  -moz-animation: moveFromTopFadeMonth .6s ease-out;
  animation: moveFromTopFadeMonth .6s ease-out;
  opacity: 1;
}

.month.out.next {
  -webkit-animation: moveToTopFadeMonth .6s ease-in;
  -moz-animation: moveToTopFadeMonth .6s ease-in;
  animation: moveToTopFadeMonth .6s ease-in;
  opacity: 1;
}

.month.in.prev {
  -webkit-animation: moveFromBottomFadeMonth .6s ease-out;
  -moz-animation: moveFromBottomFadeMonth .6s ease-out;
  animation: moveFromBottomFadeMonth .6s ease-out;
  opacity: 1;
}

.month.out.prev {
  -webkit-animation: moveToBottomFadeMonth .6s ease-in;
  -moz-animation: moveToBottomFadeMonth .6s ease-in;
  animation: moveToBottomFadeMonth .4s ease-in;
  opacity: 1;
}

.week {
 background: #FFFFFF;
}

.day {
  display: inline-block;
  width: 54px;
  padding: 8px;
  text-align: center;
  vertical-align: top;
  cursor: pointer;
  background: #FFF;
  position: relative;
  z-index: 100;
    border-bottom: 1px solid darkgray;
    color: black;
    font-weight: 100;
}

.day.other {
 color: rgba(128, 128, 128, .3);
    font-weight: 300;
}

.day.today {
  color: #9c1c20;
    font-weight: 500;
}

.day-name {
  font-size: 9px;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: #9c1c20;
  letter-spacing: .7px;
  font-weight: 600;
}

.day-number {
  font-size: 24px;
  letter-spacing: 1.5px;
}


.day .day-events {
  list-style: none;
  margin-top: 3px;
  text-align: center;
  height: 12px;
  line-height: 6px;
  overflow: hidden;
}

.day .day-events span {
  vertical-align: top;
  display: inline-block;
  padding: 0;
  margin: 0;
  width: 5px;
  height: 5px;
  line-height: 5px;
  margin: 0 1px;
}

.entry {
    position: relative;
    padding: 8px;
    font-size: 13px;
    display: inline-block;
    line-height: 30px;
    background: transparent;
    color: black;
    width: calc(100%/7);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.entry:after {
  position: absolute;
  content: '';
  height: 5px;
  width: 5px;
  top: 12px;
  left: 14px;
}

.blue { background: rgba(156, 202, 235, 1); }
.orange { background: rgba(247, 167, 0, 1); }
.green { background: rgba(153, 198, 109, 1); }
.yellow { background: rgba(249, 233, 0, 1); }
.darkblue { background: rgba(0, 33, 125, 1); color: white}
.red { background: #9c1c20; color: white;}
.black { background: rgba(0, 0, 0, 1); color: white}
.brown { background: brown; color: white}
.seagreen { background: lightseagreen; color: white}
.coral { background: coral; color: white}


.gap {
    height: 32px;
    position: absolute;
}
.details {
  position: relative;
  width: 380px;
  height: auto;
  background: white;
  margin-top: 12px;
  border-radius: 16px;
  border: 2px solid #000;
}

.details.in {
  -webkit-animation: moveFromTopFade .5s ease both;
  -moz-animation: moveFromTopFade .5s ease both;
  animation: moveFromTopFade .5s ease both;
}

.details.out {
  -webkit-animation: moveToTopFade .5s ease both;
  -moz-animation: moveToTopFade .5s ease both;
  animation: moveToTopFade .5s ease both;
}

.arrow {
  position: absolute;
  top: -12px;
  left: 50%;
  margin-left: -12px;
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 12px 12px 12px;
  border-color: transparent transparent #9c1c20 transparent;
  transition: all 0.7s ease;
}

.events {
  height: auto;
  padding: 7px 0;
  overflow-y: auto;
  overflow-x: hidden;
    border-radius: 16px;
}

.events.in {
  -webkit-animation: fadeIn .3s ease both;
  -moz-animation: fadeIn .3s ease both;
  animation: fadeIn .3s ease both;
}

.events.in {
  -webkit-animation-delay: .3s;
  -moz-animation-delay: .3s;
  animation-delay: .3s;
}

.details.out .events {
  -webkit-animation: fadeOutShrink .4s ease both;
  -moz-animation: fadeOutShink .4s ease both;
  animation: fadeOutShink .4s ease both;
}

.events.out {
  -webkit-animation: fadeOut .3s ease both;
  -moz-animation: fadeOut .3s ease both;
  animation: fadeOut .3s ease both;
}

.event {
  font-size: 14px;
  line-height: 18px;
  /* letter-spacing: .5px; */
  padding: 2px 4px;
  vertical-align: top;
}

.event.empty {
  color: #eee;
}

.event-category {
  height: 4px;
  width: 4px;
  display: inline-block;
  margin: 6px 0 0;
  vertical-align: top;
}

.event span {
    display: inline-block;
    padding: 0 0 0 7px;
    color: black;
    text-transform: uppercase;
}

.legend {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30px;
  border-top: 1px solid rgba(60, 60, 60, 1);
  line-height: 30px;
  padding-top: 32px;
}


.entry.blue:after { background: rgba(156, 202, 235, 1); }
.entry.orange:after { background: rgba(247, 167, 0, 1); }
.entry.green:after { background: rgba(153, 198, 109, 1); }
.entry.yellow:after { background: rgba(249, 233, 0, 1); }
.entry.darkblue:after { background: rgba(0, 33, 125, 1); color: white}
.entry.red:after { background: #9c1c20; color: white}
.entry.black:after { background: rgba(0, 0, 0, 1); color: white}
.entry.brown:after { background: brown; color: white}
.entry.seagreen:after { background: lightseagreen; color: white}
.entry.coral:after { background: coral; color: white}



/* Animations are cool!  */
@-webkit-keyframes moveFromTopFade {
  from { opacity: .3; height:0px; margin-top:0px; -webkit-transform: translateY(-100%); }
}
@-moz-keyframes moveFromTopFade {
  from { height:0px; margin-top:0px; -moz-transform: translateY(-100%); }
}
@keyframes moveFromTopFade {
  from { height:0px; margin-top:0px; transform: translateY(-100%); }
}

@-webkit-keyframes moveToTopFade {
  to { opacity: .3; height:0px; margin-top:0px; opacity: 0.3; -webkit-transform: translateY(-100%); }
}
@-moz-keyframes moveToTopFade {
  to { height:0px; -moz-transform: translateY(-100%); }
}
@keyframes moveToTopFade {
  to { height:0px; transform: translateY(-100%); }
}

@-webkit-keyframes moveToTopFadeMonth {
  to { opacity: 0; -webkit-transform: translateY(-30%) scale(.95); }
}
@-moz-keyframes moveToTopFadeMonth {
  to { opacity: 0; -moz-transform: translateY(-30%); }
}
@keyframes moveToTopFadeMonth {
  to { opacity: 0; -moz-transform: translateY(-30%); }
}

@-webkit-keyframes moveFromTopFadeMonth {
  from { opacity: 0; -webkit-transform: translateY(30%) scale(.95); }
}
@-moz-keyframes moveFromTopFadeMonth {
  from { opacity: 0; -moz-transform: translateY(30%); }
}
@keyframes moveFromTopFadeMonth {
  from { opacity: 0; -moz-transform: translateY(30%); }
}

@-webkit-keyframes moveToBottomFadeMonth {
  to { opacity: 0; -webkit-transform: translateY(30%) scale(.95); }
}
@-moz-keyframes moveToBottomFadeMonth {
  to { opacity: 0; -webkit-transform: translateY(30%); }
}
@keyframes moveToBottomFadeMonth {
  to { opacity: 0; -webkit-transform: translateY(30%); }
}

@-webkit-keyframes moveFromBottomFadeMonth {
  from { opacity: 0; -webkit-transform: translateY(-30%) scale(.95); }
}
@-moz-keyframes moveFromBottomFadeMonth {
  from { opacity: 0; -webkit-transform: translateY(-30%); }
}
@keyframes moveFromBottomFadeMonth {
  from { opacity: 0; -webkit-transform: translateY(-30%); }
}

@-webkit-keyframes fadeIn  {
  from { opacity: 0; }
}
@-moz-keyframes fadeIn  {
  from { opacity: 0; }
}
@keyframes fadeIn  {
  from { opacity: 0; }
}

@-webkit-keyframes fadeOut  {
  to { opacity: 0; }
}
@-moz-keyframes fadeOut  {
  to { opacity: 0; }
}
@keyframes fadeOut  {
  to { opacity: 0; }
}

@-webkit-keyframes fadeOutShink  {
  to { opacity: 0; padding: 0px; height: 0px; }
}
@-moz-keyframes fadeOutShink  {
  to { opacity: 0; padding: 0px; height: 0px; }
}
@keyframes fadeOutShink  {
  to { opacity: 0; padding: 0px; height: 0px; }
}
