<style>
	@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');


/* CARD COMPONENT */

.card {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 297px;
  height: auto;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
}

.card > * {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.card__background {
  object-fit: cover;
  max-width: 100%;
  height: auto;
}

.card__content {
  --flow-space: 0.9375rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: flex-end;
  padding: 25px;
  width:85%;
  background: linear-gradient(
    180deg,
    hsla(0, 0%, 0%, 0) 0%,
    hsla(0, 0%, 0%, 0.3) 10%,
    hsl(0, 0%, 0%) 100%
  );
}

.card__title {

  color: #fff;
  font-size: 35px !important;
  font-weight: 800;
  margin-bottom: 10px;
}

.card__button {
  padding: 15px 35px !important;
  font-variant: small-caps;
  font-weight: bold;
  border-radius: 25px !important;
  border: none;
  background-color: var(--brand-color);
  font-family: var(--font-title);
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
}

.card__button:hover {
  background-color: #B51323;
}

.card__button:focus {
  outline: 2px solid black;
  outline-offset: -5px;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 200ms ease-in-out;
  border-radius: 15px;
  z-index: 1;
  background-color: #ea0029;
  width: 500px !important;
  max-width: 90%;
  padding: 20px;
  overflow: auto;
}

.modal.active {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header .title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
}

.modal-header .close-button {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 28px;
  color: #fff;
}

.modal-body {
  padding: 10px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  color: #fff;
  line-height: 1.5;
}

#overlay {
  position: fixed;
  opacity: 0;
  transition: 200ms ease-in-out;
  top: 0;
  height: 100%;  
  width: 100%;
  left: 0;
  background-color: rgba(0, 0, 0, .5);
  pointer-events: none;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }
  
  .card__button {
    font-size: 14px;
    padding: 0.5em 1.5em;
  }

  .modal {
    width: 340px !important;
    height: auto;
  }

  .modal-body {
    font-size: 12px;
  }
}
</style>
