@font-face {
    font-family: 'ms500';
    src: url('fonts/ms500.eot');
    src: url('fonts/ms500.eot?#iefix') format('embedded-opentype'),
         url('fonts/ms500.woff') format('woff'),
         url('fonts/ms500.ttf') format('truetype'),
         url('fonts/ms500.svg#MuseoSlab500Regular') format('svg');
    font-weight: normal;
    font-style: normal;
}

* {
	margin: 0;
	padding: 0;	
}

.viewport-flip {
	-webkit-perspective: 1000;
	-moz-perspective: 1000;
	position: absolute;
}
.flip {
	-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-backface-visibility:hidden;
	-moz-transform:translateX(0);
}
.flip.out {
	-webkit-transform: rotateY(-90deg) scale(.9);
	-webkit-animation-name: flipouttoleft;
	-webkit-animation-duration: 175ms;
	-moz-transform: rotateY(-90deg) scale(.9);
	-moz-animation-name: flipouttoleft;
	-moz-animation-duration: 175ms;
}
.flip.in {
	-webkit-animation-name: flipintoright;
	-webkit-animation-duration: 250ms;
	-moz-animation-name: flipintoright;
	-moz-animation-duration: 250ms;
}
.flip.out.reverse {
	-webkit-transform: rotateY(90deg) scale(.9);
	-webkit-animation-name: flipouttoright;
	-moz-transform: rotateY(90deg) scale(.9);
	-moz-animation-name: flipouttoright;
}
.flip.in.reverse {
	-webkit-animation-name: flipintoleft;
	-moz-animation-name: flipintoleft;
}
@-webkit-keyframes flipouttoleft {
    from { -webkit-transform: rotateY(0); }
    to { -webkit-transform: rotateY(-90deg) scale(.9); }
}
@-moz-keyframes flipouttoleft {
    from { -moz-transform: rotateY(0); }
    to { -moz-transform: rotateY(-90deg) scale(.9); }
}
@-webkit-keyframes flipouttoright {
    from { -webkit-transform: rotateY(0) ; }
    to { -webkit-transform: rotateY(90deg) scale(.9); }
}
@-moz-keyframes flipouttoright {
    from { -moz-transform: rotateY(0); }
    to { -moz-transform: rotateY(90deg) scale(.9); }
}
@-webkit-keyframes flipintoleft {
    from { -webkit-transform: rotateY(-90deg) scale(.9); }
    to { -webkit-transform: rotateY(0); }
}
@-moz-keyframes flipintoleft {
    from { -moz-transform: rotateY(-90deg) scale(.9); }
    to { -moz-transform: rotateY(0); }
}
@-webkit-keyframes flipintoright {
    from { -webkit-transform: rotateY(90deg) scale(.9); }
    to { -webkit-transform: rotateY(0deg); }
}
@-moz-keyframes flipintoright {
    from { -moz-transform: rotateY(90deg) scale(.9); }
    to { -moz-transform: rotateY(0); }
}

.wp {
	min-width: 320px;
	min-height: 480px;
	margin: 0 auto;
	
	-webkit-text-size-adjust: 100%; 
	-ms-text-size-adjust:none; 
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	
	font-family: 'ms500', Helvetica, sans-serif;
	
	position: relative;
}

.ui-page {
	display: block;
	
	background: #FFF;
}

.ui-page .header {
	height: 57px;
	
	background: url('../images/bg-header.jpg') center top repeat-x;
	background-size: auto 57px;
}
.ui-page .header a {
	display: block;
	width: 100%;
	height: 100%;
	
	background: url(../images/logo.png) center center no-repeat;
	background-size: contain;
	
	text-indent: -999em;
}

.ui-page .top-border {
	height: 11px;
	
	background: #bbdd4c;
	border-top: 1px solid #e4f17a;
	border-bottom: 1px solid #92c91e;
}

.ui-page .content {
	background: url(../images/bg-container.jpg) repeat-x;
	background-size: contain;
}

.btn {
	display: block;
	width: 108px;
	height: 18px;
	padding: 10px;
	margin: 0 auto 15px;
	
	background: url(../images/bg-btn.png) no-repeat;
	background-size: contain;
	
	font-size: 14px;
	color: #fff;
	text-align: center;
	text-decoration: none;
}

.ui-page .footer {
	padding: 18px 0;
}

.ui-page .footer span,
.ui-page .footer a {
	display: block;
	margin: 0 auto 5px;
	
	text-align: center;
}
.ui-page .footer a img {
	display: inline;
}

.ui-page .footer .com-name {
	font-size: 15px;
	color: #1c0707;
}

.ui-page .footer .com-msg {
	font: 12px Verdana, sans-serif;
	color: #45382b;
}

.ui-page .footer .charity-name {
	font-size: 13px;
	color: #b72a34;
}
.ui-page .footer .charity-logo {
	margin: 20px auto;
}
.ui-page .footer .com-logo {
	margin: 2px auto 20px
}

#card {
	width: 294px;
	height: 227px;
	margin: 0 auto;
	
	background: url(../images/bg-card.jpg);
	background-size: contain;
	
	-webkit-perspective: 600;
	-moz-perspective: 600;
	-ms-perspective: 600;
	perspective: 600;
}
#card div {
	/*height: 203px;
	width: 100%;v1&v2*/
	height: 170px;
	width: 255px;
}
#card .img-wp {	
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	-o-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: rotate3d(20, -20, 5, 30deg) translate3d(11px, 25px, 0px);
	text-align:center;
	background-position: left top;
	background-size: cover;
	background-repeat: no-repeat;
	-webkit-background-clip:padding-box;
	background-clip:padding-box;
	-webkit-box-shadow: 0 0 1px 1px #fff;	
	-moz-box-shadow: 0 0 1px 1px #fff;	
	-ms-box-shadow: 0 0 1px 1px #fff;	
	box-shadow: 0 0 1px 1px #fff;	
}

#ecard-open {
	display: none;
}
#ecard-open .content {
	padding: 10px 20px;
	font-size: 14px;
	line-height: 19px;
	color: #45382b;
}
#ecard-open .content-inner {
	max-width: 440px;
	margin: 0 auto;
}
#ecard-open .content p {
	margin: 10px 0;
}
/*
@media only screen and (-webkit-min-device-pixel-ratio: 2), 
only screen and (min-device-pixel-ratio: 2) {
	.ui-page .content {
		background-image: url(../images/bg-container.jpg) repeat-x;
	}
}*/
	