#home {
    background: url(seattle.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#screen {
    background-color: #ffffff;
    opacity: 0.85;
}

#homeheader, .homeheader {
    color: #0a0000;
}

#report {
    margin-top: -15px;
    font-size: medium;
}

#smallfont {
    font-size: smaller;
}

#growthpercent {
    background-color: #f7f1c3;
    border: #f7f1c3;
}
#growthpercent:hover {
    background-color: #d6d1ab;
    border: #d6d1ab;
}

#bankpriorityrow {
    border-top: #050505;
    border-bottom: #050505;
}

#bankdetailheader {
    font: "Microsoft YaHei UI";
    font-size: xx-large;
    color: white;
    padding: 25px;
}

#bankheader {
    background-color: #343a40;
    border: #343a40;
    font: "Microsoft YaHei UI";
    color: white;
}

.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

tr:hover {
    background-color: #d9ddd9;
    border: #d9ddd9;
}

#advancedsearch {
    word-wrap: break-word;
    overflow-wrap:break-word;
    position: absolute;
    bottom: 0;
}

/* Geography cards and flags */
.geo-card { color: inherit; text-decoration: none; }
.geo-card:hover, .geo-card:focus { color: inherit; text-decoration: none; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.geo-flag { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #f8f9fa; }

/* Simple horizontal bar chart (no JavaScript) */
.bar-chart .bar-row { display: flex; align-items: center; margin-bottom: .4rem; }
.bar-chart .bar-label { flex: 0 0 35%; padding-right: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.bar-chart .bar-track { flex: 1 1 auto; background: #e9ecef; height: 1.1rem; border-radius: .2rem; }
.bar-chart .bar-fill { background: #343a40; height: 100%; min-width: 2px; border-radius: .2rem; }
.bar-chart .bar-value { flex: 0 0 9.5rem; text-align: right; padding-left: .75rem; font-size: .9rem; white-space: nowrap; }
@media (max-width: 576px) {
    .bar-chart .bar-row { flex-wrap: wrap; }
    .bar-chart .bar-label { flex-basis: 100%; }
    .bar-chart .bar-value { flex-basis: 7.5rem; }
}

/* Narrow viewports: a nested .container plus two p-5 pads squeezed body
   text to about 138px at 390px wide, and wide tables or nowrap buttons
   scrolled the whole page sideways. */
@media (max-width: 575.98px) {
    main.container .container {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .home-search {
        /* .p-5 uses !important, so these must too. */
        padding: 1rem 0 !important;
    }
    .overlay {
        padding: 0.5rem 0.25rem !important;
    }
    h1.display-4 {
        font-size: 2.1rem;
    }
    .btn-link.reducefontsize {
        white-space: normal !important;
    }
}

/* Tables scroll inside their own container instead of widening the page. */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
