/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

html {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-content: stretch;
  min-height: 100%;
  background: #f5f5f5;
  min-height: 100vh;
}

html, input, button, textarea { font-family: "serif"; }

.main-section {
  flex-grow: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: stretch;
}

.page-header {
  margin: 0 0 1.2rem 0;
  background: #607d8b;
  color: #fff;
  padding: .5rem .8rem;
  position: relative;
}

.page-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  margin-top: 2rem;
  background: #607d8b;
  color: #fff;
  padding: .2rem .8rem 1rem .8rem;
  text-align: center;
}

.bottom-links {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.bottom-links h5 {
  margin: 1rem .5rem .4rem .5rem;
}

.bottom-links a {
  color: #fff;
}
.bottom-links a:hover {
  color: #ddd;
}

.qrcode-box {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin: auto auto;
  padding: 1rem 2rem;
  max-width: 30rem;
}

.qrcode-box svg {
  width: 100%;
  height: auto;
}

.copyright {
  margin: .5rem .8rem;
  font-size: 80%;
}

.header-action-button {
  color: #fff;
  background: #faab12;
  box-sizing: border-box;
  height: 3rem;
  line-height: 3rem;
  text-align: center;
  position: absolute;
  bottom: -1.5rem;
  right: 1.5rem;
  border-radius: 1.5rem;
  border: none;
  font-size: 1.5rem;
  width: 3rem;
}

.header-action-button-bar {
  display: flex;
  flex-direction: row;
  position: absolute;
  bottom: -1.5rem;
  right: 1.5rem;
}

.header-action-button-bar .header-action-button {
  position: relative; top: 0; bottom: 0; left: 0; right: 0;
  margin-left: .5rem;
}


.page-content-wrapper {
  padding: 0 .8rem;
}

.button {
  border: 1px solid #000;
  border-radius: 3px;
  box-sizing: border-box;
  padding: .25rem .5rem;
  margin: .2rem .5rem;
  background: #fff;
  font-size: 100%;
  text-align: center;
  width: 100%;
}

.challenge-card-list, .question-card-list, .group-card-list {
  list-style-type: none;
  padding: 0 .5rem;
  margin: 0.3rem 0 0 0;
}

.button,
.challenge-card, .question-card, .group-card, .show-results-box .button, .dashboard-button-box .button, .welcome-buttons .button, .header-button {
  border: 1px solid #bbb;
  background: #fff;
  margin: .5rem 0;
  padding: .4rem .8rem;
}

.large-button {
  margin: .2rem auto;
  max-width: 40rem;
}

.show-results-box .button, .dashboard-button-box .button, .welcome-buttons .button {
  margin-left: .25rem;
  margin-right: .25rem;
}

.show-results-box .button:first-child, .dashboard-button-box .button:first-child, .welcome-buttons .button:first-child {
  margin-left: 0;
}

.show-results-box .button:last-child, .dashboard-button-box .button:last-child , .welcome-buttons .button:last-child {
  margin-right: 0;
}

.challenge-card .challenge-title, .question-card .question-title {
  margin: .5rem 0;
}

.challenge-card .challenge-subtitle {
  margin: .25rem 0;
}

.question-list-view .bottom-info p, .question-card p:last-child {
  margin-bottom: .5rem;
}

@media screen and (min-width: 62rem) {
  .welcome-buttons .button {
    min-width: 12rem;
    margin: .5rem 2rem;
  }
}

.main-section hr {
  border-color: #ccc;
  margin: 2rem 1rem;
}

.center-title {
  text-align: center;
}

.welcome-buttons {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.welcome-buttons .button {
  min-width: 8rem;
  margin: .5rem 1rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.question-view {
  margin: 0 auto 1rem auto;
  padding: 1rem;
  border: 1px solid #000;
}

@keyframes question-highlight {
  0% {
    border-color: #088;
  }

  80% {
    border-color: #066;
  }

  100% {
    border-color: #000;
  }
}

.question-view:target {
  animation: question-highlight 6s;
}

.question-list-view .subtitle {
  font-size: 80%;
  margin-bottom: 0;
}

.question-list-view .bottom-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 80%;
}

.question-list-view .button {
  height: 1.6rem;
  margin-right: 0;
  font-size: 100%;
}

.stack-list {
  padding: 0;
}


a, a:hover {
  text-transform: none;
  text-decoration: none;
  color: #000;
}

p:not(.button) a:not(.button) {
  text-decoration: underline;
  color: #00f;
}

p:not(.button) a:not(.button).black-link {
  color: #000;
}

p:not(.button) a:not(.button):hover {
  text-decoration: none;
}

.button-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  margin: 1.2rem 0 1.5rem 0;
}

.button-header.little-margin {
  margin-bottom: 1rem;
}

.button-header h1, .button-header h2, .button-header h3, .button-header h4 {
  margin: 0;
  flex-grow: 1;
}

.button-header p, .button-header form {
  margin-top: auto;
  margin-bottom: auto;
}

@media (hover: hover) {
  .button:hover {
    background: #000;
    color: #fff;
    cursor: pointer;
  }
}


.slider {
  box-sizing: border-box;
  width: 10rem;
  height: 1.2rem;
  margin: 0 .5rem;
  position: relative;
}

.outer-range {
  box-sizing: border-box;
  width: 100%;
  height: 1rem;
  background: #f00;
  /* z-index: 1;
  position: relative; */
  position: absolute;
}

.inner-range {
  /* width: 5rem; */
  height: 1rem;
  background: #0f0;
  /* z-index: 2;
  position: relative; */
}

.thumb {
  width: 1rem;
  height: 1rem;
  border: 1px solid #000;
  background: #fff;
  cursor: move;
  position: relative;
  z-index: 3;
}

.parameter-set {
  padding-left: 1rem;
}

ul.parameter-set li {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: .5rem;
}

.parameter-set input[type=range] {
  width: 8rem;
}

.calibration-chart, .score-chart, .forecast-chart {
  margin: 0 auto;
  max-width: 30rem;
}

.show-results-box {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: end;
}

.show-results-box .button {
  width: 100%;
}

.form {
  display: flex;
  flex-direction: column;
}

.form input, .form select, .form textarea {
  margin: .5rem 0;
  border: 1px solid #bbb;
  border-radius: 3px;
  cursor: pointer;
  box-sizing: border-box;
  padding: .4rem .8rem;
  font-size: 100%;
  background: #fff;
}

.oneline-named-field {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  width 100%;
}

.oneline-named-field input, .oneline-named-field label {
  width: 20%;
}
.oneline-named-field input { flex-grow: 2; }
.oneline-named-field label { flex-grow: 1; }


.oneline-form {
  background: #fff;
  font-size: 100%;
  box-sizing: border-box;
  width: 100%;
  max-width: 40rem;
  margin: .8rem auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  border: 1px solid #bbb;
  border-radius: 5px;
}

.oneline-form input, .oneline-form select, .oneline-form label {
  flex-grow: 1;
  width: 10%;
  margin: 0;
  padding: .4rem .8rem;
  border: none;
  border-right: 1px solid #bbb;
  border-radius: 0;
  cursor: pointer;
  box-sizing: border-box;
  font-size: 100%;
  background: none;
}

.oneline-form input:last-child {
  border-right: none;
}

.oneline-named-field {
  /* TODO */
}

.question-answer-form, .question-skip-form, .question-ack-form {
  box-sizing: border-box;
}

.question-answer-form .button, .question-skip-form .button, .question-ack-form .button, .button-box .button {
  box-sizing: border-box;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: .5rem;
  width: 100%;
  display: block;
}

.question-fineprint, .closure-fineprint, .resolver-details, .small {
  font-size: 80%;
}

.challenge-list li p {
  margin-bottom: .5rem;
}

.dashboard-button-box {
  max-width: 40rem;
  margin: .8rem auto .8rem auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.dashboard-button-box .button {
  flex-grow: 1;
}

.large-header-button {
  flex-basis: 40%;
  max-width: 12rem;
  font-size: 100%;
  line-height: 1.4rem;
  height: 2rem;
  box-sizing: border-box;
}

.challenge-box {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: .5rem 0;
}

.challenge-box .textbox {
  width: 60%;
  display: block;
}

.challenge-box .challenge-subtitle {
  margin-top: .5rem;
}

.challenge-box .button {
  height: 2.0rem;
}

.param-value {
  font-family: monospace;
  font-size: 1rem;
}

.page-content-wrapper iframe {
  width: 100%;
  height: auto;
  border: none;
  display: block;
  padding: 0;
}
