@charset "utf-8";

/* REORGANIZE AND SWITCH TO SASS */

/* DEBUG - consider moving individual sections into separate stylesheets that mirror url/view structure 
OR move the appropriate blocks of CSS into <style></style> sections in the corresponding view templates*/

/***************************
CSS RESETS
***************************/
h1, h2, h3 {
	margin: 0;
	padding: 0;
}

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

/***************************
PAGE LAYOUT
***************************/
html, body {
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #333;
	background-color: #dedace;
}

#page {
	width: 1000px;
	margin: 0 auto 0 auto;
	background-color: #fcfcfc;
	border: solid 1px #999;
	border-top: none;
}

/***************************
HEADER
***************************/
#cinb > div:first-child {
	border-bottom: solid 1px #999 !important;
}

#cinb, #cinb * {
	background-image: none !important;
	background-color: #666; /*#377bbb;*/
}

#banner {
	height: 117px;
	background: #1a274b url(../images/volcano-image2.png) no-repeat top right;
}

h1 {
	height: 93px;
	line-height: 93px;
	margin: 0;
	padding: 0 0 0 15px;
	color: white;
	font-size: 28px;
}

#navbar {
	height: 24px;
	list-style-type: none;
	margin: 0;
	padding: 0;
	font-size: 0;
	border: solid 1px #ccc;
	border-left: none;
	border-right: none;
	background: #ffefc6;
}

#navbar li {
	margin: 0;
	padding: 0;
	line-height: 20px;
}

#navbar li, #navbar li a {
	display: inline-block;
	height: 24px;
	line-height: 24px;

	background: #ffefc6; /* Old browsers */
	background: -moz-linear-gradient(top, #ffefc6 0%, #ffefc6 48%, #ddca9b 100%, #207cca 100%, #1e5799 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffefc6), color-stop(48%, #ffefc6), color-stop(100%, #ddca9b), color-stop(100%, #207cca), color-stop(100%, #1e5799)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #ffefc6 0%, #ffefc6 48%, #ddca9b 100%, #207cca 100%, #1e5799 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #ffefc6 0%, #ffefc6 48%, #ddca9b 100%, #207cca 100%, #1e5799 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #ffefc6 0%, #ffefc6 48%, #ddca9b 100%, #207cca 100%, #1e5799 100%); /* IE10+ */
	background: linear-gradient(to bottom, #ffefc6 0%, #ffefc6 48%, #ddca9b 100%, #207cca 100%, #1e5799 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffefc6', endColorstr='#1e5799', GradientType=0); /* IE6-9 */
}

#navbar li a {
	text-decoration: none;
	font-size: 14px;
	font-weight: bold;
	padding: 0 15px 0 15px;
	border-right: solid 1px #ccc;
}

#navbar li a:hover {
	background: red !important;
	color: white !important;
}

#navbar li#login_logout_link, #navbar li#admin_link, #navbar li#status_tab {
	float: right;
}

#navbar li#status_tab a {
	border-right: none;
}
#navbar li#admin_link a {
	border-right: none;
}

#navbar li#login_logout_link a, #navbar li#admin_link a {
	border-left: solid 1px #ccc !important;
}

#navbar li#login_logout_link .username {
	font-size: 12px;
}

/***************************
CONTENT AREA
***************************/
#content {
	min-height: 300px;
	padding: 10px;
}

/***************************
FOOTER
***************************/
#footer {
	height: 100px;
	display: table;
	background-color: #666;
	color: #ccc;
	padding: 10px 15px 10px 15px;
	font-size: 10px;
}

#logos {
	float: right;
	height: 55px;
	margin-top: -5px;
	line-height: 55px;
}

#logos img {
	height: 50px;
	border: none;
}

#cimss_logo {
	height: 55px !important;
}

#star_logo {
	height: 55px !important;
	position: relative;
	top: 5px;
	margin-right: 20px;
}

#footer a:link, #footer a:visited {
	color: rgb(255, 239, 198);
}

/***************************
CALENDAR VIEW
***************************/
.calendarContainer {
	/* DEBUG - improve - don't use floating or at the very least figure out how to tighten up vertical spacing between calendars but still account for
		months with 5 rows */
	float: left;
	/*margin-right: 10px;*/
	/*margin-left: 10px;*/
	/*margin-top: 10px;*/
	margin: 10px 20px 0 0;
	height: 270px;
}

table.calendar, caption.calendar-month, table.calendar th, table.calendar td {
	border: solid 1px #ccc;
}

table.calendar {
	border-right: none;
	border-top: none;
}

caption.calendar-month {
	font-weight: bold;
	font-size: 16px;
	border-bottom: none;
	background-color: #1a274b;
	color: white;
}

table.calendar th {
	background-color: #ffefc6;
	color: #000;
}

table.calendar td, table.calendar th {
	font-size: 14px;
	padding: 3px;
	height: 18px;
}

table.calendar td {
	background-color: #fff;
	width: 32px;
	height: 30px;
}

table.calendar tr:nth-child(even) td {
	background-color: #eee;
}

table.calendar th, table.calendar td {
	text-align: center;
	vertical-align: middle;
	border-left: none;
	border-bottom: none;
}

.alert_report_day {
	padding: 0 !important;
	vertical-align: bottom !important;
}

.alert_report_day a {
	display: block;
	width: 100%;
	height: 36px;
	line-height: 36px;
	text-decoration: none;
	color: white !important;
	position: relative;
}

.alert_report_day a:link {
	background-color: #377bbb !important;
}

.alert_report_day a:visited {
	background-color: #173d85 !important;
}

/******
DEBUG
.day_num {
	position: relative;
	top: -2px;
}
******/

/***************************
REGIRATION FORM
***************************/
#register_form {
	display: block;
	width: 620px;
	float: left;
}

#register_form table {
	width: 100%;
	border-collapse: collapse;
}

#register #text_box {
	float: right;
	width: 260px;
	padding: 10px;
	background-color: #f3f3f3;
	border: solid 1px #ccc;
	margin-top: -5px;
}

#register #text_box h3 {
	margin-top: 0 !important;
	padding-top: 0 !important;
	line-height: 0.9em;
}

#register_form th {
	width: 160px;
	padding: 0;
	vertical-align: middle;
	text-align: right;
	padding-right: 15px;
}

#register_form td {
	padding: 0;
	vertical-align: top;
	text-align: left;
}

#name_container > label:first-child {
	/*	float: left;*/
}

#name_container > label:first-child + label {
	/*	float: right;*/
}

#register_form input[name=first_name], #register_form input[name=last_name] {
	width: 150px;
}

#register_form textarea[name=purpose], #register_form input[name=organization], #register_form input[name=email] {
	width: 400px;
}

#register_form td div#name_container {
	width: 404px; /* 500px for other input fields doesn't include border width which adds about 4 pixels */
}

#register_form #register_button_container {
	text-align: center;
	padding-top: 1.5em;
}

#register_form #confirm_password_container {
	display: block;
	margin-top: 1em;
}

#validation_errors {
	/******
	DEBUG
	background-color: #F3F3F3; 
	padding: 10px; 
	border: solid 1px #ccc;
	********/
	color: red;
}

/***************************
REPORT LIST
***************************/
#report_list .alert_link {
	text-align: right;
	background-color: #999;
}

#report_list .alert_link .volc-button {
	text-decoration: none;
	font-weight: bold;
	height: 20px;
	line-height: 20px;
	font-size: 16px;
	width: 100%;
	box-sizing: border-box;
}

#report_list .alert_link.volc-button:hover {
	background: red !important;
}

/***************************
ALERTS
***************************/
/*** Alert boxes: BEGIN ****/
.alert_box {
	font-size: 12px;
	border: solid 1px #999;
	width: auto;
	display: block;
	background-color: #fffff3;
	margin: 15px 15px 0 15px;
	clear: both;
}

.alert_box table {
	width: 100%;
	border: none;
	border-collapse: collapse;
	font-size: 12px;
}

#alert_report .alert_box table {
	width: 37%;
	border-left: solid 1px #ccc;
	float: right;
}

.alert_report_summary table {
	width: 100% !important;
	border-right: none !important;
	float: none !important;
}

.alert_report_summary.short_summary table th {
	width: 25em;
}

.alert_report_summary table tr.extra_summary_info {
	display: none;
}

#hide_report_link {
	display: none;
}

#expand_collapse_report_container {
	font-size: 12px;
	padding: 5px;
	color: white !important;
	text-decoration: none;
	cursor: pointer;
	margin-bottom: 20px;
	float: left;
	margin-left: 15px;
}

#expand_collapse_report_container span {
	cursor: pointer;
}

#expand_collapse_report_container:hover {
	background: red !important;
	color: white !important;
}

.alert_images_container {
	float: left;
	width: 63%;
}

.alert_box table tr:nth-child(odd) th, .alert_box table tr:nth-child(odd) td {
	background-color: #eee !important;
}

.alert_box table th, .alert_box table td {
	padding: 3px;
	vertical-align: middle;
}

.alert_box table tbody.default {
	/*DEBUG_CLASS - NOT VALID display: show;*/
}

.alert_box table tbody.more {
	display: none;
}

.alert_box table th {
	text-align: left;
}

.alert_box table th.alert_header {
	text-align: left;
	font-size: 16px;
	font-style: italic;
	font-weight: bolder;
	padding-top: 5px;
	padding-bottom: 5px;
}

.alert_box table td {
	padding-left: 20px;
	text-align: left;
}

.alert_box .classification {
	/* DEBUG_CLASS */
	width: 11.5em;
}

.classification-success-icon {
	/* DEBUG_CLASS */
	height: 24px;
	vertical-align: top;
	position: relative;
	top: -2px;
	display: none;
}

/*----- LOADING ICON: BEGIN -----*/
/* Source: http://tobiasahlin.com/spinkit/ */
.loading-icon {
	text-align: center;
	display: none;
	height: 1em;
}

.loading-icon > div {
	width: 8px;
	height: 8px;
	background-color: #000; /* THIS CONTROLS THE COLOR OF THE DOTS */
	border-radius: 100%;
	display: inline-block;
	-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
	animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.loading-icon .loading-icon-bounce1 {
	-webkit-animation-delay: -0.32s;
	animation-delay: -0.32s;
}

.loading-icon .loading-icon-bounce2 {
	-webkit-animation-delay: -0.16s;
	animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
	0%, 80%, 100% { -webkit-transform: scale(0) }
	40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
	0%, 80%, 100% {
		-webkit-transform: scale(0);
		transform: scale(0);
	} 40% {
		  -webkit-transform: scale(1.0);
		  transform: scale(1.0);
	  }
}
/*----- LOADING ICON: END -----*/

.moreLessAlertStyle, .showLessAlert {
	cursor: pointer;
}

.moreLessAlertStyle {
	font-size: 12px;
	color: white !important;
}

.showLessAlert {
	display: none;
}

.showMoreAlert {
	/* DEBUG_CLASS - NOT VALID display: show;*/
}

#alert_header {
	text-align: center;
	font-weight: bold;
}

.alert_box h3 {
	background-color: #666;
	margin: 0;
	height: 24px;
	line-height: 24px;
	font-size: 16px;
	display: block;
	text-align: center;
	padding: 4px;
	font-weight: bold;
	position: relative;
}

/*DEBUG - DELETE .alert_box h3 a {*/
.volc-button {
	color: white !important;
	text-decoration: none;
	display: inline-block;
	height: 32px;
	line-height: 32px;
	vertical-align: middle;
	padding: 0 7px 0 7px;
	font-size: 12px;
	background-color: #377bbb;
	border: none;
}

.alert_box h3 a.volc-button {
	position: absolute;
	right: 0px;
	top: 0px;
	border-left: 1px solid #ccc;
}

/*DEBUG - DELETE .alert_box h3 a:hover*/
.volc-button:hover {
	background: red !important;
	color: white !important;
}

#alert_report > .alert_box:first-child {
	margin-top: 0 !important;
}

/*** Alert boxes: END ****/
ul.nearby_volcanoes {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

ul.nearby_volcanoes li {
	margin: 9px 0 9px 0;
	padding: 0;
}

ul.nearby_volcanoes > li:first-child {
	margin-top: 5px;
}

ul.nearby_volcanoes > li:last-child {
	margin-bottom: 5px;
}

.alert_images {
	list-style-type: none;
	margin: 0;
	padding: 10px;
	position: relative;
}

#individual_alert .alert_images {
	border: solid 1px #ccc;
	background-color: #f3f3f3;
	margin-top: 15px;
	box-sizing: border-box;
	width: 100%;
	height: 700px;
	overflow: auto;
}

#individual_alert .alert_images li {
	margin: 10px 5px;
}

.alert_images li {
	margin: 10px;
	padding: 0;
}

#alert_report .alert_images li {
	display: inline-block;
	vertical-align: top;
}

#individual_alert .alert_images li {
	display: block;
	float: left;
}

.alert_images li.break {
	clear: both;
	margin: 0;
	padding: 0;
	width: 0;
	height: 0;
}

.alert_images img {
	border: solid 1px #377bbb;
}

#alert_report .alert_images img, #alert_report .imageCaption {
	width: 320px;
}

#individual_alert .alert_images img, #individual_alert .imageCaption {
	width: 480px;
}

.imageCaption {
	display: block;
	text-align: center;
}

/***************************
ADMIN ALERT LIST
***************************/
#alert_list a {
	text-decoration: none;
}

#alert_list #pagination_controls {
	margin-bottom: 5px;
	text-align: right;
}

#alert_list #toggle_select_all {
	cursor: pointer;
	color: #377bbb;
	text-align: center;
}

#alert_list #toggle_select_all div {
	width: 5em;
	height: 2.5em;
}

#alert_list #toggle_select_all div > span:first-child + span {
	display: none;
}

#alert_list_table_container {
	width: 100%;
	overflow: auto;
	border: solid 1px #ccc;
}

#alert_list_table_container table {
	border-collapse: collapse;
	border: none;
}

#alert_list_table_container table th, #alert_list_table_container table td {
	padding: 5px;
	text-align: left;
	vertical-align: central;
	border: solid 1px #ccc;
}

#alert_list_table_container table th {
	background-color: #ffefc6;
}

#alert_list_table_container table tr:nth-child(odd) td {
	background-color: #eee;
}

#alert_list_table_container table td {
	white-space: nowrap;
	max-width: 35em;
	overflow: hidden;
}

#alert_list_table_container table tr > td:first-child {
	text-align: center;
}

#alert_list_controls {
	margin-top: 10px;
	margin-bottom: 1em;
}

/***************************
MISC
***************************/
#status {
	margin: 0 auto 10px auto;
	background-color: #eee;
	padding: 10px;
	border: solid 1px #999;
	color: #bb0000;
	font-weight: bold;
}

.blue_gradient {
	background: -moz-linear-gradient(top, #7fb2e2 0%, #377bbb 56%, #2c6193 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #7fb2e2), color-stop(56%, #377bbb), color-stop(100%, #2c6193)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #7fb2e2 0%, #377bbb 56%, #2c6193 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #7fb2e2 0%, #377bbb 56%, #2c6193 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #7fb2e2 0%, #377bbb 56%, #2c6193 100%); /* IE10+ */
	background: linear-gradient(to bottom, #7fb2e2 0%, #377bbb 56%, #2c6193 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7fb2e2', endColorstr='#2c6193', GradientType=0); /* IE6-9 */
}

a:link {
	color: #377bbb;
}

a:visited {
	color: #173d85;
}

a:hover {
	color: red !important;
}

h2 {
	margin-bottom: 10px;
	text-align: center;
	font-size: 24px;
}

#debug {
	clear: both;
	margin-top: 300px;
	background-color: #eee;
	padding: 10px;
}

.nice_list > li {
	margin-bottom: 1em;
}

#login_form table, #reset_password table {
	border: none;
	border-collapse: collapse;
	margin: 2em 0 1em 0;
}

#login_form table th, #login_form table td, #reset_password table th, #reset_password table td {
	padding: 5px;
	vertical-align: middle;
	white-space: nowrap;
}

#login_form table th {
	text-align: right;
	width: 250px;
}

#reset_password table th {
	text-align: right;
	width: 190px;
}

#login_form table td, #reset_password table td {
	text-align: left;
}

#reset_password #reset_button_container {
	text-align: right;
}

.nowrap {
	white-space: nowrap;
}

a.hyperlinkedButton {
	text-decoration: none;
}

/*****************************
ALERT TYPES
*******************************/

.alert_type_counter {
	margin-right: 1em;
}

.alert_type_counter .alert_icon {
	display: inline-block;
	padding: 3px;
}

.volcanic_ash_alert .alert_icon,
.volcanic_ash_alert.alert_icon {
	background-color: #a2532e; /*DEBUG - old #9e855f;*/
	color: white;
}

.ice_alert .alert_icon,
.ice_alert.alert_icon {
	background-color: #ff00ff; /*DEBUG - old #d7e8f8;*/
	color: #333;
}

.thermal_anomaly_alert .alert_icon,
.thermal_anomaly_alert.alert_icon {
	background-color: #ff0000; /*DEBUG - old #9e0000;*/
	color: white;
}

.so2_alert .alert_icon,
.so2_alert.alert_icon {
	background-color: #66ff33;
	color: #333;
}

h3.alert_icon span {
	color: #ccc;
}

div.alert_box h3.alert_icon a span {
	color: white !important;
}

.alert_more_less span {
	color: #ccc;
}

.alert_more_less a span {
	color: white !important;
}

#calendar {
	padding: 0 5px 5px 5px;
}

#calendar_legend {
	clear: both;
	list-style-type: none;
	margin: 1em 0 0 0;
	padding: 15px;
	background-color: #eee;
	border: solid 1px #bbb;
}

#calendar_legend li {
	display: inline-block;
	margin: 0;
	padding: 0;
	margin-right: 1.5em;

}

#calendar_legend > li:first-child {
	margin-right: 0.5em;
}

#calendar_legend .alert_icon {
	display: inline-block;
	width: 15px;
	height: 15px;
	border: solid 1px #999;
}

.alert_report_day .alert_icon_set {
	display: block;
	position: absolute;
	height: 6px;
	width: 38px;
	top: 0px;
	left: 0px;
	/*border-bottom: solid 1px #999;*/
}

.alert_icon_set .alert_icon {
	display: block;
	width: 9px;
	height: 6px;
	float: left;
}

#searchButton img {
	height: 12px;
}

/*****************************
Popup jQuery UI Dialog Boxes
*******************************/
.info_popup {
	cursor: pointer;
}

.info_popup:hover {
	text-decoration: underline;
}

.info_question_mark {
	margin-left: 2px;
	margin-right: 3px;
	width: 12px;
}

.no_question_mark .info_question_mark {
	visibility: hidden;
}

.info_popup:hover .info_question_mark {
	visibility: visible !important;
}

/* remove title bar and make close button float on the right */
.ui-dialog .ui-widget-header {
	border: none;
	background: none;
	display: inline-block;
	float: right;
}

/* style the content of the popup dialog box */
.ui-dialog .ui-dialog-content {
	font-family: inherit;
	font-size: 10px;
}
