@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;800&display=swap");

body {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-family: "Poppins", serif;
	background: radial-gradient(
		circle,
		rgba(238, 174, 202, 1) 0%,
		rgba(148, 187, 233, 1) 100%
	);
}

h1 {
	font-weight: 800;
	margin: 1rem 0 0;
}

.controls {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
	align-items: center;
}

button {
	background-color: rgba(255, 255, 255, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	padding: 0.5rem 1rem;
	font-weight: 500;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background 0.3s ease;
}

button:hover {
	background-color: rgba(255, 255, 255, 0.7);
}

.calendar {
	display: flex;
	flex-direction: column;
	align-items: center; /* centers the grid */
}


.weekdays {
	display: grid;
	grid-template-columns: repeat(7, 12rem);
	gap: 0.25rem;
	margin-bottom: 0.25rem;
	font-weight: 500;
	text-align: center;
}

.weekdays {
	display: grid;
	grid-template-columns: repeat(7, 12rem); 
	gap: 0.25rem;
	margin-bottom: 0.25rem;
	font-weight: 500;
	text-align: center;
}

ul {
	display: grid;
	grid-template-columns: repeat(7, 12rem);
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 0.25rem;
	grid-template-columns: repeat(7, 12rem); /* width of cells */
	gap: 0.5rem; /* space between cells*/
}



ul li {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	width: 12rem;
	height: 6rem;
	margin: 0.25rem;
	padding: 0.5rem;
	border-radius: 10px;
	font-weight: 300;
	font-size: 0.9rem;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.25);
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.18);
}

ul li time {
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
	margin-bottom: 0.25rem;
}

.today {
	background: #ffffff70;
}

.today time {
	font-weight: 800;
}

.month {
	display: none;
}

.month.active {
	display: grid;
}
