* { margin: 0; padding: 0; border: 0; font: inherit; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; font-weight: 300; color: #444; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; }
a { text-decoration: none; color: #98db34; }
a:hover, a:active { color: #e33258; }
img { display: block; }
hr { border-top: 1px solid #eee; }
select { -webkit-appearance: none; -moz-appearance: none; appearance: none; text-align-last:center; cursor: pointer; }
select::-ms-expand { display: none; }
option { padding-left: 10px; color: #444; }
button { display: block; cursor: pointer; font-weight: inherit; }
em { font-style: italic; }
sup { font-size: 0.5em; }
strong { font-weight: 900; }

::-moz-selection { background: #e33258; color: #fff; }
::selection { background: #e33258; color: #fff; }

nav {
	z-index: 89999;
    position: absolute;
    left: -200px;
    height: 100%;
    width: 200px;
    padding: 48px 0 20px 0;
    overflow: scroll;
    background: #fff;
    transition: 0.5s ease;
}
nav:after {
	content: "";
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 20px;
	pointer-events: none;
}

nav.show { position: fixed; left: 0px; }
nav .parent, nav .child { display: block; padding: 5px 5px 5px 20px; }
nav .parent:hover, nav .child:hover, nav .parent:active, nav .child:active { background: #e33258; color: #fff; }
nav .child { padding-left: 40px; }

nav hr { margin: 0 auto; width: 160px; border-top: 1px solid #eee; }

#menu { display: none; }

#top, #topform { z-index: 90210; position: fixed; top: 0; padding: 18px 20px 20px 20px; font-size: 20px; line-height: 20px; color: #fff; }
#top { left: 0; transition: top 0.5s ease; }
#topform { right: 0; text-align: right; }

select {
	background: url('/user/themes/babysizer/images/select-green.png') no-repeat center right rgba(0,0,0,0);
	background-size: 18px 12px;
	padding: 0 25px 0 0px;
	box-shadow: none;
	border-bottom: 1px solid #98db34;
	border-radius: 0;
	color: #fff;
}
#top #name { display: inline-block; margin-left: 26px; color: inherit; transition: 0.5s ease; }

#top #name.x { color: #444; }
#top #name.black { color: #444; }

#burgericon {
	display: inline-block;
	position: absolute;
	top: 20px;
	left: 20px;
	width: 16px;
	height: 16px;
}
#burgericon span {
	display: block;
	position: absolute;
	width: 16px;
	height: 1px;
	background: #fff;
	transition: 0.5s ease;
}

#burgericon span:nth-child(1) { top: 0px; }
#burgericon span:nth-child(2), #burgericon span:nth-child(3) { top: 8px; }
#burgericon span:nth-child(4) { top: 16px; }

#burgericon.x span:nth-child(1), #burgericon.x span:nth-child(4) { opacity: 0; }
#burgericon.x span:nth-child(2) { transform: rotate(45deg); width: 20px; left: -2px; background: #444; }
#burgericon.x span:nth-child(3) { transform: rotate(-45deg); width: 20px; left: -2px; background: #444; }

#burgericon.black span { background: #444; }

#overlay { visibility: hidden; z-index: 90211; position: fixed; width: 100%; height: 100%; background: rgba(0,0,0,0); transition: 0.5s ease; }
.scotch-is-showing #overlay { visibility: visible; background: rgba(255,255,255,0.5); cursor: pointer; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }

#hero {
	text-align: center;
	font-size: 24px;
	color: #fff;
}
#hero h1 { font-size: 64px; }
#hero h2 { font-size: 32px; }
#hero h1, #hero h2 { margin: 0 auto; width: 85%; }

#hero #heroform { margin-top: 100px; }

#hero #heroweek, #hero #herolang {
	display: inline-block;
	cursor: pointer;
	background: url('/user/themes/babysizer/images/select-green.png') no-repeat center right rgba(0,0,0,0);
	background-size: 18px 12px;
	padding: 0 25px 0 0px;
	box-shadow: none;
	border-bottom: 1px solid #98db34;
	border-radius: 0;
	color: #fff;
}
#hero #heroweek:hover, #hero #heroweek:active, #hero #herolang:hover, #hero #herolang:active {
	background: url('/user/themes/babysizer/images/select-pink.png') no-repeat center right rgba(0,0,0,0);
	background-size: 18px 12px;
	border-color: #e33258;
}

#hero #heroweekgrid, #hero #herolanggrid {
	z-index: 100;
	display: none;
	position: absolute;
	left: 50%;
	max-width: 100%;
	transition: 0.5s ease;
}
#hero #heroweekgrid {
	width: 400px;
}
#hero #herolanggrid {
	width: 100px;
	margin-left: 50px;
}
#hero .herotable {
	display: table;
	position: relative;
	left: -50%;
	border-left: 1px solid #fff;
	border-top: 1px solid #fff;
	color: #444;
}
#hero .herorow {
	display: table-row;
}
#hero .heroweektd, #hero .herolangtd, #hero .heroblanktd {
	display: table-cell;
	cursor: pointer;
	margin: 0;
	width: 50px;
	box-shadow: none;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;
	border-radius: 0;
	background: #fff;
	padding: 2px 9px;
	text-align: center;
}
#hero .herotd:hover, #hero .herotd:active {
	background: #e33258;
	color: #fff;
}
#hero .heroblank:hover, #hero .heroblank:active {
	background: #fff;
	color: #fff;
	cursor: default;
}

#hero .herotdhilight {
	background: #e33258;
	color: #fff;
}

#hero #sizergo {
	display: table;
	background: none;
	font-size: 24px;
	margin: 50px auto 0 auto;
	border: 2px solid #98db34;
	padding: 10px 15px;
	color: #fff;
}
#hero #sizergo:hover, #hero #sizergo:active {
	border-color: #e33258;
}
#credit {
	z-index: 10;
	position: absolute;
	padding-right: 5px;
	text-align: right;
	font-size: 10px;
	font-style: italic;
	color: #aaa;
}
#credit a { color: inherit; }
#main {
	margin: 0 auto;
	padding: 50px 50px;
	max-width: 1000px;
	font-size: 18px;
}
#main h1 { margin-bottom: 25px; font-size: 40px; }
#main h2 { margin-bottom: 25px; font-size: 40px; }
#main h3 { margin: 20px 0; font-size: 28px; color: #e33258; }
#main h4 { margin: 20px 0 0 0; font-size: 18px; color: #e33258; }

#main p+p { margin-top: 25px; }
#main p+h2 { margin-top: 50px; }
#main ul { margin: 25px 0 25px 25px; }
#main li+li { margin-top: 10px; }
#main table { margin: 25px auto; border-collapse: collapse; }

footer {
	border-top: 1px solid #eee;
	margin: 0 auto;
	padding: 20px 50px;
	max-width: 1000px;
}
footer h5 {
	margin-bottom: 5px;
	color: #e33258;
}
footer ul { margin-bottom: 10px; list-style: none;  }
footer hr { margin: 10px 0; }
footer em { color: #e33258; }
footer #left {
	display: inline-block;
	width: 49%;
	padding-right: 1%;
}
footer #right {
	display: inline-block;
	float: right;
	width: 49%;
	padding-left: 1%;
}

.imgoverlay { position: relative; float: left; width: 50%; text-align: center; }
.imgoverlay img { width: 100%; height: auto; }

.imgoverlay .imgoverlay-title {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	padding: 0 5%;
	width: 100%;
	font-size: 40px;
	color: #fff;
}
.imgoverlay .imgoverlay-title:hover, .imgoverlay .imgoverlay-title:active { color: #fff; }
.imgdim {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    content:"";
    background-color: #000;
    opacity:0.15;
}
#pinimgfix { width: 0; height: 0; }
.clear { clear: both; }

@media only screen and (max-width: 767px) {
	nav #navheader { margin: 10px; text-align: center; }
	nav a { display: block; padding: 5px 5px 5px 10px; }
	nav .header { padding-left: 10px; }
	nav .sub { padding-left: 30px; }
	nav hr { width: 180px; }

	#top, #topform { padding: 8px 10px 10px 10px; font-size: 16px; }
	#top select {
		background: url('/user/themes/babysizer/images/select-green-mobile.png') no-repeat center right rgba(0,0,0,0);
		padding: 0 20px 0 0px;
	}

	#burgericon { top: 10px; left: 10px; }

	#hero { font-size: 18px; }
	#hero h1 { font-size: 32px; }
	#hero h2 { font-size: 20px; }
	#hero form { margin-top: 50px; }
	#hero #sizergo {
		font-size: 18px;
		margin: 25px auto 0 auto;
		border: 1px solid #98db34;
		padding: 5px 10px;
	}
	#hero #heroweek, 	#hero #herolang {
		background: url('/user/themes/babysizer/images/select-green-mobile.png') no-repeat center right rgba(0,0,0,0);
		background-size: 18px 12px;
	}
	#hero #heroweek:hover, #hero #heroweek:active, #hero #herolang:hover, #hero #herolang:active {
		background: url('/user/themes/babysizer/images/select-pink-mobile.png') no-repeat center right rgba(0,0,0,0);
		background-size: 18px 12px;
	}
	#credit { font-size: 8px; }
	#main {
		width: 100%;
		padding: 25px 35px;
		font-size: 16px;
	}
	#main h1 {
	margin-bottom: 15px;
		font-size: 24px;
	}
	#main h2 {
	margin-bottom: 15px;
		font-size: 24px;
	}
	#main h3 { margin: 15px 0; font-size: 20px; }
	#main h4 { margin: 15px 0 0 0; font-size: 16px; }

	#main p+p { margin-top: 15px; }
	#main p+h2 { margin-top: 25px; }
	#main ul { margin: 15px 0 15px 20px; }
	#main li+li { margin-top: 10px; }
	#main table { margin: 15px auto; }
	#main th { font-weight: bold; }


	footer { width: 100%; padding: 20px 10%; }
	footer ul { font-size: 12px; }
	footer #left {
		width: 100%;
		padding-right: 0;
		padding-bottom: 20px;
		text-align: center;
	}
	footer #footernav {
		display: none;
	}
	footer #right {
		float: none;
		width: 100%;
		padding-left: 0%;
		text-align: center;
	}
	.imgoverlay { position: relative; float: left; width: 100%; text-align: center; }
}
