html {
    font-size: 16px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*, *:before, *:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

*:focus {
    outline: none;
}

body {
	font-family: 'Roboto Condensed', sans-serif;
	margin: 0;
	padding: 0;
	-webkit-touch-callout: none;
	-webkit-text-size-adjust:none;
}

p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

p.classteacher {
}

a {
    text-decoration: none;
}

.header-bar {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    text-align: center;
    position: relative;
}

.header-bar.black-translucent {
}

.header-logo-wrapper {
    width: 60px;
    height: 60px;
    display: block;
    border: 0;
    margin: 0 auto;
    padding: 10px;
}

.header-logo {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    padding: 0;
    background-image: url('../images/header-logo-light.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.login-button-wrapper {
    font-size: 16px;
    height: auto;
    position: absolute;
    top: 23px;
    line-height: 1;
    right: 18px;
}

.login-button {
}

.left {
    text-align: left;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.onethird {
    width: 33.33%;
}

.twothirds {
    width: 66.66%;
}

.threethirds {
    width: 100%;
}

.not-regular, .not-regular td {
    font-weight: 700;
}

.up-nownext .not-regular {
    font-weight: normal;
}

.additional, .additional td {
    font-weight: 700;
}

.up-nownext .additional {
    font-weight: normal;
}

.lessontext {
    font-style: italic;
}

.up-nownext .lessontext {
    font-style: normal;
    font-size: 24px;
}

.additional + .not-additional {
    margin-top: 0.375em;
}

.cancel, .cancel div, .cancel td {
    text-decoration: line-through;
}

.free, .free div, .free td {
    text-decoration: line-through;
}

.shift, .shift td, .substituted {
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

.up-nownext-container {
    margin-bottom: 20px;
    height: auto;
}

.up-nownext-slide {
    max-width: 800px;
    margin: 0 auto;
}

.up-nownext {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    width: 100%;
    height: auto;
}

.up-nownext-inner {
    padding: 30px 0;
}

.up-nownext-inner > div {
    margin-left: 16px;
    margin-right: 16px;
}

.up-nownext-inner div.float.first {
    margin-right: 20px;
}

.up-nownext-inner div.float.second {
    margin-right: 30px;
}

.up-nownext-inner > div.float.first + div.float.second {
    margin-left: 0;
}

.up-nownext-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    margin-bottom: 10px;
}

.up-button-title {
    text-transform: uppercase;
    font-weight: bold;
    padding: 3px 8px;
    border-width: 2px;
    border-style: solid;
    border-radius: 4px;
}

.up-button-desc {
    text-transform: uppercase;
    font-weight: bold;
    padding: 3px 8px;
    border-width: 2px;
    border-style: solid;
    border-radius: 4px;
}

.android-chrome .up-button-title,
.android-chrome .up-button-desc {
    padding-top: 6px;
    padding-bottom: 3px;
}

.up-button-title + .up-button-desc {
    margin-left: 8px;
}

.up-nownext .msg-ofday {
  white-space: normal;
}

.msg-ofday {
  padding-top: 8px;
  padding-bottom: 10px;
}

.msg-subject {
  font-size: 30px;
}

.msg-text {
  font-size: 18px;
}

.msg-subject + .msg-text {
  margin-top: 10px;
}

.up-nownext .cell {

}

div + div.up-nownext-desc {
    margin-top: 24px;
}

.up-nownext .room {
    font-size: 60px;
    text-transform: uppercase;
}

.up-nownext .break {
    font-size: 60px;
}

.up-nownext .subject {
    font-size: 24px;
    height: 28px;
}

.up-nownext .teacher {
    font-size: 24px;
    height: 28px;
}

.float {
    display: inline-block;
    line-height: 1.1;
    vertical-align: 0;
}

.float.first {
    margin-right: 20px;
    vertical-align: 1px;
}

.float.second {
    line-height: 1.2;
}

.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 40px;
}

form.choose-config {
    display: inline-block;
    vertical-align: bottom;
    width: 70%;
}

form.choose-config,
form.choose-config select {
    margin: 0;
}

div.choose-class {
    width: calc( 30% - 10px );
    display: inline-block;
    padding: 0;
    margin: 10px 10px 10px 0;
}

div.choose-week {
    width: calc( 70% - 26px );
    display: inline-block;
    padding: 0;
    margin: 10px 10px 10px 10px;
}

div.choose-class select,
div.choose-week select {
    width: 100%;
}


table.timetable {
	border: 0;
	width: 100%;
	border-collapse: collapse;
	margin: 0 auto;
	font-size: 0.75em;
	background: none;
	line-height: 1.2;
	table-layout: auto;
}

select {
	appearance:none;
	-moz-appearance:none; /* Firefox */
	-webkit-appearance:none; /* Safari and Chrome */
	font-size: 16px;
	padding: 0 20px 0 10px;
  height: 40px;
	background-image: url('../images/arrow-down.svg');
	background-repeat: no-repeat;
	background-size: 16px 16px;
	background-position: right center;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	border: none;
	border-right: 12px solid transparent;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  text-overflow: ellipsis;

}

select:focus {
	outline: none;
}

input, textarea, button {
  display: block;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  border-style: solid;
  border-width: 0;
  padding: 10px;
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
}

input.submit {
  padding: 10px;
  text-align: center;
  cursor: pointer;
}

input.input-text {
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
}

button.settings-toggle {
  appearance:none;
  -moz-appearance:none; /* Firefox */
  -webkit-appearance:none; /* Safari and Chrome */
  font-size: 16px;
  padding: 0 14px 0 14px;
  height: 40px;
  margin: 10px 0 10px 8px;
  background-image: url('../images/arrow-down.svg');
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: right center;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  border: none;
  border-right: 12px solid transparent;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: bottom;
  width: calc(30% - 12px);
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

button.settings-toggle.open {
  background-image: url('../images/arrow-up.svg');
}

.settings-wrapper {
  padding-top: 0;
  padding-bottom: 20px;
  display: none;
}

.settings-wrapper.visible {
  display: block;
}

.settings-title {
  font-size: 30px;
  padding-bottom: 8px;
  margin-top: 40px;
  font-family: 'Roboto', sans-serif;
}

.settings-wrapper p {
  margin-top: 0;
}

.settings-form,
.login-form {
  font-size: 20px;
  padding-top: 0;
}

.login-form {
  padding-bottom: 40px;
}

.settings-form .checkbox-wrapper,
.login-form .checkbox-wrapper {
  margin-top: 10px;
  margin-bottom: 10px;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.settings-form .settings-submit,
.login-form .settings-submit {
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
}

th {
	empty-cells: hide;
	font-weight: 700;
	white-space: nowrap;
	padding: 0.25em;
}

.timetable table {
  table-layout: fixed;
  -ms-word-break: break-all;
  word-break: break-all;
  word-break: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

.timetable tr {
	padding: 0;
}

.timetable > tbody > tr > td > .td-lessons > tbody > tr {
	padding-top: 10px;
  padding-bottom: 10px;
}

.timetable tr .today {
}

.timetable > tbody > tr > th,
.timetable > tbody > tr > td {
	border: 0;
  border-left-width: 2px;
  border-left-style: solid;
  width: 18%;
}

.timetable > tbody > tr:first-child > th:first-child {
  border-radius: 4px 0 0 0;
}

.timetable > tbody > tr:first-child > th:last-child {
  border-radius: 0 4px 0 0;
}

.timetable > tbody > tr:last-child > th:first-child {
  border-radius: 0 0 0 4px;
}

.timetable > tbody > tr:last-child > td:last-child {
  border-radius: 0 0 4px 0;
}


.timetable > tbody > tr > th:first-child {
  border-left: 0;
  width: 10%;
}


.timetable > tbody > tr:nth-child(even) > th:first-child,
.timetable > tbody > tr:nth-child(even) > td:first-child {
    border-left: 0;
}



.timetable td {
	padding: 0.25em;
	width: auto;
}

table.td-lessons {
    border: 0;
    background: none;
    width: 100%;
}

table.td-lessons tr, table.td-lessons tr:nth-child(2n) {
    border: 0;
    background: none;
    padding: 0;
    width: 100%;
}

table.td-lessons td {
    border: 0;
    background: none;
    padding: 0;
}

table.td-lessons td.left {
    padding-right: 0.063em;
}

table.td-lessons td.center {
    padding-left: 0.063em;
    padding-right: 0.063em;
}

table.td-lessons td.right {
    padding-left: 0.063em;
}

.footer, .footer p {
    display: block;
    width: 100%;
    font-size: 1em;
}

.footer a {
}

p.footer-bigger {
    font-size: 1.2em;
}

p.footer-bigger a {
}

/* Checkboxes */

/* remove standard-styles */


/* graceful degradation for ie8 */
input[type='checkbox'],
input[type='radio'] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border:none;
  border-radius: 0;
  display: absolute;
  width:auto;
  float:left;
  margin-right: 6px;
  background:transparent;
  border:none;
}

input[type='checkbox']:checked,
input[type='checkbox']:not(:checked),
input[type='radio']:checked,
input[type='radio']:not(:checked) {
  background: transparent;
  position: relative;
  visibility: hidden;
  margin:0;
  padding:0;
}

input[type='checkbox'] + label,
input[type='radio'] + label {
  cursor: pointer;
  padding: 5px 0 5px 0;
}

input[type='checkbox']:checked + label::before,
input[type='checkbox']:not(:checked) + label::before,
input[type='radio']:checked + label::before,
input[type='radio']:not(:checked) + label::before {
  content: '';
  display:inline-block;
  width: 30px;
  height:30px;
  vertical-align: middle;
  position: relative;
  background: none;
  margin-top: -4px;
  margin-right: 10px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

input[type='checkbox']:checked + label.has-checkerror::before,
input[type='checkbox']:not(:checked) + label.has-checkerror::before,
input[type='radio']:checked + label.has-checkerror::before,
input[type='radio']:not(:checked) + label.has-checkerror::before {
}

input[type=radio]:checked + label::before,
input[type=radio]:not(:checked) + label::before {
  border-radius: 30px;
}

input[type='checkbox']:hover  + label::before,
input[type='radio']:hover  + label::before {
}

input[type='checkbox'].inverted:not(:checked)  + label::before,
input[type='radio'].inverted:not(:checked)  + label::before {
  background-image: url('../images/check.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

input[type='checkbox']:checked  + label::before,
input[type='radio']:checked  + label::before {
  background-image: url('../images/check.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

input[type='checkbox']:not(:checked)  + label::before,
input[type='radio']:not(:checked)  + label::before {
  background-image: none;
}

input[type='checkbox'].inverted:checked  + label::before,
input[type='radio'].inverted:checked  + label::before {
  background-image: none;
}


@media screen and (max-width : 500px)  {
    html {
        font-size: 10px;
    }

    .footer, .footer p {
        font-size: 1.2em;
    }

    p.footer-bigger {
        font-size: 1.4em;
    }
}
