*, *:before, *:after {
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
}



#calendar {
    max-width: 420px;
    margin: 0 auto;
    height: 420px;
    overflow: hidden;
    width: 100%;
}

.header {
  height: 50px;
  width: 420px;
  background: transparent;
  text-align: center;
  position:relative;
  z-index: 100;
}

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



.right {

width: 15px;
    height: 15px;
    background-size: 100%;
    position: absolute;
    right: 20px;
    top: 16px;
}



.left {
width: 15px;
    height: 15px;
    background-size: 100%;
    position: absolute;
    left: 20px;
    top: 16px;
}

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

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

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

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

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

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

.week {
    background: transparent;
    display: flex;
    flex-wrap: wrap;
}

.day {
    display: inline-block;
    width: 14.25%;
    max-width: 60px;
    padding: 10px;
    text-align: center;
    vertical-align: top;
    cursor: pointer;
    background: transparent;
    position: relative;
    z-index: 100;
}

.day.other {
 color: rgba(0, 0, 0, 0.4);
}

.day.today {
  background-color: var(--color-gpsea);
  color: #fff !important;
  height: 50px;
}




.day-name {
    display: none;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: var(--color-gpsea);
}

.day.today  .day-name {
	 color: #fff !important;
}




.month .week:first-child div:nth-child(-n+7) .day-name {
    display: block;
    margin-bottom: 30px;
}



.month .week:first-child .numactive .day-number {
    background-color: #fff;
    border: 1px solid var(--color-gpsea);
    color: var(--color-gpsea) !important;
    padding: 13px;
    width: 60px;
    margin-top: -16px;
    margin-left: -10px;
}

.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: none;
  padding: 0;
  margin: 0;
  width: 5px;
  height: 5px;
    border-radius: 10px;
  line-height: 5px;
  margin: 0 1px;
}

.redgpsea { background: var(--color-gpsea); }


.details {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 5px;
  border-radius: 4px;
}

.details.in {
  -webkit-animation: moveFromTopFade 1s ease both;
  -moz-animation: moveFromTopFade 1s ease both;
  animation: moveFromTopFade 1s 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: -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;
}

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

.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 {
width: 100%;
    display: flex;
    min-height: 121px;
    height: auto;
    margin-bottom: 20px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    background-color: #ffffff;
    position: relative;
    border-radius: 24px 24px 0 24px;
}

.day-events span {
    display: none;
}

.day-events span:first-child {
    display: block;
    margin: 0 auto;
}


.event.empty {
  color: #000000;
    text-align: center;
    height: auto;
    padding: 30px;
    font-size: 20px;
    border-radius: 30px 30px 0 30px;
}



.contentext {
    float: left;
    width: 48%;
    margin-bottom: 10px;
}

.event span {
  display: inline-block;
  padding: 0 0 0 7px;
}


.image-calendar {
float: left;
    border-radius: 24px 0 0 24px !important;
    margin-right: 57px;
    width: 200px;
    display: block;
    height: 100% !important;
    background-color: #f7f7f7;
    background-position: center;
    background-size: cover;
}

.event .linksquare {
	width: 100%;
}

@media (max-width: 768px) {
    .event .linksquare {
        flex-wrap: wrap;
    }

    .image-calendar {
        min-width: calc(100%);
    }
}

.dateformat {
position: absolute;
background-color: #fff;
padding: 10px !important;
border-radius: 50%;
width: 80px;
height: 80px;
text-align: center;
margin-top: 22px;
left: 160px;

}

.clearboth {
    clear: both;
}

.dayfront {
font-size: 47px;
    height: 10px;
    line-height: 1;
    font-weight: bold;
    color: var(--color-gpsea);
    text-align: center;
    padding: 0 !important;
}

.monthfront {
font-size: 15px;
    line-height: 1;
    font-weight: bold;
    color: var(--color-gpsea);
    text-transform: uppercase;
    padding: 0 !important;
}

.exer {
    font-size: 20px;
    line-height: 1.35;
    color: #000;
}

.event .read-more {
        right: 0;
    width: 40px;
    height: 37px;
    position: absolute;
    bottom: 0;
    border-radius: 20px 0 0 0;
    text-align: center;
    padding: 10px;
    background-color: var(--color-gpsea);
    -webkit-transition: all 0.6s;
    -moz-transition: all 0.6s;
    -ms-transition: all 0.6s;
    -o-transition: all 0.6s;
    transition: all 0.6s;
}

.event:hover .read-more {

    height: 100%;
    border-radius: 0px 24px 0 0;
    padding-top: 65px;
    -webkit-transition: all 0.6s;
    -moz-transition: all 0.6s;
    -ms-transition: all 0.6s;
    -o-transition: all 0.6s;
    transition: all 0.6s;
}


.event h4 {

        margin-bottom: 0;
    font-size: 20px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.35;
    padding-top: 20px;
    color: var(--color-gpsea);
    text-transform: uppercase;
}


.legend {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30px;
  background: rgba(60, 60, 60, 1);
  line-height: 30px;

}

.entry {
  position: relative;
  padding: 0 0 0 25px;
  font-size: 13px;
  display: inline-block;
  line-height: 30px;
  background: transparent;
}

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

.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); }

	.contentext h6 {
		color: var(--color-gpsea) !important;
		font-weight: bold;
		font-size: 16px;
		text-transform: uppercase;
	}

.numactive {
    background-color: #fff;
    border:1px solid var(--color-gpsea);
    color: var(--color-gpsea) !important;
    height: 50px;
}

.numactive .redgpsea {
    background-color: #fff !important;
}

.numactive .day-name {
    color: var(--color-gpsea) !important;
}

.month .week:first-child .numactive {
    background-color: transparent !important;
    border: none !important;
    color: var(--color-gpsea) !important;

}

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

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

@-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; }
}

@media (max-width:768px) {
    #calendar {
    width: 360px;
    margin: 0 auto;
    height: auto;
    overflow: hidden;
}
    
    

    
    .details {
    height: auto;
    }
    .header {
    height: 50px;
    width: 360px;
    }
    .day {
    display: inline-block;
    width: 50px;
    }
    .day-name {
    font-size: 18px;
    }
    .day-number {
    font-size: 20px;
    }
.event {
    width: 90%;
    height: auto;
    margin-left: 30px;
}
.image-calendar {
    float: left;
    border-radius: 24px 0 0 0px !important;
    margin-right: 57px;
    width: 100%;
    display: block;
    height: 100px !important;
    }
    
    .contentext {
    float: left;
    width: 80%;
    margin-bottom: 10px;
}
	

.event h4 {
    padding-left: 20px;
    font-size: 20px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.35;
    padding-top: 32px;
}
	.event h6 {
    padding-left: 20px;
}
    .exer {
    margin-top: 0px;
    margin-left: 20px;
    }
    
    .dateformat {
    position: absolute;
    margin-left: -167px;
    background-color: #fff;
    padding: 10px !important;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    text-align: center;
    margin-top: 8px;
}
    
    
}

@media (max-width: 414px) {
#calendar {
    width: 100%;

}
    
    .event {
    width: 100%;
    height: auto;
    margin-left: 0;
}
    .header {
    height: 50px;
    width: 100%;
}
    .day {
    display: inline-block;
    width: 47px;
}
}

@media (max-width : 375px) {
    .day {
    display: inline-block;
    width: 44px;
}
}