/*
http://meyerweb.com/eric/tools/css/reset/ 
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/*--------------------------------------------------------------------------------------------------
general
*/

/* https://css-tricks.com/box-sizing/ */
html
{
	box-sizing: border-box;
}
*,
*:before,
*:after
{
	box-sizing: inherit;
}

body
{
	background-image: url( 'background.jpg' );
	font-family: Sans-Serif;
	font-size: 1.2em;  /*1.2 is good balance between phone and laptop*/
}

h1
{
	font-size: 2em;
}
h2
{
	font-size: 1.5em;
}

.textCenter
{
	text-align: center;
}

/*this div adds a little white space on the sides. img was a little too big on phones without this*/
.qrCode
{
	padding-left: 1em;
	padding-right: 1em;
}
.qrCode>img
{
	/*center on page*/
	display: block;
	margin-left: auto;
	margin-right: auto;

	background-color: #ffffff;
	padding: 0.5em;

	/*auto-scale with page width*/
	max-width: 100%;
	height: auto;
}
.qrCodeLabel
{
	padding-left: 1em;
	padding-right: 1em;
	padding-bottom: 0.25em;

	text-align: center;
	font-size: 1.5em;
}
.qrCodeLabelFirst
{
	padding-top: 1.5em;
}

.box
{
	border-width: 0.3em;
	border-style: solid;
	border-color: rgba(128, 0, 128, 1);
}

/*had to separate this from the countdownTimer because the font-size affected the border-width*/
/*id so javascript can find it*/
.countdownTimer
{
	margin: 1em;

	font-size: 1.5em;
	text-align: center;
}

footer
{
	width: 100%;
	font-size: 0.8em;
	padding: 0.5em;
	padding-top: 0.8em;
	box-shadow: inset 0 0.25em 0.4em -0.15em #000000;
/*	box-shadow: inset 0 8px 10px -6px #000000;*/

	color: #000000;
	background-color: rgba(128, 0, 128, 0.5);
}

h1,
h2,
p
{
	line-height: 1.25em;
}
.zh
{
	line-height: 1.5em;
}
p.zh
{
	text-align: justify;
	text-justify: inter-ideograph;
}
p.zh + p.zh
{
	padding-top: 3em;
}

/*--------------------------------------------------------------------------------------------------
sign-up button
*/

button
{
	border: 1px solid #d497f7;
	background: #9a65d6;
	background: linear-gradient( to bottom, #723e9c, #9a65d6 );
	padding: 14.5px 29px;
	border-radius: 12px;
	box-shadow: rgba(0,0,0,1) 0 1px 0;
	text-shadow: rgba(0,0,0,.4) 0 1px 0;
	color: white;
	font-size: 2em;
	text-decoration: none;
	vertical-align: middle;

	margin: 2em;
}
button:hover
{
	background: #700790;
}
button:active
{
	border-top-color: #8007b0;
	background: #8007b0;
}

/*--------------------------------------------------------------------------------------------------
splash image
*/

#splash
{
	height: 500px;  /*changed by js*/
	box-shadow: 0 0 0.5em 0.1em #000000;
}

/*appropriate class selected by js*/
.splashPortrait
{
	background-image: url( 'splashPortrait.jpg' );
	background-repeat: no-repeat;
	background-position: 33% 33%;
	background-size: cover;
}
.splashLandscape
{
	background-image: url( 'splashLandscape.jpg' );
	background-repeat: no-repeat;
	background-position: left center;
	background-size: cover;
}


/*--------------------------------------------------------------------------------------------------
*/

#pageTitle
{
	width: 100%;

	margin-top: 2em;  /*smaller so a bit of the purple shows at the bottom of iphone/android phone screens*/
	margin-bottom: 3em;
	padding-top: 3em;
	padding-bottom: 4em;  /*bottom bigger because <h1> has margin but <p> doesn't*/
	padding-left: 1em;
	padding-right: 1em;

	background-color: rgba(128, 0, 128, 0.5);
	background-image: linear-gradient(to bottom, rgba(128, 0, 128, 0.5), rgba(128, 0, 128, 0.2) );
	color: #ffffff;
}

#pageTitle>h1
{
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	text-align: center;
	text-shadow: 0.05em 0.05em 0.1em #000000;
}

#pageTitle>p
{
	/*center*/
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}


/*--------------------------------------------------------------------------------------------------
video layout
*/

/*space between videos/text and edge of screen*/
#videos
{
	margin-left: 1em;
	margin-right: 1em;
}

.video
{
	margin-bottom: 5em;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.video>h2
{
	margin: 0.25em;
	line-height: 1em; /*too much space between chinese and english titles without this*/
}
.video>p
{
	margin: 0.5em;
}

/*
hr
{
	border: 0;
	border-top: 0.1em;
	border-style: solid;
	border-color: #000000;
	margin-top: 0.2em;
	margin-bottom: 0.2em;
}
*/


/*--------------------------------------------------------------------------------------------------
video player 540p
*/

.fp540p
{
	width: 100%;
	background-color: #222;
	background-size: cover;
	box-shadow: 0 0 0.2em #444444;
/*background-image set by js*/
}

.flowplayer .fp-controls     { background-color: rgba(   0,   0,   0, 0.4 ) }  /*controls background*/
.flowplayer .fp-timeline     { background-color: rgba(   0,   0,   0, 0.8 ) }  /*timeline background*/
.flowplayer .fp-buffer       { background-color: rgba( 228, 228, 228, 1   ) }  /*timeline buffer*/
.flowplayer .fp-progress     { background-color: rgba( 164,  64, 164, 1   ) }  /*timeline play*/
.flowplayer .fp-volumeslider { background-color: rgba(   0,   0,   0, 0.8 ) }  /*volume level background*/
.flowplayer .fp-volumelevel  { background-color: rgba( 164,  64, 164, 1   ) }  /*volume level*/

/*play button size. change size when hovering
https://releases.flowplayer.org/6.0.3/skin/minimalist.css
this causes a strange blip on android chrome when you pause a video*/
.fp540p.is-splash.flowplayer .fp-ui,
.fp540p.is-paused.flowplayer .fp-ui
{
	background-size: 15%;
	transition: background-size 0.5s ease;
}
.fp540p.is-splash.flowplayer .fp-ui:hover,
.fp540p.is-paused.flowplayer .fp-ui:hover
{
	background-size: 20%;
}


/*--------------------------------------------------------------------------------------------------
end
*/
