/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
*,
*:after,
*:before {
    box-sizing: border-box;
}


html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: #b4e391 1px dotted;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

p, h1, h2, h3, h4 {
    margin: 0 0 1% 0;
}

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

body {
    width: 80%;
    margin: auto;
}

.splash {
    display: block;
    margin: 3% auto 0;
    text-align: center;
}


.logo {
    display: block;
    width: 30%;
    min-width: 200px;
    max-width: 300px;
    margin: 0 auto;
}

.main {
    width: 100%;
    max-width: 768px;
    margin: 5% auto;
}

.main nav.left-nav {
	background: white;
	box-shadow: 8px -8px 15px rgba(0,0,0,0.1);
    border-radius: 0 10px 0 0;
	position: fixed;
	left: 0px;
	bottom: 0px;
	z-index: 2;
	width: 150px;
    margin: auto;
    text-align: center;
    border-top: #b4e391 2px solid;
    border-right: #b4e391 2px solid;
}

.main nav.right-nav {
	background: white;
	box-shadow: -8px -8px 15px rgba(0,0,0,0.1);
    border-radius: 10px 0 0 0;
	position: fixed;
	right: 0px;
	bottom: 0px;
	z-index: 2;
	width: 150px;
    margin: auto;
    text-align: center;
    border-top: #b4e391 2px solid;
    border-left: #b4e391 2px solid;
}

form,
.multiple {
	max-width: 600px;
	margin: auto;
	position: relative;
}

.multiple {
	    border-top: #b4e391 1px dotted;
}

.child {
	margin-bottom: 15px;
	padding-bottom: 20px;
}

.button {
    background: #9FB06E;
    display: inline-block;
    width: auto;
    padding: 1% 2%;
    margin: 2%;
    border: #86935c 2px solid;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 24px;
    position: relative;
}

form .button {
	padding: 0;
}

form .button img {
	position: absolute;
	top: -5px;
	left: -3px;
}

.button:active {
    background: #86935c;
    box-shadow: #666 0px 0px 10px inset;
}

input, select, textarea {
    background: #f9fcf7; /* Old browsers */
    background: -moz-linear-gradient(top,  #f9fcf7 0%, #f5f9f0 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9fcf7), color-stop(100%,#f5f9f0)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #f9fcf7 0%,#f5f9f0 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #f9fcf7 0%,#f5f9f0 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #f9fcf7 0%,#f5f9f0 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #f9fcf7 0%,#f5f9f0 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9fcf7', endColorstr='#f5f9f0',GradientType=0 ); /* IE6-9 */
    width: 100%;
    padding: 1% 2%;
    margin: 1% auto 2%;
    font-size: 24px;
    border: #9FB06E 2px solid;
    border-radius: 10px;
    outline: none;
}

#first, 
#last, 
#birthdate, 
#allergy, 
#pfirst, 
#plast {
	width: 100%;
	float: left;
}

#vRegForm #first,
#vRegForm #last {
    width: 50%;
}

.ui-datepicker {
	z-index: 11 !important;
}

#first, #birthdate, #pfirst {
	border-radius: 10px 0px 0px 10px;
	border-right-width: 1px;
}

#last, #allergy, #plast {
	border-radius: 0px 10px 10px 0px;
	border-left-width: 1px;
}

nav .button,
.splash .button {
	padding-left: .5%;
	margin: 10px;
}

input.err, select.err, textarea.err {
    border: red 2px solid;
    color: red;
}

.err::-webkit-input-placeholder {
   color: red;
}

.err:-moz-placeholder {  
   color: red;  
}

.notes, .pager, .phone {
	width: 400px;
	margin-top: 0px !important;
	display: block;
	vertical-align: top;
}

.phone {
    margin-bottom: 0;
}

.item-tag {
	height: 48px;
	width: 400px;
	padding: 0 2% 0 .5% !important;
	line-height: 48px;
	display: block;
	margin: 0px auto !important;
}

.print {
    width: 275px;
    padding: 1% 2% 1% .5%;
    margin: 2% auto 0;
    display: block;
}

input[type=submit] {
	background: none;
	color: #fff;
	padding: 4px 8px 6px 6px;
	border: none;
	text-indent: 40px;
	position: relative;
}

.response {
    font-size: 22px;
}

.loader {
	position: absolute;
	right: 10px;
	top: 15px;
}

.checkbox {
	width: 100%;
    margin: 1% auto;
    position: relative;
    text-align: left;
}

.checkbox p {
    display: inline;
    margin: 0 auto;
}

.checkbox label {
	position: absolute;
	left: 0px;
	top: 0px;
	display: block;
	width: 100%;
	height: 50px;
	cursor: pointer;
	z-index: 10;
}

.checkbox input[type=checkbox] {
   position: absolute;
   top: 0px;
   left: 0px;
   margin: 0;
   opacity: 0;
}

a[disabled] {
    opacity: .5;
}

/* Default State */
.checkbox div {
    background: #9FB06E;
    width: 100%;
    padding: 1% 2%;
    margin: 0;
    border: #86935c 2px solid;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    text-align: left;
    font-size: 24px;
}

.checkbox div div.check {
	background: lightGray;
	width: 30px;
	height: 30px;
	margin-top: -3px;
	display: inline-block;
	vertical-align: middle;
}

.checkbox div div.check .mark {
	display: none;
	position: absolute;
	top: -7px;
	left: 9px;
}

/* Toggled State */
.checkbox input[type=checkbox]:checked ~ div {
    background: #86935c; /* Old browsers */
    box-shadow: #666 0px 0px 10px inset;
    text-shadow: 0px 0px 7px #000;
}

.checkbox input[type=checkbox]:checked ~ div .check .mark {
	display: block;
}

h1 {
    text-align: center;
    font-family: "News Gothic MT", Arial;
    text-transform: lowercase;
    font-size: 20px;
    margin: 20px auto;
    color: #86935c;
}

p.checked {
    display: block;
    line-height: 41px;
    vertical-align: middle;
    text-align: center;
	font-size: 1.5em;
}

p.checked img {
	margin-top: -10px;
}

.green {
    color: #9FB06E;
}

.error {
    color: red;
    text-align: center;
}

select.v_serve {
	width:auto;
}

footer {
	background: rgba(255,255,255,.7);
	position: fixed;
	bottom: 5px;
	left: 0px;
	width: 100%;
}

footer p {
	text-align: center;
	color: #ccc;
	margin: 0;
	padding: 0;
	font-size: 12px;
}

footer p a {
	color: #ccc;
}

/* Login / Out / Admin Links */
.top-nav,
.out-top-nav {
	position: fixed;
	top: 0px;
	right: 0px;
	padding: 5px;
	opacity: .5;
	z-index: 50;
	background: white;
	border-bottom: #9FB06E 1px solid;
	border-left: #9FB06E 1px solid;
	border-radius: 0 0 0 10px;
	box-shadow: 5px 5px 7px black;
}

.top-nav a,
.out-top-nav a {
	padding: 0 5px;
}

.top-nav a img,
.out-top-nav a img {
	width: 24px;
}

.out-top-nav {
	right: -40px;
}

/* Floating Labels */
.field--wrapper {
  position:relative;
}

label {
  position:absolute;
  top:-5px;
  left:5px;
  font-size:11px;
  color:#aaa;
  transition: all 0.1s linear;
  opacity:0;
  font-weight:bold;
}

label.on {
  color:#4481C4;
}

label.show {
  top:-10px;
  opacity:1;
}

body {
  /* the following line fixes a blink in chrome https://code.google.com/p/chromium/issues/detail?id=108025 */
  -webkit-backface-visibility: hidden;
}

#regForm .field--wrapper {
	width: 50%;
	float: left;
}

#regForm .email-wrapper,
#regForm .phone-wrapper {
	float: none !important;
	width: 100% !important;
	clear: both !important;
}

#regForm .email-wrapper input,
#regForm .phone-wrapper input {
	margin-top: 2% !important;
	padding: 1% 2%;	
}

#regForm label {
	  top:5px;
}

#regForm label.show {
	  top:0px;
}

#regForm input, #regForm textarea {
    margin: 5% auto 2%;
}

#regForm select {
	margin-top: 2%;
}

#checkinForm .online-confirmation,
#checkinForm .reset-form-link,
.public-form #checkinForm .checkin-btn {
    display: none;
}

.public-form #checkinForm .online-confirmation {
    display: block;
    text-align: center;
}

#checkinForm .reset-form-link {
    margin-top: 1rem;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */


/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

.floatright {
	float: right;
}

.floatleft, .floatleftup {
	float: left;
}

.floatleftup {
	margin-top: -60px;
}



/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */


@media only screen and (max-width: 515px) {
	body {
		width: 95%;
	}
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .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; /* h5bp.com/t */
    }

    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;
    }
}
