/* HTML5 Boilerplate  */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
html, button, input, select, textarea { font-family: sans-serif; color: #4D4E53; }
body { margin: 0; font-size: 1em; line-height: 1.4; }

abbr[title] { border-bottom: 1px dotted; }
b, strong { font-weight: bold; }
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
ins { background: #ff9; color: #000; text-decoration: none; }
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }
small { font-size: 85%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
svg:not(:root) { overflow: hidden; }
figure { margin: 0; }

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

label { cursor: pointer; }
legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
button, input { line-height: normal; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
button[disabled], input[disabled] { cursor: default; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }

.chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }

/* Styles -------------------------------------------- */

html {
	background-color: #DDEBF5;
}

body {
	max-width: 960px;
	min-width: 480px;
	margin: 0 auto;
}

/* Colours -------------------- */

@yellow: 	#FBE700;
@blue:		#0366CE;
@coolgrey:	#4D4E53;
@lightblue: #DDEBF5;

/* Gradient colours ----------- */

@btnbluestart:	@blue;
@btnblueend:	#428CDA;

/* Buttons -------------------- */

.btn, .download {
		display: inline-block;
        text-decoration: none;
        float: right;
        color: white;
        font-weight: 700;
        margin: 1em 0;
        padding: 0.8em;
        text-shadow: rgba(4, 35, 128, .66) 0 -1px 0;

        -webkit-border-radius: 6px;
        border-radius: 6px;

        background: @blue;
        background: -moz-linear-gradient(top, @btnblueend 0, @btnbluestart 100%);
        background: -o-linear-gradient(top, @btnblueend 0, @btnbluestart 100%);
        background: -webkit-gradient(linear,left top,left bottom,color-stop(0%, @btnblueend),color-stop(100%, @btnbluestart));
        background: linear-gradient(top, @btnblueend 0, @btnbluestart 100%);

        -webkit-box-shadow: rgba(77, 78, 83, 0.33) 0 1px 1px;
        box-shadow: rgba(77, 78, 83, 0.33) 0 1px 1px;
}

/* Header ---------------------------------------*/

body > header {
	background: @yellow;

	h1 {
		display: inline-block;
		margin: 0.4em;
		background: url(../img/wb-logo.png) 0 0 no-repeat;
		height: 45px;
		text-indent: -9999px;
		width: 172px;
		background-size: 172px 45px;
	}

	p {
		display: inline-block;
		width: 50%;
		margin: 0.4em;
		padding: 0;
		float: right;
		text-align: right;
	}

	a {
		float: right;
		font-size: 20px;
		margin: 1.4em;
		text-decoration: none;
		color: #0366ce;

	}
}

@media all and (max-width: 768px) {
	body > header p {
		font-size: 0.8em;
	}
}

/* Main --------------------------------------- */

#main {
	width: 100%;
	margin: 0;
	padding: 0.4em 0;
}

/* Home -------------------------------------- */

article {
	height: 5.8em;
	background-color: #fff;
	-moz-border-radius: 6px;
	-o-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	padding: 1%;
	width: 98%;
	margin: 1em auto;

	a.btn {
		text-decoration: none;
		display: inline-block;
		width: 25%;
		margin: 0.7em 0;
	}

	h3 {
		margin: 0;
		border-radius: 3px;
		text-indent: 0.2em;
		text-decoration: none;
		color: white;
		background-color: @blue;
	}

	p {
		display: inline-block;
		width: 65%;
		min-height: 2em;

		a {
			text-decoration: underline;
			color: @coolgrey;
			line-height: 2em;
		}
	}
}

@media all and (max-width: 768px) {

	article p {
		width: 60%;
	}

	article a.btn {
		font-size: 1em;
	}
}

@media all and (max-width: 700px) {

	article {
		font-size: 0.75em;
	}
}

/* PDF, Video --------------------------------- */

#videos, #documents {
	display: inline-block;
	width: 49%
}

#videos > h2, #documents > h2 {
	background-color: #fff;
	-moz-border-radius: 6px;
	-o-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	padding: 1%;
	width: 98%;
	margin: 0.2em auto;
}

/* Video -------------------------------------- */

.mejs-container {
	width: 800px;
	height: 600px;
	margin: 1em auto;
}

/* PDF ---------------------------------------- */

#documents {
	float: right;
}

body.pdf {
	max-width: 960px;
	min-width: 480px;
	margin: 0 auto;
}

.pdf header {
	max-width: 960px;
	margin: 0 auto;
}

.pdf #main {
	position: absolute;
	left: 0;
	right: 0;
	top: 92px;
	bottom: 0;
}

.pdf .download {
	display: block;
	width: 15em;
	text-align: center;
	font-size: 16px;
	margin: 1em auto;
	float: none;
}

/* Olympics broadcaster page ----------------- */

.olympics {
	background-color: #fff;
	margin: 1em auto;
	padding: 7px 20px;
	min-width: 1000px;
	border-radius: 8px;

	header, footer {
		width: 98%;
		margin: 0.5em auto;
		padding: 0.5em 1%;
		background: @yellow;
		border-radius: 8px;
		clear: both;

		p {
			color: @blue;
			width: 60%;
			font-size: 1.5em;
		}
	}

	h3 {
		color: @blue;
		font-size: 1.4em;
		margin: 0.5em 0;
		font-weight: normal;
	}

	#main > h2 {
		margin: 0.4em 0 0;
		border-radius: 3px;
		text-indent: 0.2em;
		text-decoration: none;
		color: white;
		background-color: @blue;
	}

	.intro {
		display: inline-block;
		width: 450px;
		height: 565px;

		h3 {
			display: inline-block;
			font-size: 1.8em;
			margin: 0.5em 0;
			font-weight: normal;
			color: @blue;
		}

		strong {
			display: block;
			padding: 7%;
			margin: 1.5em auto 0;
			font-size: 1.3em;
			font-weight: normal;
			color: @blue;
			text-decoration: none;
			background-color: @lightblue;
		}
	}

	.products {
		section {

			ul {
				display: inline-block;
				margin: 0.4em 0;
				padding: 0 0 0 1em;
				width: 465px;
				background-color: #fff;
				border-radius: 6px;
				vertical-align: top;

				li {
					padding: 0.2em 0;
					height: auto;
					font-size: 14px;
					margin-left: 0.6em;
					line-height: 1em;

					p {
						margin: 0;
						line-height: 1.5em;
					}
				}
			}
		}

		.half-width {
			max-width: 48%;
			display: inline-block;
		}

		.full-width {
			clear: both;
			height: 250px;

			ul:nth-child(2) {
				float: right;
			}
		}

		#why-winkball {
			float: right;
		}
	}

	#broadcaster {
		width: 475px;
		float: right;

		p {
			margin: 0.5em 0;
			width: 100%;
		}

		.iframewrapper {
			iframe {
				padding: 5px;
				border: 2px dashed @coolgrey;
			}

			figcaption {
				display: inline-block;
				width: 100%;
				color: gray;
				text-align: right;
				font-size: 12px;
			}
		}

		input {
			width: 100%;
			line-height: 1.2em;
		}
	}

	.products {

		h3 {
			border-bottom: 1px solid lightgray;
		}
	}

	.winks-container {
		width: 878px;
		margin: 0 auto;

		.wink {
			display: inline-block;
			&:first-child {
				float: right;
			}

			figcaption {
				width: 80%;
				margin: 0 auto;
				text-align: center;
				font-size: 0.8em;
			}

			iframe {
				width: 400px;
				height: 300px;
				padding: 12px;
			}
		}
	}

	.wall {
		width: 878px;
		margin: 0.5em auto;
		clear: both;
	}

	footer {
		a {
			float: right;
			margin-left: 1em;
		}
	}
}

/* Footer ------------------------------------ */

	footer p {
		line-height: 1.2em;
	}

/* Download button for PDF on mobile --------- */

@media all and (max-width: 768px) {

	body.pdf {
		min-width: 320px;
	}

	.pdf #main {
		position: static;
		width: auto;
	}
}

.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }
.hidden { display: none !important; visibility: hidden; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.invisible { visibility: hidden; }
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }

@media print {
  * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } 
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } 
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } 
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}
