/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.no-close .ui-dialog-titlebar-close {
  display: none;
}

.ui-widget {
  font-family: Roboto, Helvetica, Arial, Lucida, sans-serif;
  font-weight: 400;
  font-size: 100%;
  line-height: 1.7;
}

.ui-state-success {
  color: darkgreen;
}

.login-required {
  color: darkred;
}

.feif-poll-radio:not(:first-of-type) {
  padding-top: 1.2em;
  border-top: solid black;
  margin-top: 2em;
}

.feif-poll-radio>label {
  font-weight: bold;
}

.feif-poll-radio input {
  margin-right: 1em;
}

.option-input {
  margin-left: 2em;
}

.feif-poll-option-footer {
  display: inline-block;
}

.feif-poll-option-footer img {
  padding: 1em;
  margin: 0;
}

.question-footer {
  display: block;
  margin: 0 0 .5em 1em;
}

.feif-poll-option-footer {
  margin-left: 2em;
  margin-top: 1em;
}

.feif-poll-question.ui-accordion-header {
  line-height: 1.6em;
}

.feif-poll-accordion-container .ui-accordion-content {
  padding: .4em .6em;
}

.feif-poll-accordion-container {
  margin-bottom: 1.2em;
}


.live-results.hidden,
.option-input.hidden {
  display: none;
}

.live-results table {
  margin: 0;
}

#knownResponders {
  list-style-type: none;
  margin: 0 auto;
}

li.known-responder {
  display: inline;
  white-space: nowrap;
  font-size: small;
  line-height: inherit;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
}

li.known-responder.active::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: .4em;
  content: "\f621";
  color: navy;
}

input[type="text"]:disabled {
  background: #dddddd;
}

.float-right {
  float: right;
}

#dialog-confirm p::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f071";
  color: red;
  padding-right: 4px;
}

.feif-poll-container .error {
  font-style: italic;
  font-weight: 600;
  color: darkred;
}

.feif-open-q {
  display: inline-block;
  text-decoration: none;
  height: 1.5em;
  margin-left: 8px;
  padding: 0 4px 1px;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  -webkit-appearance: none;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  white-space: nowrap;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  vertical-align: baseline;
  float: right;
}

.feif-poll-checkbox input[type='checkbox'] {
  margin-right: 0.4em;
}

.feif-poll-checkbox>label {
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 1.2em;
}

.feif-poll-preview-header {
  background: repeating-linear-gradient(45deg,
      #f5eea4,
      #f5eea4 10px,
      #f7ea72 10px,
      #f7ea72 20px);
  border: solid 1px black;
  padding: 4px;
  margin: 4px auto;
}

div#poll-results {
  margin-left: 1em;
  margin-right: 1em;
}

div#poll-results h3.responder-count {
  font-size: small;
  font-style: italic;
  text-align: right;
}

div#poll-results h3.additional-comments {
  text-align: right;
  font-size: smaller;
  font-style: italic;
}

div#poll-results h3.title {
  margin-top: 1.2em;
  padding-top: .8em;
  border-top: solid 1px black;
  font-size: medium;
}

div#poll-results div.details {
  margin-bottom: .8em;
  padding-left: 1em;
}

div.other-text div ul {
  list-style: disc;
}

@media only screen and (max-width: 600px) {
  .feif-poll-grid-container {
    display: block;
  }

  .feif-poll-grid-container .feif-poll-divider {
    margin-top: 5px;
    border-bottom: 1px solid black;
  }

  .live-results div:nth-of-type(2) {
    width: 50%;
    margin: 0 auto;
  }

}

@media only screen and (min-width: 600px) {
  .feif-poll-grid-container {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: 1fr 2fr;
  }

  .feif-poll-grid-container .feif-poll-divider {
    grid-column: 1 / 3;
    border-bottom: 1px solid black;
  }

  .feif-poll-grid-container .feif-poll-question {
    grid-column: 1 / 1;
  }

  .feif-poll-grid-container .feif-poll-options {
    grid-column: 2 / 2;
  }

  .live-results {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: 70% 30%;
  }

  .live-results div:nth-of-type(1) {
    grid-column: 1 / 1;
  }

  .live-results div:nth-of-type(2) {
    grid-column: 2 / 2;
  }
}