.padded-input {
  padding: 5px;
}

.clickable {
  cursor: pointer;
}

body {
  background-color: #fbfafa !important;
  color: #1c2c3b !important;
}

.modal-background {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.modal-window {
  position: relative;
  background-color: white;
  padding: 2em 2em 0em 2em;
  border-radius: 5px;
}

.center {
    right: 50%;
    bottom: 50%;
    transform: translate(50%,50%);
    position: absolute;
}

.comments-header {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.submit-comment-button {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.comment {
  margin-top: 1em;
  margin-bottom: 1em;

  display: flex;
  flex-direction: row;
}

.comment-content {
  margin: 0.5em;
}

.comment-bubble {
  box-shadow: 0px 0px 5px gray;
  padding: 0.5em;
  border-radius: 10px;
  white-space: pre-wrap;
  max-width: fit-content;
  background-color: #e4e6eb;
  word-wrap: break-word;
}

.comment-timestamp {
  color: gray;
}

.profile-picture {
  clip-path: circle();
  object-fit: scale-down;
  max-width: 50px;
}

.event-title-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: var(--gap-section);
  margin-bottom: var(--gap-section);
}

.event-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.event-photo-wrapper {
  display: flex;
  justify-content: center;
  margin: var(--space-2) 0;
}

.event-photo-wrapper:hover .event-photo { transform: scale(1.03); }

.event-photo {
  display: block;
  border-radius: var(--border-radius);
  box-shadow: 0px 0px 5px gray;
  max-height: 60vh;
  max-width: 100%;
}

.event-photo { transition: transform 0.3s ease; }

@media (max-width: 768px) {
  .section-separator, h5 {
    font-size: 1.5rem !important;
  }
}

.rounded-corners {
  border-radius: 4px;
}

.button-wrapper {
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: center !important;
}

.submit-button {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #0d6efd;
  border-radius: 0.375rem;
  border-width: 1px;
  color: #fff;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  vertical-align: middle;
}

.submit-button:not([disabled]):hover {
  color: #69737d;
}

.submit-button:not([disabled]) {
  background-color: rgb(28, 44, 59);
  transition-property: color, background-color, border-color, box-shadow;
  transition-duration: 0.15s, 0.15s, 0.15s, 0.15s;
  transition-timing-function: ease-in-out, ease-in-out, ease-in-out, ease-in-out;
  transition-delay: 0s, 0s, 0s, 0s;
}

.submit-button:disabled {
  background-color: #69737d;
  cursor: default;
}

/* checkbox */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: sans-serif;
  cursor: pointer;
  /*
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  */
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  cursor: pointer;
}

.custom-checkbox .checkmark {
  position: relative;

  /* the one size knob: everything below is a fraction of this */
  font-size: 1.2rem;
  width: 1em;
  height: 1em;
  flex: none;

  background-color: white;
  border: 1px solid #aaa;
  border-radius: 0.4em;

  /* Center the checkmark inside */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

.custom-checkbox input:checked ~ .checkmark {
    /*
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    */
    background-color: rgb(28, 44, 59);
    border-color: rgb(28, 44, 59);
}

.custom-checkbox .checkmark::after {
    content: "";
    display: none; /* hidden until checked */

    /* This creates the checkmark shape, sized as a fraction of the box so it
       stays proportional when the root font-size shrinks on small screens */
    width: 0.25em;
    height: 0.5em;
    border: solid white;
    border-width: 0 0.11em 0.11em 0;

    /* rotating leaves it optically low; nudge it back up */
    transform: translateY(-0.05em) rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark::after {
    display: block;
}
