/*
	STYLE
*/

h1, h2, h3,
.font
{

	font-weight: normal;
	
}


p, ul, ol
{
	/*margin: 0 0 22px 0;*/
}
a, a:link, a:active, a:visited, a:hover
{
	/*color: #fff;*/
}

select,
input[type="text"]
{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;

}

pre,
code
{
	font-family: Consolas, monospace;
	font-weight: normal;
	font-size: 14px;
	opacity: 0.8;

	transition: opacity 0.5s ease;
}
pre:hover,
code:hover
{
	opacity: 1;
}
pre
{
	-webkit-overflow-scrolling: touch;

	background: #fff;
	color: #666;
	white-space: pre;
	width: 100%;
	overflow: auto;
	padding: 10px 20px;
	margin: 22px -20px;
}
pre .faded
{
	opacity: 0.5;
}
.col6 + .col6 pre
{
	border-left: 1px solid #5BC5FF;
}

hr
{
	background: rgba( 255, 255, 255, 0.8 );
	border: none;
	height: 1px;
	margin: 22px -20px;
}

dl
{
	border-bottom: 1px solid rgba( 255, 255, 255, 0.8 );
	display: block;
	margin: 22px -20px;
}
dl:after
{
	content: '';
	display: block;
	clear: both;
}
dl dt,
dl dd
{
	border-top: 1px solid rgba( 255, 255, 255, 0.8 );
	min-height: 20px;
	padding: 10px 0;
	margin: 0;
	float: left;
	
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
dl dt
{
	width: 30%;
	padding-left: 20px;
	clear: left;
}
dl dd
{
	width: 70%;
	padding-right: 20px;
}




/*
	GENERIC
*/
.next
{
	margin-top: 80px;
}

.row:after
{
	content: '';
	display: block;
	clear: both;
}

.col3,
.col4,
.col6
{
	box-sizing: border-box;
	display: block;
	padding: 0 20px;
	float: left;
}
.col6
{
	width: 50%;
}
.col4
{
	width: 33.33%;
}
col3
{
	width: 25%;
}

.row.phones .col6
{
	margin-top: 20px;
}
.row.phones .col6:first-child,
.row.phones .col6:first-child + .col6
{
	margin-top: 0;
}

/*.wrapper
{
	box-sizing: border-box;
	width: 80%;
	max-width: 900px;
	margin: 0 auto;
}*/

#hamburger + .wrapper:before,
.wrapper:first-child:before
{
	content: '';
	background: url( ../img/phone.html) center center no-repeat transparent;
	display: block;
	width: 2300px;
	height: 1835px;
	margin-left: -400px;
	position: absolute;
	left: 50%;
	top: -1150px;
	z-index: -1;
}
.wrapper.no-phone:before
{
	content: none !important;
	display: none !important;
}


/*
	MENU
*/
#menu:not(.mm-menu)
{
	display: none;
}
#menu .fa
{
	width: 15px;
	color: #ccc;
}
.mm-panel > p
{
	font-size: 14px;
	margin-top: 20px;
}
.mm-panel > p + .mm-list {
	padding-top: 0;
}
#donate
{
	padding: 45px 20px 30px 44px;
}
#donate:after
{
	border: none !important;
}


/*
	LAYOUT
*/
#hamburger
{
	box-sizing: border-box;
	display: block;
	width: 70px;
	height: 45px;
	position: absolute;
	top: 0px;
	left: 0;
	/*z-index: 2;*/
	z-index: 9999;
}
#hamburger:before,
#hamburger:after,
#hamburger span
{
	background: #fff;
	content: '';
	display: block;
	width: 30px;
	height: 5px;
	position: absolute;
	left: 20px;
}
#hamburger:before
{
	top: 10px;
}
#hamburger span
{
	top: 20px;
}
#hamburger:after
{
	top: 30px;
}

/* Hamburger animation */
#hamburger:before,
#hamburger:after,
#hamburger span
{
	-webkit-transition: none 0.5s ease 0.5s;
	transition: none 0.5s ease 0.5s;

	-webkit-transition-property: transform, top, bottom, left, opacity;
	transition-property: transform, top, bottom, left, opacity;
}
html.mm-opening #hamburger:before,
html.mm-opening #hamburger:after
{
	top: 20px;	
}
html.mm-opening #hamburger span
{
	left: -50px;
	opacity: 0;
}
html.mm-opening #hamburger:before
{
	transform: rotate( 45deg );
	-ms-transform: rotate(45deg); /* IE 9 */
    -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
}
html.mm-opening #hamburger:after
{
	transform: rotate( -45deg );
	-ms-transform: rotate(-45deg); /* IE 9 */
    -webkit-transform: rotate(-45deg); /* Chrome, Safari, Opera */
}


/*#page
{
	box-shadow: none;
	width: 100%;
	min-width: 320px;
	padding: 100px 0;
	overflow: hidden;
	position: relative;
	z-index: 1;
}*/
.ad-wrapper
{
	background: #5BC5FF;
	opacity: 0.9;
	width: 100%;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 2;
}
.ad-wrapper > div
{
	border-top: 1px solid rgba( 255, 255, 255, 0.8 );
	width: 900px;
	padding: 5px 20px;
	margin: auto;
}

#buttons,
a.btn
{
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba( 0, 0, 0, 0.2 );
	overflow: hidden;
}
#buttons
{
	margin: 20px -5px;
}
#buttons a,
a.btn
{
	background: rgba( 255, 255, 255, 0.8 );
	text-decoration: none;
	line-height: 25px;
}
#buttons a
{
	padding: 20px 0 10px 0;
}
#buttons a:hover,
a.btn:hover
{
	background: #fff;
}
#buttons a + a
{
	border-left: 1px solid #5BC5FF;
}
#buttons .font,
a.btn
{
	color: #5BC5FF;
}
#buttons .font
{
	font-size: 35px;
}

#buttons .sub
{
	color: #666;
	font-size: 13px;
}
#buttons .sub
{
	padding-left: 40px;
}
#buttons span
{
	text-align: center;
	display: block;
}
a.btn
{
	font-weight: bold;
	display: inline-block;
	padding: 10px 20px;
	margin: 5px 10px 0 0;
}
#buttons .col6
{
	margin: 0;
}

.table
{
	margin: 22px -20px;
}
.table td
{
	vertical-align: top;
	box-sizing: border-box;
	padding: 10px;
}
.table td,
.table tr.datatype td + td
{
	border-top: 1px solid rgba( 255, 255, 255, 0.8 );
}
.table thead
{
	background: rgba( 255, 255, 255, 0.8 );
	color: #5BC5FF;
}

.table thead td,
.table tr.sub-start td,
.table tr.sub-start + tr td,
.table tr.sub td:first-child,
.table tr.sub-end td,
.table tr.datatype td,
.table tfoot tr + tr td
{
	border-top: none;
}
.table tr.sub:not(.datatype) td:first-child + td
{
	padding-left: 40px;
}
.table tr.sub-start td,
.table tr.sub-end td,
.table tfoot td
{
	padding-top: 0
}
.table td:first-child + td small
{
	display: block;
}
.table tfoot
{
	font-size: 13px;
}
.table tfoot tr:first-child td
{
	padding-top: 20px;
}
.table td.toggle
{
	cursor: pointer;
}

.table td:first-child
{
	width: 1%;
}
.table td:first-child + td
{
	width: 21%;
}
.table td:first-child + td + td
{
	width: 20%;
}
.table td:first-child + td + td + td
{
	width: 15%;
}
.table td:first-child + td + td + td + td
{
	width: 43%;
}
.table td:first-child + td[colspan="4"]
{
	width: 99%;
}


.phone
{
	background: url( ../img/phone-example.html) center top no-repeat transparent;
	height: 628px;
	padding-top: 132px;
	z-index: 1;
}
.phone iframe
{
	border-radius: 5px;
	overflow: hidden;
	background: #111;
	border: none;
	display: block;
	width: 280px;
	height: 500px;
	margin: 0 auto;
}
.phone + pre
{
	margin-top: 0;
}

a.popout
{
	border-bottom: 1px solid rgba( 255, 255, 255, 0.8 );
	text-decoration: none;
	text-align: center;
	line-height: 20px;
	display: block;
	padding: 10px 0 10px 40px;
}
a.popout .fa
{
	margin-left: 20px;
}
pre + a.popout
{
	margin: -20px -20px 0 -20px;
}


/*
	HOME
*/
#home-intro
{	
	padding: 0 0 700px 0;
	position: relative;
}
#home-intro:before
{
	content: '';
	background: url( ../img/phone.html) center center no-repeat transparent;
	display: block;
	width: 2300px;
	height: 1835px;
	margin-left: -950px;
	position: absolute;
	left: 50%;
	bottom: -500px;
	z-index: -1;
}
#home-intro h1
{
	font-size: 150px;
	line-height: 150px;
	letter-spacing: -10px;
	margin: 20px 0;
}

#home-features ul
{
	display: block;
	padding: 0;
}
#home-features li
{
	margin: 0 0 20px 0;
}
.col4:nth-child( 3n + 1 )
{
	clear: left;
}

#changelog > li
{
	margin-top: 20px;
}

.icon-summary p:after
{
	content: '';
	display: block;
	clear: both;
}
.icon-summary .fa
{
	font-size: 50px;
	width: 50px;
	margin: 10px 20px 20px 0;
	float: left;
}

#tipstricks h4
{
	margin-top: 100px;
}
#tipstricks h4 .fa
{
	font-size: 40px;
	width: 50px;
	margin: 3px 0 0 5px;
	float: left;
}

/*
	PLAYGROUND
*/
#playground-options
{
	background: none;
	width: 100% !important;
	color: #fff;
	
	height: auto;
	max-width: none;
	position: relative;
}
#playground-options h4
{
	margin-top: 40px;
}
#playground-options .mm-panel
{
	position: relative;
}

#playground-options input.mm-toggle ~ label.mm-toggle
{
    background: rgba( 255, 255, 255, 0.4 );
}
#playground-options input.mm-toggle:checked ~ label.mm-toggle
{
    background: #fff;
}
#playground-options label.mm-toggle:before
{
	background: #5bc5ff;
}
#playground-options .mm-list > li:after
{
    border-color: rgba( 255, 255, 255, 0.5 );
}
#playground-options .mm-list .mm-panel li:last-child:after
{
	border-color: transparent;
}
#playground-options h4 + .mm-list
{
	margin-top: -30px;
}
#playground-options .mm-list input[type="text"]
{
	margin-top: 5px;
}

.code-iconbar,
.code-buttonbars,
.code-labels,
.code-toggles
{
	display: none;
}
#code.iconbar .code-iconbar,
#code.buttonbars .code-buttonbars,
#code.labels .code-labels,
#code.toggles .code-toggles
{
	display: inline;
}
.phone iframe {
    background: none repeat scroll 0 0 #111;
    border: medium none;
    border-radius: 5px;
    height: 500px;
    margin: 132px 0 0 76px;
    overflow: hidden;
    width: 280px;
}
/*#page
{
	width: 350px;
	position: fixed;
	margin-top: -200px;
	margin-left: 0;
	top: 50%;
	left: 50%;
}*/

/* small screens */
@media all and (max-width: 1000px)
{
	#home-intro
	{
		padding-bottom: 550px;
	}
	#home-intro:before
	{
		background-size: 80%;
		margin-left: -1000px;
		bottom: -600px;
	}
	#home-intro h1
	{
		margin-top: -10px;
	}
	#download-intro > .col6,
	#home-intro > .col6
	{
		width: 70%;
	}
	.row.phones .col6,
	.playground.col6,
	.playground.col6 + .col6
	{
		width: 100%;
	}
	.row.phones .col6:first-child + .col6
	{
	    margin-top: 20px;
	}
	.col4
	{
		width: 50%;
	}
	.col4:nth-child( 3n + 1 )
	{
		clear: none;
	}
	.col4:nth-child( 2n + 1 )
	{
		clear: left;
	}

	.table td:first-child
	{
		display: none;
	}
	.table td:first-child + td
	{
		width: 20%;
	}
	.table td:first-child + td + td
	{
		width: 20%;
	}
	.table td:first-child + td + td + td
	{
		display: none;
	}
	.table td:first-child + td + td + td + td
	{
		width: 60%;
	}
	.table td:first-child + td[colspan="4"]
	{
		width: 100%;
	}
}

/* really small screens */
@media all and (max-width: 1023px)
{

	#home-intro
	{
		padding-bottom: 450px;
	}
	#home-intro:before
	{
		background-size: 60%;
		bottom: -650px;
	}
	#home-intro h1
	{
		letter-spacing: -5px;
		font-size: 110px;
		line-height: 110px;
		margin-top: -40px;
	}
	#download-intro > .col6,
	#home-intro > .col6,
	.col6
	{
		width: 100%;
	}
	.col4
	{
		width: 100%;
		clear: left;
	}
	#hamburger
	{
		background: #000000;
		border-bottom: 1px solid rgba( 255, 255, 255, 0.8 );
		opacity: 0.9;
		width: 100%;
		top: 0;
		position: relative;
	}
	#buttons a + a
	{
		border-left: none;
		border-top: 1px solid #5BC5FF;
	}
	.wrapper:before
	{
		content: none !important;
		display: none !important;
	}

	.table td:first-child
	{
		display: none;
	}
	.table td:first-child + td
	{
		width: 30%;
	}
	.table td:first-child + td + td
	{
		display: none;
	}
	.table td:first-child + td + td + td
	{
		display: none;
	}
	.table td:first-child + td + td + td + td
	{
		width: 70%;
	}
	.table td:first-child + td[colspan="4"]
	{
		width: 100%;
	}
}

/* really really small screens */
@media all and (max-width: 500px)
{
	.row.phones .phone
	{
		margin-left: -100px;
		margin-right: -100px;
	}
}
/* really really really small screens */
@media all and (max-width: 370px)
{
	.phone
	{
		background: none;
		height: auto;
		padding: 20px 0;
	}
	.phone iframe
	{
		border: 10px solid #111;
	}
}

/* large screens */
@media all and (min-width: 1430px)
{
	.ad-wrapper
	{
		left: 30%;
		width: 70%;
	}
	#hamburger
	{
		display: none;
	}
}

