/*
 * Basics
 */

* {
	box-sizing: border-box;
}

body {
	padding: 0;
	margin: 0;
	font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #515151;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: #268bd2;
	cursor: pointer;
}

a:hover {
	color: #5da5d8;
	text-decoration: none;
}

a:active {
	color: #1e71ab;
}

ul {
	list-style: none;
	padding: 0;
	margin-top: 0;
}

ol {
	margin-top: 0;
}

img {
	max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: #000;
	font-weight: 400;
}

h3 {
	margin-top: 4rem;
}

p {
	margin-bottom: 1em;
}

code {
	padding: 2px 4px;
	font-family: Consolas, Menlo, Courier, monospace;
	font-size: 0.9rem;
	color: #383e41;
	background-color: #f3f6fa;
}

pre {
	padding: 0.8rem;
	margin-top: 0;
	margin-bottom: 2rem;
	color: #567482;
	word-wrap: normal;
	background-color: #f3f6fa;
	border: solid 1px #dce6f0;
	overflow: auto;
	line-height: 1.45;
	word-break: normal;
}

pre code {
	display: inline;
	padding: 0;
	max-width: none;
	color: #567482;
	word-break: normal;
	white-space: pre;
	word-wrap: normal;
	background: transparent;
	border: 0;
	overflow: auto;
	line-height: inherit;
}

pre code:before, pre code:after {
	content: normal;
}

pre code.hljs {
	background: #f3f6fa;
}

footer {
	clear: both;
}

button.link {
	background-color: #32709D;
	color: white;
	border: 0;
	padding: 8px 10px;
}

button:focus {
	outline: 0;
}

.text-center {
	text-align: center;
}

.no-overflow {
	overflow: hidden;
}

/*
 * Fork banner
 */

.fork {
	display: none;
	background-color: #32709D;
	position: absolute;
	right: -50px;
	top: 50px;
	color: #fff;
	padding: .3em 3em;
	text-decoration: none;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
}

.fork:hover {
	background-color: #5da5d8;
	color: #fff;
}

.fork:active {
	background-color: #1e71ab;
	color: #fff;
}

@media (min-width: 42em) {
	.fork {
		display: inline;
	}
}

/*
 * String across the top of the page
 */
.page-strip {
  background: #F3164E;
  background: -moz-linear-gradient(left, #F3164E 0%, #32709D 50%, #F3164E 100%);
  background: -webkit-linear-gradient(left, #F3164E 0%, #32709D 50%, #F3164E 100%);
  background: linear-gradient(to right, #F3164E 0%, #32709D 50%, #F3164E 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F3164E', endColorstr='#F3164E', GradientType=1);
  height: 1em;
}

/*
 * Menu button for smaller screens
 */

a.navbtn, a.navbtn:hover, a.navbtn:active {
	position: absolute;
  top: 2rem;
  right: 1rem;
  text-decoration: none;
  padding: 2px;
  font-size: 0.9rem;
  color: #444;
}

@media (min-width: 42em) {
	.navbtn {
		display: none;
	}
}

/*
 * Page Header
 */

.page-header {
	text-align: center;
	border-bottom: 1px solid #ddd;
	padding: 2rem 0;
}

.page-header img {
	width: 100px;
}

.page-header a:hover, .page-header a:active {
	text-decoration: underline;
}

@media (min-width: 42em) {
	.page-header {
		padding: 3rem 4rem;
	}

	.page-header img {
		width: auto;
	}
}

@media (min-width: 64em) {
	.page-header {
		padding: 3rem 6rem;
	}
}

/*
 * Project Name
 */

.project-name {
	text-transform: uppercase;
	margin-top: 20px;
	margin-bottom: 0.1rem;
	font-size: 2.1rem;
	font-weight: 400;
	letter-spacing: 8px;
}

.project-name span {
	color: #fff;
	background-color: #F01E52;
	margin: 15px;
	padding: 10px 15px 10px 20px;
	border-radius: 3px;
	font-weight: bold;
}

@media (min-width: 42em) {
	.project-name {
		font-size: 2.25rem;
	}
}

@media (min-width: 64em) {
	.project-name {
		font-size: 3.25rem;
	}
}

/*
 * Project Tagline
 */

.project-tagline {
	margin: 2rem 0 0;
	font-weight: 400;
	opacity: 0.8;
	font-size: 1.05rem;
}

@media (min-width: 42em) {
	.project-tagline {
		font-size: 1.15rem;
	}
}

@media (min-width: 64em) {
	.project-tagline {
		font-size: 1.25rem;
	}
}

/*
 * Project Version
 */

.project-version {
	font-size: 0.9rem;
	font-weight: normal;
}

/*
 * Hero Button
 */

a.hero-button, a.hero-button:hover {
	display: inline-block;
	background-color: #32709d;
	color: #fff;
	border-radius: 3px;
	padding: 1rem 3rem;
	font-weight: 400;
	margin: 2rem 1rem 0;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 4px;
}

a.hero-button:active {
	background-color: #5da5d8;
	text-decoration: none;
}

/*
 * Land Hand Links
 */

nav {
	float: left;
	width: 100%;
	font-size: 1rem;
}

nav li {
	margin-bottom: 5px;
}

.active a {
	background-color: #408bc2;
	color: white;
	padding: 4px;
	border-radius: 3px;
}

@media (min-width: 42em) {
	nav {
		display: block;
		width: 25%;
	}
}

/*
 * Main
 */

main {
	width: 100%;
	float: right;
}

@media (min-width: 42em) {
	main {
		width: 75%;
	}
}

.main-content {
	padding: 2rem 1rem;
	font-size: 1rem;
}

@media (min-width: 42em) {
	.main-content {
		padding: 2rem 4rem;
		font-size: 1.1rem;
	}
}

@media (min-width: 64em) {
	.main-content {
		max-width: 90rem;
		padding: 2rem 5rem;
		margin: 0 auto;
	}
}

/*
 * Component Header
 */

.component-header {
	padding: 0.5rem 0.25rem 0.25rem;
	text-align: center;
	border-bottom: 1px solid #ddd;
}

.component-header img {
	width: 50px;
}

/*
 * Component Heading
 */

.component-heading {
	float: left;
}

/*
 * View Code Link
 */

.view-code {
	float: right;
	margin: 1.5rem 0 1rem 0;
}

/*
 * Demo Page Sections
 */

.demo-container {
	position: relative;
	clear: both;
}

/*
 * Footer
 */

.site-footer {
	padding-top: 2rem;
	margin-top: 2rem;
	border-top: solid 1px #eff0f1;
	font-size: 0.8rem;
}

.site-footer-owner {
	display: block;
	font-weight: bold;
}

.site-footer-credits {
	color: #819198;
}

.site-links {
	float: right;
	text-align: right;
}

.site-links a {
	margin-left: 20px;
	color: #404040;
}

/*
 * Nav link badge
 */

.badge {
	color: white;
	padding: 2px 6px;
	background-color: #F01E52;
	display: inline-block;
	border-radius: 3px;
	line-height: 1.3em;
	text-transform: uppercase;
	font-size: 0.8em;
}

.badge-inverse {
	color: #F01E52;
	display: inline-block;
	text-transform: uppercase;
	font-size: 0.8em;
}

li .badge, li .badge-inverse {
	margin-left: 8px;
}

/*
 * Playground
 */

.playground-preview {
	height: 400px;
	width: 100%;
	border: 0;
	overflow: scroll;
}

.playground-editor {
	position: relative;
	height: 555px;
	border-top: 30px solid #272822;
	border-bottom: 30px solid #272822;
}

.playground-editor rg-code .editor {
	font-size: 14px;
}

/*
 * Overrides
 */

rg-map {
	display: block;
	height: 600px;
	width: 100%;
}

rg-toasts .toasts {
	position: fixed;
}
