/* Styles for the ApLibrary */

/* --- Modal / Messagebox --- */
*, *:before, *:after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

.button {
  display: inline-block;
  padding: 15px 20px;
  color: white;
  background: tomato;
  transition: background 150ms ease-out;
  border-radius: 2px;
  cursor: pointer;
}
.button:hover, .button:active {
  background: #ff7961;
  transition: background 250ms ease-out;
}

.modal {
  position: fixed;
  z-index: 20;
  max-width: 85%;
  width: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0 auto;
  opacity: 1;
  transition: margin-top 150ms ease-out, opacity 150ms ease-out;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.6);
}
@media screen and (max-height: 500px) {
  .modal {
    width: 80%;
  }
}
.modal__toggler {
  display: none;
}
.modal__toggler:not(:checked) ~ .modal {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  margin-top: -10px;
}
.modal__toggler:not(:checked) ~ .modal__mask {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}
.modal__mask {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 1;
  transition: opacity 150ms ease-out;
  background: RGBA(0, 0, 0, 0.7);
  cursor: pointer;
}
.modal__close::after {
  content: "✕";
  position: absolute;
  display: inline-block;
  top: 10px;
  right: 10px;
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}
.modal__title {
  margin: 0;
}
.modal__content {
  background: #eee;
  padding: 30px;
  max-height: 90vh;
  overflow-x: auto;
}
.demo-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}


.warning
{
	color: orange;
	background-color: lightgrey;
}
.error
{
	color: red;
	background-color: lightgrey;
}
.info
{
	color: black;
	background-color: lightgrey;
}
.missing
{
	color: black;
	background-color: orange;
}



/* -------- New modal dialog handling -------- */
 /* Basic modal styles */
.modal {
	display: none; /* Hidden by default */
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 300px;
	max-width: 800px;
	
	width: auto;
	
	padding: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	z-index: 1000;
	
	/* background-color: lightgrey; */ /* Komt uit type class - .info, .warning, .error of .missing */
}
.modal-overlay {
	display: none; /* Hidden by default */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
}
/* Show modal when enabled */
.modal.show, .modal-overlay.show {
	display: block;
}
.modal .close-btn {
	display: inline-block;
	margin-top: 20px;
	padding: 10px 20px;
	background-color: #007BFF;
	color: white;
	text-align: center;
	border: none;
	cursor: pointer;
	border-radius: 5px;

	position: fixed;
	bottom: 10px;
	right: 10px;
}
.modal .close-btn:hover {
	background-color: #0056b3;
}
.modal .footer {
	/* background-color: orange; */
	width: 100%;
	height: 50px;
}
.modal .title {
	margin: 0;
	font-size: large;
	font-weight: bold;

	background-color: lightblue;
	
	padding: 10px;
}
.modal .text {
	/* background-color: lightgrey; */ /* Komt uit type class - .info, .warning, .error of .missing */

	padding: 10px;
	max-height: 90vh;
	overflow-x: auto;
}
