.cal_title {
	font-size: 1.6rem;
}

.cal_empty {
	visibility: hidden;

}

#cal_wrapper {
	background-color: rgba(0,0,0,0.4);
    padding: 1rem;
    border-radius: 0.5rem;
}

#cal_wrapper > table {
	width: 100%;
	color: #FFFFFF;
}

#cal_wrapper > table,
#cal_wrapper > table > tbody,
#cal_wrapper > table > tbody td {
	display: block;
}

#cal_wrapper > table > tbody > tr {
	display: flex;
	flex-wrap: wrap;
}

#cal_wrapper > table > tbody > tr > td {
	width: 100%;
}

#cal_wrapper > table > tbody > tr:first-child > td:first-child {
	order: 2;
}

#cal_wrapper > table > tbody > tr:first-child > td:last-child {
	order: 1;
}

#key_wrapper {
	text-align: left;
	margin-right: 0.5rem;
}

#key > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

#key > ul > li {
	width: 9rem;
}

#key > ul > li:before {
	content: "";
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border: 0.1rem solid #FFFFFF;
	margin-right: 1rem;
}

#key > ul > li.booked_pm:before,
#key > ul > li.booked:before,
#key > ul > li.booked_am:before {
	background-color: #ff8080;
}

#key > ul > li.booked_pr:before {
	background-color: #ff9f80;
	border-radius: 50%;
}

#key > ul > li.booked_pm:before {
	border-top-left-radius: 50%;
	border-bottom-left-radius: 50%;
}

#key > ul > li.booked_am:before {
	border-top-right-radius: 50%;
	border-bottom-right-radius: 50%;
}

#the_months {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
}

#the_months .cal_month {
	width: 32%;
	margin: 1rem 0;
	border: 0.1rem solid #FFF;
	border-radius: 0.5rem;
	padding: 0.5rem;
}

#the_months .cal_month ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	font-size: 1.2rem;
}

#the_months .cal_month ul > li {
	width: calc(100% / 7 - 0.01px);
	height: 2rem;
	text-align: center;
	display: flex;
	margin: 0.2rem 0;
	align-items: center;
	justify-content: center;
	position: relative;
}

#the_months .cal_month ul.cal_weekday > li {
	font-weight: 700;
	color: #80DFFF;
	border: 0.2rem solid #FFF;
	border-radius: 50%;
}

#the_months .cal_month ul.cal_weekday > li {
	width: 2rem;
	height: 2rem;
	margin: 0.2rem calc((100%/7 - 2rem) / 2 - 0.01px);
	text-align: center;
}

#the_months .cal_month ul > li.today:before {
	content: "";
	position: absolute;
	top: -0.2rem;
	left: -0.2rem;
	width: 100%;
	height: 2rem;
	border: 0.2rem solid #FFF;
	box-shadow: 0 0 2px #FFF;
	z-index: 1;
}

#the_months .cal_month ul > li.booked_pr {
	background-color: #ff9f80;
	border-radius: 50%;
	width: 2rem;
	margin: 0.2rem calc((100%/7 - 2rem) / 2 - 0.01px);
	border: 0.1rem solid #FFF;
}

#the_months .cal_month ul > li.booked,
#the_months .cal_month ul > li.booked_pm,
#the_months .cal_month ul > li.booked_am {
	background-color: #ff8080;
}

#the_months .cal_month ul > li.booked_pm {
	border-top-left-radius: 1rem;
	border-bottom-left-radius: 1rem;
}

#the_months .cal_month ul > li.booked_am {
	border-top-right-radius: 1rem;
	border-bottom-right-radius: 1rem;
}

#cal_controls {
	display: flex;
	width: 100%;
	justify-content: flex-end;
}

#cal_prev,
#cal_next {
	border: 0.2rem solid #FFF;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
	fill: #80DFFF;
	display: inline-block;
}

#cal_prev > svg,
#cal_next > svg {
	width: 70%;
	margin: 50%;
}

#cal_prev > svg {
	transform: translate(-50%, -50%);
}

#cal_next > svg {
	transform: rotate(-180deg) translate(50%, 50%);
}

@media (max-width: 100rem) {
	#the_months .cal_month {
		width: 49%;
		max-width: 25rem;
	}
}

@media (max-width: 75rem) {
	#the_months .cal_month {
		width: 100%;
		max-width: 25rem;
	}
}

@media (max-width: 719px) {
	#cal_wrapper > table > tbody > tr > td:last-child {
		width: 100%;
	}

	#key_wrapper {
		margin-right: 0;
	}

	#the_months .cal_month {
		width: 100%;
	}
}