a:hover {
    text-decoration: none;
}

.bg-blue {
   background-color: #00008b !important;
}

.val {
  padding-left: 5px;
  padding-right: 5px;
}

.val-0 {
    background-color: #E7DEEC !important;
    color: black;
    text-shadow: none;
}

.val-1 {
    background-color: #DCC9E0 !important;
    color: black;
    text-shadow: none;
}

.val-2 {
    background-color: #D1B5D3 !important;
    color: black;
    text-shadow: none;
}

.val-3 {
    background-color: #A867A2 !important;
    color: white;
    text-shadow: none;
    font-weight: bold;
}

.val-4 {
    background-color: #954990 !important;
    color: white;
    text-shadow: none;
    font-weight: bold;
}

.val-5 {
    background-color: #832C82 !important;
    color: white;
    text-shadow: none;
    font-weight: bold;
}

.val-green {
     background-color: green !important;
     color: white;
     text-shadow: none;
     font-weight: bold;
 }

 .val-yellow {
     background-color: yellow !important;
     color: black;
     text-shadow: none;
     font-weight: bold;
 }

 .val-orange {
     background-color: orange !important;
     color: white;
     text-shadow: none;
     font-weight: bold;
 }

 .val-red {
     background-color: red !important;
     color: white;
     text-shadow: none;
     font-weight: bold;
 }

.marker {
    stroke-width: 1px;
    opacity: 1;
    stroke: #111c1c;
}

.marker-val-0 {
    fill: #E7DEEC;
}

.marker-val-1 {
    fill: #E7DEEC;
}

.marker-val-2 {
    fill: #D1B5D3;
}

.marker-val-3 {
    fill: #A867A2;
}

.marker-val-4 {
    fill: #954990;
}

.marker-val-5 {
    fill: #832C82;
}

/* EQ colour refer #13041 */
/* treat mmi-1 as unnoticeable */
.marker-mmi--1 {
    fill: #FFF7F3;
}

.marker-mmi-0 {
    fill: transparent;
    background-color: transparent;
}

.marker-mmi-1 {
    fill: #FFF7F3;
    background-color: #FFF7F3;
}

.marker-mmi-2 {
    fill: #FEEDDE;
    background-color: #FEEDDE;
}

.marker-mmi-3 {
    fill: #FDD0A2;
    background-color: #FDD0A2;
}

.marker-mmi-4 {
    fill: #FDAE6B;
    background-color: #FDAE6B;
}

.marker-mmi-5 {
    fill: #FD8D3C;
    background-color: #FD8D3C;
}

.marker-mmi-6 {
    fill: #F16913;
    background-color: #F16913;
}

.marker-mmi-7 {
    fill: #F03B20;
    background-color: #F03B20;
}

.marker-mmi-8 {
    fill: #BD0026;
    background-color: #BD0026;
}

.marker-mmi-9 {
    fill: #A30021;
    background-color: #A30021;
}

/* tints of #008d6d http://www.color-hex.com/color/008d6d */

/* latest or most recent = 10*/
.marker-age-10 {
    fill: #008d6d;
}

.marker-age-9 {
    fill: #19987b;
}

.marker-age-8 {
    fill: #32a38a;
}

.marker-age-7 {
    fill: #4caf98;
}

.marker-age-6 {
    fill: #66baa7;
}

.marker-age-5 {
    fill: #7fc6b6;
}

.marker-age-4 {
    fill: #99d1c4;
}

.marker-age-3 {
    fill: #b2dcd3;
}

.marker-age-2 {
    fill: #cce8e1;
}

.marker-age-1 {
    fill: #e5f3f0;
}

.marker-age-0 {
    fill: #ffffff;
}

.marker-show {
    fill: #8d6d00;
}

.marker-hide {
    fill: #787878;
}

.map-label-link {
    fill: #8D0020;
    font-style: italic;
    font-size: 14px;
}

.map-label {
    fill: #172727;
    font-style: italic;
    font-size: 14px;
}

.central {
    dominant-baseline: central;
}

.nzmap-land {
    fill: #f0f5f5;
    stroke-width: 0.75px;
    stroke-linejoin: round;
    stroke: #778899;
}

.nzmap-lake {
    fill: #ffffff;
    stroke-width: 0.75px;
    stroke: #778899;
}

.map-label-line {
    stroke: #6d8383;
    stroke-width: 1px;
}

.map-line-light {
    stroke: #d3d3d3;
    stroke-width: 1px;
}

.xy-font {
    font-family: Arial, sans-serif;
    fill: #2f4f4f;
    font-size: 18px;
}

.xy-title {
    font-size: 20px;
}

.xy-axis-label {
    font-size: 16px;
}

.xy-marker-label {
    font-size: 22px;
    font-weight: bold;
}

.xy-grid {
    stroke: #2f4f4f;
    stroke-width: 1;
    fill: none;
}

.xy-axis {
    stroke: #2f4f4f;
    stroke-width: 1;
    fill: none;
}

.dl-horizontal dt {
    float: left;
    width: 80px;
    clear: left;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: normal;
    color: #777;
}

.dl-horizontal dd {
    margin-left: 100px;
    color: #333;
    margin-bottom: 0;
}

.quake-list-icon {
    width: 100px;
    height: 125px;
}

.anchor {
    padding-top: 90px;
    visibility: hidden;
}

[class^="icon-"], [class*=" icon-"] {
    background-image: url("/assets/images/glyphicons-halflings.png");
    background-position: 14px 14px;
    background-repeat: no-repeat;
    display: inline-block;
    height: 14px;
    line-height: 14px;
    margin-top: 1px;
    vertical-align: text-top;
    width: 14px;
}
.icon-chevron-up {
    background-position: -288px -120px;
}
.icon-chevron-down {
    background-position: -313px -119px;
}

.icon-calendar{
    background-position:-192px -120px
}

.leaflet-control-attribution:hover {
    cursor: pointer;
}
.felt-report-table {
    margin-bottom: 0;
    white-space: nowrap;
}
.felt-report-table td {
    padding-bottom: 1px;
    padding-top: 1px;
}
.felt-report-table th {
    padding-bottom: 1px;
    padding-top: 3px;
}
.felt-report-table-count-column {
    text-align: right !important;
}

hr.section {
    margin-top: 0.5rem;
    border: 0;
    height: 1px;
    background: #373a3c;;
}

/* Reduced figure size for drums etc. */
.img-resized   {
    width:400px;
}

.quakeSvg   {
    cursor: pointer;
}

.alert-lead {
    background-color: #eeeeee;
    border-color: #dddddd;
}

.vabIDLabel  {
    text-transform: uppercase;
    padding-right: 1em;
}

.vabIDValue  {
    font-size: 1.2em;
    font-weight: bolder;
}

.vabValue   {
    font-size: 1.2em;
}

.vabTime   {
    font-size: 0.9em;
    color: #1f2021;
}

.user-logo {
     height: auto;
     width: 64px;
}

.news-image-list {
    width: 100%;
    max-height: 150px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    object-fit: cover;
}

.news-image-page {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    object-fit: cover;
}

.news-title-box{
    height: auto;
    margin-top: -50px;
    background-color: #eee;
}

.vab-box{
    height: auto;
}

@media(max-width: 768px) {
    .vab-box, .news-title-box{
        width: 100%;
    }
    .news-image-list {
        margin-bottom: 20px;
    }
}

@media(min-width: 768px) {
    .vab-box, .news-title-box{
        width: 60%;
    }
}

.markdown-body pre {
    padding: 10px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 3px;
}
.markdown-body code {
    padding: 5px;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27,31,35,0.05);
    color: #24292e;
    border-radius: 3px;
}

.markdown-body pre code {
    display: inline;
    max-width: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    line-height: inherit;
    word-wrap: normal;
    background-color: transparent;
    border: 0;
}

.markdown-body table, .markdown-body th, .markdown-body td {
    border: 1px solid;
    border-color: lightgray;
    padding: 5px;
}

.markdown-img-portrait{
    height:480px;
}
.markdown-img-landscape{
    height:auto;
}

.figure-video {
   display:block;
}

.box{
	width:12px;
	height:16px;
	display:inline-grid;
	padding-bottom: 2px;
}

.dropdown-toggle::after {
    border-top: .7em solid;
    border-right: .4em solid transparent;
    border-left: .4em solid transparent;
    vertical-align: middle;
}

.search-link    {
    width: 100%;
    margin-bottom: 0.5em;
    margin-top: -1em;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

svg[viewBox="0 0 500 623"], svg[viewBox="0 0 800 290"] {
    width: 100%;
}

.collapse-link::after  {
    font-family: FontAwesome;
    content: " \f106";
    vertical-align: top;
    border: none;
}

.expand-link::after  {
    font-family: FontAwesome;
    content: " \f107";
    vertical-align: top;
    border: none;
}

.badge-news {
    padding: 0.4em 1.0em;
    margin-bottom:5px;
    border-radius: 1rem;
    font-weight: 500;
}


@media only screen and (max-width: 400px) {
    .input-small    {
        max-width: 160px;
    }
}

.loaderContainer {
    display: grid;
    height: 100%;
    width: 100%;
}
.loaderLogo,
.loader {
    grid-area: 1/2;
}
.loaderLogo {
    height: 60%;
    width: 60%;
    margin: auto;
}
.loader {
    border: 12px solid white;
    border-radius: 50%;
    border-top: 1px solid #f3f3f3;
    border-right: 4px solid #f3f3f3;
    border-left: 2px solid white;
    border-bottom: 3px solid white;
    width: 100%;
    height: 100%;
    -webkit-animation: spin 1.2s linear infinite;
    animation: spin 1.2s linear infinite;
}
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*Station code input autocomplete feature*/
.autocomplete {
    position: relative;
    display: inline-block;
}
.autocomplete-container {
    position: absolute;
    background-color: #fff;
    z-index: 1000;
    border: 1px solid #d4d4d4;
}
.autocomplete-items {
    display: inline-block;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    width: 80px;
    vertical-align: top;
    background-color: #fff;
}
.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-right: 1px solid #d4d4d4;
    border-bottom: 1px solid #d4d4d4;
    z-index: 100;
    position: relative;
}
.autocomplete-items div:hover {
    background-color: #e9e9e9;
}
.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

input#code::-webkit-input-placeholder  {
    color: #ccc;
}

input#code:-moz-placeholder  {
    color: #ccc;
}

input#code::-moz-placeholder  {
    color: #ccc;
}

input:-ms-input-placeholder { /* Internet Explorer 10+ */
    color: #ccc;
}

/* SVG responsiveness workaround for Internet Explorer */
.svg-container  {
    height: 0;
    padding-top: 125%;
    position: relative;
}

.svg-container-140  {
    height: 0;
    padding-top: 140%;
    position: relative;
}

.svg-container > svg, .svg-container-140 > svg {
    position: absolute;
    top: 0;
    left: 0;
}

.font-size-reduced {
    font-size: 90%;
}

/* Override bootstrap colour settings */
.alert-info-box {
    background-color: #d9edf7 !important;
}

.alert-success  {
    color: #3c763d !important;
    background-color: #dff0d8 !important;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.form-control {
  color: #55595c;
}
.form-control:focus {
  color: rgba(0,0,0,0.75);
}
.felt.form-control::placeholder	{
    color: #8c8c8c;
}

/* Survey Monkey popup */
.smcx-modal {
    top: auto !important;
    left: auto !important;
    bottom: 0%;
    right: 0%;
}

/* customized check switch*/
.check-switch,
.check-switch active,
.check-switch :focus,
.check-switch :checked {
   border-color: #8D0020 !important;
   border-width: 2px;
}
.check-switch :checked {
    background-color: #0d6efd !important;
 }

/** for some reason the designer changed the primary color to dark grey */
.btn-primary {
  background-color:#8D0020;
  border-color: #8D0020;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color:#6d0000;
    border-color: #6d0000;
}

.btn:focus,.btn:active {
   outline: none !important;
   box-shadow: none;
}

.btn-info {
    padding-left: 30px;
    padding-right: 30px;
}

.sensor-img {
   width:12px;
   height:12px;
}

.cursor-pointer {
   cursor: pointer;
}
.jumbotron{
   padding:1rem;
   margin-top:1rem;
   margin-bottom:1rem;
   background-color: #e9ecef;
   border-radius: .3rem;
}

/** override bootstrap h2 style, to included in next bootstrap build */
h2 {
  margin-top: 15px !important;
}

.w-98 {
    width: 98%;
}

/* bootstrap v5 bug */
.table {
    --bs-table-accent-bg: transparent!important;
    border-color: #D8D8DA;
}

.table>:not(:last-child)>:last-child>* {
  border-bottom-color: inherit;
}

.table thead {
   text-transform: none;
}

.modal-header .close {
    background-color: transparent;
    border: 0;
    padding: 15px;
    margin: -1rem -1rem -1rem auto;
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

li .show {
   outline: none;
}

.popover-header {
   margin-top: 0px !important;
}

.dropdown-check{
  padding: .5rem;
  color:#fff;
}

#filter_form button{
  height: 43px;
  font-size: 18px;
}

#selectNews{
  max-width: 260px;
}

#filter_form .form-check-label{
 font-size: 18px;
}

#filter_form .input-small {
    height: 43px;
    font-size: 18px;
}

#newsOptions input[type="radio"] {
    position: absolute;
    clip: rect(0,0,0,0);
    pointer-events: none;
}

#newsOptions label{
 font-size: 18px;
 padding: 0.5em 0.5em;
}

/* ESI logo for full screen earthquake map */
#esi {
    background: url("../images/esi_logo_white.png");
    width: 110px;
    height: 42px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* START - Extra CSS for GeoNet header */
.searchInput, .searchInputBtn {
    height: 34px;
}
.searchInput {
    width: 200px; /* Fixed width required to ensure a smooth animation */
    color: #3C3D4A !important;
}
.searchInputBtn {
    background-color: #8D0020;
    width: 34px;
    padding: 0px;
}
.searchInputBtn>.fa-search {
    position: inherit !important;
}
.searchInputBtn.collapsed {
    background-color: transparent;
}
.form-control::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color:  #3C3D4A;
    opacity: 1; /* Firefox */
}
#mobile-search-item {
    background-color: #62636E;
}
.external-link::after {
    font-family:FontAwesome;
    content:"\f08e";
    font-size:12px;
    vertical-align:middle;
    padding: 0px 5px 0px 5px;
    display: inline-block;
    margin-bottom: 2px;
}
.external-link.inherit-color::after{
    color:inherit;
}
.dropdown-item.external-link:hover::after {
    color: #191919;
}
/* Bootstrap overrides - this should be changed in the main Bootstrap file at some point*/
.navbar .navbar-collapse .navbar-nav .nav-item .dropdown-menu .dropdown-item {
    padding-top: 8px;
    padding-bottom: 8px;
}
.dropdown-menu .dropdown-item:last-child {
    padding-bottom: 20px !important;
}
@media (min-width: 768px){
    .navbar-toggler {
        margin-top: 0px;
    }
}
@media (min-width: 992px) {
    .navbar .navbar-collapse .navbar-nav .nav-item a {
        margin-right: 10px;
    }
    .navbar .navbar-collapse .navbar-nav .nav-item:nth-last-child(2) a {
        margin-right: 0px;
    }
}
@media (min-width: 1200px) {
    .navbar .navbar-collapse .navbar-nav .nav-item a {
        margin-right: 30px;
    }
}
/* END */

/* START- Extra CSS for GeoNet footer */
.esi-logo {
    object-fit: contain;
    max-width: 180px;
    max-height: 68.7px;
    width: 100%;
    height: 100%
}
#footer .row {
    width: auto !important;
}
.footer {
    margin-top: 20px;
    padding: 20px 0 20px;
    border-top: 1px solid #e5e5e5;
}
/* END */

/* Override colours of Bootstrap carousel for lightbox */
.lightbox-carousel > .carousel-inner > .carousel-item > .ratio {
    background-color: white !important;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: brightness(0) saturate(100%) invert(15%) sepia(50%) saturate(3630%) hue-rotate(327deg) brightness(92%) contrast(122%);
    /* Calculated using this: https://isotropic.co/tool/hex-color-to-css-filter/
    First brightness & saturate icon to black, then the rest converts to #8D0020 */
}

/*container for pages to be embbeded as iframe */
.container-iframe{
   margin: 10px;
}

.no-bottom-border {
    border-bottom-color: transparent;
}

/* Felt/Shaking toggle - contains Bootstrap override */
.toggle-container {
    background-color: var(--bs-gray-200);
}
.toggle-container .btn-check:not(:checked):not(:hover) + label {
    border: 1px solid transparent;
    color: var(--bs-body-color);
}
