
html, body {
	background: white;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.month {
	width: 320px;
	padding: 0px 10px 40px 10px;
	background: #fff;
	position: relative;
	overflow: hidden;
	float: left;
	margin: 5px 5px 5px 5px;
	height: 350px;
}
.month h3 {
	text-align: center;
	margin: -20px -20px 30px -20px;
	padding: 20px 0;
	background: red;
	color: #fff;
}

.day, .dow, .dummy-day {
	display: inline-block;
	width: 12.7864%;
	float: left;
	text-align: center;
	margin-right: 1.5%;
}

.dow {
	font-weight: bold;
	margin-bottom: 5px;
}

.day {
	cursor: pointer;
	box-shadow: inset 0 0 0 1px #eee;
	color: #fff;
    text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
	font-size: 26px;
}
.day.weekend {
	background: #fafaff;
}
.day:hover {
	background: yellow;
}

.day, .dummy-day, .day-mk {
	position: relative;
	height: 40px;
	line-height: 40px;
	margin-bottom: 3.5%;
	background: #fff;
	z-index: 100;
}

.day-mk, .day-hs, .day-ak, .day-ep {
	display:inline;
	position:absolute;
	 /* should be set to -border-width x 2 */
	top:0px;
	left:0px;
	width:0;
	height:0;
	border-style: solid;
	border-width: 20px;
	background-color: transparent;
	z-index: -1;
}

.day-ep {
	border-color: transparent transparent transparent purple; /*border color should be same as div div background color */
}

.day-mk {
	border-color: transparent transparent blue transparent; /*border color should be same as div div background color */
}

.day-hs {
	border-color: transparent red transparent transparent; /*border color should be same as div div background color */
}

.day-ak {
	border-color: green transparent transparent transparent; /*border color should be same as div div background color */
}


.dummy-day {
	background: #f5f5f5;
	font-size: 0px;
	color: #ccc;
}

.legend {
	text-align: center;
}

.legend-ak, .legend-mk, .legend-ep, .legend-hs {
	display: inline-block;
	padding: 3;
	color: #fff;
    text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
	width: fit-content;
}

.legend-ak {
	background-color: green;
}

.legend-mk {
	background-color: blue;
}

.legend-hs {
	background-color: red;
}

.legend-ep {
	background-color: purple;
}

h1 {
	text-align: center;
}