.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding: 0 8%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.shadow-bg {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.modal-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 60px 20px;
  background-color: white;
  text-align: center;
}

.modal-card img {
  width: 90%;
  margin-bottom: 40px;
}

.modal-card p {
  width: 90%;
}

.modal-cross {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background-color: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
}

.modal-card.info {
  max-width: 360px;
  padding: 0;
}

.modal-heading {
  display: flex;
  justify-content: center;
  background-color: #50b5c7;
  width: 100%;
  padding: 30px;
}

.modal-heading h2 {
  color: white;
  margin: 0;
  max-width: 250px;
}

.modal-info {
  padding: 30px;
}

.modal-info p {
  width: 100%;
  text-align: left;
  margin: 0;
  max-width: 280px;
}

/* --- BREAK POINTS --- */

@media screen and (min-width: 1020px) {
  .modal-card.info {
    flex-direction: row;
    max-width: 1000px;
  }

  .modal-heading {
    padding: 60px 30px;
    max-width: 280px;
  }

  .modal-heading.e5 {
    max-width: 300px;
  }

  .modal-heading h2 {
    font-size: 46px;
    text-align: left;
  }

  .modal-info p {
    max-width: 100%;
  }
}

@media screen and (max-width: 360px) {
  .modal-card {
    padding: 50px 10px;
  }
}
