/*!
 * Project A
 * Created by: Michael Letcher
 * Last modified: April 07, 2015
 */

* {
	border-radius: 0px !important; /*Bootstrap Override*/
}
html, body {
	height: 100%;
}

/* Style Helper Classes */
.pad-10 {padding: 10px}
.pad-20 {padding: 20px}
.pad-10-t {padding-top: 10px}
.pad-20-t {padding-top: 20px}

.w45 {width: 45% !important;}
.w50 {width: 50% !important;}
.w100 {width: 100% !important;}

.display-inline {display: inline !important;}
.display-block {display: block !important;}

.left {float: left;}
.right {float: right;}

/* Navigation Menu */
.glyphicon-menu-hamburger {
	font-size: 22px;
	font-weight: 100;
	color: #fff;
}
.navbar-toggle {
	padding: 0; /*Bootstrap Override*/
	padding-top: 5px;

}
.navbar {
	border-radius: 0px !important; /*Bootstrap Override*/
}
nav a {
	cursor: pointer;
	font-size:1.6rem;
}
.navbar-header .navbar-brand{
	font-size:2.6rem;
}
.divider {
	height: 1px;
	background-color: #0C84E4;
}
.no-shadow {
	box-shadow: none !important; /*Bootstrap Override*/
}
.navbar-inverse .navbar-brand {
	color: #fff !important; /*Bootstrap Override*/
}
.navbar-inverse .navbar-brand:hover {
	color: #b2dbfb !important; /*Bootstrap Override*/
}
.navbar-inverse .navbar-nav>li>a {
	color: #fff !important; /*Bootstrap Override*/
}
.navbar-inverse .navbar-nav>li>a:hover {
	color: #b2dbfb !important; /*Bootstrap Override*/
}
a.help-btn, a.help-btn:hover, a.help-btn:active {
	color: #fff;
	text-decoration: none;
}
.help-btn {
    position: relative;
    float: right;
    margin-top: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    background-color: transparent;
    font-size: 18px;
}
a.help-btn > span {
	margin-top: 4px;
}


/* Calculation Form */
#calculation-form input.form-control {
	font-size: 19.5px !important; /*Bootstrap Override*/
}
input[type='number'] {
    -moz-appearance:textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
.metric {
	display: table-cell;
	padding-left: 5px;
	vertical-align: middle;
}
/* for field popover descriptions */
.glyphicon-question-sign {
    cursor: pointer;
    font-size: 15px;
}
#errorMsg a, #warningMsg a {
	cursor: pointer;
}
#error, #warning {
	font-size: 1.4rem;
}
#error th, #warning th {
	font-size: 1.9rem;
}

/* input placeholder */
.form-control{
	color:#333 !important;
}


/* Buttons */
button {   
	outline: none !important; /*Bootstrap Override*/
} 

#male-btn, #female-btn, #mm-btn, #inch-btn, #kg-btn, #lbs-btn {
	width: 50%;
}
#calculator div.row:first-child {
	position: relative;
}
#settings-btn {
	position: absolute;
	display: inline;
	z-index: 2;
	color: #2196F3;
	background-color: white;
	position: absolute;
	left: 100%;
	font-size: 24px;
	float: right;
	padding-bottom: 2px;
	margin-left: -39px;
	cursor: pointer;
}
#settings-panel {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	width: 24px;
	height: 26px;
	font-size: 24px;
	margin-bottom: 10px;
	margin-right: 15px;
	line-height: 1;
	opacity: 0;
	-webkit-transition: width 0.5s, opacity 0.3s; /* For Safari 3.1 to 6.0 */
    transition: width 0.5s, opacity 0.3s;
}
#calculator > .row:first-child {
	float: right;
}
#calculator > .row:first-child:hover #settings-panel {
	color: #0d87e9;
	width: 113px;
	opacity: 1;
}
#settings-panel span:last-child {
	z-index: 1;
}
.jumbotron > a {
	margin-bottom: 5px; 
}


/* BODY CONTENT */

#calculation-form {
	clear: both;
}
.modal-dialog {
	z-index: 1050; /*Bootstrap fix*/
}
.well {
	background-color: #d9d9d9;
	cursor: pointer;
	transition: background-color 0.3s;
	-webkit-transition: background-color 0.3s;
}
.well:hover {
	background-color: #ccc;
}
.well input {
	-webkit-box-shadow: 0px -1px 0px #fff inset;
	box-shadow: 0px -1px 0px #fff inset;
}


.jumbotron {
	background-color:#ccc;
}
.detail-text {
	font-size: 1.6rem;
}
.about-block {
	margin-top: 30px;
}
#about .jumbotron, #contact .jumbotron {
	padding: 20px 50px;
}
.img-about {
	max-height: 150px;
	max-width:200px;
}
@media (max-width: 991px) {
	.detail-text {
		font-size: 1.6rem;
	}
	.img-about {
		position: relative;
		left: 50%;
		transform: translate(-50%, 0%);
	}
}


/* MODALS */

/* Result Modal */
#resultModal {
	font-size: 17px;
}
.answer {
	display: inline-block;
	margin-top: 3px;
	margin-bottom: 3px;
}
.errorMargin {
	font-size: 24px;
	font-weight: 200;
}
input[name="result"],
input[name="gender"],
input[name="age"],
input[name="mass"],
input[name="depth"],
input[name="inter"] {
	display: none;
}


/* Table */
.table > tbody > tr > td {
	vertical-align: middle !important; /*Bootstrap Override*/
}
caption {
	color: #000;
}

/* FOOTER */
.footer-fix {
	padding-bottom: 96px;
	margin-bottom: -96px;
	min-height: 100%;
}
footer {
	font-size: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
}
#logo {
	max-width: 200px;
	text-align: center;
}
.nav-footer a.btn-xs:first-child {
	padding: 1px 5px 1px 0px !important; /*Bootstrap Override*/
}

/* Login Modal */
#loginModal .input-group-addon {
	min-width: 92px;
	text-align: left;
}

/* Login Success Alert */
div.alert-success, div.alert-info {
	overflow: hidden;
    height: 54px;
    padding: 15px;
	font-size:1.5rem;
    -webkit-animation-name: hideAlert; /* Chrome, Safari, Opera */
    -webkit-animation-duration: 1s; /* Chrome, Safari, Opera */
    -webkit-animation-delay: 2.5s; /* Chrome, Safari, Opera */
    animation-name: hideAlert;
    animation-duration: 1s;
    animation-delay: 2.5s;
	animation-fill-mode: forwards;
}

div.alert-warning {
	overflow: hidden;
    height: 54px;
    padding: 15px;
	font-size:1.5rem;
    -webkit-animation-name: hideAlert; /* Chrome, Safari, Opera */
    -webkit-animation-duration: 1s; /* Chrome, Safari, Opera */
    -webkit-animation-delay: 4s; /* Chrome, Safari, Opera */
    animation-name: hideAlert;
    animation-duration: 1s;
    animation-delay: 4s;
	animation-fill-mode: forwards;
}


/* Chrome, Safari, Opera */
@-webkit-keyframes hideAlert {
    100%   {height: 0px; padding: 0px 15px 0px 15px; display: none; margin-bottom: 0px;}
    0% {height: 24px; padding: 15px; display: block; margin-bottom: 23px;}
}

/* Standard syntax */
@keyframes hideAlert {
    100%   {height: 0px; padding: 0px 15px 0px 15px; display: none; margin-bottom: 0px;}
    0% {height: 24px; padding: 15px; display: block; margin-bottom: 23px;}
}

/* Fixed popup alerts */
.sticky {
	position: fixed;
	bottom: 0px;
	z-index: 50000;
	height: 24px;
	padding: 0px 15px 0px 15px;
}

/* Google Chart */
	.google-charts.table-responsive {
		overflow-x: inherit;	
	}
	#chartSelector {
		margin-bottom: 20px;
	}

/* Tablesorter.js */
	table.tablesorter thead tr .header {
		cursor: pointer;
	}
	/* Disabled fitlers are hidden */
	.tablesorter-filter.disabled {
		display: none;
	}
	.reset {
		float: right;
	}

	/* Hide filters when on mobile*/
	@media screen and (max-width: 768px) {
		.reset {
			float: none;
			margin-top: 10px;
		}

		#calcTable > thead > tr.tablesorter-filter-row.tablesorter-ignoreRow > td:nth-child(3) {
			display: none;
		}
		#calcTable > thead > tr.tablesorter-filter-row.tablesorter-ignoreRow > td:nth-child(4) {
			display: none;
		}
		#calcTable > thead > tr.tablesorter-filter-row.tablesorter-ignoreRow > td:nth-child(5) {
			display: none;
		}
		#calcTable > thead > tr.tablesorter-filter-row.tablesorter-ignoreRow > td:nth-child(6) {
			display: none;
		}
		#calcTable > thead > tr.tablesorter-filter-row.tablesorter-ignoreRow > td:nth-child(7) {
			display: none;
		}
		#calcTable > thead > tr.tablesorter-filter-row.tablesorter-ignoreRow > td:nth-child(8) {
			display: none;
		}
		#calcTable > thead > tr.tablesorter-filter-row.tablesorter-ignoreRow > td:nth-child(10) {
			display: none;
		}
	}

	/* Table Sorter Styling */
	.table>thead>tr.tablesorter-filter-row>td {
		padding: 8px 2px 8px 0px;
	}
	.tablesorter-metro .tablesorter-filter-row, .tablesorter-metro .tablesorter-filter-row td {
		background-color: transparent;
	}
	.tablesorter-metro select.tablesorter-filter {
		width: 105%;
	}
	.tablesorter-metro select.tablesorter-filter {
		border: none;
	}
	.tablesorter-metro input.tablesorter-filter {
		border-top: none;
		border-right: none;
		border-bottom: 2px solid #eee;
		border-left: none;
		transition: border-bottom 0.4s;
		-webkit-transition: border-bottom 0.4s;
	}
	.tablesorter-metro input.tablesorter-filter:focus, .tablesorter-metro select.tablesorter-filter:focus {
		border-bottom: 2px solid #0d87e9;
	}
	.tablesorter-metro select.tablesorter-filter {
		padding: 2px 4px;
		font-size: 13px;
	}
	/* Chrome Fix */
	/* remove stupid browser outline */
	input:focus,
	select:focus,
	textarea:focus,
	button:focus {
	    outline: none;
	}