body {
  background: #000;
  color: #dddedd;
  font-family: 'Source Serif Pro', serif;
  font-size: 16px;
  line-height: 1.4;
}

header,
main {
  width: 980px;
  margin: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

header {
  text-indent: 100%;
  overflow: hidden;
  background: url('header.png') left top no-repeat;
  height: 200px;
}

h2 {
  text-align: center;
  background: rgba(255, 255, 255, .1);
  padding: 10px 0;
  margin: 10px 0;
}

li {
  line-height: 1.8;
}

.ravenclaw {
  color: #73A2E6;
  font-weight: bold;
}

.hufflepuff {
  color: #FFBE00;
  font-weight: bold;
}

.gryffindor {
  color: #EA0000;
  font-weight: bold;
}

.slytherin {
  color: #66cc33;
  font-weight: bold;
}

.employee {
  color: #AF86D1;
  font-weight: bold;
}

.professor {
  color: #CB97FF;
  font-weight: bold;
}

.ghost {
  color: #999;
  font-weight: bold;
}

.promotion {
  background: rgba(72, 147, 9, .1);
}

.promotion100 {
  background: rgba(72, 147, 9, .2);
}

.group {
  box-sizing: border-box;
  margin: 0;
  padding: 20px 10px;
  width: 49%;
  display: inline-block;
}

.matches {
  width: 100%;
  border-collapse: collapse;
}

.matches tr {}

.matches tr:nth-child(2n) {
  background: rgba(255, 255, 255, .1);
}

.matches tbody tr:hover {
  background: rgba(255, 255, 255, .15);
}

.matches td {
  padding: 10px;
}

.standings {
  width: 100%;
  margin: 30px 0 0;
  border-collapse: collapse;
}

.standings tbody tr {
  border-bottom: 1px solid #333;
}

.standings td {
  padding: 10px;
}

thead th {
  background: rgba(255, 255, 255, .3);
  padding: 5px 3px;
}

.wrapper {
  position: relative;
}

.toggle {
  display: inline-block;
  color: #66cc33;
  text-decoration: underline;
  font-size: 12px;
  position: absolute;
  top: 18px;
  right: 10px;
}

.toggle:hover {
  text-decoration: none;
}

.bracket {
  display: block;
  position: relative;
  white-space: nowrap;
  font-size: 0;
  margin: 20px;
  width: 820px;
}

.bracket .round {
  display: inline-block;
  vertical-align: middle;
}

.bracket .round .winners>div {
  display: inline-block;
  vertical-align: middle;
}

.bracket .round .winners>div.matchups .matchup:last-child {
  margin-bottom: 0 !important;
}

.bracket .round .winners>div.matchups .matchup .participants {
  border-radius: 0.25rem;
  overflow: hidden;
}

.bracket .round .winners>div.matchups .matchup .participants .participant {
  box-sizing: border-box;
  color: #999;
  border-left: 0.25rem solid #999;
  background: #333;
  min-width: 14rem;
  height: 3rem;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.12);
}

.bracket .round .winners>div.matchups .matchup .participants .participant .result {
  display: inline-block;
  text-align: right;
  float: right;
  min-width: 1rem;
  font-weight: bold;
  white-space: nowrap;
}

.bracket .round .winners>div.matchups .matchup .participants .participant.winner {
  color: #60c645;
  border-color: #60c645;
}

.bracket .round .winners>div.matchups .matchup .participants .participant.loser {
  color: #dc563f;
  border-color: #dc563f;
}

.bracket .round .winners>div.matchups .matchup .participants .participant:not(:last-child) {
  border-bottom: thin solid #999;
}

.bracket .round .winners>div.matchups .matchup .participants .participant span {
  margin: 0 1.25rem;
  line-height: 3;
  font-size: 1rem;
}

.bracket .round .winners>div.connector.filled .line,
.bracket .round .winners>div.connector.filled.bottom .merger:after,
.bracket .round .winners>div.connector.filled.top .merger:before {
  border-color: #60c645;
}

.bracket .round .winners>div.connector .line,
.bracket .round .winners>div.connector .merger {
  box-sizing: border-box;
  width: 2rem;
  display: inline-block;
  vertical-align: top;
}

.bracket .round .winners>div.connector .line {
  border-bottom: thin solid #666;
  height: 4rem;
}

.bracket .round .winners>div.connector .merger {
  position: relative;
  height: 8rem;
}

.bracket .round .winners>div.connector .merger:before,
.bracket .round .winners>div.connector .merger:after {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 50%;
  border: 0 solid;
  position: relative;
  top: -1px;
  border-color: #999;
}

.bracket .round .winners>div.connector .merger:before {
  border-right-width: thin;
  border-top-width: thin;
}

.bracket .round .winners>div.connector .merger:after {
  border-right-width: thin;
  border-bottom-width: thin;
}

.bracket .round.quarterfinals .winners:not(:last-child) {
  margin-bottom: 2rem;
}

.bracket .round.quarterfinals .winners .matchups .matchup:not(:last-child) {
  margin-bottom: 2rem;
}

.bracket .round.semifinals .winners .matchups .matchup:not(:last-child) {
  margin-bottom: 10rem;
}

.bracket .round.semifinals .winners .connector .merger {
  height: 16rem;
}

.bracket .round.semifinals .winners .connector .line {
  height: 8rem;
}

.bracket .round.finals .winners .connector .merger {
  height: 3rem;
}

.bracket .round.finals .winners .connector .line {
  height: 1.5rem;
}

.final-results {
  margin-bottom: 50px;
}

.koncentrace {
  margin: 20px 0 0;
  padding: 0;
}

.koncentrace li {
  display: inline-block;
  background: #333;
  margin: 0 10px 0 0;
  font-size: 1.4em;
}

.koncentrace li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  position: relative;
  display: block;
}

.koncentrace li.active {
  background: #111;
  border-bottom: 10px #111 solid;
}

.koncentrace li.active a {
  color: #fff;
}

.tab-obsah {
  box-sizing: border-box;
  display: none;
  width: 100%;
  min-height: 200px;
  padding: 20px;
  background: #111;
  margin: 0 0 40px;
}

.tab-obsah.active {
  display: block;
}

@media only screen and (max-width: 900px) {

  header,
  main {
    width: 100%;
  }

  header {
    background-size: 400px 80px;
    height: 100px;
  }

  .group {
    width: 100%;
  }

  .bracket-wrapper {
    width: 100%;
    overflow: scroll;
  }
}

.note {
  font-style: italic;
  text-align: right;
}

.important {
  font-size: 18px;
  text-align: center;
  color: #66cc33;
  font-weight: bold;
  line-height: 30px;
  margin: 40px 0;
}

.new {
  font-style: italic;
  color: red;
} 