.modal {
	z-index: -1;
	opacity: 0;
}

.modal.appear {
	z-index: 2999;
	opacity: 1;
	animation: appear 0.2s ease-out 0.1s 1 both;
}

.modal.disappear {
	z-index: -1;
	opacity: 0;
	animation: disappear 0.2s ease 0s 1;
}

@keyframes appear {
	0% {
		opacity: 0;
		z-index: -1;
		/* may or may not have caused a rendering issue */
		/* transform: translateY(-20px); */
		margin-top: -20px;
	}

	50% {
		opacity: 0.75;
	}

	100% {
		opacity: 1;
		z-index: 2999;
		/* may or may not have caused a rendering issue */
		/* transform: translateY(0); */
		margin-top: 0px;
	}
}

@keyframes disappear {
	0% {
		opacity: 1;
		z-index: 2999;
	}

	100% {
		opacity: 0;
		z-index: -1;
	}
}

.darkener {
	position: absolute;
	top: 0%;
	width: 100%;
	height: 100%;
	z-index: -1;
	/* background-color: rgb(0 0 0 / 60%); */
	background: linear-gradient(to bottom,
			rgba(0, 0, 0, 0.2) 0%,
			/* 50% black at the top (0% mark) */
			rgba(0, 0, 0, 0.7) 50%,
			/* 80% black in the middle (50% mark) */
			rgba(0, 0, 0, 0.8) 100%
			/* 90% black at the bottom (100% mark) */
		);
}

.modal.how_to_play {
	position: absolute;
	top: 0%;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Tajawal', sans-serif;
	/* font-family: 'Merriweather', serif; */
	font-weight: 100 !important;
}

	.htp {
		position: relative;
		width: 94%; /* 01/07 */
		max-width: 600px;
		background-color: #161616;
		height: 80%;
		max-height: 800px;
		/* max-height: 37.5rem; */
		max-height: 44rem;
		border-radius: 0.75rem;
		border: 1px solid #323232;
		padding: 1.5rem 1rem 1.125rem 0.75rem;
		/* color: rgba(255, 255, 255, 0.78); */
		color: rgb(216 216 216);
		/* line-height: 1.5rem;
		font-size: 1.125rem; */
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.htp h2,
	.htp h3,
	.htp h4 {
		font-weight: 300;
	}

	.htp .grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: repeat(1, 1fr);
		grid-gap: 4px; /* rem? */
		grid-gap: 0.1875rem;
		justify-items: center;
		align-items: center;
		padding: 0.3rem 0;
	}

	.htp .example .mini {
		font-size: 0.75rem;
		line-height: 0.3rem;
	}

	.htp .guidelines {
		list-style-type: none;
		/* padding-left: 0.9rem; */
		padding-left: 1em;
		vertical-align: middle;
		/* font-size: 0.975rem; */
		font-size: 0.8em;
		margin-top: 1em;
		font-weight:300;
		color:rgb(150 150 150);
	}

	.htp .guidelines li {
		line-height: 1.5em;
	}

	.htp .guidelines li i {
		vertical-align: middle;
		padding-right:0.375rem;
	}

	.htp .guidelines .ph-gavel {
		color: rgb(255 41 117);
	}

	.htp .guidelines .ph-list-magnifying-glass {
		color: rgb(255, 198, 66);
	}

	.htp .guidelines .bullet {
		font-weight:300;
		padding-right:0.375rem;
		margin-left:-0.0375rem;
		color:rgb(232 232 232);
		color:rgb(0, 255, 173);
	}

	.htp .guidelines sup {
		font-size: 0.75em;
		line-height:0;
	}

	.htp .guidelines .bullet sup {
		font-size: 0.55em;
	}

	.example .mini {
		font-size: 1rem;
	}

	.example.additions span,
	.example.additions .head {
		color: #67e87f;
		color: rgb(0, 194, 255);
		font-weight: bold;
	}

	.example.removals span,
	.example.removals .head {
		color: #ff9999;
		color: rgb(255, 110, 204);
		font-weight: bold;
	}

	.example.changes span,
	.example.changes .head {
		color: #ece56f;
		color: rgb(255, 198, 66);
		font-weight: bold;
	}

	.example .words span {
		font-weight: bold;
		/* text-decoration: underline; */
	}

	.htp h1,
	.htp h2,
	.htp h3,
	.htp h4,
	.htp h5 {
		margin: 0.375rem;
	}

	.grid div {
		text-align: center;
	}

	.example .head {
		text-transform: uppercase;
	}

	.example .words {
		text-transform: lowercase;
	}

	.htp .footnote {
		margin: 0.375rem;
		margin-top: 2.25rem;
		font-size: 0.975rem;
	}

.modal.archive_picker {
	position: absolute;
	top: 0%;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}


	.picker-container {
		display: flex;
		width: 100%;
		/* max-width: 450px; */
		height: calc(var(--row-h) * var(--visible-rows));
		background: #111;
		color: #fff;
		position: relative;
		overflow: hidden;
		margin: 20px auto;
		margin: 0.9375rem auto;
		border-radius: 10px;
		border-radius: 0.46875rem;
		touch-action: pan-y;
		font-size: 0.75rem;
	}

	.picker-container {
		z-index: 2001;
		margin-top: 8.4375rem;
		border: 1px solid rgb(44, 44, 44);
		width: calc(100% - 1rem);
		max-width: 600px;
	}

	@media only screen and (min-width: 1025px) {
		.picker-container {
			font-size:1rem;
		}
	}

		.col {
			flex: 1;
			overflow-y: scroll;
			-webkit-overflow-scrolling: touch;
			scroll-behavior: auto !important;
			scrollbar-width: none;
			overscroll-behavior: none;
		}

		.col::-webkit-scrollbar {
			display: none;
		}

		.col ul {
			/* For 7 rows, we need 3 rows of padding. For 9 rows, change 3 to 4. */
			padding: calc(var(--row-h) * 3) 0;
			padding: calc(var(--row-h) * (var(--visible-rows) * 0.5 - 0.5)) 0;
			margin: 0;
			list-style: none;
		}

		.col li {
			height: var(--row-h);
			line-height: var(--row-h);
			text-align: center;
		}

		#y-col li,
		#m-col li,
		#d-col .pzl_date {
			color:rgb(80 80 80);
			min-width: 2.5rem;
			min-width: 1.875rem;
		}

		#y-col li.active,
		#m-col li.active,
		#d-col li.active .pzl_date {
			color:rgb(240 240 240);
		}

		.picker-container #y-col {
			flex: 2;
		}

		.picker-container #m-col {
			flex: 3;
			border-left: 1px solid transparent;
			border-right: 1px solid transparent;
			border-image: linear-gradient(to bottom, transparent, #414141, transparent) 1;
			border-width: 1px;
		}

		.picker-container #d-col {
			flex: 10;
		}


			.picker-container #d-col .polyad {
				/* color:rgb(255 255 255 / 60%); */
				/* needs hard color */
				color:rgb(164 164 164);
			}

			.picker-container #d-col .puzzwrap {
				display: flex;
				flex-direction: row;
				width: 100%;
				padding: 0 0.5rem;
				margin: 0 0.25rem;
				justify-content: space-between;
				border: 1px solid transparent;
				border-radius:0.4rem;
				cursor:pointer;
			}

			.picker-container #d-col .puzzwrap:hover {
				border: 1px solid rgb(84, 84, 84);
			}

				.picker-container #d-col .puzzwrap:hover .polyad {
					/* opacity: 0.8; */
					color:rgb(255 255 255 / 80%);
					/* needs hard color */
					/* color:rgb(164 164 164); */
				}
				.picker-container #d-col .pzl_title {
					white-space:nowrap; /* might need a marquee effect for wide puzzles */
					display:flex;
					position:relative;
				}

					.pzl_title .steplets {
						position: absolute;
						left: 100%;
						top: 0;
						font-size: 1.2rem;
						font-size: 0.9rem;
						line-height: 25px;
						line-height: 1.171875rem;
					}
					.picker-container #d-col .polyad.red .steplets {
						color:rgb(237, 33, 84);
						color:rgb(255 41 117); /* put this to a variable */
					}
					.picker-container #d-col .polyad.yellow .steplets {
						color:rgb(242, 228, 31);
						color:rgb(255, 198, 66); /* synthwave */
						color:rgb(255 234 66); /* brighter, yellower */
					}
					.picker-container #d-col .polyad.green .steplets {
						color:rgb(81, 214, 57);
						color:#00ffad;
					}

						.pzl_title .steplets sup {
							font-size:0.6em;
						}

				.picker-container #d-col .pzl_number {
					font-weight: normal;
					float:right;
					color:rgb(100 100 100);
					min-width: 2.5rem;
					min-width: 1.875rem;
					text-align: right;
				}

				.picker-container .day {
					display: flex;
					/* flex-direction: row; */
					justify-content: space-between;
					justify-content: center;
					/* padding:0 1.5rem; */
				}

				.picker-container .day div {
					text-align: left;
				}



		.polyad {
			/* width:100%; */
			display: inline-block;
			position: relative;
			padding-right: 0.25rem;
			margin-left: 0.25rem;
			padding-right: 0.1875rem;
			margin-left: 0.1875rem;
			font-size: 1.2rem;
			font-size: 0.9rem;
			/* font-family: 'Tajawal', sans-serif; */
			/* overflow:hidden;
			text-overflow:ellipsis; */
		}

		@media only screen and (min-width: 1025px) {
			.polyad {
				font-size:1.2rem;
			}
		}
		
		.tajawal .polyad {
			font-family: 'Tajawal', sans-serif;
			font-size:1.5rem;
		}

	
	.archive.label {
		position: absolute;
		width: 100%;
		color: white;
		opacity: 0.25; /* does not need hard color */
		font-size: 2rem;
		font-size: 1.5rem;
		text-transform: uppercase;
		text-align: center;
		margin-top: 130px;
		margin-top: 6.09375rem;
		z-index: 2000;
		display: flex;
		width: calc(100% - 2rem);
		max-width: 600px;
		letter-spacing: 0.4rem;
		letter-spacing: 0.3rem;
		font-family: "Ubuntu", sans-serif;
		font-weight: 400;
		font-style: normal;
	}
		.archive.label .dummy.yrs {
			margin-left: 1rem;
			margin-left: 0.75rem;
			flex:2;
		}

		.archive.label .dummy.mnths {
			flex:3;
		}

		.current.thing .dummy.yrsmnths {
			flex:5;
			text-align:right;
		}

		.archive.label .dummy.dys {
			flex:10;
		}

		.current.thing .dummy.dys {
			flex:10;
		}

	.current.thing {
		position: relative;
		width: 100%;
		width: calc(100% - 2rem);
		width: calc(100% - 1.5rem);
		max-width: 600px;
		z-index: 2000;
		color: white;
		display: flex;
		justify-content: center;
		align-items:center;
		text-align:center;
		letter-spacing: 0.4rem;
		font-family: "Ubuntu", sans-serif;
		font-weight: 400;
		font-style: normal;
	}


		.current.thing .today {
			text-transform: uppercase;
			opacity: 0.4; /* does not need hard color */
			font-size: 2rem;
			font-size: 1.5rem;
		}

		.current.thing .polyad {
			padding: 0.5rem 5rem;
			padding: 0.375rem 3.75rem;
			max-width: 200px;
			max-width: 9.375rem;
			/* border: 1px solid #444444; */
			border: 1px solid rgb(150 150 150);
			border-radius: 0.4rem;
			border-radius: 0.3rem;
			white-space: nowrap;
			letter-spacing:normal;
			/* color:rgb(100 100 100); */
			cursor:pointer;
			display: inline;
			/* align-items: center; */
			justify-content: center;
			color:#0c8cb8;
		}

		.current.thing .polyad:hover {
			background-color:rgb(32 32 32);
			border:1px solid rgb(164 164 164);
		}

		.current .polyad pink {
			color:#ba5094;
		}