/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9999; /* 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.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: white;
  margin: auto;
  padding: var(--grid-gutter);
  border: 1px solid var(--main-border-color);
  width: 80%;
  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;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
}

/* Add Animation */
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
/* The Close Button */
.close {
  color: var(--desc-color);
  position: absolute;
  font-size: 10px;
  cursor: pointer;
  width: 26px;
  height: 26px;
  border: 1px solid var(--main-border-color);
  border-radius: 50%;
  right: 10px;
  top: 10px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal .close:hover,
.modal .close:focus {
  color: var(--red-color);
  text-decoration: none;
  cursor: pointer;
}

.modal-body {
  padding: 0;
  margin-top: 20px;
}

.modal-content.modal-small {
  width: 25%;
  min-width: 350px;
}

.modal-content.modal-medium {
  width: 35%;
  min-width: 450px;
}

.modal-title {
  font-family: var(--font-bold);
  font-size: var(--title-size);
  color: var(--main-text-color);
  text-align: center;
  text-transform: capitalize;
  margin-right: auto;
}

.modal [class*=col-] {
  flex: 0 0 100%;
  min-width: 100%;
}
