#modal {
  --content-y-padding: 20px;
  --content-x-padding: 30px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;

  &.show {
    opacity: 1;
    pointer-events: all;
  }

  .backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
  }

  .modal-content {
    position: relative;
    z-index: 1;
    height: min-content;
    margin: auto;
    padding: var(--content-y-padding) var(--content-x-padding);
    max-width: 1000px;

    #modal-content {
      height: 100%;
      display: block;
      overflow-y: auto;
      max-height: calc(100vh - var(--content-y-padding) * 2);

      .card {
        padding: 25px 50px 30px;
      }
    }
  }

  .close-button {
    position: absolute;
    top: calc(15px + var(--content-y-padding));
    right: calc(15px + var(--content-x-padding));
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--shadow);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    &:after {
      content: '×';
      font-size: 20px;
      color: var(--text-lighter);
      font-weight: 700;
      line-height: 1;
      display: block;
      transform: translateY(-1px);
    }

    &:hover {
      &:after {
        color: var(--text-dark);
      }
    }
  }
}