@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700);
/* TODO: Consider "Segoe WP" as font */

html {
	margin: 0;	
	height: 100%;
}
body {
	margin: 0;
	color: white;
	background-color: black;
	background-attachment: fixed;
	font-family: "Open Sans", sans-serif;
	position: relative;
	min-height: 100%;
	height: auto;
}
body#article {
	background-color: white;
	background-image: none;
	color: black;
}
body#home,
#article #bg-left {
	background-color: #00557f;
	background-image: linear-gradient(black, rgba(0,0,0,0.6));
	transition: background 0.5s;
}
#wrapper {
	width: 1000px;
	margin: 0 auto;
	position: relative;
}
#nav-global {
	display: none;
}
h1 {
	font-weight: 300;
	font-size: 50px;
/*	animation: text-flaming linear 2s infinite;
	-webkit-animation: text-flaming linear 2s infinite; */	
}
#article h1#home-title {
	display: none;
}
h1#home-title {
}
@keyframes text-flaming {
  from {
	text-shadow: 0 0 10px rgba(100,100,255,1), 0 -10px 20px rgba(255,200,0,0.85), 4px -20px 20px rgba(255,0,0,0.35), -1px -25px 27px rgba(255,0,0,0.35);
  }
  25% {
	text-shadow: 0 0 15px rgba(100,100,255,1), -0px -10px 25px rgba(255,200,0,0.75), -3px -27px 27px rgba(255,0,0,0.35), 6px -15px 20px rgba(255,0,0,0.35);
  }
  50% {
	text-shadow: 0 0 10px rgba(100,100,255,1), 0 -10px 20px rgba(255,200,0,0.75), 4px -20px 20px rgba(255,0,0,0.45), -1px -20px 27px rgba(255,0,0,0.35);
  }
  75% {
	text-shadow: 0 0 15px rgba(100,100,255,1), -0px -14px 25px rgba(255,200,0,0.65), -3px -27px 27px rgba(255,0,0,0.25), 6px -20px 20px rgba(255,0,0,0.35);
  }
  to {
	text-shadow: 0 0 10px rgba(100,100,255,1), 0 -10px 20px rgba(255,200,0,0.85), 4px -20px 20px rgba(255,0,0,0.35), -1px -25px 27px rgba(255,0,0,0.35);
  }
}
@-webkit-keyframes text-flaming {
  from {
	text-shadow: 0 0 10px rgba(100,100,255,1), 0 -10px 20px rgba(255,200,0,0.85), 4px -20px 20px rgba(255,0,0,0.35), -1px -25px 27px rgba(255,0,0,0.35);
  }
  25% {
	text-shadow: 0 0 15px rgba(100,100,255,1), -0px -10px 25px rgba(255,200,0,0.75), -3px -27px 27px rgba(255,0,0,0.35), 6px -15px 20px rgba(255,0,0,0.35);
  }
  50% {
	text-shadow: 0 0 10px rgba(100,100,255,1), 0 -10px 20px rgba(255,200,0,0.75), 4px -20px 20px rgba(255,0,0,0.45), -1px -20px 27px rgba(255,0,0,0.35);
  }
  75% {
	text-shadow: 0 0 15px rgba(100,100,255,1), -0px -14px 25px rgba(255,200,0,0.65), -3px -27px 27px rgba(255,0,0,0.25), 6px -20px 20px rgba(255,0,0,0.35);
  }
  to {
	text-shadow: 0 0 10px rgba(100,100,255,1), 0 -10px 20px rgba(255,200,0,0.85), 4px -20px 20px rgba(255,0,0,0.35), -1px -25px 27px rgba(255,0,0,0.35);
  }
}
a {
	text-decoration: none;
	color: inherit;
}
.text-section a {
	color: #777;	
}
.text-section a:hover {
	text-decoration: underline;
}
:focus {
	outline:none;
}
::-moz-focus-inner {
	border:0;
}
#site-info {
	clear: both;
}

/* home general */
#home h1 {
	font-size: 80px;
	line-height: 1em;
	margin: 0;
	padding: 60px 0;
}
#home h1 b {
	font-weight: 500;
}
#home #branding {
	padding: 60px 0;
	float: left;
}

/* home tiles */
.tile {
	color: white;
	margin: 0 25px 25px 0;	
	float: left;
	position: relative;
	cursor: pointer;
	perspective: 2000px;
	-webkit-perspective: 2000px;
	-o-perspective: 2000px;
	-ms-perspective: 2000px;
	font-size: 20px;
}
.tile,
.tile .front,
.tile .back {
	width: 200px;
	height: 200px;
}
.tile .front,
.tile .back {
	/*background-color: #1BA1E2; /* cyan */
	background-color: #1080dd; /* nokia blue */
}
.tile .text,
.tile .title,
.image-link .title {
	margin: 5px 10px;
}
.tile .title,
.image-link .title {
	position: absolute;
	bottom: 0;
}
.tile .back .title {
	position: relative;
	font-size: 1.5em;
	font-weight: 300;
}
.tile .back .text {
	font-size: 16px;
	font-weight: 400;
}
.tile.halo .front,
.tile.halo .back {
	box-shadow: /*0 0 4px 0px black,*/ 0 0 15px 4px #1080DD;
}
.tile.w8-app .front,
.tile.w8-app .back {
	/*background-color: #6A66ee; /* indigo (modified to defang) */	
	background-color: #647687; /* steel */
}
.tile.w8-app.halo .front,
.tile.w8-app.halo .back {
	box-shadow: /*0 0 4px 0px black,*/ 0 0 15px 4px #647687;
}
.tile.home .front,
.tile.home .back {
	background-color: #F0A30A; /* amber */
}
.tile.meta .front,
.tile.meta .back {
	background-color: #60A917; /* green */
}
#stage h2 {
	font-size: 30px;
	font-weight: 300;
	margin: 0 0 2em 0;
}
#stage h2 span {
}
#stage .wp {
	color: #1080dd; /* nokia blue */
}
#stage .w8 {
	/*color: #6A66ee; /* indigo (modified to defang) */
	color: #647687; /* steel */
}
/*#left-column .tile.wp-app.first-child:before,
#left-column .tile:not(.wp-app) + .tile.wp-app:before {
	content: "Windows Phone";
	color: #1080dd;
	display: block;
	position: absolute;
	left: -30px;
	transform: rotate(90deg);
	transform-origin: 0% 100%;
	font-size: 20px;
	white-space: nowrap;
}*/
.tile .front,
.tile .back {
	position: absolute;
	top: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	pointer-events: none; /* for better click behavior */
	transform-style: preserve-3d;
	transition-property: -o-transform, box-shadow, background-color;
	transition-property: -ms-transform, box-shadow, background-color;
	transition-property: -webkit-transform, box-shadow, background-color;
	transition-property: transform, box-shadow, background-color;
	transition-duration: 600ms;
	transition-timing-function: ease-out;
}
.tile.flipped .front,
.tile:hover .front {
	transform: rotateX(-180deg);
	-webkit-transform: rotateX(-180deg);
	-o-transform: rotateX(-180deg);
	-ms-transform: rotateX(-180deg);
}
.tile.flipped .back,
.tile:hover .back {
	transform: rotateX(0);
	-webkit-transform: rotateX(0);
	-o-transform: rotateX(0);
	-ms-transform: rotateX(0);
}
.tile .back {
	transform: rotateX(180deg);
	-webkit-transform: rotateX(180deg);
	-o-transform: rotateX(180deg);
	-ms-transform: rotateX(180deg);
}
.tile.flipped .back,
.tile:hover .back {
}
.tile .front .icon {
	line-height: 200px;
	text-align: center;
	font-size: 110px;
}
.tile .front .icon img {
	width: 100%;
	height: 100%;
}
.tile:hover .front,
.tile:hover .back,
.tile.open .front,
.tile.open .back {
	box-shadow: 0 0 0 4px white;
}
#extras > .snippet:first-of-type {
	clear: both;
}
#extras > .snippet {
	float: left;
	margin: 0 25px 20px 0;
}
#extras > .snippet iframe {
	display: block;
}

/* detail page general layout */
#article #bg-left {
	position: absolute;
	width: 50%;
	height: 100%;
	top: 0;
	left: 0;
}
#article #bg-left #center-hack {
	background-color: white;
	position: absolute;
	right: 0;
	height: 100%;
	width: 395px;
}
#article #wrapper {
	width: 890px;
	padding-left: 150px;
	min-height: 100%;
	overflow: hidden;
}
#article #wrapper-2 {
	float: left;
}
#branding #logo img {
	float: left;
	height: 80px;
	margin-right: 20px;
}

/* nav tiles */
#article #branding #logo img {
	height: 2em;
	margin: 11px 6px 0 0;
}
#branding .skip,
#branding #logo strong {
	display: none;
}
#left-column #branding-text {
	color: white;
	line-height: 1em;
	margin-top: 10px;
	margin-bottom: 20px;
}
#left-column #branding-text b {
	font-weight: 600;
}
#left-column {
	float: left;
	position: relative;
	margin-left: -130px;
	width: 105px;
	height: 100%;
}
#left-column .tile {
	margin-bottom: 20px;
	display: block;
	float: none;
}
#left-column .tile,
#left-column .tile .front,
#left-column .tile .back {
	width: 80px;
	height: 80px;
}
#left-column .tile .front .icon {
	line-height: 80px;
	font-size: 44px;
}
#left-column .tile .title {
	margin: 3px 6px;
	font-size: 12px;
	font-weight: 600;
}
#left-column .tile .front .title,
#left-column .tile .back .text {
	display: none;
}
#left-column .tile .back .title {
	position: absolute;
}
#left-column .tile.open {
	position: relative;
}
.tile.open:after {
    background-color: #FFFFFF;
    bottom: 40px;
    content: " ";
    height: 16px;
    left: 94px;
    position: absolute;
    width: 16px;
    z-index: 0;
    pointer-events: none;
    -ms-transform: rotate(45deg);
    -ms-transform-origin: left bottom 0;
    -webkit-transform: rotate(45deg);
    -webkit-transform-origin: left bottom 0;
    transform: rotate(45deg);
    transform-origin: left bottom 0;
}

/* app page images */
#article .images {
	overflow: hidden;
	margin-bottom: 1em;
}

/* lightbox links */
.lightbox-link img {
	max-width: 240px;
	display: block;
	transition: opacity 200ms;
	background-color: white;
}
.lightbox-link {
	float: left;
	margin-right: 25px;
	margin-bottom: 2em;
	position: relative;
	background-color: black;
	cursor: pointer;
}
.lightbox-link.bright-image {
	box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.lightbox-link .hoverlay {
	display: none;
	color: white;
	width: 100%;
	position: absolute;
	top: 50%;
	left: 0;
	text-align: center;
	line-height: 2em;
	margin-top: -1em;
	font-size: 4em;
	font-weight: 700;
	pointer-events: none;
}
.lightbox-link:hover .hoverlay {
	display: block;
}
.lightbox-link:hover img {
	opacity: 0.6;
}
.qr-code .qr-info-lightbox {
	display: none;
}
.qr-info-lightbox h3 {
	margin: 0;
}
.qr-info-lightbox img {
	display: block;
}	

/* other detail page stuff */
#article #intro-area {
	overflow: hidden;
	padding-top: 20px;
	padding-bottom: 2em;
}
#article h1 {
	margin: 0;
	font-weight: 400;
	position: relative;
	line-height: 1.3em;
}
#article h1 > em {
	font-size: 12px;
	display: block;
	font-style: normal;
	font-weight: 300;
	line-height: normal;
}
#article .app-logo {
	height: 120px;
	float: left;
	margin-right: 20px;
}
#article .intro {
	font-size: 30px;
	margin: 0;
	font-weight: 300;
	line-height: 1em;
}
#article .text-section p {
	margin: 0 0 1em 0;
}
#article .text-section {
	clear: both;
	overflow: hidden;
	margin: 0 0 1em 0;
}
#article .text-section h2 {
	margin-top: 0;
	margin-bottom: 0.5em;
	font-weight: 300;
	font-size: 1.5em;
}
#article .text-section ol,
#article .text-section ul {
	margin: 0.75em 0;
}
#article .text-section ul {
	list-style: square;
}
.image-link,
.qr-code {
	max-width: 150px;
}
.image-link > img,
.qr-code > img {
	width: 100%;
}
.image-link {
	background-color: #fc0;
	position: relative;
}
.image-link img {
	background-color: black;
	transition: background 200ms;
}
.image-link:hover img {
	background-color: transparent;
}
.image-link img {
	display: block;
}
.image-link .title {
	color: white;
	font-size: 15px;
	font-weight: 600;
}
.image-link {
	display: block;
	float: left;
	margin: 0 25px 2em 0;
}

/* form */
.form-wrapper {
	margin-bottom: 2em;
}
form fieldset {
	border: none;
	padding: 0;
	margin: 0;
}
form .form-row {
	display: block;
	overflow: hidden;
	margin: 0.5em 0;
}
form label {
	display: block;
	width: 150px;
	float: left;
	padding: 0.5em;
	padding-left: 0;
}
form label dfn[title="required"] {
	font-style: normal;
}
form input,
form textarea {
	font-family: inherit;
	font-size: 1em;
	width: 300px;
	border: none;
	background-color: #eee;
	padding: 0.5em;
	margin: 0;
}
form .form-row > span {
	display: block;
	margin: 0.25em 0;
	font-size: 0.75em;
}
form input[type="submit"] {
	background-color: #969696;
	color: white;
	width: auto;
	padding: 0.5em 1em;
	float: right;
	margin: 1em 0;
	cursor: pointer;
}
form input[type="submit"]:hover {
	background-color: #777;
}
#article .text.error {
	background-color: #f44;
	color: white;
	padding: 1em;
}
#article .text.error h1 {
	font-size: 20px;
	margin: 0;
}
#article .text.error ul {
	margin: 0;
	list-style: square;
}
form .form-row.error input {
	border: 4px solid #f44;
	margin-left: -4px;
}
form .form-row.error label em {
	display: none;
}
.text.success {
	background-color: #2a4;
	color: white;
	padding: 1em;
}
.text.success h1 {
	font-weight: 200;
	font-size: 40px;
	margin-bottom: 10px;
}
.text.success p {
	margin: 0;
}
#mgnlhp {
	display: none;
}

@media (max-width: 1040px) {

html, body {
	width: 100%;
}
#article #wrapper {
	width: 100%;
	box-sizing: border-box;
	padding-right: 15px;
}
#article #bg-left #center-hack {
	position: static;
	margin-left: 125px;
}

}
