/* Basic Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent backdrop */
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 0px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  min-width: 300px;
  width: 50%;
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* styles specific to modal information overlays - hidden by default */
.info-content {
  display: none;
}

/* 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}
}

/* Make modal mostly fill screen on small-screen devices */
@media (max-width: 900px) {
  .modal-content {
    width: 90%;
  }
}

.modal-header {
  text-align: center !important; /*doesn't override justify-content space-between from modal.scss*/
  background-color: white;
  color: #006054;
  border-radius: 5px;;
}

.modal-title {
  text-align: center !important; /*doesn't override justify-content space-between from modal.scss*/
  margin-right: 30%; /*this moves title to middle-ish*/
}

.modal-message {
  margin: 5px;
  font-size: 24px;
  font-weight: 500;
  overflow-y: auto;
}

.modal-buttons {
  margin-top: 20px;
  margin: 5px;
  display: flex;
  justify-content: flex-end; /* Align buttons to the right */
}

.modal-buttons button {
  margin-left: 10px;
  padding: 8px 16px;
}

.info-popup > ol > li {
  font-size: 20px;
  font-weight: bold;
}

.info-popup li {
  font-size: 18px;
  margin-bottom: 5px;
}

@media  (max-width: 500px) {
  .modal-buttons {
    display: block;
  }
}