@import '../../shared/mixins',
        '../../shared/reset',
        '../../shared/about-dark';

/*
 * Copyright (c) 2013 Thibaut Courouble
 * http://www.cssflow.com
 *
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 */

html, body { min-height: 100%; }

body {
  font: 12px/20px 'Lucida Grande', Verdana, sans-serif;
  color: #404040;
  background: #eee;
  @include radial-gradient(circle cover, #edf0f0, #d7d9da 80%);
}

.clock {
  margin: 60px auto;
  text-align: center;
  cursor: default;
  @include user-select(none);
}

.clock-block {
  display: inline-block;
  vertical-align: top;
  position: relative;
  width: 100px;
  height: 98px;
  margin: 0 8px;
  padding-top: 16px;
  line-height: 1;
  font-family: Helvetica, Arial, sans-serif;
  text-align: center;
  text-shadow: 0 1px rgba(white, .3);
  background: #e5e7eb;
  border: 1px solid #9fa2ad;
  border-radius: 3px 3px 2px 2px;
  @include box-sizing(border-box);
  @include linear-gradient(top, #f1f2f5, #e5e7eb 20%, #c2c5d1 50%, #e5e7eb 80%, #e4e5eb);
  @include box-shadow(inset 0 1px rgba(white, .5), 0 1px 2px rgba(black, .1));

  &:before, &:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -1px;
    right: -1px;
    z-index: -1;
    height: 4px;
    background: #cacfd9;
    border: 1px solid #9fa2ad;
    border-radius: 2px;
    @include box-shadow(inset 0 0 0 1px rgba(white, .4), 0 1px 2px rgba(black, .1));
  }

  &:before { bottom: -7px; }
}

.clock-val {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 64px;
  font-weight: bold;
  color: #4f5258;

  &:before, &:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
  }

  &:before {
    z-index: -1;
    top: -16px;
    bottom: 50%;
    border-radius: 2px 2px 0 0;
    @include box-shadow(inset 0 0 0 1px rgba(white, .2));
  }

  &:after {
    top: 50%;
    bottom: -16px;
    border-top: 1px solid rgba(#3c3e44, .4);
    border-radius: 0 0 2px 2px;
    @include linear-gradient(top, rgba(white, .25), rgba(white, 0) 50%);
    @include box-shadow(inset 0 1px rgba(white, .3), inset 0 0 0 1px rgba(white, .2));
  }
}

.clock-unit {
  display: block;
  margin-top: -2px;
  font-size: 13px;
  font-weight: 200;
  color: #6b707a;
  text-transform: capitalize;

  &:after {
    content: '';
    position: absolute;
    z-index: -2;
    top: 100%;
    left: -1px;
    right: -1px;
    height: 30px;
    margin-top: 6px;
    border-radius: 0 0 3px 3px;
    @include linear-gradient(top, rgba(black, .06), rgba(black, 0));
  }
}