* {
    margin: 0;
    padding: 0;
    }

html {
    background: #000;    
    height: 100%;
    }

section.clock .patch {
    background: transparent url(../i/shell/patch.png) no-repeat 0 0;
    display: block;
    position: absolute;
    top: -2px;
    left: -2px;
    height: 261px;
    width: 261px;
    z-index: 1000;
    }

body {
    background: #8a96a4;
    position: relative;
    height: 100%;
    -webkit-border-radius: 7px;
    }

div.background {
    background: #8a96a4 url(../i/blue.jpg) no-repeat center center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    }


section.clock {
    background: transparent url(../i/shell/rear-b.jpg) no-repeat bottom center;
    background-size: contain;
    -webkit-background-size: contain;
    -moz-background-size: contain;    display: block;
    margin: -128px 0 0 -128px;
    position: absolute;
    top: 50%;
    left: 50%;
    height: 259px;
    width: 259px;
    
    x-webkit-transform: translateZ(0);
    z-index: 2;
    z-index: 7;
    }

article.layer {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    height: 256px;
    width: 256px;
    }

section.stamps {
    background: transparent url(../i/stamps.png) no-repeat center bottom;
    background: transparent url(../i/stamps2.png) no-repeat center bottom;
    background-size: contain;

    display: block;
    margin: 0 0 0 -210px;
    position: absolute;
    bottom: 0;
    left: 50%;
    
    text-indent: -5000px;
    
    height: 96px;
    width: 432px;
    
    z-index: 1;
    }


.black.covering {
    background: #000;
    display:none;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    
    display: none;
    z-index: 2;
    
    }

.clock .black.covering {
    background: #000;
    
    display:block;
    
    top: -2px;
    left: -2px;
    padding: 0 2px 2px 0;
    z-index: 1001;
    }



@-webkit-keyframes spin {
    0% { -webkit-transform: scale(1.0) rotate(0deg); } 
    to { -webkit-transform: scale(1.0) rotate(360deg); }
    }

@-webkit-keyframes spin-ccw {
    0% { -webkit-transform: scale(1.0) rotate(0deg); } 
    to { -webkit-transform: scale(1.0) rotate(-360deg); }
    }

@-webkit-keyframes swing {
    0% { -webkit-transform: rotate(21deg); }
    to { -webkit-transform: rotate(-21deg); }
    }

@-webkit-keyframes moon {
    0% { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(-100deg); }
    }

@-webkit-keyframes blip {
    0% {
        opacity: 0;
        bottom: 28px;
        bottom: 10.25%;
    } 18% {
        bottom: 28px;
        bottom: 11.5%;
        opacity: 1;
    } 80% {
        bottom: 99px;
        bottom: 45%;
        opacity: 0.5;
    } to {
        bottom: 102px;
        bottom: 50%;
        opacity: 0;
    }
}


@-webkit-keyframes leaf {
    0% { -webkit-transform: rotate(-35deg); }
    to { -webkit-transform: rotate(-107deg); }
    }

@-webkit-keyframes leaf-close {
    0% { -webkit-transform: rotate(-105deg); }
    to { -webkit-transform: rotate(-35deg); }
    }

@-webkit-keyframes reveal {
    0% { background: rgba(0,0,0,0.7); }
    to { background: transparent; }
    }

@-webkit-keyframes obscure {
    0% { background: transparent; }
    to { background: rgba(0,0,0,0.7); }
    }

@-webkit-keyframes fade-in {
    0% { opacity: 0; }
    to { opacity: 1; }
    }

@-webkit-keyframes fade-out {
    0% { opacity: 1; }
    to { opacity: 0; }
    }




@-moz-keyframes spin {
    0% { -moz-transform: scale(1.0) rotate(0deg); } 
    to { -moz-transform: scale(1.0) rotate(360deg); }
    }

@-moz-keyframes spin-ccw {
    0% { -moz-transform: scale(1.0) rotate(0deg); } 
    to { -moz-transform: scale(1.0) rotate(-360deg); }
    }

@-moz-keyframes swing {
    0% { -moz-transform: rotate(21deg); }
    to { -moz-transform: rotate(-21deg); }
    }

@-moz-keyframes moon {
    0% { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(-100deg); }
    }

@-moz-keyframes blip {
    0% {
        opacity: 0;
        bottom: 28px;
        bottom: 10.25%;
    } 18% {
        bottom: 28px;
        bottom: 11.5%;
        opacity: 1;
    } 80% {
        bottom: 99px;
        bottom: 45%;
        opacity: 0.5;
    } to {
        bottom: 102px;
        bottom: 50%;
        opacity: 0;
    }
}


@-moz-keyframes leaf {
    0% { -moz-transform: rotate(-35deg); }
    to { -moz-transform: rotate(-107deg); }
    }

@-moz-keyframes leaf-close {
    0% { -moz-transform: rotate(-105deg); }
    to { -moz-transform: rotate(-35deg); }
    }

@-moz-keyframes reveal {
    0% { background: rgba(0,0,0,0.7); }
    to { background: transparent; }
    }

@-moz-keyframes obscure {
    0% { background: transparent; }
    to { background: rgba(0,0,0,0.7); }
    }

@-moz-keyframes fade-in {
    0% { opacity: 0; }
    to { opacity: 1; }
    }

@-moz-keyframes fade-out {
    0% { opacity: 1; }
    to { opacity: 0; }
    }

.patch { opacity: 1; }

.static .shutter.layer,
.firefox.static.loading .shutter.layer { display: none; }
.static.loading .shutter.layer { display: block; }

.shutter.layer {
    background: transparent;
    -webkit-border-radius: 10px;
    z-index: 600;
    }

.loading .shutter.layer {
    background: #000;
    }

.shutter.layer .darkness {
    background: #000;
    display: block;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;

    x-webkit-animation-name: fade-out;
    -webkit-animation-delay: 0;
    -webkit-animation-duration: 1100ms;
    -webkit-animation-timing-function: ease-in;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-direction: normal;

    }

.shutter.closing.layer .darkness {
    opacity: 0;

    x-webkit-animation-name: fade-in;
    -webkit-animation-delay: 350ms;
    -webkit-animation-duration: 800ms;
    x-webkit-animation-timing-function: linear;

    }

.shutter.layer .leaf {
    background: transparent;
    background-size: contain;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    margin: -100px 0 0 -100px;
    position: absolute;
    display: block;
    height: 100px;
    width: 100px;
    -webkit-transform-origin: bottom right;
    -moz-transform-origin: bottom right;
    z-index: 5;
    }

.shutter.layer .leaf.high {
    /*z-index: 100;*/
    z-index: 99;
    }

.shutter.layer .leaf span {
    background: url(../i/shutter/leaf8lo.png) no-repeat right 0;

    background-size: 200px 150px;
    height: 150px;
    width: 200px;
    position: absolute; 
    top: 0px;
    left: -50px;
    -webkit-transform-origin: 150px 100px;
    -webkit-transform: rotate(-35deg);
    
    x-webkit-animation-name: leaf;
    -webkit-animation-delay: 20ms;
    -webkit-animation-duration: 2100ms;
    -webkit-animation-duration: 1500ms;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-direction: normal;
    z-index: inherit;
    }

.shutter.layer .leaf span.closing {
    -webkit-animation-delay: 50ms;
    -webkit-transform: rotate(-105deg);
    -webkit-animation-duration: 1800ms;
    -webkit-animation-duration: 1000ms;
    -webkit-animation-timing-function: ease-out;
    -webkit-animation-timing-function: ease-in;
    }

.shutter.layer .leaf.high span {
    background-image: url(../i/shutter/leaf8hi.png);

    }

.shutter.layer .leaf.start span {
    background-image: url(../i/shutter/leaf7lo-start.png);
    background-image: url(../i/shutter/leaf8lo-start.png);

    }

.shutter.layer .leaf.start.high span {
    /*background-image: url(../i/shutter/leaf7hi.png);*/
    background: url(../i/shutter/leaf8hi.png) no-repeat right 0; /* no sharp corners initiative */
    }

.shutter.layer .leaf.one {
    top: 0%;
    left: 50%;
    
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);

    z-index: 10;
    }

    .shutter.layer .leaf.eight {        
        top: 6.5%;
        left: 72%;
        -webkit-transform: rotate(-63.5deg);
        -moz-transform: rotate(-63.5deg);

        }

.shutter.layer .leaf.two {
    top: 20%;
    left: 91%;
    -webkit-transform: rotate(-38.6deg);-moz-transform: rotate(-38.6deg);
    }
    
    .shutter.layer .leaf.nine {
        top: 39%;
        left: 97%;
        
        top: 38.5%;
        left: 99.3%;
        -webkit-transform: rotate(-13.1deg);-moz-transform: rotate(-13.1deg);
        -webkit-transform: rotate(-14deg);-moz-transform: rotate(-14deg);
        }

.shutter.layer .leaf.three {    
    top: 60%;
    left: 98.5%;
    -webkit-transform: rotate(12.4deg);-moz-transform: rotate(12.4deg);
    }

    .shutter.layer .leaf.ten {
        top: 80.5%;
        left: 89.5%;
        -webkit-transform: rotate(38deg);-moz-transform: rotate(38deg);
        }

.shutter.layer .leaf.four {
    top: 95%;
    left: 73%;
    xdisplay: none;

    -webkit-transform: rotate(63.4deg);-moz-transform: rotate(63.4deg);
    }

    .shutter.layer .leaf.eleven {
        top: 99%;
        left: 50%;
        
        xdisplay: none;
        -webkit-transform: rotate(89.7deg);-moz-transform: rotate(89.7deg);
        }


.shutter.layer .leaf.five {
    top: 95.5%;
    left: 29%;
    xdisplay: none;
    -webkit-transform: rotate(116deg);-moz-transform: rotate(116deg);
    }

    .shutter.layer .leaf.twelve {
        top: 80.5%;
        left: 11.5%;        
        
        -webkit-transform: rotate(141.9deg);-moz-transform: rotate(141.9deg);
        }

.shutter.layer .leaf.six {
    top: 60%;
    left: 2%;
    left: 0.75%;
    
    -webkit-transform: rotate(167.8deg);-moz-transform: rotate(167.8deg);
    }

    .shutter.layer .leaf.thirteen {
        top: 39%;
        left: 3%;
        xdisplay: none;
        -webkit-transform: rotate(192.1deg);-moz-transform: rotate(192.1deg);
        }

.shutter.layer .leaf.seven {
    top: 19%;
    left: 11%;
    xdisplay: none;

    
    -webkit-transform: rotate(216.4deg);-moz-transform: rotate(216.4deg);
    }

    .shutter.layer .leaf.fourteen {
        top: 6.5%;
        top: 4%;
        top: 3.5%;

        left: 27.35%;
        xdisplay: none;
        -webkit-transform: rotate(242.1deg);-moz-transform: rotate(242.1deg);
        -webkit-transform: rotate(243.5deg);-moz-transform: rotate(243.5deg);
        }   

    .shutter.layer .leaf.fourteen span {
        -webkit-animation-duration: 1600ms; /* Slightly more time (slower) */
        -moz-animation-duration: 1600ms; /* Slightly more time (slower) */
        }

    .shutter.layer .leaf.fourteen span.closing {
        -webkit-animation-duration: 980ms; /* Slightly less time (faster) */
        -moz-animation-duration: 980ms; /* Slightly less time (faster) */
        x-webkit-animation-timing-function: ease-in-out;
        }

    /*

    .shutter.layer .leaf.thirteen.high span,
    .shutter.layer .leaf.seven.high span,
    .shutter.layer .leaf.fourteen.high span {
        background: url(../i/shutter/leaf8hi-clip.png) no-repeat right 0; 
        }

    */
.gear {
    background: transparent url(../i/gears/14.png) 0 0;
    background: transparent url(../i/gears/25.png) 0 0;

    background: transparent url(../i/gears_sprite.png) no-repeat 0 0;

    -webkit-border-radius: 70px;

    
    background-size: contain;

    -webkit-background-size: contain;
    background-size: 100% auto;

    -moz-background-size: contain;    display: block;

    margin: -25px 0 0 -25px;
    position: absolute;
    top: 0;
    left: 0;

    height: 50px;
    width: 50px;

     x-webkit-animation-name: spin;
     -webkit-animation-duration: 12500ms;
     -webkit-animation-iteration-count: infinite;
     -webkit-animation-direction: normal;
     -webkit-animation-timing-function: linear;

     -moz-animation-duration: 12500ms;
     -moz-animation-iteration-count: infinite;
     -moz-animation-direction: normal;
     -moz-animation-timing-function: linear;
    }

.blurred.gear {
    background-position: 0 -75px;
    background-size: 75px auto;
     -webkit-animation-duration: 52500ms;
     -moz-animation-duration: 52500ms;
     height: 75px;
     width: 75px;
    }

.gear.medium {
     -webkit-animation-duration: 25000ms;
     -moz-animation-duration: 25000ms;

    xbackground-image: url(../i/gears/50.png);
    background-position: 0 -300px;
    background-size: 100px auto;
    margin: -50px 0 0 -50px;
    height: 100px;
    width: 100px;
    x-webkit-animation-name: spin-ccw;
    }

.blurred.gear.medium {
    xbackground-image: url(../i/gears/50b.png);
    background-position: 0 -400px;
     -webkit-animation-duration: 75000ms;
     -moz-animation-duration: 75000ms;
    }

.gear.large {
     -webkit-animation-duration: 50000ms;
     -moz-animation-duration: 50000ms;
    xbackground-image: url(../i/gears/100.png);
    background-position: 0 -1400px;
    background-size: 175px auto;
    -webkit-border-radius: 100px;

    margin: -100px 0 0 -100px;
    height: 175px;
    width: 175px;
    }

.blurred.gear.large {
    xbackground-image: url(../i/gears/100b.png);
    background-position: 0 -1575px;
     -webkit-animation-duration: 150000ms;
     -moz-animation-duration: 150000ms;
    }

x.layer.one { display: none; }

.layer.one .gear.one {
    top: 94.7%;
    left: 45.8%;
    
    top: 94.1%;
    left: 44.1%;
    }

.layer.one .gear.two {
    top: 74.85%;
    left: 31%;

    top: 74%;
    left: 28%;
    }
    
.layer.one .gear.three {
    top: 42.15%;
    left: 70.8%;
    
    top: 49%;
    left: 70.5%;
    }


.layer.zero {
    opacity: 1;
    }


.layer.zero .gear.three {
    top: 58%;
    left: 28%;
    }

.layer.zero .gear.two {
    top: 77.6%;
    left: 66%;
    }

.layer.zero .gear.one {
    top: 99.7%;
    left: 48.3%;
    }


.layer.two .gear.one {
    xbackground-image: url(../i/gears/44.png);
    background-position: 0 -100px;
    
    top: 52.75%;
    left: 51%;

    -webkit-animation-duration: 10000ms;
    -moz-animation-duration: 10000ms;
    }

.layer.three .gear {
    xbackground-image: url(../i/gears/72g.png);
    background-size: 80px auto;
    background-position: 0 -480px;
    top: 9.5%;
    left: 49.5%;
    
    margin: -41px 0 0 -41px;
    
    height: 80px;
    width: 80px;

    x-webkit-animation-name: spin;
     -webkit-animation-duration: 18000ms;

     -moz-animation-duration: 18000ms;

    }

.layer.three .gear.one.shadow {
    xbackground-image: url(../i/gears/72s.png);
    background-position: 0 -560px;

    margin: -40px 0 0 -40px;
    }

.layer.three .gear.two {
    xbackground-image: url(../i/gears/50.png);

    background-size: 70px auto;
    background-position: 0 -210px;

    top: 12.9%;
    left: 74.8%;
    
    margin: -31px 0 0 -36px;

    height: 70px;
    width: 70px;

    x-webkit-animation-name: spin-ccw;
     -webkit-animation-duration: 12500ms;

     -moz-animation-duration: 12500ms;
    }

.layer.three .gear.two.shadow {
    xbackground-image: url(../i/gears/50s.png);
    background-position: 0 -350px;

    margin: -29px 0 0 -35px;
    opacity: 0.6;
    }

.hand {
    background-size: contain;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    display: block;

    position: absolute;
    top: 0;
    left: 0;

    height: 50px;
    width: 50px;

     -webkit-animation-name: spin;
     -webkit-animation-duration: 60000ms;
     -webkit-animation-iteration-count: infinite;
     -webkit-animation-direction: normal;
     -webkit-animation-timing-function: linear;

     -moz-animation-name: spin;
     -moz-animation-duration: 60000ms;
     -moz-animation-iteration-count: infinite;
     -moz-animation-direction: normal;
     -moz-animation-timing-function: linear;

     z-index: 100;
    }

.seconds.hand {
    background: url(../i/hands/seconds.png) no-repeat center center;

    background-size: 150px 150px;
    -webkit-background-size: 150px 150px;
    -moz-background-size: 150px 150px;

    -webkit-transform-origin: center center;
    transform-origin: center center;

    top: 50%;
    left: 50%;
    margin: -68px 0 0 -74px;
    height: 150px;
    width: 150px;
    }

.seconds.hand.shadow {
    background-image: url(../i/hands/seconds_shadow.png);
    margin: -67px 0 0 -72px;
    }


.date.hand {
    background: url(../i/hands/date.png) no-repeat center center;
    background-size: contain;
    -webkit-background-size: contain;
    -moz-background-size: contain;

    top: 50%;
    left: 50%;
    margin: -68px 0 0 -74px;
    height: 150px;
    width: 150px;

    -webkit-animation: none;
    -webkit-transform:  rotate(47deg);

    -moz-animation: none;
    -moz-transform:  rotate(47deg);
    }

.hour.hand {
    background: url(../i/hands/hour.png) no-repeat center center;
    background-size: contain;
    -webkit-background-size: contain;
    -moz-background-size: contain;

    top: 10%;
    left: 50%;
    margin: -19px 0 0 -20px;
    height: 35px;
    width: 35px;

    -webkit-animation: none;
    -moz-animation: none;
    }

.minutes.hand {
    background: url(../i/hands/minutes.png) no-repeat center center;

    top: 50%;
    left: 50%;
    margin: -20px 0 0 -10px;
    height: 40px;
    width: 20px;

    -webkit-animation: none;
    -moz-animation: none;

    }

.minutes.hand.shadow {
    background: url(../i/hands/minutes_shadow.png) no-repeat center center;
    margin: -18px 0 0 -9px;
    opacity: 0.6;
    }

.minutes.hand.triangle {
    background: url(../i/hands/minutes_triangle.png) no-repeat center center;
    left: 12.5%;
    margin: -30px 0 0 -10px;
    height: 60px;
    }

.minutes.hand.triangle.shadow {
    background: url(../i/hands/minutes_triangle_shadow.png) no-repeat center center;
    margin: -29px 0 0 -9px;
    }


.pendulum {
    background: url(../i/pendulum/paddle.png) no-repeat center center;

    background-size: contain;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    display: block;

    margin: -120px 0 0 -75px;
    xmargin-top: -16px;
    position: absolute;
    top: 50%;
    left: 50%;

    height: 250px;
    xheight: 130px;
    width: 150px;
    
    -webkit-transform: rotate(21deg);
    -moz-transform: rotate(21deg);

     -webkit-animation-name: swing;
     -webkit-animation-duration: 1300ms;
     -webkit-animation-iteration-count: infinite;
     -webkit-animation-direction: alternate;
     -webkit-animation-timing-function: ease-in-out;

     -moz-animation-name: swing;
     -moz-animation-duration: 1300ms;
     -moz-animation-iteration-count: infinite;
     -moz-animation-direction: alternate;
     -moz-animation-timing-function: ease-in-out;
    }

.pendulum .blip {
    background: url(../i/pendulum/blip.png) no-repeat center center; 

    display: block;
    position: absolute;
    
    margin: -5px 0 0 -3px;
    left: 50%;
    opacity: 0;
    bottom: 27px;
    
    height: 14px;
    width: 10px;

     x-webkit-animation-name: blip;
     -webkit-animation-delay: 800ms;
     -webkit-animation-duration: 1300ms;
     -webkit-animation-iteration-count: infinite;
     -webkit-animation-direction: normal;
     -webkit-animation-timing-function: ease-in;

     -moz-animation-delay: 800ms;
     -moz-animation-duration: 1300ms;
     -moz-animation-iteration-count: infinite;
     -moz-animation-direction: normal;
     -moz-animation-timing-function: ease-in;
    }

.cover {
    background: url(../i/covers/diamond.png) no-repeat 0 0;
    background-size: contain;
    -webkit-background-size: contain;
    -moz-background-size: contain;    position: absolute;
    xopacity: 0.3;
    top: 0;
    left: 0;
    height: 256px;
    width: 256px;
    }

.side.cover {
    background-image: url(../i/covers/side.png);
    }

.bridge.cover {
    background-image: url(../i/covers/bridge.png);
    }

.top.cover {
    background-image: url(../i/covers/top.png);
    opacity: 1;
    }

div.minutes {
    margin: -27px 0 0 -27px;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 12.2%;
    height: 54px;
    width: 54px;
    }

div.minutes .dial {
    background: url(../i/covers/minutes.png) no-repeat 0 0;
    background-size: contain;
    -webkit-background-size: contain;
    -moz-background-size: contain;    position: absolute;
    top: 0;
    left: 0;
    height: 54px;
    width: 54px;
    }

.moon {
    background: url(../i/covers/full.png) no-repeat 0 0;
    background-size: contain;
    -webkit-background-size: contain;
    -moz-background-size: contain;    display: block;
    position: absolute;
    top: 12px;
    left: 28px;
    height: 20px;
    width: 20px;
    }

.eclipse {
    background: url(../i/covers/eclipse.png) no-repeat 0 0;
    xbackground-size: 15px 15px;
    background-size: contain;
    -webkit-background-size: contain;
    -moz-background-size: contain;    display: block;
    margin: 0;
    opacity: 0.8;
    position: absolute;
    top: 15px;
    left: 15px;
    height: 45px;
    width: 45px;

    x-webkit-transform: rotate(0deg);
    
    x-webkit-animation: moon;
    -webkit-animation-duration: 15000ms;
    -webkit-animation-direction: normal;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;

    -moz-animationduration: 15000ms;
    -moz-animationdirection: normal;
    -moz-animationiteration-count: infinite;
    -moz-animationtiming-function: linear;
    }


.patch { opacity: 1; }

.static .shutter.layer,
.firefox.static.loading .shutter.layer { display: none; }
.static.loading .shutter.layer { display: block; }

.shutter.layer {
    background: transparent;
    -webkit-border-radius: 10px;
    z-index: 600;
    }

.loading .shutter.layer {
    background: #000;
    }

.shutter.layer .darkness {
    background: #000;
    display: block;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;

    x-webkit-animation-name: fade-out;
    -webkit-animation-delay: 0;
    -webkit-animation-duration: 1100ms;
    -webkit-animation-timing-function: ease-in;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-direction: normal;

    }

.shutter.closing.layer .darkness {
    opacity: 0;

    x-webkit-animation-name: fade-in;
    -webkit-animation-delay: 350ms;
    -webkit-animation-duration: 800ms;
    x-webkit-animation-timing-function: linear;

    }

.shutter.layer .leaf {
    background: transparent;
    background-size: contain;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    margin: -100px 0 0 -100px;
    position: absolute;
    display: block;
    height: 100px;
    width: 100px;
    -webkit-transform-origin: bottom right;
    -moz-transform-origin: bottom right;
    z-index: 5;
    }

.shutter.layer .leaf.high {
    /*z-index: 100;*/
    z-index: 99;
    }

.shutter.layer .leaf span {
    background: url(../i/shutter/leaf8lo.png) no-repeat right 0;

    background-size: 200px 150px;
    height: 150px;
    width: 200px;
    position: absolute; 
    top: 0px;
    left: -50px;
    -webkit-transform-origin: 150px 100px;
    -webkit-transform: rotate(-35deg);
    
    x-webkit-animation-name: leaf;
    -webkit-animation-delay: 20ms;
    -webkit-animation-duration: 2100ms;
    -webkit-animation-duration: 1500ms;
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-direction: normal;
    z-index: inherit;
    }

.shutter.layer .leaf span.closing {
    -webkit-animation-delay: 50ms;
    -webkit-transform: rotate(-105deg);
    -webkit-animation-duration: 1800ms;
    -webkit-animation-duration: 1000ms;
    -webkit-animation-timing-function: ease-out;
    -webkit-animation-timing-function: ease-in;
    }

.shutter.layer .leaf.high span {
    background-image: url(../i/shutter/leaf8hi.png);

    }

.shutter.layer .leaf.start span {
    background-image: url(../i/shutter/leaf7lo-start.png);
    background-image: url(../i/shutter/leaf8lo-start.png);

    }

.shutter.layer .leaf.start.high span {
    /*background-image: url(../i/shutter/leaf7hi.png);*/
    background: url(../i/shutter/leaf8hi.png) no-repeat right 0; /* no sharp corners initiative */
    }

.shutter.layer .leaf.one {
    top: 0%;
    left: 50%;
    
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);

    z-index: 10;
    }

    .shutter.layer .leaf.eight {        
        top: 6.5%;
        left: 72%;
        -webkit-transform: rotate(-63.5deg);
        -moz-transform: rotate(-63.5deg);

        }

.shutter.layer .leaf.two {
    top: 20%;
    left: 91%;
    -webkit-transform: rotate(-38.6deg);-moz-transform: rotate(-38.6deg);
    }
    
    .shutter.layer .leaf.nine {
        top: 39%;
        left: 97%;
        
        top: 38.5%;
        left: 99.3%;
        -webkit-transform: rotate(-13.1deg);-moz-transform: rotate(-13.1deg);
        -webkit-transform: rotate(-14deg);-moz-transform: rotate(-14deg);
        }

.shutter.layer .leaf.three {    
    top: 60%;
    left: 98.5%;
    -webkit-transform: rotate(12.4deg);-moz-transform: rotate(12.4deg);
    }

    .shutter.layer .leaf.ten {
        top: 80.5%;
        left: 89.5%;
        -webkit-transform: rotate(38deg);-moz-transform: rotate(38deg);
        }

.shutter.layer .leaf.four {
    top: 95%;
    left: 73%;
    xdisplay: none;

    -webkit-transform: rotate(63.4deg);-moz-transform: rotate(63.4deg);
    }

    .shutter.layer .leaf.eleven {
        top: 99%;
        left: 50%;
        
        xdisplay: none;
        -webkit-transform: rotate(89.7deg);-moz-transform: rotate(89.7deg);
        }


.shutter.layer .leaf.five {
    top: 95.5%;
    left: 29%;
    xdisplay: none;
    -webkit-transform: rotate(116deg);-moz-transform: rotate(116deg);
    }

    .shutter.layer .leaf.twelve {
        top: 80.5%;
        left: 11.5%;        
        
        -webkit-transform: rotate(141.9deg);-moz-transform: rotate(141.9deg);
        }

.shutter.layer .leaf.six {
    top: 60%;
    left: 2%;
    left: 0.75%;
    
    -webkit-transform: rotate(167.8deg);-moz-transform: rotate(167.8deg);
    }

    .shutter.layer .leaf.thirteen {
        top: 39%;
        left: 3%;
        xdisplay: none;
        -webkit-transform: rotate(192.1deg);-moz-transform: rotate(192.1deg);
        }

.shutter.layer .leaf.seven {
    top: 19%;
    left: 11%;
    xdisplay: none;

    
    -webkit-transform: rotate(216.4deg);-moz-transform: rotate(216.4deg);
    }

    .shutter.layer .leaf.fourteen {
        top: 6.5%;
        top: 4%;
        top: 3.5%;

        left: 27.35%;
        xdisplay: none;
        -webkit-transform: rotate(242.1deg);-moz-transform: rotate(242.1deg);
        -webkit-transform: rotate(243.5deg);-moz-transform: rotate(243.5deg);
        }   

    .shutter.layer .leaf.fourteen span {
        -webkit-animation-duration: 1600ms; /* Slightly more time (slower) */
        -moz-animation-duration: 1600ms; /* Slightly more time (slower) */
        }

    .shutter.layer .leaf.fourteen span.closing {
        -webkit-animation-duration: 980ms; /* Slightly less time (faster) */
        -moz-animation-duration: 980ms; /* Slightly less time (faster) */
        x-webkit-animation-timing-function: ease-in-out;
        }

    /*

    .shutter.layer .leaf.thirteen.high span,
    .shutter.layer .leaf.seven.high span,
    .shutter.layer .leaf.fourteen.high span {
        background: url(../i/shutter/leaf8hi-clip.png) no-repeat right 0; 
        }

    */
.clock .button {
    background: url(../i/buttons/enclosure.png) no-repeat 0 0;
    x-webkit-border-radius: 17px;
    background-size: 37px 35px;
    display: block;
    margin: -17px 0 0 -17px;
    overflow: hidden;
    position: absolute;

    top: 40%;
    left: 83%;

    height: 35px;
    width: 38px;
    
    }

.clock .selected.button {
    background: transparent;
    }
    
#clock.open .button {
    z-index: 1000;
    z-index: 1005;
    z-index: 3000;
    }

#clock.open .selected.button {
    z-index: 2001;
    }


.clock .twitter.button {
    top: 54%;
    left: 89%;
    }

.safari .clock .button {
    xbackground: #ff0;
    }

.clock .button a {
    background: url(../i/buttons/facebook.png) no-repeat 0 0;
    cursor: pointer;
    display: block;
        
    margin: 0;
    position: absolute;
    top: -1px;
    left: 0px;

    text-indent: -5000px;

    height: 35px;
    width: 35px;
    
    -webkit-transition: margin 180ms linear;
    }


/* j.mp/webkit-tap-highlight-color */
a:link { -webkit-tap-highlight-color: transparent; }
/* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active { outline: none; }


.clock .selected.button a {
    -webkit-transition: margin 210ms ease-out;    
    }

.safari .clock .button a {
    x-webkit-transition: none;
    }

.clock .button a .glow,
.clock .button a .shadow {
    background: url(../i/buttons/facebook_glow.png) no-repeat 0 0;
    display: block;
    opacity: 1;
    opacity: 0;
    position: absolute;
    top: 4px;
    left: 12px;
    height: 23px;
    width: 15px;
    -webkit-transition: all 100ms ease-out;
    }

.clock .button a .shadow {
    -webkit-transition: all 140ms ease-out;
    }

.clock .button.selected a .shadow {
    -webkit-transition: all 70ms linear;
    }

.safari .clock .button a .glow,
.safari .clock .button a .shadow {
    xdisplay: none !important;
    x-webkit-transition: none;
    }

.clock .button a .shadow {
    background-image: url(../i/buttons/shadow.png);
    opacity: 0;
    top: -2px;
    left: 1px;
    width: 32px;
    height: 31px;
    }

.clock .twitter.button a .glow {
    background-image: url(../i/buttons/twitter_glow.png);
    top: 6px;
    left: 9px;
    height: 19px;
    width: 20px;
    }

.clock .twitter.button a {
    background-image: url(../i/buttons/twitter.png);
    }

.clock .button a:hover {
    margin: 2px 0 0 0;
    -webkit-transition: margin 60ms linear;
    }

.clock .button a:hover .glow {
    opacity: 0.5;
    }

.clock .button a:active,
.clock .button a:focus,
.clock .button.selected a {
    margin-top: 4px;
    }

.clock .button a:active .glow,
.clock .button a:active .shadow,
.clock .button a:focus .glow,
.clock .button a:focus .shadow,
.clock .button.selected a .glow,
.clock .button.selected a .shadow { 
    opacity: 1;
    }


.clock .facebook.button.selected a .glow {
    opacity: 0.7;
    }
section.social.box {
    display: block;
    opacity: 0;
    margin: -42px 0 0 -104px;
    padding: 45px 0 0 0;
    position: absolute;
    top: -5000px;
    left: 50%;

    z-index: 900;
    z-index: 2000;
    -webkit-transition: all 180ms ease-out; /* animate-out speed (yes seems backwards I know) */
    }

section.right.social.box {
    left: 90%;
    padding: 0 0 0 45px;
    margin: -103px 0 0 -30px;
    }

section.left.social.box {
    left: -40px;
    padding: 0 45px 0 0;
    margin: -104px 0 0 -11px;
    }

section.twitter.social.box {
    margin: -6px 0 0 -88px;
    }

section.right.twitter.social.box {
    margin: -67px 0 0 -20px;
    }

section.social.box .shell {
    background: #262934;
    xbackground: rgba(28,32,48,0.8);
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -webkit-box-shadow: 4px 6px 18px rgba(0,5,10,0.7);
    padding: 7px 0 7px 0;
    width: 240px;
    }

section.social.box .handle {
    background: url(../i/facebook/patch.png) no-repeat center top;
    display: block;
    position: absolute;
    top: 0;
    right: 10px;
    height: 45px;
    width: 77px;
    text-indent: -5000px;
    }

section.right.social.box .handle {
    background-image: url(../i/facebook/patch-left.png);
    background-position: left center;
    left: 0;
    right: auto;
    top: 25%;
    width: 45px;
    height: 77px;
    }

section.left.social.box .handle {;
    background-image: url(../i/facebook/patch-right.png);
    background-position: right center;
    left: auto;
    right: 0;
    top: 25%;
    width: 45px;
    height: 77px;
    -webkit-transition: all 200ms ease-out;
    }

section.social.box .close {
    xbackground: #ff0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 40px;
    width: 100%;
    }

section.social.box.left .close,
section.social.box.right .close {
    height: 100%;
    width: 40px;
    }

section.social.box.left .close {
    left: auto;
    right: 0;
    }

section.social.box.opened {
    margin-top: -52px;
    display: block;
    opacity: 1;
    -webkit-transition: all 140ms ease-out; /* speed it comes in as */
    }

section.right.social.box.opened {
    margin-top: -103px;
    margin-left: -42px;
    }

section.left.social.box.opened {
    margin-top: -104px;
    margin-left: -3px;
    }

section.twitter.social.box.opened {
    margin-top: -16px;
    }

section.right.twitter.social.box.opened {
    margin: -67px 0 0 -30px;
    }

.loading section.social.box { display: none; }

section.social.box article.share,
section.social.box article.follow {
    background: #3b5997 url(../i/facebook/box.png) no-repeat 0 0;
    -webkit-box-shadow: inset -1px -1px 0 rgba(255,255,255,0.1), 1px 1px 0 rgba(0,0,0,0.4), -1px 1px 0 rgba(0,0,0,0.2);
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
    border-radius: 7px;
    clear: left;
    display: block;
    margin: 0 7px 7px 7px;
    }

section.twitter.box article.share,
section.twitter.box article.follow {
    background: #3b5997 url(../i/facebook/twitterbox.png?5) no-repeat 0 0;
    }

section.social.box article.follow {
    margin-bottom: 0;
    }

section.social.box article.follow:after,
section.social.box article.share:after {
    content:".";
    display:block;
    height:0;
    clear:both;
    visibility:hidden;
    }

section.social.box .widget {
    background: transparent;
    xbackground: rgba(0,0,0,0.2);
    float: right;
    padding: 14px 0 14px 12px;
    width: 72px;
    }

section.facebook.social.box .share .widget {
    padding-left: 16px;
    width: 68px;
    }

section.twitter.social.box .share .widget {
    padding-left: 14px;
    width: 70px;
    }

section.social.box .widget iframe {
    background: transparent;
    xbackground: green;
    display: block;
    margin: 0;
    xopacity: 0.5;
    }

section.twitter.box .follow .widget iframe {
    overflow: hidden;
    width: 65px !important;
    }

section.social.box h2 {
    color: #fff;
    display: block;
    font: 35px/28px "ff-din-web-pro","ff-din-web-pro-1","ff-din-web-pro-2","DIN Std","helvetica neue",helvetica, arial,"lucida grande","lucida sans unicode",verdana,tahoma,sans-serif,"lucida grande","helvetica neue",helvetica, arial,"lucida grande","lucida sans unicode",verdana,tahoma,sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.07em;
    padding: 22px 0 0 18px;
    text-shadow: -1px -1px 0 rgba(0,0,0,0.4);
    }

section.social.box .follow h2 {
    font-size: 21px;
    padding-top: 10px;
    }

section.social.box h3 {
    color: #cbdbfa;
    display: block;
    font: 11px/14px "helvetica neue",helvetica, arial,"lucida grande","lucida sans unicode",verdana,tahoma,sans-serif,"lucida grande","helvetica neue",helvetica, arial,"lucida grande","lucida sans unicode",verdana,tahoma,sans-serif;
    font-weight: 800;
    letter-spacing: -0.07em;
    padding: 0 0 0 18px;
    text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
    text-transform: uppercase;
    }


section.twitter.social.box h3 {
    color: #c4e2ec;
    xfont-size: 10px;
    }


/* different devices */


/*
 * Media queries for responsive design https://github.com/shichuan/mobile-html5-boilerplate/wiki/The-Style
 */


/* iPhone 4, Opera Mobile 11 and other high pixel ratio devices ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-device-pixel-ratio: 1.5) {

    .seconds.hand {
        background-image: url(../i/hands/seconds_x2.png);
        }

   .minutes.hand {
        background-image: url(../i/hands/minutes_x2.png);
        }

    section.stamps {
        margin-left: -114px;

        height: 48px;
        width: 216px;
        }

    .clock .button {
        background-image: url(../i/buttons/enclosure_x2.png);
        /*margin-left: -17px;*/

        xtop: 39%;
        lxeft: 82%;
        }

    .clock .button a {
        background-image: url(../i/buttons/facebook_x2.png);
        background-size: 35px 35px;
        -webkit-transition: all 60ms ease-out;
        }

    .clock .twitter.button a {
        background-image: url(../i/buttons/twitter_x2.png);
        }

    .clock .button a:active,
    .clock .button.selected a {
        margin-top: 4px;
        }

    .clock .button a .glow {
        display: none;
        }

}




/* iPhone landscape */
@media only screen and (min-width : 480px) and (max-device-width : 960px) and (orientation:landscape) {
    
    /* warning - this leaks over to ipad */
    /* and narrow desktops! */

    body {
        background: url(../i/blue_iphone.jpg) no-repeat center center;
        background-size: 480px auto;

        width: 320px;
        width: 480px;

        min-height: 270px;
        height: 100%;
        }

    section.clock .patch {
        background-image: url(../i/shell/patch_iphone.png);
        background-size: 261px 261px;
        }

}


@media only screen and (min-width : 480px) and (max-device-width : 960px) and (orientation:landscape) and (-webkit-min-device-pixel-ratio: 1.5) {
    
    section.stamps {
        margin-left: 0;
        left: auto;
        right: -40px;   
        z-index: 5000;

        }
    
    }

/* iPhone portrait */
@media only screen and (max-width: 320px) and (orientation:portrait) {

    body {
        background: url(../i/blue_iphone_vert.jpg) no-repeat center center;
        background-size: 320px auto;

        width: 320px;
        min-height: 420px;
        height: 100%;
        }

    section.clock .patch {
        background-image: url(../i/shell/patch_iphone_vert.png);
        background-size: 261px 261px;
        }

}

/* iPads (landscape) ----------- */
@media handheld, only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {

    body {
        background: #225197 url(../i/blue_ipad.jpg) no-repeat center center;
        background-size: 1024px auto;
        width: 1024px;
        }

    section.clock .patch {
        background-image: url(../i/shell/patch_ipad.png);
        }

}

/* iPads (portrait) ----------- */
@media handheld, only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {

    body {
        background: #225197 url(../i/blue_ipad_vert.jpg) no-repeat center center;
        background-size: 768px auto;
        width: 768px;
        }

    section.clock .patch {
        background-image: url(../i/shell/patch_ipad_vert.png);
        }

}


/* Styles for desktop and large screen ----------- */
@media only screen and (min-width: 1024px) and (-webkit-min-device-pixel-ratio: 1.5) {
    
    div.background {
        background: #225197 url(../i/blue@2x.jpg?c) no-repeat center center;
        background-size: 1440px 800px;
    }

    section.clock .patch {
        background-image: url(../i/shell/patch@2x.png);
        background-size: 261px 261px;
        }

}







