html,
body {
  margin: 0;
  padding: 0;
}
body {
  font: 14px "Open Sans", Arial, sans-serif;
  background: lightgrey;
}
.pages > *:not(:first-child) {
  display: none;
}
.inner {
  margin: 0 0;
  max-width: 1000px;
  height: 100%;
}
@media (min-width: 400px) {
  .inner {
    margin: 0 calc( 30%  +  -120px );
  }
}
@media (min-width: 600px) {
  .inner {
    margin: 0 10%;
  }
}
@media (min-width: 1240px) {
  .inner {
    margin: 0 auto;
  }
}
.spacer {
  flex-grow: 1;
}
.centered {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.header {
  height: 60px;
  font-size: 1.5em;
  color: white;
  background: #585858;
  position: relative;
}
.header > .inner {
  display: flex;
  align-items: center;
}
.header > .inner span {
  padding: 8px;
}
.header .page-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.info-container {
  position: fixed;
  top: 0;
  width: 100%;
  height: 140px;
  transition: transform 0.5s ease;
}
.info-container.notification {
  transform: translateY(60px);
}
.info-container .notification {
  background: #f0f0f0;
  height: 60px;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
  transform: translateY(-60px);
  transition: transform 0.5s ease;
}
.info-container .notification .inner {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.info-container .header {
  position: absolute;
  top: 0;
  width: 100%;
}
.info-container .score-box {
  position: absolute;
  top: 60px;
  width: 100%;
}
.info-container .time-box {
  position: absolute;
  top: 260px;
  width: 100%;
}
.score-box {
  transition: height 0.4s ease 0.1s;
  height: 200px;
  background: linear-gradient(to right, #808080 0%, #808080 50%, #D0D0D0 51%, #D0D0D0 100%);
  z-index: 10;
  width: 100%;
}
.score-box .inner {
  display: flex;
  overflow: hidden;
  flex-direction: row;
  position: relative;
}
.score-box .inner .time {
  display: none;
}
.score-box .inner .time .content {
  color: white;
  font-size: 1.5em;
  padding: 0 8px;
}
.score-box .inner .time,
.score-box .inner .left,
.score-box .inner .right {
  transition: flex-grow 0.2s ease;
  flex-grow: 1;
  transform: skewX(-20deg);
  max-width: 1000px;
}
.score-box .inner .time > .content,
.score-box .inner .left > .content,
.score-box .inner .right > .content {
  position: relative;
  display: flex;
  flex-direction: column;
  transform: skewX(20deg);
  height: 100%;
}
.score-box .inner .left,
.score-box .inner .right {
  min-width: 80px;
}
.score-box .inner .left .team,
.score-box .inner .right .team {
  position: absolute;
}
.score-box .inner .left {
  background: #808080;
}
.score-box .inner .left .team {
  top: 0;
  left: 0;
}
.score-box .inner .right {
  background: #D0D0D0;
}
.score-box .inner .right .team {
  bottom: 0;
  right: 0;
}
.score-box .inner .right > .content {
  flex-direction: column-reverse;
  align-items: flex-end;
}
.score-box .score {
  position: absolute;
  top: 50%;
  transition: font-size 0.4s ease 0.1s;
  font-size: 6em;
  padding: 10px;
  color: white;
}
.score-box .left .score {
  right: 10px;
  transform: translate(-50px, -50%);
}
.score-box .right .score {
  left: 10px;
  transform: translate(50px, -50%);
}
@media (max-width: 600px) {
  .score-box .left .score {
    right: -10px;
  }
  .score-box .right .score {
    left: -10px;
  }
}
.score-box .team {
  opacity: 1;
  transition: opacity 0.3s ease 0.2s;
  padding: 10px;
  font-size: 2em;
  color: white;
}
.score-box.min {
  height: 80px;
  transition: height 0.5s ease;
}
.score-box.min .inner .time,
.score-box.min .inner .left,
.score-box.min .inner .right {
  transition: flex-grow 0.5s ease;
}
.score-box.min .inner .left {
  flex-grow: 12;
}
.score-box.min .inner .time {
  display: block;
}
.score-box.min .inner .time .content {
  line-height: 80px;
}
.score-box.min .inner .team {
  transition: opacity 0s ease;
  opacity: 0;
}
.score-box.min .inner .score {
  transition: font-size 0.5s ease;
  font-size: 2em;
}
.boxes {
  padding-top: 80px;
  margin-top: 260px;
  transition: all 0.5s ease;
}
.boxes.min {
  margin-top: 140px;
}
.time-box {
  transition: transform 0.3s ease 0.2s;
  z-index: 9;
  height: 60px;
  font-size: 1.5em;
  color: white;
  background: #A8A8A8;
}
.time-box > .inner {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
}
.time-box > .inner span {
  padding: 8px;
}
.time-box .time {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.75em;
}
.time-box.min {
  transition: all 0.3s ease;
  transform: translateY(-180px);
}
.inner .navigation {
  display: flex;
  align-items: center;
  font-size: 1.5em;
}
.inner .navigation > * {
  display: inline-block;
  padding: 8px;
}
.inner .navigation .dropdown span:last-child {
  padding: 8px;
}
.list-title {
  padding: 8px;
}
.list .list-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 40px;
  padding: 8px;
}
.box > .inner > * {
  display: flex;
  flex-wrap: wrap;
}
.box > .inner > * .navigation {
  flex-basis: 100%;
}
.box > .inner > * > * {
  flex-grow: 1;
  flex-basis: 600px;
}
/* index */
.big-header {
  height: 200px;
  padding-top: 10px;
  font-size: 1.5em;
  color: white;
  background: #585858;
  position: relative;
}
.big-header > .inner {
  display: flex;
  align-items: flex-start;
}
.big-header > .inner span {
  padding: 8px;
}
.big-header .page-title {
  font-size: 3em;
  align-self: flex-end;
  mix-blend-mode: difference;
  margin-bottom: -20px;
}
.controls .inner {
  min-height: 100px;
}
.controls .inner .buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.controls .inner .buttons button {
  flex-basis: 100px;
  flex-grow: 1;
  padding: 10px;
  font-size: 1.25em;
  margin: 10px;
}
