/* Small link/button shown on the slide */
.info-button {
  font-size: 0.55em;
  padding: 0.4em 0.8em;
  cursor: pointer;
  border: none;
  border-radius: 6px;
}

/* Floating modal */
.info-modal {
  width: 80vw;
  height: 75vh;
  max-width: 1200px;

  padding: 0;
  border: none;
  border-radius: 12px;

  overflow: hidden;
}

/* Darken the slide behind the modal */
.info-modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

/* Fixed header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0.7rem 1rem;

  font-size: 0.7em;
  border-bottom: 1px solid #ccc;
}

/* Only this part scrolls */
.modal-content {
  height: calc(75vh - 4rem);
  overflow-y: auto;

  padding: 1.2rem 1.5rem;

  font-size: 0.55em;
  line-height: 1.45;
  text-align: left;
}

/* Close button */
.close-button {
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  background: transparent;
}
.material-info-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;

  padding: 0.45em 0.9em;

  font-family: inherit;
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: 0.02em;

  color: #6750a4;
  background: #eaddff;

  border: none;
  border-radius: 999px;

  cursor: pointer;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.10);

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.material-info-button:hover {
  background: #d8c7ff;

  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.2),
    0 1px 4px rgba(0, 0, 0, 0.15);

  transform: translateY(-1px);
}

.material-info-button:active {
  transform: translateY(0);

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.15);
}

.material-info-button:focus-visible {
  outline: 3px solid rgba(103, 80, 164, 0.3);
  outline-offset: 3px;
}

.material-info-icon {
  font-size: 1.15em;
  line-height: 1;
}

.info-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 1.7em;
  height: 1.7em;

  padding: 0;

  font-family: inherit;
  font-size: 0.5em;
  font-weight: 700;
  font-style: italic;

  color: #6750a4;
  background: #eaddff;

  border: none;
  border-radius: 50%;

  cursor: pointer;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);

  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.info-icon-button:hover {
  background: #d0bcff;
  transform: scale(1.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.info-icon-button:active {
  transform: scale(0.96);
}
