/* Reset */

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, button {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
        font-family: sans-serif;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}




/* Stylesheet */

#content {
  display: table-row;
  height: 100%;
}

#outer-container {
  align-items: center;
  justify-content: center;
  display: flex;
  width: 100%;
  /*height: 100%;*/
}

#main_container {
  display: table;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100vh;
}

#container {
  max-width: 100%;
  max-height: 100%;
}

h1 {
  text-align: center;
  width: 100%;
  font-size: 1.7em;
  margin-top: .5em;
  margin-bottom: .5em;
  font-weight: 100;
}

body.main h1 {
  margin-top: 1em;
  margin-bottom: 1em;
}

div.questions {
  max-width: 100vw;
  width: 700px;
}

div.question {
  padding: 1.5em 2em;
}
div.question > span {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 1em;
  display:block;
}

p, span, a, li {
  line-height: 1.4em;
}

p {
  margin: .4em .1em;
}

ul {
  margin-left: 1em;
}
ul li {
  list-style-type: disc;
  margin-left: 1em;
}

#info {
  display: block;
  width: 100%;
}

#input {
  width: 40em;
  max-width: calc(100vw - 2em);
  height: 1.2em;
  border: 1px solid #0af;
  font-size: 1.2em;
  font-family: sans-serif;
  padding: .5em;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.option input[type="number"],
.option input[type="text"] {
  border: 1px solid #0af;
  font-family: sans-serif;
  padding: 6px;
  margin: 0em .3em;
  -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#input::placeholder {
  text-align: center;
  font-style: italic;
}

*:focus {
  outline: none;
}

html, body {
  width: 100%;
  height: 100vh;
  min-width: 100%;
  min-height: 100vh;
  max-width: 100%;
  max-height: 100vh;
  margin: 0;
  padding: 0;
}

body.main {
  /*overflow: hidden;*/
}

/*#max_container {
  max-height: 70vh;
}*/

/*#max_container {
  height: 100%;
  display: table-row;
}

#max_img {
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  width: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}*/

#max_img {
  max-width: 80vw;
  max-height: 50vh;
}

@media (max-height:700px) {
  #max_img {
    max-height: 30vh;
  }
}

#max_span {
  display: block;
  font-style: italic;
}

a {
  text-decoration: none;
  word-break: break-all;
}

#max_a_container {
  padding:1em;
}

#max_a {
  padding-bottom:1em;
}

hr {
   border: 0;
   height: 1px;
   /*background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 5%, rgba(0, 170, 255, 0.5) 50%, rgba(0, 0, 0, 0) 95%);*/
   background: #0af;
}

#footer div {
  /*margin-left: auto;
  margin-right: auto;*/
  margin: 1em auto;
  display: table;
  font-weight: 100;
}

#footer a, #footer span.current {
  font-weight: 400;
}

#footer a, #footer span.current {
  margin-left: 1em;
  margin-right: 1em;
}

#footer .section {
  display: inline;
}

@media (max-width:700px) {
  #footer a, #footer span.current {
    font-size: .9em;
    margin-left: .4em;
    margin-right: .4em;
  }
}

@media (max-width:400px) {
  #footer a, #footer span.current {
    /*font-size: .9em;*/
    margin-left: .5em;
    margin-right: .5em;
  }

  #footer .section {
    display: block;
    text-align: center;
    margin-top: .5em;
    margin-bottom: .5em;
  }

  #footer .line.last {
    display: none;
  }
}

#footer a {
  color: #999;
}

#footer a:hover {
  color: #555;
}

div.big_break {
  height: 2em;
}

em, i {
  font-style: italic;
}

b, strong {
  font-weight: 700;
}

code {
  font-family: monospace;
  background: #eee;
  padding: 0.05em 0.3em;
}


.option input[type="checkbox"] {
  position: absolute !important;
  clip: rect(0,0,0,0);
  visibility: hidden;
  height: 1px;
  width: 1px;
  border: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

label, button {
  display: inline-block;
  padding: 6px 14px;
  margin: 0em .3em;
  border: 1px solid #0af;
  cursor: pointer;
  background: none;

  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

button:active {
  background: #08c;
  border-color: #08c;
}

.disabled {
  color: #aaa;
}

.disabled label, .disabled button, .disabled input {
  cursor: default;
  border: 1px solid #aaa !important;
}

input:checked + label, button {
  background: #0af;
  color: #fff;
}

.disabled input:checked + label, .disabled button, .disabled button:active {
  border-color: #aaa;
  background: #aaa;
  color: #fff;
}

.option {
  padding: .8em;
}
.option strong {
  font-weight: 400;
  display: inline-block;

  text-decoration: none;
  border-bottom: 1px dashed #999;
}

.option .name_td {
  width: 19em;
}

.option .group {
  padding-bottom: .3em;
  padding-top: .3em;
}

@media (max-width:700px) {
  .option td {
    display: block;
  }

  .option .name_td {
    width: auto;
    display: block;
  }

  .option strong {
    width: auto;
    display: block;
    margin: .5em;
  }
}

#options h1 {
  margin-bottom: 1.5em;
}

#options h3 {
  font-size: 1.3em;
  font-weight: 400;
}




/* Disable image preview */
/*#max_container {
  display: none
}*/

#outer-container {
  height: 100%;
}
