:root {
	--modal-background-color: var(--background-accent);
	--modal-font-size: 1em;
	--modal-label-size: calc(var(--modal-font-size) * 1.3);
}

.modal-hidden {
	display: none;
}

.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	padding-top: 100px; /* Location of the box */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100vh; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }

.modal-content {
	position: relative;
	background-color: var(--modal-background-color);
	margin: auto;
	padding: 0;
	border: 1px solid #888;
	/* width: fit-content; */
	/* min-width: 50%;
	max-width: 60%; */
	width: 50%;
	height: max-content;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	-webkit-animation-name: animatetop;
	-webkit-animation-duration: 0.4s;
	animation-name: animatetop;
	animation-duration: 0.4s;
	display: grid;
	grid-template-rows: 50px auto 75px;
	min-width: 600px;
  }
  
  /* Add Animation */
  @-webkit-keyframes animatetop {
	from {top:-300px; opacity:0} 
	to {top:0; opacity:1}
  }
  
  @keyframes animatetop {
	from {top:-300px; opacity:0}
	to {top:0; opacity:1}
  }
  
  /* The Close Button */
.close-modal {
	color: white;
	float: right;
	font-size: 4em;
	font-weight: bold;
	display: flex;
	vertical-align: middle;
	align-items: center;
  }

.close-modal:has(.mdi) {
	font-size: 1.5em;
}

.close-modal:has(iconify-icon) {
	font-size: 1.5em;
}
  
  
.close-modal:hover,
.close-modal:focus {
	color: #ffffff8f;
	text-decoration: none;
	cursor: pointer;
  }
  
  .modal-header {
	padding: 2px 16px;
	background-color: var(--patio-primary);
	color: white;
	display: flex;
	align-items: center;
  }
  
.modal-header h2 {
	color: white;
	width: 95%;
}

.modal-body {
	padding: 2px 16px;
	font: normal var(--modal-font-size) 'Open Sans', Arial, sans-serif;

	p {
		font-size: var(--modal-font-size);
	}
}

.modal-footer {
	padding: 2px 16px;
	background-color: #fefefe;;
	color: rgb(9, 49, 224);
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	
  }

.modal-footer input[type=submit] {
	float: right;
	width: fit-content;
	min-width: 20%;
	height: 80%;
	background-color: #6991ac;
	font: bold 0.75em 'Open Sans', Arial, sans-serif;
	vertical-align: middle;
	justify-self: center;
	color: white;
	padding: 14px 20px;
	margin: 0 2px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.modal-footer input[type=submit]:hover {
	background-color: #85b7d8;
}

@media screen and (max-width: 850px){
	.modal {
		padding-top: 10px;
	}

	.modal-content {
    /* width: 95%; */
		width: 100vw;
		height: fit-content;
		margin: 0;
		min-width: unset;
	}

}