/* =========================================================================
    HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/
   ========================================================================= */

html {
    color: #222;
    line-height: 1.4;
}

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

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

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1rem 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

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

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 1.25rem;
}


/* =========================================================================
    Defaults (mobile first)
   ========================================================================= */

body {
	font-family: Helvetica, Helvetica Neue, Arial;
}

.wrapper {
    width: 90%;
    margin: 0 5%;
}

h1 { 
	font-size: 1.4rem; 
	line-height: 1;
}
h2 { 
	font-size: 1.3rem; 
}
h3 { 
	font-size: 1.1rem; 
	line-height: 1.3;
}
h4 { 
	font-size: 1.1rem; 
	font-weight: normal;
}


h3,
th,
.confirmation {
	color: #6f3185;
}

a,
label,
input[type=radio],
input[type=checkbox] {
	cursor: pointer;
}

a {
	color: #ee72de;
	text-decoration: none;
}

a:hover {
	color: #f6b1ed;
}

select {
	margin: 0 0.5rem 0.75rem 0;
}

label {
	font-size: 1rem;
}

small {
	font-size: 0.75;
	color: #999;
}

.inline-block {
	display: inline-block;
}

.red-text {
	color: #d70000;
}

.linespace {
	line-height: 0.7;
}

.hide {
	display: none;
}

.form--disabled {
	color: #aaa;
}

.button {
	display: inline-block;
	margin: 2rem 0;
	padding: 1.25rem 3rem;
	font-size: 1.25rem;
	background: #601f4d;
	color: white;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
    -khtml-border-radius: 10px;
	border-radius: 10px;
}


/* ==============
    DIALOG BOXES
   ============== */
.dialog {
	position: fixed; 
	left: 0; 
	top: 0; 
	background-image: url(/images/overlay.png);
	width: 100%; 
	height: 100%;
	z-index: 10;
	display: none;  
}

/* 
  How to calculate margin-left & top:
    margin-left: -(width + right & left padding + left & right border) / 2
    margin-top: -(height + top & bottom padding + top & bottom border) / 2
*/
.dialog__box {
	position: absolute; 
	left: 50%; 
	top: 50%; 
	width: 15rem;  /* 240px */
	height: 9rem;  /* 100px */
	margin-left: -9rem;
	margin-top: -6.5rem;
	padding: 1em;
	background-color: white;
	border: 5px solid #777;
	-moz-border-radius: 20px;
	-webkit-border-radius: 20px;
    -khtml-border-radius: 20px;
	border-radius: 20px;
}

.dialog__content { padding-top: 50px; }

.dialog__title {
	position: absolute; 
	left: 0px; 
	right: 0px; 
	top: 0px; 
	margin: 0;
	padding: 5px 10px;
	color: white;
	background-color: #999; 
    border-bottom: 1px solid #777;
    -webkit-border-top-left-radius: 13px;
    -moz-border-radius-topleft: 13px;
	border-top-left-radius: 13px;
    -webkit-border-top-right-radius: 13px;
    -moz-border-radius-topright: 13px;
	border-top-right-radius: 13px;
}

.dialog__button {
	position: absolute;
	margin: 0;
	bottom: 0.625em;
	left: 3em;
	padding: 0.5em 3em;	

}


/* ========================================
    HEADER / FOOTER (including navigation)
   ======================================= */

.header-container,
.footer-container {
	min-width: 320px;
	background: #164450;
}

.header-container {
    border-bottom: 5px solid #94f6ef;
}

.nasa-logo {
	float: left;
	margin: 0.625rem 0.3125rem 0 0;
	width: 3.5rem;
}

.jpl {
	float: left;
	margin: 0.8rem 1.25rem 0 0;
	line-height: 1.3;
}

.jpl a {
	color: white;
	text-decoration: none;
	font-size: 0.875rem;
}

.jpl b {
	font-size: 0.9rem;
}

.title {
    color: white;
}

h1 small {
	color: #bbb;	
}

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

nav a {
    display: block;
	margin-bottom: 0.625rem;
	padding: 0.5rem 0;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: #222;
    background: #94f6ef;
}

nav a:hover {
    color: #ee72de;
}

.footer-container {
    border-top: 5px solid #94f6ef;
}

.footer-container a {
	font-size: 0.875rem;
	color: #ccc;
	text-decoration: none;
}

.footer-container a:hover {
	color: white;
}

.footer-container footer {
    color: white;
    padding: 1.25rem 0;
	text-align: center;
}


/* ======
    MAIN
   ====== */

.main {
	padding: 1.875rem 0;
}

.uavsar-logo {
	float: left;
	margin: 1rem 1rem 0.5rem 0;
	width: 9rem;
}

.main aside {
    padding: 0 5% 0.625rem;
    color: white;
	background: #601f4d;
    border-top: 15px solid #f6b1ed;
}

th, 
td {
	font-size: 0.9rem;
	padding: 0.3125rem 0.625rem; 
	border: 1px solid #eee;
}

td {
	color: #888;
}

.register {
	color: #666;
	font-size: 1.125rem;
	line-height: 1.2;
}

.h3--form {
	margin: 2rem 0 0.75rem 0;
}

input[type=text] {
	padding: 6px 8px;
	margin: 0 0.5rem 0.75rem 0;
	width: 98%;
	max-width: 15rem;
	color: #777;
	border: 1px solid #ccc;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
	border-radius: 5px;
}

input[type=radio] {
	margin: 0 0.5rem 0.5rem 0;
}

input[type=text].textbox-long {
	max-width: 30rem;
}

.form__float {
	float: left;
	margin-right: 3rem;
}


/* =========================================================================
   Media Query: mobile
   ========================================================================= */

@media only screen and (min-width: 480px) {

	.nasa-logo {
		width: 3.75rem;
	}

	.jpl a {
		font-size: 1rem;
	}

	.jpl b {
		font-size: 1.1rem;
	}

    nav a {
        float: left;
        width: 44%;
/* For 3 items
		width: 27%;
*/
        margin: 0 1.7%;
        padding: 1.55rem 2%;
        margin-bottom: 0;
    }

    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
    }


/* ==========
    IE Fixes
   ========== */

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }
}


/* =========================================================================
   Media Query: tablet
   ========================================================================= */

@media only screen and (min-width: 768px) {

	html {
	    line-height: 1.625;
	}

    .title {
        float: left;
    }

    nav {
        float: right;
        width: 40%;
		margin-top: 2rem;
    }

	.footer-container a {
		font-size: 1rem;
	}

    .main aside {
        float: right;
		margin: 0 0 1rem 2rem;
        width: 28%;
    }

	h1 { 
		font-size: 2rem; 
	}
	h2 { 
		font-size: 1.75rem; 
	}
	h3 { 
		font-size: 1.25rem; 
	}
	h4 { 
		font-size: 1.1rem; 
	}

	h1 small {
		font-size: 1.2rem;
	}

	th, 
	td {
		font-size: 1rem;
	}

/* ==============
    CSS3 Effects
   ============== */

    .header-container,
    .main aside {
        -webkit-box-shadow: 0 5px 10px #aaa;
           -moz-box-shadow: 0 5px 10px #aaa;
                box-shadow: 0 5px 10px #aaa;
    }
}


/* =========================================================================
   Media Query: desktop
   ========================================================================= */

@media only screen and (min-width: 1140px) {

    .wrapper {
        width: 1026px; /* 1140px - 10% for margins */
        margin: 0 auto;
    }
}


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

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

.clear {
	clear: both;
}

/* =========================================================================
   Print styles
   ========================================================================= */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        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) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]: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;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
