body {
    margin:0;
    font-family: sans-serif;
}
.clearfix:after{
    display: table;
    content:'';
    clear:both;
}
#clock-holder,#timers-holder{
    padding:20px;
    background-color:#a55;
    width:340px;
    max-width:100%;
    margin: 0 auto;
    text-align: center;
    position:relative;
    box-sizing: border-box;
}
#clock {
    display: inline-block;
    height:200px;
    width:200px;
    border-radius:100px;
    background-color:#000;
    position:relative;
}
.hand-center {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 100px;
    box-sizing: border-box;
    top: 50%;
    left: 50%;
    margin-top: -5px;
    margin-left: -5px;
}
.hand-center.hidden {
    display: none;
}
.hand{
    background-color:#bbb;
    position:absolute;
    top:50%;
    left:50%;
}
#hour-center {
    -webkit-transform:rotate(0deg);
    transform:rotate(0deg);
    z-index:1;
}
#hour {
    width:6px;
    height:55px;
    margin-left:-3px;
    margin-top:-3px;
}
#minute-center {
    -webkit-transform:rotate(0deg);
    transform:rotate(0deg);
    z-index:2;
}
#minute {
    width:4px;
    height:80px;
    margin-left:-2px;
    margin-top:-2px;
}
#second-center {
    background-color:#f55;
    -webkit-transform:rotate(0deg);
    transform:rotate(0deg);
    z-index:3;
}
#second {
    background-color:#f55;
    width:2px;
    height:92px;
    margin-left:-1px;
    margin-top:-14px;
}
.fiveminute {
    position:absolute;
    height:20px;
    width:4px;
    background-color: #fff;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
}
#zero {
    left:50%;
    margin-left:-2px;
    top:0px;
}
#five {
    left:149px;
    top:12px;
    -webkit-transform:rotate(30deg);
    transform:rotate(30deg);
}
#ten {
    left:186px;
    top:48px;
    -webkit-transform:rotate(60deg);
    transform:rotate(60deg);
}
#fifteen {
    left:100%;
    top:50%;
    margin-top:-2px;
    -webkit-transform:rotate(90deg);
    transform:rotate(90deg);
}
#twenty {
    left:187px;
    top:149px;
    -webkit-transform:rotate(120deg);
    transform:rotate(120deg);
}
#twentyfive {
    left:151px;
    top:186px;
    -webkit-transform:rotate(150deg);
    transform:rotate(150deg);
}
#thirty {
    left:50%;
    top:100%;
    margin-left:2px;
    -webkit-transform:rotate(180deg);
    transform:rotate(180deg);    
}
#thirtyfive {
    left:52px;
    top:188px;
    -webkit-transform:rotate(210deg);
    transform:rotate(210deg);
}
#forty {
    left:14px;
    top:152px;
    -webkit-transform:rotate(240deg);
    transform:rotate(240deg);
}
#fortyfive {
    left:0;
    top:50%;
    margin-top:2px;
    -webkit-transform:rotate(270deg);
    transform:rotate(270deg);
}
#fifty {
    left:12px;
    top:51px;
    -webkit-transform:rotate(300deg);
    transform:rotate(300deg);
}
#fiftyfive {
    left:48px;
    top:14px;
    -webkit-transform:rotate(330deg);
    transform:rotate(330deg);
}
#timers-holder{
    height:238px;
}
#timers-nav{
    position: relative;
    z-index:1;
    width:250px;
    margin:auto;
}
.nav {
    position: relative;
    float:left;
    border: 1px solid #bbb;
    margin-left:2px;
    padding:4px;
    color:#bbb;
    background-color:#a55;
    transition: background 0.5s, color 0.5s;
    top:1px;
    height:30px;
    box-sizing: border-box;
}
.nav:not(.current):hover {
    cursor:pointer;
    background-color:#bbb;
    color:#a55;
}
.nav.current {
    border-bottom:none;
    padding-bottom:5px;
    cursor:default;
}

#stopwatch,#timer {
    font-family: Inconsolata, serif;
    padding:20px;
    border:1px solid #bbb;
    position:absolute;
    background-color:inherit;
    display:none;
}
#stopwatch.current,#timer.current {
    display: block;
    margin:auto;
    top:50px;
    left:0;
    right:0;
    width:210px;
}
h2{
    margin-top:0px;
    font-size: 1.2em;
}
.button-holder {
    margin-bottom:10px;
}
.button-holder .button {
    display: inline-block;
    color:#444;
    border:none;
    padding:10px;
    cursor: pointer;
}
.time-holder .unit {
    display:inline-block;
    height:30px;
    width:40px;
    padding:5px;
    background-color:#000;
    color:#f00;
    font-size:1.7em;
    vertical-align: top;
}
.time-holder.timer-stopped .unit {
    color: #00f;
}
#output {
    position:fixed;
    background:black;
    color:white;
    top:0;
    left:0;
    padding:20px;
}