@font-face {
    font-family: 'PT Sans Narrow';
    src: url('../fonts/ptn57f.woff2') format('woff2'), url('../fonts/ptn57f.woff') format('woff'), url('../fonts/PTN57F.ttf') format('truetype');
}

@font-face {
    font-family: 'PT Sans Narrow';
    src: url('../fonts/ptn77f.woff2') format('woff2'), url('../fonts/ptn77f.woff') format('woff'), url('../fonts/PTN77F.ttf') format('truetype');
    font-weight: bold;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'PT Sans Narrow', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
    overflow: hidden;
    padding: 0;
}

#zoomLevelDiv {

    bottom: 12px;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    right: 12px;
    z-index: 99999;
}

.header {
    align-items: center;
    color: black;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 44px;
    justify-content: space-between;
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 999;
}

.header-branding {
    align-items: center;
    color: #0080cc;
    display: flex;
    font-size: 21px;
    font-weight: bold;
    margin-left: 10px;
}

.header-logo {
    height: 26px;
    margin-right: 8px;
    width: 145px;
}


.header-info {
    color: #062b42;
    font-size: 21px;
    font-weight: bold;
    margin-right: 8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.header-info div {
    font-size: .675em;
    font-weight: normal;
}



.container-plans {
    background-color: white;
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    height: calc(100vh - 56px);
    margin-top: 48px;
}

.hidden-element {
    display: none !important;
    overflow: hidden;
    visibility: collapse;
    height: 0;
}

.hidden-content  * {
    display: none;
    overflow: hidden;
    visibility: collapse;
}

.container-details {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    width: 480px;
    /*background: #ffff8080;*/
}

.container-maps {
    background-color: white;
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    gap: 6px;
    height: inherit;
    margin: 2px 6px 6px 6px;
}

.container-maps-full {
    width: 100%;
}

.container-map {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    position: relative;
    /*background-color: pink;*/
    width: 50%;
}


.container-map-full {
    flex-grow: 1;
    width: 100%;
}

.container-map-hidden {
    display: none;
}

.spinner {
    animation: rotation .6s infinite linear;
    border-bottom: 24px solid rgba(0, 128, 204, .15);
    border-left: 24px solid rgba(0, 128, 204, .15);
    border-radius: 100%;
    border-right: 24px solid rgba(0, 128, 204, .15);
    border-top: 24px solid rgba(0, 128, 204, .8);
    height: 96px;
    position: absolute;
    visibility: hidden;
    width: 96px;
    z-index: 5;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359.9deg);
    }
}

.map {
    border-radius: 8px;
    display: flex;
    flex-grow: 1;
    width: 100%;
}

.map-label {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 12px 12px 0 0;
    bottom: 0;
    color: white;
    display: flex;
    font-size: .875em;
    justify-content: center;
    left: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: fit-content;
    padding: 2px 6px 2px 6px;
    position: absolute;
    right: 0;
    z-index: 9999;
    background-blend-mode: multiply;
}



@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


.mapboxgl-popup {
    animation: fadein 0.2s;
}

.mapboxgl-popup-content {
    border: white;
    border-radius: 12px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, .5) !important;
}

.mapboxgl-popup-content p.title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 0.3em;
    margin-top: 0.5em;
    /*border-bottom: solid black thin;*/
}

.mapboxgl-popup-content p {
    font-width: bolder;
    margin-bottom: 0em;
    margin-top: 0.3em;
}

.mapboxgl-popup-content p > span.subtitle {
    color: #5d5d5d;
    font-size: 1.0em;
}

.mapboxgl-popup-content p > span.content {
    font-weight: 600;
}

.mapboxgl-popup-close-button {
    color: #c3c3c3;
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.mapboxgl-popup-close-button:hover {
    background-color: white;
    border-top-right-radius: 12px;
    color: #999;
}

.details-menu {
    align-items: center;
    display: flex;
    height: fit-content;
    justify-content: center;
    width: 100%;
    user-select: none;
}

.details-button, .header-info-button {
    align-items: center;
    background-color: #fffffa;
    border: solid 0.5px #1a7fc2;
    border-radius: 8px;
    color: #1a7fc2;
    cursor: pointer;
    display: flex;
    font-size: .875em;
    height: 24px !important;
    margin: 0 6px 0 6px;
    padding: 6px;
    text-transform: uppercase;
    width: fit-content;
    white-space: nowrap;
}

.details-button img, .header-info-button img {
    height: 24px;
    margin-right: 4px;
    width: 24px;
}

.details-button:hover, .header-info-button:hover {
    background-color: #f2faff;
}

.details-button-selected, .header-info-button-selected {
    background-color: #fff296;
}

#stateInfo, #districtsInfo, #countiesInfo {
    display: flex;
    flex-direction: column;
    height: inherit;
}

.details-info, .counties-details-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    margin-top: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.details-hidden {
    display: none !important;
    overflow: hidden;
    visibility: collapse;
}

.details-info > div {
    display: flex;
    flex-direction: column;
    height: fit-content;
    justify-content: center;
    width: calc(100% - 48px);
}

.details-info h2, .details-district-county h2 {
    display: flex;
    text-transform: uppercase;
    /*align-self: center;*/
    margin-top: 0;
}

.details-district-county {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: scroll;
    overflow-x: hidden;
    width: calc(100% - 48px);
    padding: 24px 24px 12px 24px;
}

.details-header {
    display: flex;
    align-items: center;
}

.details-header-text {
    text-transform: uppercase;
    margin: 12px;
    font-size: 1.75em;
    font-weight: bold;
    color: #0080cc;
}

.cameo-image {
    object-fit: cover;
    border-radius: 50%;
    height: 128px;
    width: 128px;
}

.cameo-image-sm {
    object-fit: cover;
    border-radius: 50%;
    height: 32px;
    width: 32px;
}

.details-district-county h3, .details-district-county h4, #stateInfoSections h3 {
    color: #0080cc;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.details-district-county h4 {
    margin: 12px 0 6px 0;

    text-transform: uppercase;
}

.scrollable-table {
    border-collapse: collapse;
    cursor: default;
    display: block;
    height: auto;
    margin-bottom: 7%;
    width: inherit;
}

#incumbentsTable {
    height: 600px;
}

#vapCvapTable {
    height: 400px;
}

#incumbentsTable,
#vapCvapTable {
    overflow-x: hidden;
    overflow-y: auto;
}

.scrollable-table thead tr th {
    border-bottom: 1px solid #8c8c8c;
    color: #626262;
    font-weight: 500;
    padding: 6px 6px;
    text-align: center;
    text-transform: uppercase;
}

.scrollable-table tbody tr td {
    color: #666666;
    padding: 6px 6px;
    text-align: center;
    transition: background-color 1s ease;
}

/* Add a light grey border to the bottom of each table row*/
.scrollable-table tbody tr {
    border-bottom: 1px solid #dadada
}

/* Make the even rows of the table light grey*/
.scrollable-table tbody tr:nth-of-type(even) {
    background-color: #f6f6f6;
}

/* Change the background color of the row to a darker grey on mouse hover*/
.scrollable-table tbody tr:hover {
    background-color: #e3e3e3;
}

/* Add a dark grey border to the bottom of the table */
.scrollable-table tbody tr:last-of-type {
    border-bottom: 1px solid #8c8c8c;
}

/* Make the header row fixed */
.scrollable-table .fixed-table-head {
    background-color: #f0f2f2;
    display: table-header-group;
    position: sticky;
    top: 0;
}

.scrollable-table thead th:first-child {
    border-radius: 5px 0 0 0px;
}

.scrollable-table thead th:last-child {
    border-radius: 0 5px 0 0;
}

.scrollable-table .th-sort-asc::after {
    content: "\25b4";
    font-size: 1em;
}

.scrollable-table .th-sort-desc::after {
    content: "\25be";
}

.scrollable-table .th-sort-asc::after,
.scrollable-table .th-sort-desc::after {
    margin-left: 8px;
}

.scrollable-table .th-sort-asc
.scrollable-table .th-sort-desc {
    background: rgb(0, 0, 0, 0.1);
}

.scrollable-table tbody th {
    color: #282828;
    font-size: 0.875em;
    font-weight: 500;
    text-transform: uppercase;
}

.scrollable-table tbody td, th {
    padding: 2px 4px 2px 4px;
    text-align: center;
}

.details-table-title {
    color: black;
    font-weight: bold;
}

.details-pane {
    padding: 12px;
    width: fit-content;
}

.scrollable-table thead th:hover {
    color: #000000;
    cursor: pointer;
}

.tooltip {
    position: relative;
}

.tooltip .tooltiptext {
    background-color: #000000c9;
    border-radius: 6px;
    bottom: 125%;
    color: #fff;
    font-size: small;
    left: 50%;
    max-width: 150px;
    padding: 5px 5px;
    position: absolute;
    text-align: center;
    text-transform: none;
    transform: translateX(-50%);
    visibility: hidden;
    width: max-content;
    z-index: 9999;
}

.tooltip .tooltiptext::after {
    border-color: #000000c9 transparent transparent transparent;
    border-style: solid;
    border-width: 5px;
    content: "";
    left: 50%;
    margin-left: -5px;
    position: absolute;
    top: 100%;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.select-wrap {
    background-color: #fffffa;
    border: solid 0.5px #c3c3c3;
    border-radius: 8px;
    box-shadow: 2px 2px 8px 0px #62626254;
    color: #1a7fc2;
    display: flex;
    flex-direction: column;
    justify-content: start;
    margin: 6px 5px 6px 0;
    max-width: 175px;
    padding: 0 5px 5px;
    width: fit-content;
}

.select-wrap label {
    font-size: .625em;
    margin: 4px;
    text-align: left;
    text-transform: uppercase;
}

.select-wrap:hover,
.select-wrap:hover select {
    background-color: #f2faff;
}

.container-details select {
    background-color: #fffffa;
    border: 0px;
    color: #626262;
    font-size: 0.875em;
    padding-top: 5px;
}

.container-select {
    align-items: center;
    color: #626262;
    display: flex;
    gap: 5px;
}

.container-select p {
    color: #626262;
    font-size: 1em;
}


/* Notifications*/

.notificationBox {
    background: rgba(48, 133, 192, 1);
    color: white;
    display: flex;
    justify-content: center;
    left: 0;
    line-height: 1.25;
    opacity: 0;
    position: fixed;
    top: 50%;
    transform: scale(1, 0);
    transform-origin: center;
    visibility: collapse;
    width: 100%;
    z-index: 999999;
}

.notificationBox > div {
    margin: 1em 0 1em 0;
    max-width: calc(100% - 2em);
    text-align: left;

}

.notificationError {
    background: #ff4b00;
}

#introInfo, #authTimeoutInfo {
    align-items: center;
    display: flex;
    height: 100vh;
    justify-content: center;
    position: absolute;
    width: 100vw;
    z-index: 999999;
    background-color: #00000080;
    visibility: hidden;
    backdrop-filter: blur(2px);
}

#introInfo > div, #authTimeoutInfo > div {

    backdrop-filter: blur(10px);
    background-color: rgba(232, 248, 255, 0.75);
    box-shadow: 12px 12px 16px rgba(0, 0, 0, .125);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    max-width: 720px;
    padding: 36px;
    justify-content: left;
    margin: 24px;
}

#introInfo h2, #authTimeoutInfo h2 {
    color: black;
    margin: 12px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.625);
}

#introInfo p, #authTimeoutInfo p {
    margin: 8px;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.38);
}

#introInfo li {margin-bottom: 6px;}

.btn-big {
    background-color: #0080cc;
    border-radius: 16px;
    color: white;
    font-weight: bold;
    font-size: 1.25em;
    border: none;
    padding: 8px 16px 8px 16px;
    cursor: pointer;
}


.icon-close-large {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
}

.display-item {
    visibility: visible !important;
}

#districtsMenu li {
    direction: rtl;
    min-width: 72px;
    padding-right: 18px;
}

a {
    color: #0080cc;
}

a:hover {
    color: #80c0e6;
}

.header-info-districts {
    font-weight: normal;
}

.header-info-dem {
    color: #0080ff;
}

.header-info-rep {
    color: #dd0000;
}

.header-info-ind {
    color: #bbb;
}

.edit-button {
    align-items: center;
    background-color: #fffffa;
    border: solid 0.5px #1a7fc2;
    border-radius: 8px;
    color: #1a7fc2;
    cursor: pointer;
    display: inline-flex;
    font-size: .875em;
    height: 24px !important;
    margin: 0 0 0 8px;
    padding: 4px;
    text-transform: uppercase;
    width: fit-content;
    white-space: nowrap;
}

.edit-button:hover {
    background-color: var(--menu-rollover-color);
}

.content-dirty {

    background-color: #ff640048;
}

.hidden-element {
    display: none !important;
    overflow: hidden;
    visibility: collapse;
    height: 0;
}

.icon-edit {

    width: 24px;
    height: 24px;
}

h1, h2, h3, h4 {
    display: inline-flex;
    align-items: center;
}