
.calendar {
	position: relative;
}
.calendar:before {
    content: "";
    display: block;
    padding-top: 77%; /* 1:0.77 */
}


#calendar {
	position: absolute;
	top: 70px;
	bottom: 5px;
	width: 100%;
	height: auto;
	box-sizing: border-box;
}
.custom-month-year {
	position: absolute;
	top: 0;
	width: 100%;
}
.custom-month-year p {
	float: left;
	margin: 0 0 5px;
	line-height: 1.1;
	font-size: 25px;
}

.custom-month-year nav {
	float: right;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.custom-month-year nav span {
	cursor: pointer;
	position: relative;
	float: left;
	background: rgba(0,0,0,0.5);
	width: 30px;
	height: 30px;
	border-radius: 0 3px 3px 0;
	margin: 0 1px;
	font-size: 20px;
	box-sizing: border-box;
}
.custom-month-year nav span:first-child {
	border-radius: 3px 0 0 3px;
}
.custom-month-year nav span:hover {
	background: rgba(0,0,0,0.8);
}
.custom-month-year span:before {
	display: inline-block;
	text-align: center;
	width: 100%;
	color: #fff;
}
.custom-month-year nav span.custom-prev:before {
	content: '<';
	display: block;
	font-size: 12px;
	font-weight: bold;
	line-height: 30px;
}
.custom-month-year nav span.custom-next:before {
	content: '>';
	display: block;
	font-size: 12px;
	font-weight: bold;
	line-height: 30px;
}
.custom-month-year nav span:last-child {
	margin-left: 10px;
	border-radius: 3px;
}
.custom-month-year nav span.custom-current:before {
	content: '||';
	display: block;
	font-size: 14px;
	font-weight: bold;
	line-height: 30px;
}

.fc-calendar {
	position: absolute;
	top: 0;
	bottom: 10px;
	left: 0;
	right: 0;
	width: auto;
	height: auto;
	box-sizing: border-box;
}
.fc-calendar .fc-head {
	background: #eee;
	height: 30px;
	line-height: 30px;
	box-sizing: border-box;
	border-bottom: 1px solid #ccc;
}
.fc-calendar .fc-head > div {
	box-shadow: -1px 0 0 rgba(0, 0, 0, 0.2);
}
.fc-calendar .fc-head > div:first-child {
	box-shadow: none;
}

.fc-calendar .fc-body {
	position: relative;
	width: 100%;
	height: 100%;
	height: -moz-calc(100% - 5px);
	height: -webkit-calc(100% - 5px);
	height: calc(100% - 5px);
	box-sizing: border-box;
}

.fc-calendar .fc-row {
	width: 100%;
	border-bottom: 1px solid #ccc;
	box-sizing: border-box;
}
.fc-calendar .fc-row:last-child {
	border-bottom: none;
}
.fc-four-rows .fc-row,
.fc-five-rows .fc-row,
.fc-six-rows .fc-row {
	height: calc(100% / 6.5);
}

.fc-calendar .fc-row > div,
.fc-calendar .fc-head > div {
	float: left;
	height: 100%;
	width: -moz-calc( 100% / 7 );
	width: -webkit-calc( 100% / 7 );
	width: calc( 100% / 7 );
	width:  14.28%; /* 100% / 7 */
	position: relative;
	box-sizing: border-box;
}

/* IE 9 is rounding up the calc it seems */
.ie9 .fc-calendar .fc-row > div,
.ie9 .fc-calendar .fc-head > div {
	width:  14.2%;
}

.fc-calendar .fc-row > div {
	border-right: 1px solid #ddd;
	padding: 4px 2px;
	overflow: hidden;
	position: relative;
}
.fc-calendar .fc-head > div {
	text-align: center;
	text-transform: uppercase;
	font-size: 14px;
}


.fc-calendar .fc-row > div > span.fc-date {
	position: absolute;
	top: 7px;
	left: 7px;
	line-height: 20px;
	font-size: 20px;
}

.fc-calendar .fc-row > div > span.fc-weekday {
	padding-left: 5px;
	display: none;
}

.fc-calendar .fc-row > div.fc-today {
	background: #eee;
}

.fc-calendar .fc-row > div.fc-out {
	opacity: 0.6;
}

.fc-calendar .fc-row > div:last-child,
.fc-calendar .fc-head > div:last-child {
	border-right: none;
}

.fc-calendar .fc-row:last-child {
	border-bottom: none;
}
.fc-calendar .fc-row > div {
	box-shadow: -1px 0 0 rgba(0, 0, 0, 0.2);
	background: rgba(255,255,255,0.8);
	border: none;
}
.fc-calendar .fc-row > div:first-child{
	box-shadow: none;
}
.fc-calendar .fc-row > div.fc-today:after {
	z-index: -1;
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.2;
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(255, 255, 255, 0.15)), to(rgba(0, 0, 0, 0.25))), -webkit-gradient(linear, left top, right bottom, color-stop(0, rgba(255, 255, 255, 0)), color-stop(0.5, rgba(255, 255, 255, .15)), color-stop(0.501, rgba(255, 255, 255, 0)), color-stop(1, rgba(255, 255, 255, 0)));
	background: -moz-linear-gradient(top, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.25)), -moz-linear-gradient(left top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0));
	background: -o-linear-gradient(top, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.25)), -o-llinear-gradient(left top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0));
	background: -ms-linear-gradient(top, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.25)), -ms-linear-gradient(left top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0));
	background: linear-gradient(top, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.25)), linear-gradient(left top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0));
}

.fc-calendar .fc-row > div > div {
	margin-top: 35px;
	font-size: 16px;
}

.fc-calendar .fc-row > div > div a,
.fc-calendar .fc-row > div > div span {
	display: block;
	overflow: hidden;
	background: #999;
	max-width: 100%;
	margin-bottom: 2px;
	padding: 5px;
	text-overflow: ellipsis;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	font-size: 13px;
	color: #fff;
}

.fc-calendar .fc-row > div > div a.oc,
.fc-calendar .fc-row > div > div span.oc {
	background: #e07510;
}
.calendar .legend .oc::before,
.calendar .legend .tr::before,
.calendar .legend .ex::before,
.calendar .legend .gl::before,
.calendar .legend .lt::before,
.calendar .legend .ln::before,
.calendar .legend .on::before {
	content: "";
	display: inline-block;
	background: #e07510;
	width: 2em;
	height: 1.5em;
	box-sizing: border-box;
	padding: 2px;
	margin: 0 3px 0 0;
	vertical-align: text-bottom;
	text-align: center;
	font-size: 10px;
	color: #fff;
}
.fc-calendar .fc-row > div > div a.tr,
.fc-calendar .fc-row > div > div span.tr {
	background: #111739;
}
.calendar .legend .tr::before {
	content: "";
	background: #111739;
}
.fc-calendar .fc-row > div > div a.gl,
.fc-calendar .fc-row > div > div span.gl {
	background: #f2798f;
}
.calendar .legend .gl::before {
	content: "";
	background: #f2798f;
}
.fc-calendar .fc-row > div > div a.ex,
.fc-calendar .fc-row > div > div span.ex {
	background: #3c50c0;
}
.calendar .legend .ex::before {
	content: "";
	background: #3c50c0;
}
.fc-calendar .fc-row > div > div a.lt,
.fc-calendar .fc-row > div > div span.lt {
	background: #2eaf68;
}
.calendar .legend .lt::before {
	content: "";
	background: #2eaf68;
}
.fc-calendar .fc-row > div > div a.ln,
.fc-calendar .fc-row > div > div span.ln {
	background: #84d675;
}
.calendar .legend .ln::before {
	content: "";
	background: #84d675;
}
.fc-calendar .fc-row > div > div a.on,
.fc-calendar .fc-row > div > div span.on {
	background: #5EA1F9;
}
.calendar .legend .on::before {
	content: "";
	background: #5EA1F9;
}
.fc-calendar .fc-row > div > div a.cancel,
.fc-calendar .fc-row > div > div span.cancel {
	background: #eee;
	font-weight: bold;
	color: #DC4D40;
}
.calendar .legend {
	clear: both;
	overflow: hidden;
	font-size: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.calendar .legend li {
	float: left;
	margin: 0 15px 0 0;
}

.fc-calendar .fc-row > div > div a:hover {
	opacity: 0.8;
	text-decoration: none;
}

.home .calendar:before {
	padding-top: 115%;
}
.home #calendar {
	top: 80px;
}
.home .custom-month-year p {
	font-size: 22px;
}
.home .calendar .legend {
	font-size: 15px;
}
.home .fc-calendar .fc-row > div > span.fc-date {
	top: 5px;
	left: 5px;
	line-height: 13px;
	font-size: 13px;
}
.home .fc-calendar .fc-row > div > div {
	margin-top: 15px;
	font-size: 12px;
}
.home .fc-calendar .fc-row > div > span.fc-date {
    top: 4px;
    left: 5px;
    line-height: 13px;
    font-size: 13px;
}
.home .fc-calendar .fc-row > div > div a,
.home .fc-calendar .fc-row > div > div span {
	padding: 2px;
	text-align: left;
	 line-height: 1;
	font-size: 10px;
}

@media screen and (max-width: 1095px) {
	.calendar:before,
	.home .calendar:before {
		padding-top: 100%;
	}
	.fc-calendar {
		bottom: 30px;
	}
}
@media screen and (max-width: 769px) {
	.calendar:before,
	.home .calendar:before {
		padding-top: 90%;
	}
	.fc-calendar {
		bottom: 40px;
	}
	#calendar,
	.custom-month-year {
		width: 100%;
	}
	.home #calendar,
	.home .custom-month-year {
		width: -moz-calc(100% - 20px);
		width: -webkit-calc(100% - 20px);
		width: calc(100% - 20px);
	}
	.fc-calendar .fc-head {
		height: 20px;
		line-height: 20px;
		font-size: 12px;
	}
	.fc-calendar .fc-body {
		height: 100%;
		height: -moz-calc(100% + 20px);
		height: -webkit-calc(100% + 20px);
		height: calc(100% + 70px);
	}
	.fc-calendar .fc-row > div > div {
		margin-top: 25px;
		font-size: 11px;
	}
	.fc-calendar .fc-row > div > div a,
	.fc-calendar .fc-row > div > div span {
		margin-bottom: 3px;
		padding: 2px;
		text-align: left;
		line-height: 1;
		font-size: 10px;
	}
	.calendar .legend {
		margin-bottom: 5px;
		font-size: 15px;
		color: #000;
	}
}
@media screen and (max-width: 560px) {
	.calendar:before,
	.home .calendar:before {
		padding-top: 100%;
	}
	#calendar,
	.home #calendar {
		top: 90px;
	}
	.calendar .legend li {
		line-height: 1.3;
	}
	.calendar .legend li:nth-child(3) {
		clear: both;
	}
	.fc-calendar .fc-row > div > span.fc-date {
		line-height: 10px;
		font-size: 10px;
	}
	.fc-calendar .fc-row > div > div {
		margin-top: 15px;
	}
}
@media screen and (max-width: 480px) {
	.calendar:before,
	.home .calendar:before {
		padding-top: 100%;
		padding-top: -moz-calc(100% + 70%);
		padding-top: -webkit-calc(100% + 70%);
		padding-top: calc(100% + 70%);
	}
	#calendar,
	.home #calendar {
		top: 110px;
	}
	.fc-calendar .fc-head > div {
		font-size: 10px;
	}
	.fc-calendar .fc-row > div > div {
		font-size: 10px;
	}
}
