#calendar {
    width: 100%;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
    background: #3c5aa2;
}

#calendar .header {
    height: 50px;
    width: 100%;
    max-width: 100%;
    background: rgb(39 70 150);
    text-align: center;
    position: relative;
    z-index: 100;
}

#calendar .header h1 {
  margin: 0;
  padding: 0;
  font-size: 20px;
  line-height: 50px;
  font-weight: 100;
  letter-spacing: 1px;
  	color: white;
	text-transform: capitalize;
}

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

#calendar .left {
  border-width: 7.5px 10px 7.5px 0;
  border-color: transparent rgba(160, 159, 160, 1) transparent transparent;
  left: 20px;
}

#calendar .right {
  border-width: 7.5px 0 7.5px 10px;
  border-color: transparent transparent transparent rgba(160, 159, 160, 1);
  right: 20px;
}

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

#calendar .month.new {
  -webkit-animation: fadeIn 1s ease-out;
  opacity: 1;
}

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

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

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

#calendar .month.out.prev {
  -webkit-animation: moveToBottomFadeMonth 0.4s ease-in;
  -moz-animation: moveToBottomFadeMonth 0.4s ease-in;
  animation: moveToBottomFadeMonth 0.4s ease-in;
  opacity: 1;
}

#calendar .week {
  background: #3c5aa2;
      box-sizing: border-box;
	      text-align: right;
}

#calendar .week:last-child {
  background: #3c5aa2;
      box-sizing: border-box;
	      text-align: left;
}

#calendar .day {
    display: inline-block;
    width: calc(100% / 7);
    padding: 2%;
    text-align: center;
    vertical-align: top;
    cursor: pointer;
    background: #3c5aa2;
    position: relative;
    z-index: 100;
    box-sizing: border-box;
}

#calendar .day.other {
    opacity: 0;
    visibility: hidden;
	display: none;
}

#calendar .day.today {
  color: rgba(156, 202, 235, 1);
}

#calendar .day-name {
  font-size: 9px;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.7px;
}

#calendar .day-number {
font-size: 1.1rem;
    letter-spacing: 1.5px;
    color: white;
    font-weight: bold;
}

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

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

#calendar .blue {
  background: rgba(156, 202, 235, 1);
}
#calendar .orange {
  background: rgba(247, 167, 0, 1);
}
#calendar .green {
  background: rgba(153, 198, 109, 1);
}
#calendar .yellow {
  background: rgba(249, 233, 0, 1);
}

#calendar .details {
    position: relative;
    width: 100%;
    background: #f6f6f6;
    margin-top: 5px;
    text-align: left;
    border-radius: 0;
    height: 75px;
}



#calendar .details.in {
  -webkit-animation: moveFromTopFade 0.5s ease both;
  -moz-animation: moveFromTopFade 0.5s ease both;
  animation: moveFromTopFade 0.5s ease both;
}

#calendar .details.out {
  -webkit-animation: moveToTopFade 0.5s ease both;
  -moz-animation: moveToTopFade 0.5s ease both;
  animation: moveToTopFade 0.5s ease both;
}

#calendar .arrow {
  position: absolute;
  top: -5px;
  left: 50%;
  margin-left: -2px;
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 5px 5px 5px;
  border-color: transparent transparent rgba(164, 164, 164, 1) transparent;
  transition: all 0.7s ease;
}

#calendar .events {
    overflow-y: auto;
    overflow-x: hidden;
}

#calendar .events.in {
  -webkit-animation: fadeIn 0.3s ease both;
  -moz-animation: fadeIn 0.3s ease both;
  animation: fadeIn 0.3s ease both;
}

#calendar .events.in {
  -webkit-animation-delay: 0.3s;
  -moz-animation-delay: 0.3s;
  animation-delay: 0.3s;
}

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

#calendar .events.out {
  -webkit-animation: fadeOut 0.3s ease both;
  -moz-animation: fadeOut 0.3s ease both;
  animation: fadeOut 0.3s ease both;
}

#calendar .event {
font-size: 0.8rem;
    line-height: 1.5;
    letter-spacing: 0;
    padding: 0.5rem 0.7rem;
    vertical-align: top;
}

.event a {
    color: #3c5aa2;
    font-weight: bold;
}

#calendar .event.empty {
  color: #eee;
  display: none;
}

#calendar .event-category {
height: 0.8rem;
    width: 0.8rem;
    display: inline-block;
    margin: 0.2rem 0.7rem 0 0;
    vertical-align: top;
}

#calendar .event span {
  display: inline-block;
  padding: 0 0 0 7px;
}
/*
#calendar .legend {
    bottom: 0;
    width: 100%;
    background: rgb(255 187 0);
    line-height: 30px;
}*/

#calendar .legend {
    bottom: 0;
    width: 100%;
    background: rgb(240 240 240);
    line-height: 30px;
  /*  position: absolute;*/
    /* top: 3rem; */
    z-index: 999;
    display: table;
}


#calendar .entry {
    position: relative;
    padding: 0 0 0 25px;
    font-size: 12px;
    display: inline-block;
    line-height: 30px;
    background: transparent;
    color: black;
}

span.entry.undefined {
    display: none !important;
}

#calendar .entry:after {
  position: absolute;
  content: "";
  height: 5px;
  width: 5px;
  top: 12px;
  left: 14px;
   background: yellow;
}

#calendar .entry.cat131:after {
  background: rgb(204 27 27);
}
#calendar .entry.cat38:after {
  background: #8bc34a
}
#calendar .entry.cat422:after {
  background: #9c27b0
}
#calendar .entry.cat63:after {
  background: #2196f3
}
#calendar .entry.cat130:after {
  background: #ff5722
}
#calendar .entry.cat129:after {
  background: #03a9f4
}
#calendar .entry.cat377:after {
  background: yellow
}
#calendar .entry.cat433:after {
  background: red
}


[class^="cat"] {
    background: yellow;
}

div[class^='cat'], div[class*=' cat']{
    background: yellow;
}

.cat38 {
  background: #8bc34a !important
}
.cat422 {
  background: #9c27b0 !important
}
.cat63 {
  background: #2196f3 !important
}
.cat130 {
  background: #ff5722 !important
}
.cat129 {
  background: #03a9f4 !important
}
.cat433 {
  background: red !important
}

.cat377 {
  background: yellow !important
}

.entry.cat433, .entry.cat38, .entry.cat422, .entry.cat63, .entry.cat130, .entry.cat129, .entry.cat377 {background: none !important;}




/* Animations are cool!  */
@-webkit-keyframes moveFromTopFade {
  from {
    opacity: 0.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: 0.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(0.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(0.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(0.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(0.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;
  }
}
