input.empty {
  background: #fde0b5;
}

input.error {
  border-color: #red;
  background: #f0c0c0;
}

div.content {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  background: white;
  padding: 0.5em 1em;
  letter-spacing: 0;
  background: lightgray;
  overflow-x: auto;
  display: block;
}

div.content.wide {
  max-width: none;
}

body {
  background: gray;
}

body.wide {
  background: lightgray;
}

table#table_data input {
  border: 1px solid #bbb;
}

#table_headline.fontSmall,
#table_data.fontSmall {
  font-size: small;
}

table#table_headline tr > th:last-child,
table#table_data     tr > td:last-child,
table#table_data     tr > th:last-child {
  padding-left: 2px;
}

table#table_headline tr > th,
table#table_data     tr > th {
  position: relative;
  vertical-align: initial;
  vertical-align: baseline;
}

table#table_data     tr > th > div > div {
  display: table-cell;
  position: static;
}

table#table_data     tr > th > div {
  width: 100%;
}

table#table_data     tr > th > div > div.fa-remove {
  width: .9em;
}

table#table_data     tr > th > div > div:last-child {
  top: 0px;
  right:0px;
}

table#table_headline tr > th:last-child > div:last-child,
table#table_data     tr > th:last-child > div > div:last-child { /* RHS */
  left: 0;
}

table#table_data tr > td:nth-of-type(2) {
  padding-left: 0.5em;
  padding-right: 0.5em;
  text-align:  right;
  color: gray;
}

table#table_data td {
  vertical-align: bottom;
}

table#table_data td:first-child {
  vertical-align: inherit;
}

table#table_data td:nth-child(2) {
  vertical-align: middle;
}

table#table_data tr > td.fa-remove {
  padding-right: 0.5em;
  border-right: 0.25em solid lightgray;
  display: table-cell;
}

table#table_headline tr:first-child div.fa-remove,
table#table_data     tr:first-child div.fa-remove {
  padding: 0.125em;  /* tohle zlobi v Opere, melo by byt 0.06em */
  padding: 2px;  /* tohle zlobi v Opere, melo by byt 0.06em */
  padding-right: 0.5em;
  padding-left: 0.5em;
}

table .fa-remove {
  opacity: 0.2;
  background: #D13C38;
  cursor: pointer;
  font-size: inherit;
  padding-left: 0.5em;
}

table th.inactive > div.fa-remove {
  display: none;
}

table .fa-remove.mouseOver.no-touch {
  opacity: 1;
}

.inactive {
  opacity: 0.25;
}

.editing {
  opacity: 1;
}

table td.markedToDelete.no-touch input {
  background: #f0c0c0;
  color: gray;
}

table tr > td.fa-remove._hidden {
  opacity: 0;
  cursor: default;
}

table tr.solution > td {
  font-weight: bold;
  background: teal;
  color: white;
}

table tr.solution > td:nth-child(2),
table tr.solution > td:first-child {
  font-weight: bold;
  background: none;
}

table tr.solution > td:last-child {
  font-weight: normal;
}

div.buttons {
  display: table;
  padding: 1em;
  margin-left: auto;
  margin-right: auto;
}

div.buttons > div {
  display: table-cell;
  padding-left: .5em;
  padding-right: .5em;
}

textarea#textarea {
  margin-top:1em;
  display: block;
  background-color: lightgray;
  color: gray;
}

textarea#textarea:hover,
textarea#textarea:focus {
  background-color: white;
  color: black;
}

div#matrixDiv > div {
  _display: inline-block;
  width: auto;
  max-width: none;
}

div#stretch {
  width: 10px;
  margin-left: 5px;
  margin-right:.5em;
  background-color: #d2b4b3;
  border: none;
  background-image: url('resize.png');
  background-repeat: repeat-y;
}

div#stretch.touch {
  width: 24px;
}

div#matrixDiv > div > div#stretch.no-touch:hover {
  cursor: e-resize;
  background-color: #D13C38;
  background-image: url('resize_black.png');
}

.selectNone {
  -moz-user-select     : none;
  -khtml-user-select   : none;
  -webkit-user-select  : none;
  -o-user-select       : none;
  user-select: none;
}

#div_table_headline {
  background: lightgray;
  font-weight: bold;
  text-align: center;
  position: relative;
  display: block;
}

#table_headline th, #table_headline td {
  padding: 0;
}

table#table_data th > div,
table#table_headline th > div {
  position: relative;
  display: table; /******/
}

table#table_headline th > div > div {
  position: static;
  display: table-cell;
  left: 0;
  right: 0;
}

table#table_headline th > div > div.fa-remove {
  right: 0;
  left:auto;
  width: .9em;
}

.transparent {
  background: transparent;
}

.pure-g {
  word-spacing: 0;
}

div.footer  {
  text-align:center;
}

div.footer > div:first-child {
  display: inline;
}

div.footer > div:first-child > div {
  display: inline-block;
}

div.footer > div:first-child a:hover,
div.footer > div:first-child a {
  text-decoration: none;
  color: grey;
}

div.footer > div:first-child a:hover {
  color: LightSeaGreen;
}

div.footer > div:first-child a.active {
  color: black;
}

div.footer > div:last-child a:hover,
div.footer > div:last-child a {
  text-decoration: none;
  color: dimgrey;
}

div.footer > div:last-child a:hover {
  background: gold;
}

table#table_hint {
  font-style: italic;
  text-align: right;
  color: dimgray;
  margin-top: 0.5em;
  margin-left: 1em;
}

table#table_hint td {
  padding-left: 0.2em;
  padding-right: 0.2em;
}

table#table_hint td.sign {
  text-align: center;
}

div#functions > div.hover {
  color: #D13C38;
}

div#functions_container input {
  background: gainsboro;
}

div#functions_container input:focus {
  background: white;
}

div#functions_container {
  background: gainsboro;
  padding: 0.75em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

div#functions {
}

div.function_entry {
}

div#functions .fa-remove {
  opacity: 0.2;
  cursor: pointer;
  padding-left: 0.5em;
  padding-right: 0.5em;
}

div#functions .fa-remove:hover {
  opacity: 1;
  color: #D13C38;
}

div#addNewFunction {
  letter-spacing: 0;
  display: block;
}

.button-small {
  font-size: 85%;
  padding-top: 0.35em;
  padding-bottom: 0.35em;
}

div#hintNewFunction ul {
  padding-top:0;
  padding-bottom:0;
  margin-top: 0.5em;
  margin-bottom: 0.25em;
}

div#insertNewFunction div.success:first-child {
  background-color: #b0ffd0;
}

div#insertNewFunction div.error:first-child {
  background-color: #ffc8c8;
}

div#functions > div {
  display: inline-block;
}

div#functions > div > * {
  display: inline;
}

div#functions > div > div:first-of-type {
  width: 100%;
  padding-left: 0.25em;
}

