<!DOCTYPE html>
<html lang="en">
 <head>
  <style>
   @import url(https://fonts.googleapis.com/css?family=Indie+Flower);
* {
  margin: 0;
}

html, body, main {
  height: 100%;
  overflow: hidden;
  background-color: #4d0080;
}

h1 {
  display: block;
  background-color: #4d0080;
  margin: 0 auto;
  color: white;
  text-align: center;
  font-size: 5em;
  font-family: "Indie Flower", cursive;
}

header {
  display: flex;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  color: #00e6ac;
  text-transform: uppercase;
  padding: 20px;
}
header .session {
  font-size: 0.8em;
  display: flex;
}
header .session .breakCtrl, header .session .sessionCtrl {
  display: inline;
  padding-left: 30px;
  padding-right: 30px;
}
header .session .minus, header .session .plus {
  background-color: #4d0080;
  color: #00e6ac;
  border: none;
  cursor: pointer;
  font-size: 2em;
  outline: none;
}
header .session .time {
  font-size: 2.5em;
  padding-left: 10px;
  padding-right: 10px;
}

section {
  background-color: #4d0080;
  height: 100%;
  color: #00e6ac;
}
section .title {
  text-align: center;
  line-height: 180px;
  font-size: 0.8em;
}
section .timer {
  margin: 0 auto;
  text-align: center;
  width: 300px;
  height: 300px;
  font-size: 4em;
  border: 2px solid #ff1a1a;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 20;
  overflow: hidden;
}
section .timer:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 50%;
  z-index: 2;
  border: 4px solid #4d0080;
}
section .fill {
  content: "";
  position: absolute;
  background: #ff1a1a;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: -1;
}
  </style>
 </head>
 <body translate="no">
  <h1>
   Dilip's PomodoroApp
  </h1>
  <main ng-app="PomodoroApp" ng-controller="MainCtrl">
   <header>
    <div class="session">
     <div class="breakCtrl">
      <p>
       break length
      </p>
      <button class="minus" ng-click="breakLengthChange(-1)">
       -
      </button>
      <span class="time">
       {{breakLength}}
      </span>
      <button class="plus" ng-click="breakLengthChange(1)">
       +
      </button>
     </div>
     <div class="sessionCtrl">
      <p>
       session length
      </p>
      <button class="minus" ng-click="sessionLengthChange(-1)">
       -
      </button>
      <span class="time">
       {{sessionLength}}
      </span>
      <button class="plus" ng-click="sessionLengthChange(1)">
       +
      </button>
     </div>
    </div>
   </header>
   <section ng-click="toggleTimer()">
    <div class="timer">
     <p class="title">
      {{sessionName}}
     </p>
     <p>
      {{timeLeft}}
     </p>
     <span class="fill" ng-style="{'height':fillHeight, 'background':fillColor }">
     </span>
    </div>
   </section>
  </main>
 </body>
</html>
