
div.ui-page {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
}

/*
* css Extracted from jQuery Mobile Framework
* Copyright (c) jQuery Project
*/
.spin  {
        -webkit-transform: rotate(360deg);
        -webkit-animation-name: spin;
        -webkit-animation-duration: 1s;
        -webkit-animation-iteration-count:  infinite;
        -webkit-animation-timing-function: linear;
        -moz-transform: rotate(360deg);
        -moz-animation-name: spin;
        -moz-animation-duration: 1s;
        -moz-animation-iteration-count:  infinite;
        -moz-animation-timing-function: linear;     
        transform: rotate(360deg);
        animation-name: spin;
        animation-duration: 1s;
        animation-iteration-count:  infinite;
        animation-timing-function: linear;        
}
@-webkit-keyframes spin {
        from {-webkit-transform: rotate(0deg);}
        to {-webkit-transform: rotate(360deg);}
}
@-moz-keyframes spin {
        from {-moz-transform: rotate(0deg);}
        to {-moz-transform: rotate(360deg);}
}
@keyframes spin {
        from {transform: rotate(0deg);}
        to {transform: rotate(360deg);}
}
/* Transitions from jQtouch (with small modifications): http://www.jqtouch.com/
Built by David Kaneda and maintained by Jonathan Stark.
*/
.in, .out {
        -webkit-animation-timing-function: ease-in-out;
        -webkit-animation-duration: 705ms;
        -moz-animation-timing-function: ease-in-out;
        -moz-animation-duration: 705ms;     
        animation-timing-function: ease-in-out;
        animation-duration: 705ms;     
}


.slide.out {
        -webkit-transform: translate3d(-100%,0,0);
        -webkit-animation-name: slideouttoleft;
        -moz-transform: translateX(-100%);
        -moz-animation-name: slideouttoleft;     
        transform: translateX(-100%);
        animation-name: slideouttoleft;      
}

.slide.in {
        -webkit-transform: translate3d(0,0,0);
        -webkit-animation-name: slideinfromright;
        -moz-transform: translateX(0);
        -moz-animation-name: slideinfromright;
        transform: translateX(0);
        animation-name: slideinfromright;
}

.slide.out.reverse {
        -webkit-transform: translate3d(100%,0,0);
        -webkit-animation-name: slideouttoright;
        -moz-transform: translateX(100%);
        -moz-animation-name: slideouttoright;
        transform: translateX(100%);
        animation-name: slideouttoright;
}

.slide.in.reverse {
        -webkit-transform: translate3d(0,0,0);
        -webkit-animation-name: slideinfromleft;
        -moz-transform: translateX(0);
        -moz-animation-name: slideinfromleft;   
        transform: translateX(0);
        animation-name: slideinfromleft;      
}

.slideup.out {
        -webkit-animation-name: dontmove;
        -moz-animation-name: dontmove;
        animation-name: dontmove;
        z-index: 0;
}

.slideup.in {
        -webkit-transform: translate3d(0,0,0);
        -webkit-animation-name: slideinfrombottom;
        -moz-transform: translateY(0);
        -moz-animation-name: slideinfrombottom;
        transform: translateY(0);
        animation-name: slideinfrombottom;
        z-index: 10;
}

.slideup.in.reverse {
        -webkit-animation-name: dontmove;
        -moz-animation-name: dontmove;
        animation-name: dontmove;
        z-index: 0;
}

.slideup.out.reverse {
        -webkit-transform: translate3d(0,100%,0);
        -webkit-animation-name: slideouttobottom;
        -moz-transform: translateY(100%);
        -moz-animation-name: slideouttobottom;   
        transform: translateY(100%);
        animation-name: slideouttobottom;      
        z-index: 10;
}

.slidedown.out {
        -webkit-animation-name: dontmove;
        -moz-animation-name: dontmove;
        animation-name: dontmove;
        z-index: 0;
}

.slidedown.in {
        -webkit-transform: translate3d(0,0,0);
        -webkit-animation-name: slideinfromtop;
		-moz-transform: translateY(0);
        -moz-animation-name: slideinfromtop;  
        transform: translateY(0);
        animation-name: slideinfromtop;        
        z-index: 10;
}

.slidedown.in.reverse {
        -webkit-animation-name: dontmove;
        -moz-animation-name: dontmove;
        animation-name: dontmove;
        z-index: 0;
}

.slidedown.out.reverse {
        -webkit-transform: translate3d(0,-100%,0);
        -webkit-animation-name: slideouttotop;
        -moz-transform: translateY(-100%);
        -moz-animation-name: slideouttotop;
        transform: translateY(-100%);
        animation-name: slideouttotop;
        z-index: 10;
}

@-webkit-keyframes slideinfromright {
    from { -webkit-transform: translate3d(100%,0,0); }
    to { -webkit-transform: translate3d(0,0,0); }
}

@-webkit-keyframes slideinfromleft {
    from { -webkit-transform: translate3d(-100%,0,0); }
    to { -webkit-transform: translate3d(0,0,0); }
}

@-webkit-keyframes slideouttoleft {
    from { -webkit-transform: translate3d(0,0,0); }
    to { -webkit-transform: translate3d(-100%,0,0); }
}

@-webkit-keyframes slideouttoright {
    from { -webkit-transform: translate3d(0,0,0); }
    to { -webkit-transform: translate3d(100%,0,0); }
}

@-webkit-keyframes slideinfromtop {
    from { -webkit-transform: translate3d(0,-100%,0); }
    to { -webkit-transform: translate3d(0,0,0); }
}

@-webkit-keyframes slideinfrombottom {
    from { -webkit-transform: translate3d(0,100%,0); }
    to { -webkit-transform: translate3d(0,0,0); }
}

@-webkit-keyframes slideouttobottom {
    from { -webkit-transform: translate3d(0,0,0); }
    to { -webkit-transform: translate3d(0,100%,0); }
}

@-webkit-keyframes slideouttotop {
    from { -webkit-transform: translate3d(0,0,0); }
    to { -webkit-transform: translate3d(0,-100%,0); }
}
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

@-webkit-keyframes fadeout {
    from { opacity: 1; }
    to { opacity: 0; }
}

@-moz-keyframes slideinfromright {
    from { -moz-transform: translateX(100%); }
    to { -moz-transform: translateX(0); }
}

@-moz-keyframes slideinfromleft {
    from { -moz-transform: translateX(-100%); }
    to { -moz-transform: translateX(0); }
}

@-moz-keyframes slideouttoleft {
    from { -moz-transform: translateX(0); }
    to { -moz-transform: translateX(-100%); }
}

@-moz-keyframes slideouttoright {
    from { -moz-transform: translateX(0); }
    to { -moz-transform: translateX(100%); }
}

@-moz-keyframes slideinfromtop {
    from { -moz-transform: translateY(-100%); }
    to { -moz-transform: translateY(0); }
}

@-moz-keyframes slideinfrombottom {
    from { -moz-transform: translateY(100%); }
    to { -moz-transform: translateY(0); }
}
@-moz-keyframes slideouttobottom {
    from { -moz-transform: translateY(0); }
    to { -moz-transform: translateY(100%); }
}

@-moz-keyframes slideouttotop {
    from { -moz-transform: translateY(0); }
    to { -moz-transform: translateY(-100%); }
}
@-moz-keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

@-moz-keyframes fadeout {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideinfromright {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideinfromleft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideouttoleft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes slideouttoright {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@keyframes slideinfromtop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideinfrombottom {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes slideouttobottom {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

@keyframes slideouttotop {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}
@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeout {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade.out {
        -webkit-animation-name: fadeout;
        -moz-animation-name: fadeout;
        animation-name: fadeout;
        z-index: 0;
}

.fade.in {
        -webkit-animation-name: fadein;
        -moz-animation-name: fadein;
        animation-name: fadein;
        opacity: 1;
        z-index: 10;
}

/* The properties in this rule are only necessary for the 'flip' transition.
 * We need specify the perspective to create a projection matrix. This will add
 * some depth as the element flips. The depth number represents the distance of
 * the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
 * value.
 */
.viewport-flip {
        -webkit-perspective: 1000;
        -moz-perspective: 1000;
        perspective: 1000;
        position: absolute;
}

.ui-mobile-viewport-transitioning,
.ui-mobile-viewport-transitioning .ui-page {
        width: 100%;
        height: 100%;
        overflow: hidden;
}

.flip {
        -webkit-animation-duration: .65s;
        -webkit-backface-visibility:hidden;
        -webkit-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
        -moz-animation-duration: .65s;
        -moz-backface-visibility:hidden;
        -moz-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -moz-visibility:hidden is used. */
        animation-duration: .65s;
        backface-visibility:hidden;
        transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when visibility:hidden is used. */
}

.flip.out {
        -webkit-transform: rotateY(-180deg) scale(.8);
        -webkit-animation-name: flipouttoleft;
        -moz-transform: rotateY(-180deg) scale(.8);
        -moz-animation-name: flipouttoleft;
        transform: rotateY(-180deg) scale(.8);
        animation-name: flipouttoleft;
}

.flip.in {
        -webkit-transform: rotateY(0) scale(1);
        -webkit-animation-name: flipinfromleft;
        -moz-transform: rotateY(0) scale(1);
        -moz-animation-name: flipinfromleft;
        transform: rotateY(0) scale(1);
        animation-name: flipinfromleft;
}        
/* Shake it all about */

.flip.out.reverse {
        -webkit-transform: rotateY(180deg) scale(.8);
        -webkit-animation-name: flipouttoright;
        -moz-transform: rotateY(180deg) scale(.8);
        -moz-animation-name: flipouttoright;
        transform: rotateY(180deg) scale(.8);
        animation-name: flipouttoright;
}

.flip.in.reverse {
        -webkit-transform: rotateY(0) scale(1);
        -webkit-animation-name: flipinfromright;
        -moz-transform: rotateY(0) scale(1);
        -moz-animation-name: flipinfromright;
        transform: rotateY(0) scale(1);
        animation-name: flipinfromright;
}

@-webkit-keyframes flipinfromright {
    from { -webkit-transform: rotateY(-180deg) scale(.8); }
    to { -webkit-transform: rotateY(0) scale(1); }
}

@-webkit-keyframes flipinfromleft {
    from { -webkit-transform: rotateY(180deg) scale(.8); }
    to { -webkit-transform: rotateY(0) scale(1); }
}

@-webkit-keyframes flipouttoleft {
    from { -webkit-transform: rotateY(0) scale(1); }
    to { -webkit-transform: rotateY(-180deg) scale(.8); }
}

@-webkit-keyframes flipouttoright {
    from { -webkit-transform: rotateY(0) scale(1); }
    to { -webkit-transform: rotateY(180deg) scale(.8); }
}
@-moz-keyframes flipinfromright {
    from { -moz-transform: rotateY(-180deg) scale(.8); }
    to { -moz-transform: rotateY(0) scale(1); }
}

@-moz-keyframes flipinfromleft {
    from { -moz-transform: rotateY(180deg) scale(.8); }
    to { -moz-transform: rotateY(0) scale(1); }
}

@-moz-keyframes flipouttoleft {
    from { -moz-transform: rotateY(0) scale(1); }
    to { -moz-transform: rotateY(-180deg) scale(.8); }
}

@-moz-keyframes flipouttoright {
    from { -moz-transform: rotateY(0) scale(1); }
    to { -moz-transform: rotateY(180deg) scale(.8); }
}

@keyframes flipinfromright {
    from { transform: rotateY(-180deg) scale(.8); }
    to { transform: rotateY(0) scale(1); }
}

@keyframes flipinfromleft {
    from { transform: rotateY(180deg) scale(.8); }
    to { transform: rotateY(0) scale(1); }
}

@keyframes flipouttoleft {
    from { transform: rotateY(0) scale(1); }
    to { transform: rotateY(-180deg) scale(.8); }
}

@keyframes flipouttoright {
    from { transform: rotateY(0) scale(1); }
    to { transform: rotateY(180deg) scale(.8); }
}

/* Hackish, but reliable. */

@-webkit-keyframes dontmove {
    from { opacity: 1; }
    to { opacity: 1; }
}
@-moz-keyframes dontmove {
    from { opacity: 1; }
    to { opacity: 1; }
}
@keyframes dontmove {
    from { opacity: 1; }
    to { opacity: 1; }
}

.pop {
        -webkit-transform-origin: 50% 50%;
        -moz-transform-origin: 50% 50%;
        transform-origin: 50% 50%;
}

.pop.in {
        -webkit-transform: scale(1);
        -webkit-animation-name: popin;
        -moz-transform: scale(1);
        -moz-animation-name: popin;
        transform: scale(1);
        animation-name: popin;
	    opacity: 1;
        z-index: 10;
}

.pop.in.reverse {
        -webkit-animation-name: dontmove;
        -moz-animation-name: dontmove;
        animation-name: dontmove;
        z-index: 0;
}

.pop.out.reverse {
        -webkit-transform: scale(.2);
        -webkit-animation-name: popout;
        -moz-transform: scale(.2);
        -moz-animation-name: popout;
        transform: scale(.2);
        animation-name: popout;
        opacity: 0;
        z-index: 10;
}

@-webkit-keyframes popin {
    from {
        -webkit-transform: scale(.2);
    	-moz-transform: scale(.2);
        transform: scale(.2);
        opacity: 0;
    }
    to {
        -webkit-transform: scale(1);
    	-moz-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

@-webkit-keyframes popout {
    from {
        -webkit-transform: scale(1);
    	-moz-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
    to {
        -webkit-transform: scale(.2);
    	-moz-transform: scale(.2);
        transform: scale(.2);
        opacity: 0;
    }
}

