.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;
	}

	@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;
		}

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

		.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;
		}