/** @format */
body {
  margin: 0;
}

.pandectes-error {
  font-family: sans-serif;

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f8f9fa;
    color: #333;
    text-align: center;
  }

  .icon {
    width: 6rem;
    height: 6rem;
    color: #5c6ac4;
    margin-bottom: 2rem;
  }

  .title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }

  .message {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 25rem;
  }

  .buttonContainer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition:
      background-color 0.2s,
      color 0.2s;
  }

  .primaryButton {
    background-color: #5c6ac4;
    color: white;
  }

  .primaryButton:hover {
    background-color: #4959b9;
  }

  .secondaryButton {
    background-color: white;
    color: #5c6ac4;
    border: 1px solid #5c6ac4;
  }

  .secondaryButton:hover {
    background-color: #f0f2f5;
  }

  .buttonIcon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
  }

  @media (min-width: 640px) {
    .buttonContainer {
      flex-direction: row;
    }
  }

  /* "Report this problem" (app/modules/errors/report-problem.tsx), under the buttons. */
  .buttonContainer + .button,
  .report-form,
  .report-result {
    margin-top: 1rem;
  }

  .report-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: min(100%, 25rem);
    text-align: left;
  }

  .report-form textarea,
  .report-form input {
    font: inherit;
    padding: 0.5rem;
    border: 1px solid #c4c7cc;
    border-radius: 0.25rem;
  }

  .report-form .button {
    align-self: flex-start;
  }

  .report-result {
    max-width: 25rem;
  }
}
