html {
  font-family: 'Muli', Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

.background-view {
  color: #ddd;
  padding-top: 90vh;
  padding-bottom: 10vh;
  text-align: center;
}

body::after {
  background: transparent url('https://assets.codepen.io/316768/default.jpg') no-repeat center center;
  background-size: cover;
  content: '';
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: -1;
}

#mobile-controls {
  display: flex;
  box-shadow: 10px 0 20px 5px rgba(0, 0, 0, 0.15);
  bottom: 0;
  position: fixed;
  z-index: 100;
}

#mobile-controls > span {
  background-color: rgba(255, 255, 255, 0.95);
  display: block;
  font-size: 0.8em;
  border-left: 1px solid #ddd;
  padding: 10px 15px;
  text-align: center;
  transition: all 0.2s ease;
  width: 33.34vw;
}

#mobile-controls > span:hover {
  cursor: pointer;
  background-color: #f5ffee;
}

#mobile-controls > span:first-of-type {
  border-left: 0;
}

@media only screen and (min-width: 600px) {
  #mobile-controls {
    right: 0;
    width: 400px;
  }
  
  #mobile-controls,
  #mobile-controls > span:first-of-type {
    border-top-left-radius: 10px;
  }
}

.intro-wrap {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 20px 5px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  padding: 20px 20px;
  width: 100%;
}

h1 {
  margin: 0;
  padding-bottom: 20px;
}

h2 {
  margin: 0;
  padding-bottom: 20px;
  padding-left: 1.6em;
}

.intro-wrap li {
  padding-bottom: 0.5em;
}

.start {
  position: relative;
  margin-bottom: 20px;
}

.start button {
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.06);
  color: #000;
  display: inline-block;
  padding: 5px 10px;
  margin: 0 5px 5px 0;
  transition: all 0.2s ease;
}

.start button:hover {
  background-color: #ddd;
  box-shadow: 0 8px 2px 0 rgba(0, 0, 0, 0.06);
  transform: translateY(-5px);
}

.start button.current,
.start button.current:hover {
  background: linear-gradient(to bottom, #f5ffee 0%,#ebffdd 100%);
  border: 1px solid #cdf1b5;
  box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.06);
  cursor: default;
  transform: translateY(0);
}

/* Calendar */
.calendar-wrap {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 0.5vw;
}

.tile {
  background-color: rgba(255, 255, 255, 0.50);
  box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 3px;
  flex: 1 1 12vw;
  min-width: 200px;
  margin: 0 15px 40px 15px;
  padding: 0 0 25px;
  position: relative;
  top: 0;
  text-align: center;
  transition: all 0.2s ease;
}

.tile.spacer {
  border: 0;
  height: 0;
  padding: 0;
}

.tile h3 {
  background: linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%);
  border-radius: 3px;
  box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.06);
  cursor: pointer;
  margin: 0 -10px;
  padding: 20px 0 15px 0;
  text-transform: uppercase;
}

.tile .weekday {
  background-color: #f6f6f6;
  border-top: 1px solid #ddd;
  border-radius: 3px;
  box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.06);
  margin: 0 -10px;
  font-size: 0.6em;
  padding: 5px 0;
}

.tile ul {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  list-style: none;
  margin: 15px -10px 0;
  padding: 0;
}

.tile li {
  background-color: #f6f6f6;
  box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.06);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  display: flex;
  flex: 0 0 45%;
  font-weight: 200;
  font-size: 2em;
  margin-top: -1px;
  position: relative;
  text-align: center;
  transition: transform 0.2s ease;
}

.tile li:first-of-type {
 border-top: 0;
 border-top-left-radius: 12px;
 border-top-right-radius: 12px;
}

.tile li:last-of-type {
 border-bottom-left-radius: 12px;
 border-bottom-right-radius: 12px;
}

.tile li:first-of-type .entry {
 border-top-right-radius: 12px;
}

.tile li:last-of-type .entry {
 border-bottom-right-radius: 12px;
}

.tile li:first-of-type label {
 border-top: 0;
 border-top-left-radius: 12px;
}

.tile li:last-of-type label {
 border-bottom-left-radius: 12px;
}

.tile li:hover {
  box-shadow: 0 6px 6px 6px rgba(0, 0, 0, 0.06);
  transform: scale(1.02);
}

.tile .entry {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  padding: 0 0;
  transition: all 0.2s ease;
  width: 100%;
}

.tile li label {
  align-items: center;
  background-color: #fff;
  border: 0;
  border-right: 1px solid #ddd;
  cursor: pointer;
  display: flex;
  flex-basis: 55%;
  flex-shrink: 0;
  flex-direction: row-reverse;
  font-size: 0.45em;
  font-weight: normal;
  line-height: 1.2em;
  padding: 14px 10px 14px 5px;
  width: 55%;
}

.tile .text,
.tile .time {
  padding-left: 10px;
  text-align: left;
  width: 100%;
}

.tile .timer-control {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.tile .timer-control::after {
  content: "▶️";
}

.tile .timer.running > .timer-control::after,
.tile .timer.done > .timer-control::after {
  display: none;
}

.tile li .partials {
  display: flex;
  font-size: 0.6em;
  justify-content: stretch;
  width: 100%;
}

.tile li .partial {
  background-color: #fcfcfc;
  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
  display: none;
  flex-basis: 100%;
  position: relative;
  text-align: left;
}

.tile li .partial:first-of-type {
  border-left: 0;
}

.tile li .partial .text,
.tile li .partial .time {
  display: block;
  padding: 10px 0 10px 10px;
}

/* -- Today's day tile */
#todays-tile h3 {
  background: linear-gradient(to bottom, #f5ffee 0%,#ebffdd 100%);
}

#todays-tile .weekday {
  background-color: #f5ffee;
  border-color: #cdf1b5;
}

#todays-tile li {
  background-color: #fafef8;
  border-color: #cdf1b5;
}

#todays-tile .partial {
  background-color: #ffffff;
}

/* -- Previous day tile */
.tile.passed {
  opacity: 0.5;
}

.tile.passed:hover {
  opacity: 0.75;
}

/* -- Done li*/

.tile .done {
  background-color: #cccccc;
  color: #fff;
  position: relative;
}

.tile .done .partial {
  opacity: 0.5;
}

.tile .partial.done {
  background-color: #cccccc;
  color: #fff;
}

.tile .done .partial.done {
  background-color: #fafef8;
}

.tile .partial.done::after {
  right: 4%;
  top: 4%;
}

.tile .done label {
  color: #000;
}

.tile .done::after {
  background: transparent url('../checkmark.svg');
  background-size: 22px 22px;
  content: '';
  height: 22px;
  position: absolute;
  right: 8px;
  top: 10px;
  width: 22px;
}

#todays-tile .done {
  background-color: #44a600;
}

#todays-tile .done::after {
  background: none;
  content: "✅";
  font-size: 0.6em;
  right: 10px;
  position: absolute;
  top: 10px;
}

/* -- Focused */
.tile.focused {
  background-color: #fff;
  left: 0;
  height: 100vh;
  margin: 0;
  max-width: initial;
  overflow-x: hidden;
  overflow-y: auto;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 999;
}

.tile.passed.focused {
  opacity: 1;
}

.tile.focused .entry {
  align-items: stretch;
  justify-content: center;
  padding-left: 0;
}

.tile.focused ul {
  margin: 10px 10px;
}

.tile.focused li {
  border: 1px solid #eee;
}

.tile.focused li label {
  flex-basis: 30%;
  padding: 20px 10px 20px 5px;
  text-align: right;
  width: 30%;
}

.tile.focused .done::after {
  font-size: 0.2em;
}

.tile.focused li .partial {
  display: inline-block;
}

.tile.focused .partials ~ .timer-control {
  top: 0;
  transform: none;
}


/* -- Media -- */
@media only screen and (min-width: 400px) {
  .tile li {
    font-size: 6vw;
  }
}

@media only screen and (min-width: 600px) {
  .intro-wrap {
    display: flex;
  }
  
  .intro-wrap .title {
    width: 30%;  
  }
  
  .tile li {
    font-size: 3.4vw;
  }
}

@media only screen and (min-width: 1000px) {
  .tile li {
    font-size: 2vw;
  }
  
  .tile.focused .entry {
    font-size: 3.4vw;
  }
  
  .tile.focused li label {
    font-size: 1.6vw;
  }
}

@media only screen and (min-width: 1600px) {
  .tile li {
    font-size: 1.2vw;
  }
  
  
  .tile.focused .entry {
    font-size: 2.8vw;
  }
  
  .tile.focused li label {
    font-size: 1.4vw;
  }
}