/*
 * Theme colours:
 *
 * Dark background      #0f0f0f
 # Light background     #1f1f1f
 # Lightest background  #2e2e2e
 * Dark grey            #444
 * Medium grey          #b2b2b2
 * Medium light grey    #c1c1c1
 * Light medium grey    #d9d9d9
 * Light grey           #ddd
 * Light light grey     #e6e6e6
 * Very light grey      #f2f2f2
 * Very very light grey #f7f7f7
 * Teal                 #73CBC7
 * Dark Teal            #152625
 */

 @font-face {
    font-family: avenir-light;
    src: url('AvenirLTStd-Light.otf');
}
@font-face {
    font-family: avenir-book;
    src: url('AvenirLTStd-Book.otf');
}
@font-face {
    font-family: avenir-heavy;
    src: url('AvenirLTStd-Heavy.otf');
}

* {
    padding: 0px;
    margin: 0px;
}
body {
    font-family: avenir-book, "Trebuchet MS", Helvetica, Arial, sans-serif;
	color: #e6e6e6;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body *::selection {
    color: #0f0f0f;
    background: #73CBC7;
}
.header {
	position: absolute;
	width: 100%;
	height: 72px;
	background-color: #0f0f0f;
	border-bottom: 3px solid #73CBC7;
	z-index: 2;
}
.sidebar {
	position: absolute;
	min-height: 700px;
	height: calc(100% - 75px);
	width: 100px;
	float: left;
	margin-top: 75px;
	background: #1f1f1f;
	z-index: 1;
}
.content {
	position: absolute;
	margin-left: 100px;
	margin-top: 75px;
	height: calc(100% - 95px);
	width: calc(100% - 100px);
	/* overflow-x: scroll; */
	overflow-y: scroll;
	float: left;
	background: #0f0f0f;/* #171B21;*/
}


/*
 * Sidebar Menu
 */
.nav_menu {
	margin-top: 35px;
	list-style-type: none;
	font-size: 0.9em;
}
.sidebar_menu li + li {
	margin-top: 35px;
}
.sidebar_menu a {
    color: #e6e6e6;
    transition: color 0.2s;
}
.sidebar_menu a:link, a:visited, a:focus, a:active {
	text-decoration: none;
}
/* Darken colour on hover */
.sidebar_menu a:hover {
	opacity: 0.6;
}
/* Change colour to blue for current menu item */
.sidebar_menu a.active_menu {
	color: #73CBC7;
}
/* Slightly darken all non-active icons */
.sidebar_menu .menu_icon {
    opacity: 0.9;
}
/* Leave the blue icons at full opacity */
.sidebar_menu a.active_menu .menu_icon {
    opacity: 1.0;
}


/*
 * Alternative dropdown menu for small screens
 */

.mobile_menu {
    display: none;  /* hidden by default */
	position: relative;
	float: top;
	width: 100%;
	min-height: 90px;
	background: #1b2a2e;
	color: #e6e6e6;
}

.mobile_menu .title {
	display: inline-block;
	min-height: 90px;
	line-height: 90px;
	margin-left: 30px;
	vertical-align: middle;
	font-size: 2.3em;
	font-weight: 100;
}


/*
 * Top Banner
 */

/* The CSI logo division */
.logo {
    position: relative;
    float: left;
    width: 162px;
    height: inherit;
}

/* The product name division */
.product_name {
    position: relative;
	float: left;
	height: inherit;
	width: calc(100% - 162px - 300px);  /* 162 for logo, 300 for login_status div */
}

/* The login status division */
.login_status {
    position: relative;
    max-width: 300px;
    float: right;
    height: 100%;
}

/* Text styling for the product name */
.product_name h2 {
	color: #e6e6e6;
	position: absolute;
	bottom: 0px;
	margin-left: 30px;
	margin-bottom: 2px;
	font-size: 1.5em;
	font-weight: normal;
	opacity: 0.8;
	letter-spacing: 1px;
}


/*
 * Main Content
 */

/* Page title division */
.title_banner {
	position: relative;
	float: top;
	width: 100%;
	min-height: 90px;
	background: #152625;
}

/* Page content division */
.body_text {
	position: relative;
	float: top;
	width: calc(100% - 60px);
	max-width: 1500px;
	padding-left: 30px;
	padding-right: 30px;
	margin-top: 20px;
	clear: both;
	overflow: auto;
}

/* Page footer division */
.footer_banner {
	position: fixed;
	bottom: 0;
	left: 0;
	height: 20px;
	width: 100%;
	background: #171B21;
}

body page_title {
	display: inline-block;
	min-height: 90px;
	line-height: 90px;
	margin-left: 30px;
	vertical-align: middle;
	font-size: 2.3em;
	font-weight: 100;
}

body h2 {
	font-size: 16px;
	font-weight: bold;
	line-height: 36px;
	vertical-align: middle;
}

/* A larger, brighter header font */
body h3 {
    color: #e6e6e6;
	font-size: 1.6em;
	font-weight: bold;
	line-height: 36px;
	vertical-align: middle;
}

body .indent {
	margin-left: 50px;
}
body .double_indent {
	margin-left: 100px;
}

body .faded {
    opacity: 0.7;
}


/*
 * General paragraph link styling
 */

/* HTML <a> tags */
p a:link {
	color: #73CBC7;
}
p a:visited {
	color: #73CBC7; /*inherit;*/
}
p a:hover {
	/*opacity: 0.8;*/
}
/* Javascript links */
p.link {
    color: #73CBC7;
}
p.link:hover {
    /*opacity: 0.8;*/
    cursor: pointer;
}


/*
 * Figure Captions
 */

figcaption {
    color: #7a7a7a;
    text-align: center;
}


/*
 * Status / dashboard display
 */

.dash_column {
    float: left;
    width: calc((100% - 20px) / 2);  /* less the gap between columns */
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 1300px) {
    .dash_column {
        width: calc(100% - 30px);
    }
}

.widget {
    position: relative;
    background: #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
    width: calc(100% - 20px);
    box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.17);
}


/*
 * Status table
 */

table.status_table {
    border: none;
    width: 100%;
}

table.status_table td {
    vertical-align: top;
}

table.status_table h2 {
    line-height: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-left: 10px;
}

table.status_table h2.subtitle {
    font-weight: normal;
    margin-left: 50px;
}


/*
 * Button
 */

button {
	color: #0f0f0f;
	background-color: #73CBC7;
	font-size: 14px;
	line-height: 1.75;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 5px 16px;
	border: none;
	border-radius: 3px;
	box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	transition-duration: 0.2s;
}
button:disabled,
button[disabled]{
    /* Grey out a disabled button by decreasing the opacity */
	opacity: 0.5;
	cursor: not-allowed;
}
button:hover:enabled {
    /* Darken the button colour and text colour on hover, and add more shadow */
    -webkit-filter: brightness(70%);
	box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.25), 0 10px 25px 0 rgba(0, 0, 0, 0.22);
	cursor: pointer;
}


/*
 * Dropdown List
 */

/* The 'container <div> - needed to position the dropdown content */
.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown strong {
    color: #73CBC7;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
	display: none;
	position: absolute;
	background-color: #f1f1f1;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
	color: black;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
	background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
	display: block;
}


/*
 * Sub-settings navigation for settings page
 */

/* The division for the sidebar on the left */
.settings_sidebar_div {
    position: relative;
    float: left;
    width: 250px;
    border-right: 2px solid #edd4d3;
    margin-bottom: 20px;
}

/* The division for the settings content on the right */
.settings_content_div {
    min-height: 460px;
    min-width: 550px;
    max-width: 800px;
    position: relative;
    float: left;
    padding-left: 10px;
    padding-bottom: 20px;
    margin-right: 40px;
}

/* The settings sidebar menu with the sub-categories headers */
.settings_sidebar_menu {
	list-style-type: none;
	font-size: 1.1em;
	font-weight: normal;
	letter-spacing: 1px;
}
.settings_sidebar_menu a {
    color: grey;
    text-decoration: none;
    transition: color 0.2s;
}
.settings_sidebar_menu li {
    width: 100%;
    height: 60px;
    transition: background 0.2s;
    transition: color 0.2s;
    border-radius: 8px 0px 0px 8px;
}
.settings_sidebar_menu li:hover,
.settings_sidebar_menu li:focus {
    background: #f7f7f7;
    color: #444;
    cursor: pointer;
}
.settings_sidebar_menu li.active {
    /* when active, darken the background and the text */
    background: #edd4d3;
    color: black;
}
.settings_sidebar_menu li p {
    /* set line height the same as list item height */
    margin-left: 20px;
    line-height: 60px;
}
/* The '>' pointer arrow */
.settings_sidebar_menu li .pointer {
    color: white;   /* white to hide by default */
    transition: color 0.2s;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 60px;
    margin-right: 10px;
}
/* Show the pointer either when selected or on hover */
.settings_sidebar_menu li.active .pointer,
.settings_sidebar_menu li:hover .pointer {
    color: #444;
}



/*
 * Table styling for subsettings pages
 */

/* the box that holds a group of settings */
.settings_div {
	border: 2px solid lightgrey;
	max-width: 800px;
}
/* a table within a settings box used to hold together groups of settings */
table.settings_table {
    width: 100%;
    table-layout: fixed;
}
table.settings_table td {
    padding-left: 5px;
	padding-right: 5px;
	min-height: 20px;
	vertical-align: middle;
}
/* h2 for setting headers */
table.settings_table h2 {
    line-height: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
}
/* h3 for captions */
table.settings_table h3 {
	min-height: 20px;
	vertical-align: middle;
	font-size: 16px;
	font-weight: normal;
	color: grey;
}


/*
 * Table styling for records page
 */

table.records_table {
    border-collapse: collapse;
    border: none;
}

table.records_table th {
    font-weight: normal;
    color: grey;
    text-align: left;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; /* stops highlighting when clicked */
}
/* Darken the header if sorting is active */
table.records_table th.active {
    color: #73CBC7;
}
/* Add a pointer arrow if header is sortable */
table.records_table th span.sort_pointer {
    float: right;
    margin-right: 10px;
    pointer-events: none;  /* makes element transparent to clicks */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; /* stops highlighting when clicked */
}
/* point arrow upwards if reverse sort is activated */
table.records_table th.reverse span.sort_pointer {
    transform: rotate(180deg);
}

table.records_table tr {
    height: 30px;
    border-bottom: 1px solid grey;
}
/* Change cursor for sortable table header cell on hover */
table.records_table th.sortable:hover {
	cursor: pointer;
}
/* Change colour of table body row on hover */
table.records_table tbody tr:hover {
	background-color: #2e2e2e;
}


/*
 * Divisions for settings pages
 */

/* Div for the sub-settings pagination tabs */
.subsettings_tabs {
	position: relative;
	float: top;
	width: inherit;
}

/* Div for the main settings content */
.subsetting_content {
	position: relative;
	float: top;
	width: inherit;
	clear: both;
}

/*
 * Pagination button view for sub-settings
 */

/* Pagination links */
.pagination a {
    color: #73CBC7;
	float: left;
	padding: 8px 16px;
	text-decoration: none;
	transition: background-color .3s;
	font-size: 22px;
	font-weight: 100;
	letter-spacing: 1px;
	cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; /* stops highlighting when clicked */
}
/* Normal text entries */
.pagination p {
	float: left;
	padding: 8px 16px;
	text-decoration: none;
	font-size: 22px;
	font-weight: 100;
	letter-spacing: 1px;
}
/* Grey out disabled link */
.pagination a.disabled {
    -webkit-filter: brightness(40%);
	cursor: default;
}
/* Add a background color on mouse-over */
.pagination a:hover:not(.disabled) {
	background-color: #2e2e2e;
}


/*
 * Text input
 */

.text_input {
    position: relative;
    margin-top: 30px;
    width: 300px;
}
.text_input input {
    color: #b2b2b2;
    background-color: #2e2e2e;
    font-size: 18px;
    padding: 10px 10px 10px 5px;
    display: block;
    width: calc(100% - 15px);
    border: none;
    border-bottom: 1px solid #757575;
}
.text_input input:focus {
    outline: none;
}

/* Input label */
.text_input label {
    color: #b2b2b2;
    font-size: 18px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    -webkit-transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    transition: 0.2s ease all;
}
/* active state */
.text_input input:focus ~ label, .text_input input:valid ~ label {
    top: -20px;
    font-size: 14px;
    color: #b2b2b2;
}

/* Bottom bar */
.text_input .bar {
    position: relative;
    display: block;
    width: inherit;
}
.text_input .bar:before, .bar:after {
    content: '';
    height: 2px;
    width: 0;
    bottom: 1px;
    position: absolute;
    background: #73CBC7;
    -webkit-transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    transition: 0.2s ease all;
}
.text_input .bar:before {
    left: 50%;
}
.text_input .bar:after {
    right: 50%;
}
/* active state */
.text_input input:focus ~ .bar:before, .text_input input:focus ~ .bar:after {
    width: 50%;
}


/*
 * Radio Buttons
 */

/* The radio button container */
.radio_container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    height: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default radio button */
.radio_container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button */
.radio_checkmark {
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 2px;
    height: 15px;
    width: 15px;
    background-color: #d1d1d1;
    border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.radio_container:hover input ~ .radio_checkmark {
    background-color: #bbb;
}

/* When the radio button is checked, darken the background */
.radio_container input:checked ~ .radio_checkmark {
    background-color: #444;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.radio_checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.radio_container input:checked ~ .radio_checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.radio_container .radio_checkmark:after {
    top: 5px;
    left: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: white;
}

/* Remove pointer cursor and grey out buttons when disabled */
.radio_container input:disabled ~ .radio_checkmark {
    cursor: default;
    opacity: 50%;
}


/*
 * Checkbox input
 */

/* The container */
.checkbox_container {
    display: block;
    position: relative;
    padding-left: 22px;
    min-height: 19px;
    min-width: 19px;
    vertical-align: middle;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox_container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkbox_container .checkmark {
    position: absolute;
    top: 3px;
    left: 3px;
    height: 13px;
    width: 13px;
    outline: 2px solid lightgrey;
}

/* On mouse-over, darken the border color */
.checkbox_container:hover input ~ .checkmark {
    outline: 2px solid #73CBC7;
}

/* When the checkbox is checked, add a background and change border color to match */
.checkbox_container input:checked ~ .checkmark {
    background-color: #73CBC7;
    outline: 2px solid #73CBC7;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkbox_container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 3px;
    top: 1px;
    width: 3px;
    height: 7px;
    border: solid #0f0f0f;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Show the checkmark when checked */
.checkbox_container input:checked ~ .checkmark:after {
    display: block;
}


/*
 * Modals (Popups)
 */

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    margin-top: 100px;
    padding: 20px;
    border: 1px solid #888;
    min-width: 500px;
    max-width: 800px;
    border-radius: 3px;
}

/* Modal text */
.modal-content p, .modal-content h2, .modal-content h3 {
    color: #444;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

/* Darken and change pointer on hover */
.close:hover,
.close:focus {
    color: #444;
    text-decoration: none;
    cursor: pointer;
}


/*
 * Login page
 */

.login {
    display: block;
    position: fixed; /* Stay in place */
    left: 0;
    top: 0;
    width: 100%; /* Full screen width */
    height: 100%; /* Full screen height */
    overflow: auto; /* Enable scroll if needed */
    background: #0f0f0f;
}

.login_content {
    position: absolute;
    margin: auto;
    top: 50%;       /* center in page */
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%) }
}

.login_content .login_title {
    color: #c1c1c1;
    font-size: 1.17em;
    font-weight: normal;
    text-align:center;
    letter-spacing: 1px;
    line-height: 50px;
}


/*
 * Collapsable content divs
 */

 /* Style the button that is used to open and close the collapsible content */
.collapsible_button {
    cursor: pointer;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; /* stops highlighting when clicked */
}

/* Add a background color to the button when activated or on hover */
.collapsible_button.active, .collapsible_button:hover {
    background-color: #edd4d3;
}

.collapsible_content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.collapsible_button .collapsible_pointer {
    color: #444;
    float: right;
    margin-right: 10px;
    margin-top: 6px;
    transition: transform 0.2s ease-out;
}

.collapsible_button.active .collapsible_pointer {
    transform: rotate(180deg);  /* rotate pointer upwards */
}


/*
 * Toggle Switch Input
 */

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 23px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 23px;
    background-color: #c1c1c1;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 3px;
    bottom: 3px;
    border-radius: 50%;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: grey;
}

input:checked + .slider:before {
    -webkit-transform: translateX(17px);
    -ms-transform: translateX(17px);
    transform: translateX(17px);
}

/*
 * Progress Bar
 */

.progress_bar {
    width: 100%;
    height: 14px;
    background-color: #e6e6e6;
    border-radius: 7px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2);
}

.progress_bar_fill {
    display: block;
    height: inherit;
    border-radius: inherit;
    transition: width 500ms ease-in-out;
    background: linear-gradient(to left, #337a87, white);
}


/*
 * EQ and Station Mapping
 */

.map_magnitude_text {
    color: white;
    font-size: 2.5em;
	font-weight: normal;
	/*opacity: 0.8;*/
	letter-spacing: 1px;
}


/*
 * Adapt the display for narrow screens like mobiles
 */
@media screen and (max-width: 1000px) {
    /* Hide the sidebar */
    .sidebar {
        display: none;
    }

    /* Show the mobile menu */
    .mobile_menu {
        display: block;
    }

    /* Hide the product name in header */
    .product_name {
        display: none;
    }

    /* Hide the page title banner */
    .title_banner {
        display: none;
    }

    /* Make the main content fill entire screen width */
    .content {
        margin-left: 0px;
        width: 100%;
    }

    /* Make settings content scale to page width */
    .settings_content_div {
        max-width: 100%;
    }
    .settings_div {
        width: 100%;
    }
}