
.modal_js {
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	animation: fadeIn 0.3s both;
	z-index: 99;
}

.modal-wrapper {
	overflow: auto;
	width: 800px;
	max-width: calc(100vw - 20px);
	max-height: calc(100vh - 20px);
	padding: 20px;
	background-color: #fff;
	animation: slideFromTop 0.3s both;
}

.modal_js[aria-hidden="true"] {
	animation-name: fadeOut;
}

.modal_js[aria-hidden="true"] .modal-wrapper {
	animation-name: slideToBottom;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes slideFromTop {
	from {
		transform: translateY(-50px);
	}
	to {
		transform: translateY(0);
	}
}

@keyframes slideToBottom {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(50px);
	}
}
