.bg-modal 
{
	position: fixed;
	z-index: 99999;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.8);
	opacity:0;
	pointer-events: none;
}
.bg-modal:target 
{
	opacity: 1;
	pointer-events: auto;
}
.modal
{
	opacity: 0;
	max-width: 400px;
	position: relative;
	margin: 5% auto;
	padding: 20px;
	padding-bottom: 5px;
	border-radius: 20px;
	font-family: "Bookerly";
	-webkit-transition: all 1s; /* Safari */
	transition: all 0.5s;
	background-color: var(--card-bg-color, white);
	color: var(--text-color, black)
}

.modal.large
{
	max-width: 900px;
	max-height: 80%;
	overflow: scroll;
	overflow-x: hidden;
	transition: all 0.5s;
}

.modal.medium
{
	max-height: 80%;
	overflow: scroll;
	transition: all 0.5s;
}

.bg-modal:target > .modal
{
	opacity: 1;
	margin: 10% auto;
}

.bg-modal:target > .modal.large
{
	margin-top: 10px;
	margin-bottom: 10px;
}

.bg-modal:target > .modal.medium
{
	margin-top: 10px;
	margin-bottom: 10px;
}


.modal-actions
{
	display: flex;
	justify-content: flex-end;
}

input[type="text"], input[type="password"], input[type="email"]
{
	width: 90%;
	height: 30px;
}


@media screen and (max-width: 479px) /* Smartphones */
{
	.modal-actions
	{
		flex-direction: column;
	}
	.bg-modal:target > .modal
	{
		max-width: 80%;
	}
	
}
