#printButton {
  height: 25px;
}

.topRight {
  height: 25px;
  width: fit-content;
  display: block;
  margin-left: auto;
  margin-right: 0;
  padding-right: 6rem;
  padding-top: 0.5rem;
}

#viewDiv {
  padding: 0;
  margin: 0;
  height: 66vh;
  width: 100%;
}

.containerDiv {
  padding-bottom: 1rem;
  padding-left: 6rem;
  padding-right: 6rem;
}

h1 {
  margin-top: 0;
  font-size: 1.5rem;
  /* smaller than before */
}

h3 {
  font-size: 1.2rem;
  /* added for h3 */
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
  /* smaller font for desktop */
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 0.6rem;
  text-align: center;
}

.attention-cell {
  position: relative;
  border: 3px solid red;
  background-color: #fff3cd;
  /* soft yellow background */
  animation: pulse 1s infinite;
}

.questionsContainer {
  padding: 10%;
  padding-top: 5%;
}

.questionsPanels {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.radioButtonGroupLabels {
  margin-left: 4%;
  margin-top: 2%;
}

@media (max-width: 768px) {
  body,
  html,
  .containerDiv {
    margin: 0;
    padding: 0;
  }

  .containerDiv {
    width: 100%;
  }

  h1,
  h3 {
    font-size: 0.8rem;
    margin: 0.25rem 0;
  }

  table {
    font-size: 0.7rem;
    table-layout: fixed;
    width: 100%;
  }

  table th,
  table td {
    padding: 0.2rem;
    word-wrap: break-word;
  }

  #printButton {
    width: 100%;
    margin: 0;
    margin-bottom: 2rem;
  }

  #districtLabel {
    width: 100%;
    margin: 0;
  }

  .questionsPanels {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0);
  }
  .questionsContainer {
    padding: 0;
  }
}

/* Force first column width only for the first two tables */
#creditDialog table th:first-child,
#creditDialog table td:first-child,
#proposedDialog table th:first-child,
#proposedDialog table td:first-child {
  width: 25px;
  max-width: 25px;
}

@media print {
  @page {
    size: landscape;
  }
  body {
    filter: grayscale(100%);
  }

  table {
    table-layout: fixed;
    width: 100%;
  }

  th,
  td {
    word-wrap: break-word;
  }

  /* Give that column more space */
  th:nth-child(2),
  td:nth-child(2) {
    width: 40%;
  }

  /* Tighten other columns */
  #creditDialog table th:nth-child(1),
  #creditDialog table td:nth-child(1),
  #proposedDialog table th:nth-child(1),
  #proposedDialog table td:nth-child(1) {
    display: none;
  }

  th:nth-child(3),
  td:nth-child(3) {
    width: 10%;
  }

  th:nth-child(4),
  td:nth-child(4) {
    width: 10%;
  }

  th:nth-child(5),
  td:nth-child(5) {
    width: 20%;
  }

  th:nth-child(6),
  td:nth-child(6) {
    width: 15%;
  }

  #printButton,
  #landUseListButton,
  #helpMenuItem,
  #creditLabel,
  #preliminaryFeeInstructions,
  #creditInstructions {
    display: none;
  }
}
