.calendar {
	padding: 10px;
	text-align: center;
	border: 1px solid rgba(235, 235, 235, 1);
	background: rgba(245, 245, 245, 0.2);
	box-shadow: 0 0 50px 0 rgba(0,0,0,.05);
	font-family: sans-serif;
	user-select: none;
}

.calendar .nav .prev:before {
	content: '\25C0';
	display: block;
	text-align: left;
	padding-left: 10px;
}

.calendar .nav .next:before {
	content: '\25B6';
	display: block;
	text-align: right;
	padding-right: 10px;
}

.calendar .month {
	margin-top: 10px;
	padding: 10px;

	position: relative;
}

.calendar .month:before {
	content: '';
	display: block;
	position: absolute;
	top: 10px; right: 10px;
	bottom: 10px; left: 10px;
	border: 1px solid rgba(235, 235, 235, .4);
	background: rgba(255, 255, 255, 0.4);
}

.calendar .month .name ,
.calendar .month .cols {
	border-bottom: 1px solid rgba(235, 235, 235, .4);
}

.calendar .day .centerfix {
	width: 100%;
	height: 100%;
	display: table;
	position: absolute;
	top: 0; right: 0;
	bottom: 0; left: 0;
}

.calendar .day .content {
	display: table-cell;
	vertical-align: middle;
}

.calendar .day .content:before {
	content: '';
	display: block;
	position: absolute;
	border: 1px solid #eee;

	top: 5px; right: 5px;
	bottom: 5px; left: 5px;
	transition: 200ms ease background;
	z-index: -1;
}

.calendar .padding .content:before {
	border-color: transparent;
}

.calendar .day:hover .content:before ,
.calendar .day.selected .content:before,
.calendar .day.occupied.begin:hover .content:before,
.calendar .day.occupied.end:hover .content:before,
.calendar .day.occupied.selected .content:before,
.calendar .day.inRange .content:before {
	color: white;
	background: rgb(152,236,22);
}

.calendar .day.disabled {
	opacity: 0.3;
}

.calendar .day.padding .content:before,
.calendar .day.disabled .content:before {
	display: none;
}

@media only screen and (max-width: 810px) {
	.calendar {
		font-size: 30px;
		line-height: 2em;
	}

	.calendar .month {
		width: 100%;
	}

	.calendar .days {
		overflow: hidden;
	}

	.calendar .month:last-child {
		display: none;
	}
}

@media only screen and (max-width: 630px) {
	.calendar {
		font-size: 20px;
		line-height: 1.5em;
	}
}

@media only screen and (max-width: 530px) {
	.calendar {
		font-size: 15px;
		line-height: 1.2em;
		padding: 10px 0 0 0;
	}

	.calendar .month {
		padding: 0;
	}

	.calendar .month:before {
		top: 0; right: 0;
		bottom: 0; left: 0;
	}
}

.calendar .day.occupied .content:before {
	background: rgb(236,22,22);
}

.calendar .day.end .content:before {
	background: linear-gradient(135deg, rgba(236,22,22,1) 50%, rgba(236,22,22,0) 50%);
}

.calendar .day.begin .content:before {
	background: linear-gradient(135deg, rgba(236,22,22,0) 50%, rgba(236,22,22,1) 50%);
}

.calendar .day.begin.end .content:before {
	background: rgb(236,22,22);
}

.calendar .day.selected.begin .content:before,
.calendar .day.occupied.begin:hover .content:before {
	background: rgb(152,236,22);
	background: linear-gradient(135deg, rgba(152,236,22,1) 50%, rgba(236,22,22,1) 50%);
}

.calendar .day.selected.end .content:before,
.calendar .day.occupied.end:hover .content:before {
	background: rgb(236,22,22);
	background: linear-gradient(135deg, rgba(236,22,22,1) 50%, rgba(152,236,22,1) 50%);
}

.calendar .day.occupied.end.begin:hover .content:before {
	background: rgba(236,22,22,1);
}

.calendar .day {
	font-weight: bold;
}

.calendar .day.occupied {
	color: #fff;
	text-shadow: 0 0 2px #000;
}

.calendar .day.today .content:before {
	background: rgb(22,51,236);
}

.calendar .day.selected .content:before {
	border-width: 2px;
	border-color: rgb(22,51,236);
}
