/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.7); /* Black w/ opacity - darker background */
  -webkit-backdrop-filter: blur(5px); /* Safari */
  backdrop-filter: blur(5px); /* Blurry background */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  -moz-transition: opacity 0.3s ease, visibility 0.3s ease;
  -ms-transition: opacity 0.3s ease, visibility 0.3s ease;
  -o-transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Modal visible state */
.modal.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Modal Content/Box */
.modal-content {
  position: relative;
  font-size: 17px;
  line-height: 1.6;
  background-color: #fefefe;
  margin: 3% auto;
  padding: 0;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 700px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  -webkit-transform: translateY(-50px);
  -webkit-transition: -webkit-transform 0.4s ease, opacity 0.4s ease;
  -moz-transform: translateY(-50px);
  -moz-transition: -moz-transform 0.4s ease, opacity 0.4s ease;
  -ms-transform: translateY(-50px);
  -ms-transition: -ms-transform 0.4s ease, opacity 0.4s ease;
  -o-transform: translateY(-50px);
  -o-transition: -o-transform 0.4s ease, opacity 0.4s ease;
  border-radius: 10px;
}

/* Modal content visible state */
.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  text-transform: uppercase;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: bold;
  transition: color 0.2s ease;
  -webkit-transition: color 0.2s ease;
  -moz-transition: color 0.2s ease;
  -ms-transition: color 0.2s ease;
  -o-transition: color 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  line-height: .5;
  padding-top: 2px;
}

.close:hover,
.close:focus {
  color: #f1f1f1;
  text-decoration: none;
  cursor: pointer;
}

/* Modal Header */
.modal-header {
  padding: 16px;
  background-color: #0d6db6;
  color: white;
  border-radius: 10px 10px 0px 0px;
}

.modal-header h2 {
  margin: 0;
}

/* Modal Body */
.modal-body {
  padding: 20px;
}

.modal-body p {
  margin-bottom: 16px;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

/* Additional styling for modal body headings */
.modal-body h3 {
  margin-top: 0;
}

.modal-body .mt-4 {
  margin-top: 1rem;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not ((backdrop-filter: blur(5px)) or (-webkit-backdrop-filter: blur(5px))) {
  .modal {
    background-color: rgba(0,0,0,0.8); /* Darker fallback when blur not supported */
  }
} 