:root {
	--square-size: 10px;
	--square-gap: 4px;
	--week-width: calc(var(--square-size) + var(--square-gap));
}

.months {
	grid-area: months;
}

.days {
	grid-area: days;
}

.squares {
	grid-area: squares;
}

.graph {
	display: inline-grid;
	grid-template-areas: "empty months"
		"days squares";
	grid-template-columns: auto 1fr;
	grid-gap: 10px;	
}

.rotate {
	transform: rotate(180deg);
	writing-mode: vertical-rl;
	text-orientation: mixed;
	font-size: 14px;
	font-family: Arial, Helvetica, sans-serif;
}

.months {
	display: grid;
	grid-template-columns: repeat(18, calc(var(--week-width) * 4));
}

.days {
	display: grid;	
	/* grid-gap: var(--week-width); */
	grid-template-rows: repeat(6, calc(var(--week-width)*5));
	align-items: end;
	font-size: 14px;	
	font-family: Arial, Helvetica, sans-serif;
}

.days1 {
	padding-bottom: 4px; 
	float: left;
	/* align-content: center;
	vertical-align: middle; */
	/* height: 100%; */
}

.squares {
	display: grid;
	grid-gap: var(--square-gap);	
}

.squares {
	grid-auto-flow: column;
	grid-auto-columns: var(--square-size);
}

.table-align {
	margin: 0 auto;
}

.legend {
	/* display: table-row; */
	background-color: #c6e48b;
	border-radius: 2px;
	height: 11px;
	width: 11px
}

/* Other styling */

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	font-size: 16px;
}

.graph {
	padding: 20px;
	/* border: 1px #e1e4e8 solid; */
	margin: 20px auto;
	position: relative;
	width: 95%;		
	/* overflow: scroll; */
}

/* .days li:nth-child(1) {
	visibility: hidden;
} */

.squares rect {
	background-color: #ebedf0;
	cursor: pointer;
	/* shape-rendering: geometricPrecision;*/
}

.squares rect[data-level="0"] {
	background-color: #c6e48b;
	border-radius: 2px;
}

/* .squares rect[data-level="1"] {
	background-color: #7bc96f;
	border-radius: 2px;
} */

.squares rect[data-level="1"] {
	background-color: #196127;
	border-radius: 2px;
	pointer-events: none;
}

/* ------------------------------- */

.box {
	text-align: center;
}

.button {
	font-size: 1em;
	padding: 15px 35px;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease-out;
	background: #403e3d;
	border-radius: 50px;
}

.overlay {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.8);
	transition: opacity 100ms;
	visibility: hidden;
	opacity: 0;	
}

/* .overlay:target {
	visibility: visible;
	opacity: 1;
} */

.wrapper {
	margin: 70px auto;
	padding: 20px;
	background: #e7e7e7;
	border-radius: 5px;
	width: fit-content;
	height: fit-content;
	position: flex;
	transition: all 100ms ease-in-out;
	width: 95%;
	height: 80%;
	overflow: scroll;	
}

.wrapper h2 {
	margin-top: 0;
	color: #333;	
}

.wrapper .close {
	position: relative;
	/* top: 20px;
	right: 30px; */
	transition: all 200ms;
	font-size: 30px;
	font-weight: bold;
	text-decoration: none;
	color: #333;
	height: 20px;
	float: right;
}

.wrapper .close:hover {
	color: #06D85F;
	cursor: pointer;
}

.wrapper .content {
	max-height: 30%;
	overflow: auto;		
}

/*form*/

.container {
	border-radius: 5px;
	background-color: #e7e7e7;
	padding: 20px 0;
}

/* form label {
	text-transform: uppercase;
	font-weight: 500;
	letter-spacing: 3px;
} */

/* input[type=text],
select,
textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	margin-top: 6px;
	margin-bottom: 16px;
	resize: vertical;
} */

/* input[type="submit"] {
	background-color: #413b3b;
	color: #fff;
	padding: 15px 50px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 3px;
} */

/* ----------------------------------- */
.tooltip {
	position: relative;
	display: inline-block;
	font-size: 18px;
}

.tooltip .tooltiptext {
	visibility: hidden;
	width: 120px;
	background-color: black;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px 0;
	position: absolute;
	z-index: 1;
	bottom: 150%;
	left: 50%;
	margin-left: -60px;

	/* Fade in tooltip - takes 1 second to go from 0% to 100% opac: */
	opacity: 0;
	transition: opacity 0.2s;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

.month-label {
	color: #212a30;
	/* color: #f3ca45; */
	text-align: center;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	font-feature-settings: 'liga' 0;
	padding: 5px;
}

.btn-cursor {
	cursor: pointer;
	color: #808080;
	text-align: center;
	font-weight: 1000;
	font-size: 15px;
	line-height: 14px;
	font-stretch: ultra-condensed;
	font-feature-settings: 'liga' 0;
	padding: 5px;
}