p {
  margin: 5px;
}

main {
  max-width: 100ch;
  padding-inline: .5rem;
  margin-inline: auto;
}

th, tr {
  padding: 5px;
}

#candidates p {
  margin: 0;
}

#candidates {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-block: 2rem;
}
.candidate {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: .5rem;
  border-radius: 5pt;
}
.candidate:not(.header) {
  background-color: var(--light);
}
.candidate.vetoed {
  background-color: rgba(255, 0, 0, 0.05);  
}
.candidate .name {
  flex-grow: 1;
}
.candidate .nominator {
  min-width: 15ch;
}
.actions {
  display: flex;
  gap: 1ch;
  align-items: center;
}

/* Hacks to get desktop header to align with flex table */
.candidate.header .nominator {
  padding-left: .5ch;
}
.actions {
  min-width: 9.375rem;
}

/* Notification component */
.notification {
  gap: 1.5rem;
  padding: .5rem;
  border-radius: 5pt;
}
.notification.error {
  background-color: rgba(255, 0, 0, 0.05);
  padding: 1rem;
  margin: 1rem 0;
}

/* Login and register */
form:not(.action) input {
  margin-bottom: 1rem;
  width: 100%;
  height: 3rem;
  font-size: 1.2rem;
  padding-inline: .5rem;
}
form:not(.action) label {
  display: block;
  font-size: 1.25rem;
}
form:first-of-type:not(.action) {
  margin-top: 10dvh;
}

form div.checkbox label {
  display: inline;
}
form div.checkbox input {
  width: 1rem;
  height: 1rem;
  margin-left: .5rem;
}

.mobile {
  display: none;
}
@media screen and (max-width: 600px) {
  .mobile {
    display: unset;
  }
  .desktop {
    display: none;
  } 

  .candidate:not(.header) {
    display: grid;
    grid-template-columns: 1fr min-content;
    grid-template-rows: repeat(auto, 2);
    grid-column-gap: .5rem;
    grid-row-gap: 1rem; 
    grid-template-areas: 
      "name side"
      "info side"; 
  }
  .candidate .name {
    font-size: 1.3rem;
    grid-area: name;
    align-self: flex-start;
  }
  .candidate .mobile-block {
    display: flex;
    flex-direction: column;
    grid-area: info;
  }
  .candidate .actions {
    grid-area: side;
    flex-direction: column-reverse;
    align-self: first baseline;
    min-width: 0;
  }
  .candidate .actions form,
  .candidate .actions .btn,
  .candidate .actions a {
    width: 100%;
    text-align: center;
  }

  .bottom {
    position: absolute;
    bottom: 1rem;
  }
}