/*==========================================================================*/
/*==========================================================================*/
/* SUGAR GLIDER REGISTRY													*/
/* CSS name: main.css														*/
/* Developer: MindPick Software LLC											*/
/* Date: 4/27/2018															*/
/*																			*/
/* Description: Style sheet for elements of all pages	 					*/
/* 		and all media.														*/
/*==========================================================================*/
/*==========================================================================*/

body {
	min-width: 860px;
	max-width: 1600px;
	padding: 10px;
	margin: 0 auto;
	font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
	font-size: 1em;
	line-height: 1.2;
	color: #222;
}

/*==========================================================================*/
/*																			*/
/*								HEADER										*/
/*																			*/
/*==========================================================================*/

header {
	text-align: center;
}

header img {
	float: left;
}

#header-content {
	display: inline-block;	/* shrink wrap to center */
}

#header-text {
	float: left;	
}

header #site-name {
	margin: .25em 0;
	font-family: Tahoma, Verdana, Segoe, sans-serif;;
	font-weight: bold;
	font-size: 2rem;
	color: #4d7294;
}

header #site-description {
	margin-top: 0.5em;
	color: #4d7294;
}

/*==========================================================================*/
/*																			*/
/*								NAVIGATION									*/
/*																			*/
/*==========================================================================*/

#login-menu {
	margin: 0 5px;
	font-weight: bold;
	text-align: right;
	color: #4d7294;
}

#login-menu a {
	display: block;
	line-height: 2;
	text-decoration: none;
	color: #4d7294;
}

#login-menu > a:hover {
	text-decoration: underline;
}

#login-menu ul {
	list-style: none;
	min-width: 10em;
	margin: 0;
	padding: 0;
}

#login-menu li {
	position: relative;
	line-height: 2;
}

#login-menu li ul {
	position: absolute;
	z-index: 200;
	top: 2em;
	left: -999em;
	background-color: white;
	opacity: .95;
	text-align: left;
}

#login-menu li ul li {
	line-height: 1.75;
}

#login-menu li ul a {
	padding: 0 5%;
}

#login-menu ul:hover li ul {
	left: auto;
	right: 0;
}

#login-menu li ul a:hover {
	background-color: #eee;
}

nav {
	position: relative;
	z-index: 100;
	background-color: #4d7294;
	text-align: left;
	font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
	font-weight: bold;
	font-size: 1.125rem;
	line-height: 1.8;
	color: #fff;
}

nav a {
	text-decoration: none;
	color: #fff;
}

nav li a {
	display: block; 	/* makes anchor as wide as dropdown */
}

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

nav > ul {
	padding-left: 0.5em;
}

nav li {
	float: left;
	cursor: pointer;
}

nav > ul > li {
	padding: 0 0.25em;
	margin-right: 2em;	/* equi-space main menus */
}

nav li li {
	width: 9.5em;
	padding-left: 1em;
	text-indent: -.5em;	/* indent next lines if item > 1 line */
}

/* Sub-menus. */
nav li ul {
	position: absolute; 
	top: auto;				/* position just below menu name */
	left: -999em;  			/* dropdown menus off-screen to start */
	width: 10.5em;			/* stacks items in menu */
	margin-left: -0.25em;	/* Lines up sub-menu with menu name */
	font-size: 1rem;
	line-height: 1.6;
	background-color: #4d7294;
}

/* Sub-sub-menus need to be positioned next to sub-menu item. */
nav li ul ul {
  margin: -1.6em 0 0 9.5em;
}

nav li:hover ul ul {
	left: -999em;	/* off-screen to start */
}

nav li:hover {
	background-color: #5e8bb5;
}

nav li:hover ul, nav li li:hover ul {
	left: auto;		/* pull back from off-screen on hover */
}

/* Search on navigation menu. */
#nav-search {
	position: absolute;
	top: 4px;
	right: 6px;
	height: 1.5em;
	padding: 1px;
	border-radius: 12px;
	background-color: #fff;
	font-size: .875rem;
	font-weight: normal;
	line-height: 1;
	color: #222;
}

#nav-search input {
	width: 60px;
	border: none;
	margin: 1px 0 0 8px;
	transition: width 0.5s;
}

#nav-search input:focus {
	width: 175px;
}

#nav-search button {
	border: none;
	background-color: transparent;
}

/*==========================================================================*/
/*																			*/
/*								CONTENT										*/
/*																			*/
/*==========================================================================*/

#content {
	margin: 0 auto;
	padding: 0 2em;
}

.content-title {
	margin: 1.5em 0 1em;
	text-align: center;
	font-size: 1.5rem;
	font-weight: normal;
}

.section-title {
	margin-top: 2rem;
	text-align: left;
	font-size: 1.1rem;
	font-weight: bold;
}


/*==========================================================================*/
/*																			*/
/*								FOOTER										*/
/*																			*/
/*==========================================================================*/

footer {
	font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
	padding: 2em 0 1em;
	font-size: .75rem;
}

footer a {
	margin: 0 3em;
	text-decoration: none;
	color: #222;
}

footer a:hover {
	text-decoration: underline;
}

footer #link-bar a {
	color: #fff;
}

footer #link-bar {
	display: inline-block;
	width: 100%;
	background-color: #4d7294;
	font-size: .875rem;
	line-height: 2;
}

footer #link-bar .links {
	width: 36em;
	margin: 0 auto;
}

footer #copyright {
	margin-left: 3em;
}

/*==========================================================================*/
/*																			*/
/*							GENERAL STYLES									*/
/*																			*/
/*==========================================================================*/

.rowlabel {
	display: block;
	float: left;
	width: 40%;
	padding-right: 1em;
	text-align: right;
	line-height: 1.7em;
	font-weight: bold;
}

.rowvalue {
	float: left;
	width: 20em;
	line-height: 1.7em;
}

.inputrow {
	overflow: hidden;
	margin-bottom: .75em;
}

.stdform input {
	line-height: 1.2;
}

.stdform input[type="text"] {
	width: 9em;
}

.stdform input[type="radio"]+label {
	margin-right: 1em;
	line-height: 1.7;
}

.stdform input[type="checkbox"] {
	vertical-align: text-bottom;
}

.stdform .input-sm[type="text"], .stdform .input-sm[type="password"] {
	width: 3em;
}

.stdform .input-lg[type="text"], .stdform .input-lg[type="password"] {
	width: 18em;
}

.stdform textarea {
	margin-top: 2px;
}

.stdform .checkgroup {
	display: inline-block;
	width: 22em;
}

.stdform .checkgroup .checkitem {
	display: inline-block;
	width: 7em;
}

.stdform .multibox {
	margin-right: 2em;
}

.stdform .multibox select {
	min-width: 9em;
}

.stdform table {
	width: 57em;
	border: 2px solid #4d7294;
	margin: 0 auto;
}

.stdform table thead {
	background-color: #4d7294;
	color: #eee;
}

.stdform table th, td {
	padding: 4px 7px;
	border: solid #4d7294;
	border-width: 2px 0;
}

.stdform table td input[type="radio"]+label {
	margin: 0;
}

.stdform .submit {
	padding-left: 1em;
	margin: 1.3em 0 0 40%;
}

.stdform .form-link {
	padding-left: 2em;
	margin-left: 40%;
}

/*==========================================================================*/
/*																			*/
/*						MISCELLANEOUS STYLES								*/
/*																			*/
/*==========================================================================*/

.bold {
	font-weight: bold;
}

.center {
	text-align: center;
}

.error {
	color: red;
}

.framed {
	padding: 7px;				/* photo frame */
	border: 1px solid #000;
	background-color: #fff;
}

.sterile {
	background-color: #ff6;
}

.ital {
	font-style: italic;
}

.justify {
	text-align: justify;
}

.normal {
	font-weight: normal;
}

.para-color {
	color: #222;	/* normal content font color */
}

.small {
	font-size: smaller;
}

.title-color {
	color: #4d7294;		/* site font color for titles, headlines, etc.  */
}

.underline {
	text-decoration: underline;
}

.lfloat {
	float: left;
}

.rfloat {
	float: right;
}

.bottom0 {
	margin-bottom: 0;
}


/*=======================================
 * Data table.
 *======================================= */
 
.data-table {
	table-layout: fixed;
	border: 1px solid #344d65;
}

.data-table tbody:hover > tr td {
	opacity: 0.6;
}

.data-table tbody:hover > tr:hover td {
	opacity: 1;
}

.data-table tbody:hover > tr:hover a {
	text-decoration: underline;
}

.data-table th {
	padding: 4px 4px 4px 10px;
	background-color: #344d65;
	text-align: left;
	font-weight: normal;
	color: #fff;
}

.data-table th a {
	display: inline-block;
	text-decoration: none;
	color: #fff;
}

.data-table th a:hover {
	text-decoration: underline;
}

.data-table .sort-asc:after {
	content: " \25B2";
	font-size: small;
}

.data-table .sort-desc:after {
	content: " \25BC";
	font-size: small;
}

.data-table tbody tr:nth-child(2n) {
	background-color: #d8f0f3;
}

.data-table td {
	padding: 4px;
}

.data-table td a {
	text-decoration: none;
	color: #222;
}

.data-table .color-name {
	width: 7em;
}

.data-table .founding-glider-flag {
	width: 5em;
}

.data-table .gender {
	width: 5em;
}

.data-table .glider-name {
	width: 13em;
}

.data-table .out-of-pouch-date {
	width: 6em;
}

.data-table .registration-id {
	width: 11em;
}

.data-table .breeder-name {
	width: 10em;
}

.pagination {
	color: red;
}

.pagination a {
	display: inline-block;
	width: 1.25em;
	height: 1.25em;
	border: 1px solid #344d65;
	margin: 0 .2em;
	background-color: #e7f1fe;
	text-decoration: none;
	color: #222;
}

.pagination a:hover {
	background-color: #fff;
	font-weight: bold;
}

.pagination b {
	display: inline-block;
	width: 1.25em;
	height: 1.25em;
	color: #344d65;
}

/*=======================================
 * Large anchor button.
 *======================================= */
 
a.a-big-button {
	display: block;
	width: 8em;
	height: 2.4em;
	border-radius: 0.7em;
	padding: .7em;
	text-align: center;
	text-decoration: none;
	font-family: Tahoma, Verdana, Segoe, sans-serif;;
	font-weight: bold;
	font-size: 1.125rem;
	color: #eee;
	background-color: #2e4559; /* Old browsers */
	background: -moz-linear-gradient(top, #99b0c5 0%, #426789 20%, #2e4559 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top, #99b0c5 0%,#426789 20%,#2e4559 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom, #99b0c5 0%,#426789 20%,#2e4559 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#99b0c5', endColorstr='#2e4559',GradientType=0 ); /* IE6-9 */
}

/* Reverse button gradient on hover. */
a:hover.a-big-button {
	background-color: #4d7294; /* Old browsers */
	background: -moz-linear-gradient(top, #2e4559 0%, #426789 80%, #99b0c5 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top, #2e4559 0%,#426789 80%,#99b0c5 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom, #2e4559 0%,#426789 80%,#99b0c5 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2e4559', endColorstr='#99b0c5',GradientType=0 ); /* IE6-9 */
}

/*===============================================
 * Pedigree and reverse pedigree chart boxes.
 *=============================================== */
 
 .gengroup {
 	clear: both;
 	height: 9em;
 }
 
.genbox {
	position: relative;
	float: left;
	width: 148px;
	height: 132px;
}

.gengroup .genbox {
	margin-top: 6px;
}

/* On reverse pedigree, adjust info box next to photo box. */
.genbox + .genbox {
	width: 300px;
	height: auto;
	margin: 16px 8px 0;
}

.genbox .framed {
	margin: 8px 0;
}

.genbox img {
	display: block;
	width: 132px;
	height: 99px;
	background-color: #ddd;
}

.genbox .icons {
	position: absolute;
	z-index: 20;
	width: 132px;
	height: 20px;
	bottom: 10px;
	background-color: tranparent;
}

.genbox .icon {
	width: 20px;
	height: 20px;
	background-color: transparent;
}

.genbox .flag {
	width: 24px;
	height: 16px;
	background-color: transparent;
}

.genbox .armband {
	position: absolute;
	bottom: 17px;
	right: 8px;
	z-index: 5;
	width: 35px;
	height: 35px;
	background-color: transparent;
}

.genbox p {
	margin: 0;
}

.genbox .name {
	position: relative;
	width: 8.2em;
	max-height: 2.64em;
	margin-top: -4px;
	margin-right: -1em;
	padding-right: 1em;
	overflow: hidden;
	font-weight: bold;
	font-size: 1.1em;
}

.genbox + .genbox .name {
	width: 18em;
}

.genbox .name:before {
	content: '\002026';
	position: absolute;
	right: 0;
	bottom: 0;
	color: #4d7294;
}

.genbox .name:after {
	content: '';
	position: absolute;
	right: 0;
	width: 1em;
	height: 1em;
	margin-top: 0.2em;
	background-color: #fff;
}

.genbox .name a {
	color: #4d7294;
	text-decoration: none;
}

.genbox .name a:hover {
	text-decoration: underline;
}

.genbox .info {
	font-size: 0.9em;
}

.genbox .gene {
	position: relative;
	max-height: 2.4em;
	margin-right: -1em;
	padding-right: 1em;
	overflow: hidden;
}

.genbox .gene:before {
	content: '\002026';
	position: absolute;
	right: 0;
	bottom: 0;
}

.genbox .gene:after {
	content: '';
	position: absolute;
	right: 0;
	width: 1em;
	height: 1em;
	margin-top: 0.2em;
	background-color: #fff;
}



/*==========================================================================*/
/*																			*/
/*							PAGE-SPECIFIC STYLES							*/
/*																			*/
/*==========================================================================*/

#home #content {
	max-width: 40em;	
}

#home #content p {
	line-height: 1.4;
}

#home #content #button-row1 {
	margin: 0 75px;
}

#home #content #button-row2 {
	margin: 1em 110px 0;
}

#home #content a.a-big-button {
	margin: 10px;
}

#browsegliders .data-table {
	margin: 0 auto;
}

#descendants .child-line {
	height:100%;
	margin-left:50px;
	border-left:2px solid green;
	padding-left:15px;
}

#editglider #glider-name {
	font-size: 1.5rem;
	font-weight: bold;
	font-style: italic;
}

#pedigree #content {
	min-width: 65em;
}

#pedigree .bracket {
	float: left;
	width: 30px;
	height: 132px;
}

#pedigree .bquad {
	float: left;
	width: 15px;
	height: 66px;
}

#pedigree .bvert {
	float: left;
	width: 12px;
	height: 66px;
	border-left: 3px solid #4d7294;
}

#pedigree .bfather {
	float: left;
	width: 12px;
	height: 63px;
	border-top: 3px solid #4d7294;
	border-left: 3px solid #4d7294;
}

#pedigree .bmother {
	float: left;
	width: 12px;
	height: 63px;
	border-left: 3px solid #4d7294;
	border-bottom: 3px solid #4d7294;
}

#pedigree .buhorz {
	position: relative;
	float: left;
	width: 15px;
	height: 63px;
	border-top: 3px solid #4d7294;
}

#pedigree .blhorz {
	position: relative;
	float: left;
	width: 15px;
	height: 63px;
	border-bottom: 3px solid #4d7294;
}

#pedigree .buhorz .anchor, #pedigree .blhorz .anchor {
	position: absolute;
	width: 15px;
	height: 15px;
	background-color: #4d7294;
	bottom: 0;
	right: -9px;
}

#pedigree .buhorz .anchor {
	bottom: 56px;
}

#pedigree .blhorz .anchor {
	bottom: -9px;
}

#searchgliders #search-instr {
	padding: 0 15px;
}

#searchgliders #instr-label {
	font-family: ‘Times New Roman’, Times, serif;
	font-size: 1.1em;
	font-style: italic;
	text-decoration: underline;
}

#searchgliders #instr-text {
	max-height: 0;
	margin-bottom: 2em;
	overflow: hidden;
	font-size: .875em;
	transition: max-height 1.5s;
	-webkit-transition: max-height 1.5s;
}

#searchgliders #instr-check {
	display: none;
}

#searchgliders #instr-check:checked ~ div {
	display: block;
	max-height: 600px;
}

#searchgliders .instr-opened, #searchgliders .instr-closed {
	font-size: .7em;
}

#searchgliders #instr-check ~ #instr-label > .instr-closed {
	display: none;
}

#searchgliders #instr-check ~ #instr-label > .instr-opened {
	display: inline;
}

#searchgliders #instr-check:checked ~ #instr-label > .instr-closed {
	display: inline;
}

#searchgliders #instr-check:checked ~ #instr-label > .instr-opened {
	display: none;
}

#searchgliders #multiboxes {
	margin-left: 20%;
}

#viewglider #parents {
	width: 448px;
	height: 115px;
	margin: 0 auto;
}

#viewglider #parents img {
	display: block;
	width: 132px;
	height: 99px;
	background-color: #ddd;
}

#viewglider #parents .framed {
	position: relative;
}

#viewglider #parents .armband {
	position: absolute;
	bottom: 8px;
	right: 8px;
	z-index: 5;
	width: 35px;
	height: 35px;
	background-color: transparent;
}

#viewglider #parents .icons {
	position: absolute;
	z-index: 20;
	width: 132px;
	height: 20px;
	bottom: 0;
	background-color: tranparent;
}

#viewglider #parents .icon {
	width: 20px;
	height: 20px;
	background-color: transparent;
}

#viewglider #parents .flag {
	width: 24px;
	height: 16px;
	background-color: transparent;
}

#viewglider .upbracket {
	width: 300px;
	height: 60px;
	border-width: 0 3px 3px;
	border-color: #4d7294;
	border-style: solid;
	margin: 0 auto;
}

#viewglider .upbracket a {
	text-decoration: none;
}

#viewglider .upbracket a:hover {
	text-decoration: underline;
}

#viewglider .fname, #viewglider .mname {
	width: 200px;
	z-index: 10;
	background-color: #fff;
	text-align: center;
}

#viewglider .fname {
	margin: 1em 0 0 -108px;
}

#viewglider .mname {
	margin: 1em -92px 0 0;
}

#viewglider .vertline {
	position: relative;
	width: 0;
	height: 3em;
	border-left: 2px solid #4d7294;
	border-right: 1px solid #4d7294;
	margin: 0 auto;
}

#viewglider .vert-link {
	position: absolute;
	top: 1em;
	left: 0.5em;
	width: 12em;
	
}

#viewglider #glider-info {
	max-width: 40em;
	padding: .5rem;
	margin: 0 auto;
	z-index: 10;
	border: 3px solid #4d7294;
	border-left-color: #4d7294;
}

#viewglider #glider-name {
	font-size: 1.5rem;
	font-weight: bold;
	font-style: italic;
}

#viewglider #photo-container {
	width: 573px;
	height: 320px;
	margin: 2em auto;
}

#viewglider #photo-container[data-photos] {
	text-align: center;
}

#viewglider #main-photo {
	position: relative;
	display: inline-block;
}

#viewglider #main-photo .icons {
	position: absolute;
	z-index: 20;
	width: 400px;
	height: 40px;
	bottom: -20px;
	background-color: tranparent;
}

#viewglider #main-photo .icon {
	width: 40px;
	height: 40px;
	background-color: transparent;
}

#viewglider #main-photo .flag {
	width: 48px;
	height: 32px;
	background-color: transparent;
}

#viewglider #main-photo .armband {
	position: absolute;
	bottom: 7px;
	right: 7px;
	nav-down: 5;
	width: 70px;
	height: 70px;
	background-color: transparent;
}

#viewglider #main-photo img {
	display: block;
	width: 400px;
	height: 300px;
	background-color: #ddd;
}

#viewglider #alt-photos {
	float: right;
	width: 132px;
}

#viewglider #alt-photos img {
	display: block;
	width: 132px;
	height: 99px;
	margin-bottom: 10px;
	background-color: #ddd;
}

#viewglider .a-big-button {
	height: 1.4em;
}

/*==========================================================================*/
/* HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ 	*/
/* Helper classes.															*/
/*==========================================================================*/

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}

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

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

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