.calendar {
	background: #fff;
	margin: auto;
	max-width: 1300px;
	width: 100%;
}

.calendar .head {
	padding: 16px 0;
}

.calendar .month {
	display: inline-block;
	font-size: 50px;
}

.calendar .month i {
	margin-right: 16px;
}

.calendar .controls {
	float: right;
	font-size: 50px;
	font-weight: bold;
	z-index: 1;
}

.calendar button {
	border:none;
	background: none;
	color: inherit;
	cursor: pointer;
	font-family: Lato;
	font-size: 50px;
	font-weight: bold;
	height: 100%;
	padding: 0 5px;
	margin: 0 4px;
	border-radius: 8px;
	transition: background-color 0.3s;
}

.calendar button:hover {
	background-color: #eeeeee;
}

.calendar .cell {
	background-color: #EEEEEE;
	font-weight: 600;
	box-sizing: border-box;
	display: inline-block;
	padding: 8px;
}

.calendar .day {
	background-color: #000000;
	color: #ffffff;
	font-size: 16px;
	padding: 0;
	line-height: 30px;
	text-align: center;
}

.calendar .today {
	background: #AFDAB9;
}

.calendar .body {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-template-rows: 30px repeat(4, 1fr);
	box-sizing: border-box;
	gap: 10px;
	height: calc(100vh - 270px);
	min-height: 550px;
	background-color: white;
	min-width: 900px;
}

.calendar .event {
	font-weight: normal;
	background-image: url(../img/local_bar.svg);
	background-repeat: no-repeat;
	padding-left: 18px;
	background-size: 16px;
	background-position: 0px 2px;
	margin: 8px 0;
	cursor: pointer;
	transition: color 0.3s;
	color: #444;
}

.calendar .event:hover {
	color: black;
}

.calendar .bodyContainer {
	max-width: 100%;
	overflow-x: auto;
}

@media screen and (max-width: 680px) {
	.calendar .head {
		text-align: center;
	}

	.calendar .month {
		font-size: 8vw;
	}

	.calendar .controls {
		display: block;
		position: fixed;
		background-color: #ffffff;
		bottom: 10px;
		right: 30px;
		box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.1), -4px -4px 4px 0px rgba(0, 0, 0, 0.1);
		line-height: 60px;
		border-radius: 8px;
	}

	.calendar .controls button {
		margin: 0;
		padding: 0 6px;
	}

	.calendar .controls button:first-child {
		margin-right: 8px;
	}

	.calendar .controls button:last-child {
		margin-left: 8px;
	}
}