@charset "UTF-8";

@-ms-viewport {
  width: device-width;
}

@font-face {
  font-family: Computer Modern Sans;
  src: url('..../fonts/../fonts/cmunss.eot');
  src: url('..../fonts/cmunss.eot?#iefix') format('embedded-opentype'),
     url('../fonts/cmunss.woff') format('woff'),
     url('../fonts/cmunss.ttf') format('truetype'),
     url('../fonts/cmunss.svg#cmunss') format('svg');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: Computer Modern Sans;
  src: url('../fonts/cmunsx.eot');
  src: url('../fonts/cmunsx.eot?#iefix') format('embedded-opentype'),
     url('../fonts/cmunsx.woff') format('woff'),
     url('../fonts/cmunsx.ttf') format('truetype'),
     url('../fonts/cmunsx.svg#cmunsx') format('svg');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: Computer Modern Sans;
  src: url('../fonts/cmunsi.eot');
  src: url('../fonts/cmunsi.eot?#iefix') format('embedded-opentype'),
     url('../fonts/cmunsi.woff') format('woff'),
     url('../fonts/cmunsi.ttf') format('truetype'),
     url('../fonts/cmunsi.svg#cmunsi') format('svg');
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: Computer Modern Sans;
  src: url('../fonts/cmunso.eot');
  src: url('../fonts/cmunso.eot?#iefix') format('embedded-opentype'),
     url('../fonts/cmunso.woff') format('woff'),
     url('../fonts/cmunso.ttf') format('truetype'),
     url('../fonts/cmunso.svg#cmunso') format('svg');
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: 'Computer Modern Sans Demi-Condensed';
  src: url('../fonts/cmunssdc.eot');
  src: url('../fonts/cmunssdc.eot?#iefix') format('embedded-opentype'),
     url('../fonts/cmunssdc.woff') format('woff'),
     url('../fonts/cmunssdc.ttf') format('truetype'),
     url('../fonts/cmunssdc.svg#cmunssdc') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/MaterialIcons-Regular.eot?v=1); /* For IE6-8 */
  src: url(../fonts/MaterialIcons-Regular.woff2?v=1) format('woff2'),
    url(../fonts/MaterialIcons-Regular.woff?v=1) format('woff'),
    url(../fonts/MaterialIcons-Regular.ttf?v=1) format('truetype');
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: Computer Modern Sans;
  color: #000;
  min-width: 300px;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Computer Modern Sans Demi-Condensed;
  font-weight: normal;
  padding: 0;
  margin: 1.4em 0;
}

p {
  margin: 1.2em 0;
  padding: 0;
}

a {
  text-decoration: underline;
  color: #2E2E2E;
  transition: color .2s;
}

a:active {
  color: #00BCD4;
}

ul, ol {
  padding: 0;
  margin: 0 0 0 1em;
}

li {
  margin: 1em 0;
  padding: 0;
}

table, input[type=submit], .sx-button, .sx-main-header {
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
}

table, input[type=submit], .sx-button {
  background: white;
}

input[type=submit], .sx-button, input[type=text], input[type=number], textarea, select {
  display: inline-block;
  text-decoration: none;
  box-sizing: border-box;
  color: #555;
  border: none;
}

input[type=submit], .sx-button {
  padding: 0 1em;
  border-radius: 2px;
  font-weight: bold;
  cursor: pointer;
  line-height: 2.5;
  transition: background .2s;
  border: 1px solid transparent;
}

input[type=submit]:active, .sx-button:active {
  background: #00BCD4;
}

.sx-button {
  background: rgba(0,0,0,.06);
}

.sx-button:before {
  margin-top: -5px;
}

input[type=submit], .sx-button-highlight {
  background: #00BCD4;
  color: white;
}

button[type="submit"] {
  margin: 1em 0;
  display: block;
}

.sx-highlight {
  color: #00BCD4;
}

table {
  border: 1px solid rgba(0,0,0,.12);
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left;
  margin: 1.4em 0;
}

th, td {
  padding: .5em;
  box-sizing: border-box;
}

th {
  vertical-align: bottom;
  line-height: 1.7;
  font-weight: bold;
}

tbody td, tbody th {
  border-top: 1px solid rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
  vertical-align: middle;
}

tbody tr:nth-child(odd) {
  background: rgba(0,0,0,.03);
}

input[type=text], input[type=number], textarea, select {
  font-family: Computer Modern Sans;
  border-bottom: 1px solid rgba(0,0,0,.12);
  margin: 0;
  background: none;
  text-align: left;
  color: #000;
  font-size: 1em;
  padding: .5em;
  width: 100%;
  line-height: 1.5em;
  margin: 1em 0 0 0;
}

input[type=text]:focus, input[type=number]:focus, textarea:focus, select:focus,
input[type=checkbox]:focus + label:before, input[type=radio]:focus + label:before, input[type=checkbox] + label:focus:before, input[type=radio] + label:focus:before {
  border-color: #00BCD4;
}

label {
  box-sizing: border-box;
  padding: 0 .5em;
  font-weight: normal;
  display: inline;
  font-size: .9em;
  width: 100%;
  margin: 0 0 1em;
  cursor: pointer;
}

*[data-icon]:before, input[type=checkbox] + label:before, input[type=radio] + label:before {
  content: attr(data-icon);
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: 'liga';
  -moz-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  vertical-align: middle;
  margin-right: .5em;
  overflow: hidden;
}

input[type=checkbox], input[type=radio] {
  display: none;
}

input[type=checkbox] + label, input[type=radio] + label {
  font-size: 1em;
  margin: 1em 0 0;
  display: block;
}

input[type=checkbox] + label:before, input[type=radio] + label:before {
  font-size: 2em;
  margin-right: .5em;
}

input[type=checkbox] + label:before {
  content: 'check_box_outline_blank';
}

input[type=checkbox]:checked + label:before {
  content: 'check_box';
}

input[type=radio] + label:before {
  content: 'radio_button_unchecked';
}

input[type=radio]:checked + label:before {
  content: 'radio_button_checked';
}

input[type="submit"] {
  margin: 1em 0;
  display: block;
  width: auto;
}

table input[type], table input[type] + label {
  margin: 0;
}

nav ul {
  list-style: none;
  margin: 0;
}

nav a {
  width: 100%;
  padding: 0 1em;
}

small {
  display: block;
  font-style: italic;
  margin-top: 1em;
}

small + .sx-button {
  margin-top: .25em;
}

.sx-main-header {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 3em;
  background: #2E2E2E;
  color: white;
  box-sizing: border-box;
  padding: 0 1em;
}

.sx-main {
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

.sx-logo {
  margin: 0;
  font-size: 2em;
  line-height: 1.5;
}

.sx-main-content {
  position: absolute;
  top: 3em;
  right: 0;
  left: 0;
  bottom: 0;
}

.sx-main-content .sx-page-container {
  height: 100%;
  overflow: auto;
  padding-right: 2.5em;
}

.sx-page-shadow, .sx-main-content *[data-page-type] ~ *[data-page-type], .sx-sticky-container .sx-close, .sx-login-container .sx-close, .sx-hidden.sx-hidden, .sx-script.sx-script, .sx-sticky-container {
  display: none;
}

.sx-page-container {
  padding: 2em 1em 1em;
  box-sizing: border-box;
}

.sx-close {
  position: absolute;
  right: 0;
  top: 1em;
  cursor: pointer;
  display: block;
  background: white;
}

.sx-page-container *:first-child {
  margin-top: 0;
}

.sx-loading * {
  cursor: progress !important;
}

input[data-invalid], textarea[data-invalid], select[data-invalid] {
  border-color: red;
}

.sx-no-script {
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  padding: 10px;
  border-top: 1px solid rgba(0,0,0,.12);
  background: white;
  font-size: .8em;
  text-align: center;
  box-sizing: border-box;
  display: none;
  color: #00BCD4;
}

@media only screen and (min-width: 1200px) {
  .sx-main-content .sx-page-container {
    padding-right: 3.5em;
  }

  .sx-close {
    right: 1em;
  }
}

.sx-body-no-script .no-script {
  display: block;
}

.sx-body-no-script *[data-icon]:before {
  display: none;
}

.sx-body-no-script *[data-icon]:after {
  content: attr(title);
}

.calculation em {
  margin: 0 .2em;
  font-size: 1.5em;
}

input[data-invalid] {
  color: red;
}

.timer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #00BCD4;
}

.timer.active {
  transition: width 1s linear;
}

.shake {
  animation: shake .5s;
  transform: translate3d(0, 0, 0);
}

.score-container {
  margin-bottom: 3.3em;
}

.score {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.4em;
  margin: 0;
  list-style: none;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
  background: #2E2E2E;
  color: white;
  text-transform: uppercase;
  font-family: Computer Modern Sans Demi-Condensed;
}

.score li {
  padding: .5em 1em;
  margin: 0;
  position: absolute;
  bottom: 0;
  display: inline-block;
}

.score li:first-child {
  left: 0;
}

.score li:last-child {
  right: 0;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
}

.uni-button {
  flex: 1 0 auto;
  margin: 0 1.5em 1.5em 0;
}

input[type=checkbox] + label {
  padding: 0;
}

.fade {
  transition: max-height .5s;
  max-height: 4em;
  overflow: hidden;
  box-sizing: border-box;
}

.accordion-header {
  display: inline-block;
  color: #00BCD4;
  cursor: pointer;
  margin: .5em 0;
  position: relative;
  padding-right: 2em;
  font-weight: bold;
  min-width: 100px;
}

.accordion-header:before {
  content: "keyboard_arrow_down";
  position: absolute;
  right: 0;
  margin-right: 0;
}

.accordion-header.active:before {
  content: "keyboard_arrow_up";
}

.accordion {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity .5s, visibility .5s;
}

.active + .accordion {
  opacity: 1;
  visibility: visible;
  max-height: 1000px;
  padding-bottom: 1em;
  box-sizing: border-box;
}

.op {
  position: relative;
}

.top, .bottom {
  font-size: .7em;
  line-height: 1.15;
  margin-left: .3em;
  padding: 0 .2em 0 .1em;
  position: absolute;
}

.top {
  top: -.3em;
  border-bottom: 1px solid black;
}

.bottom {
  bottom: -.3em;
}

.clear-broke {
  padding-right: .7em;
}

#settings-usetime:not(:checked) ~ .fade-time,
#settings-usebroke:not(:checked) ~ .fade-broke,
#settings-usecomma:not(:checked) ~ .fade-comma,
#settings-nonumber:checked ~ .fade-number {
  max-height: 0;
}

.no-icon *[data-icon]:before, .no-icon input[type=checkbox] + label:before, .no-icon input[type=radio] + label:before {
  display: none;
}

.no-icon .sx-close:before {
  font-family: "Computer Modern Sans Demi-Condensed";
  content: "x";
  display: inline;
}

.no-icon label {
  display: block;
}

.no-icon input, .no-icon .fade {
  clear: left;
}

.no-icon input[type=checkbox], .no-icon input[type=radio] {
  display: inline-block;
  float: left;
  margin: 1em .5em 0;
  height: 1em;
  width: 1em;
  font-size: 1em;
}

.no-icon input[type=checkbox] + label, .no-icon input[type=radio] + label {
  float: left;
  width: auto;
  line-height: 1.1;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-3px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(3px, 0, 0);
  }
}
