html, body {
	width: 100%;
	height: 100%;
}

main {
	min-height: calc(100% - 6rem - 56px);
}

.loader {
	border: 16px solid #f3f3f3; /* Light grey */
	border-top: 16px solid #3498db; /* Blue */
	border-radius: 50%;
	width: 120px;
	height: 120px;
	margin: 30px auto;
	animation: spin 2s cubic-bezier(.14, .74, .83, .29) infinite;
}

#loader-modal .modal-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
}

#successAnimation, #errorAnimation {
	width: 120px;
	height: 120px;
	margin: 30px auto;
	display: none;
}

#errorAnimation .works-check-icon-first, #errorAnimation .works-check-icon-last {
	stroke-dashoffset: 71px;
}

#successAnimationCircle {
	stroke-dasharray: 151px 151px;
	stroke: #05e367;
}

#errorAnimationCircle {
	stroke-dasharray: 151px 151px;
}

.pointer {
	cursor: pointer;
}

pre {
	padding: 10px;
}

@media (prefers-color-scheme: dark) {
	.note-toolbar .note-btn {
		background: #191d21;
	}

	pre {
		background-color: var(--light);
	}
}

.note-toolbar {
	padding: 5px 0 15px;
}

.note-editable {
	min-height: 100px;
}

.note-icon-caret {
	display: none;
}

.note-editing-area {
	text-align: initial;
	background-color: #fff;
}

.note-editable {
	max-width: 600px;
	margin: 0 auto;
}

.modal-dialog-scrollable {
	display: flex;
	max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
	max-height: calc(100vh - 1rem);
	overflow: hidden;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
	flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
	overflow-y: auto;
}

.modal-dialog-centered.modal-dialog-scrollable {
	flex-direction: column;
	justify-content: center;
	height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
	max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
	content: none;
}

@media (min-width: 576px) {
	.modal-dialog {
		max-width: 500px;
		margin: 1.75rem auto;
	}

	.modal-dialog-scrollable {
		max-height: calc(100% - 3.5rem);
	}

	.modal-dialog-scrollable .modal-content {
		max-height: calc(100vh - 3.5rem);
	}

	.modal-dialog-centered {
		min-height: calc(100% - 3.5rem);
	}

	.modal-dialog-centered::before {
		height: calc(100vh - 3.5rem);
	}

	.modal-sm {
		max-width: 300px;
	}
}

@media (min-width: 992px) {
	.modal-lg,
	.modal-xl {
		max-width: 800px;
	}
}

@media (min-width: 1200px) {
	.modal-xl {
		max-width: 1140px;
	}
}

#successAnimationCheck {
	stroke-dasharray: 36px 36px;
	stroke: #05e367;
}

#successAnimationResult {
	fill: #05e367;
	opacity: 0;
}

#successAnimation.animated {
	-webkit-animation: 1s ease-out 0s 1 both scaleAnimation;
	animation: 1s ease-out 0s 1 both scaleAnimation;
	display: block;
}

#successAnimation.animated #successAnimationCircle, #errorAnimation.animated #errorAnimationCircle {
	-webkit-animation: 1s cubic-bezier(0.77, 0, 0.175, 1) 0s 1 both drawCircle, 0.3s linear 0.9s 1 both fadeOut;
	animation: 1s cubic-bezier(0.77, 0, 0.175, 1) 0s 1 both drawCircle, 0.3s linear 0.9s 1 both fadeOut;
}

#errorAnimation.animated .works-check-icon-first, #errorAnimation.animated .works-check-icon-last {
	-webkit-animation: 1s cubic-bezier(0.77, 0, 0.175, 1) 0s 1 both drawCross, 0.3s linear 0.9s 1 both fadeOut;
	animation: 1s cubic-bezier(0.77, 0, 0.175, 1) 0s 1 both drawCross, 0.3s linear 0.9s 1 both fadeOut;
}

#successAnimation.animated #successAnimationCheck {
	-webkit-animation: 1s cubic-bezier(0.77, 0, 0.175, 1) 0s 1 both drawCheck, 0.3s linear 0.9s 1 both fadeOut;
	animation: 1s cubic-bezier(0.77, 0, 0.175, 1) 0s 1 both drawCheck, 0.3s linear 0.9s 1 both fadeOut;
}

#successAnimation.animated #successAnimationResult {
	-webkit-animation: 0.3s linear 0.9s both fadeIn;
	animation: 0.3s linear 0.9s both fadeIn;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes drawCircle {
	0% {
		stroke-dashoffset: 151px;
	}
	100% {
		stroke-dashoffset: 0;
	}
}

@-webkit-keyframes drawCheck {
	0% {
		stroke-dashoffset: 36px;
	}
	100% {
		stroke-dashoffset: 0;
	}
}

@keyframes drawCheck {
	0% {
		stroke-dashoffset: 36px;
	}
	100% {
		stroke-dashoffset: 0;
	}
}

@-webkit-keyframes drawCross {
	0% {
		stroke-dashoffset: 71px;
	}
	100% {
		stroke-dashoffset: 0;
	}
}

@keyframes drawCross {
	0% {
		stroke-dashoffset: 71px;
	}
	100% {
		stroke-dashoffset: 0;
	}
}
