@font-face {
    font-family: "Adelphi Pe Variable New";
    /* Give your font a name */
    src: url("./fonts/Adelphi-PE-Variable-Text-Thin.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}


html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;

    margin: 0;
    font-family: "Adelphi Pe Variable New", Sans-serif !important;
}

h1,
h2,
h3 {
    font-family: "Adelphi Pe Variable New", Sans-serif !important;
}



#container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#viewDiv {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.fullscreenBtn {
    position: absolute;
    top: 82px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sidePanel {

    width: 340px;
    background: #f4f4f4;
    overflow-y: auto;
    /* border-right: 1px solid #ccc; */
    padding: 10px;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 4;
    min-height: 300px;
    max-height: 92vh;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2)
}



.accordion {
    cursor: pointer;
    border: none;
    text-align: left;
    font-size: 15px;
}

.layer-item {
    margin: 5px 0;
    cursor: pointer;
    color: #0079c1;
}

.layer-item:hover {
    text-decoration: underline;
}



.esri-ui-top-left {
    left: 375px !important;
    flex-flow: row !important;
    gap: 4px;
}

.esri-attribution {
    display: none;
}


.esri-legend__service {
    padding: 0px;
    background-color: transparent;
}

.esri-widget {
    padding: 0px;
    background-color: transparent;
}

#layerList {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion__content {
    font-family: "Inter", Sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
}

.accordion__content ul {
    padding: 0px;
    margin: 0px;
    list-style: none;
    cursor: default;
}

#popup {
    display: none;
    background: white;
    padding: 12px;
    max-width: 400px;
    max-height: 300px;
    z-index: 1;
    pointer-events: auto;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
    text-align: left;
    position: absolute;
}


.popup-content,
.popup-content a {
    font-size: 13px;
    color: #161B1D;
    line-height: 20px;
}

.popup-content a {
    text-decoration: underline;
}

.layer_item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: left;
    margin-bottom: 8px;
    cursor: default;
}

.layer_row {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: left;
}

.layer_item .layer-symbol {
    order: -1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    display: flex;
    width: 32px;
    height: 32px;
    /* background-color: white;
    filter: drop-shadow(3px 0px 3px rgba(0, 0, 0, 0.3));
    border-radius: 6px;  */
    transition: all 0.3s ease;
    /* smooth transition */
}

.layer_item .layer-symbol:hover {
    transform: scale(1.1);
    /* background-color: #f0f0f0; 
    filter: drop-shadow(4px 2px 6px rgba(0, 0, 0, 0.4));  */
}

.layer_item .layer-symbol img,
.layer_item .legend-symbol img {
    width: 100%;
    max-height: 32px;
    object-fit: contain;
}

.layer_item .layer_title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: none;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: left;
    cursor: pointer;
}

.layer_item .layer_title.chevron_exists {
    gap: 8px;
}

.layer_item .layer_title.chevron_exists .layer-symbol {
    margin-top: 1px;
    width: initial !important;
    height: initial !important;
}

.legend-symbols {
    width: 100%;
    margin-left: 20px;
    flex-direction: column;
    gap: 8px;
    display: none;
}

.legend-symbols.show {
    display: flex;
}

.legend-symbols .legend-symbol {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 12px;
}

.content-header {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 12px;
}

.content-header img {
    height: 32px;
    object-fit: contain;
    width: 100%;
}

calcite-action-bar {
    display: none;
}

.esri-popup__header-title {
    font-size: 18px !important;
    font-weight: bold !important;
    background-color: #ff5722 !important;
}

#loader {
    position: absolute;
    background-color: white;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 9999;
    height: 110vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loader .loader_content {
    display: flex;
    ;
    flex-direction: column;
    align-items: center;
    justify-content: left;
}

#loader .loader_content span {
    font-size: 12px;
}

.esri-features__container:not(:empty) {
    padding: 0px;
}



.esri-feature__content-node .popup-header {
    width: 100%;
    height: 40px;
    background-color: #415464;
}


.hide {
    display: none;
    visibility: hidden;
    height: 0px;
    font-size: 0px;

}

.show {
    display: block !important;
}

.noMarg {
    margin: 0px !important;
}

.label_toggle img {
    position: relative;
    top: 2px;
    /* width: 13px; */
    height: 13px;
    object-fit: contain;
}

/*------------Accordion -------------------------*/

.accordion__item {
    margin: 5px auto;
}

.accordion__item .accordion__title {
    position: relative;
    display: flex;
    gap: 6px;
    flex-direction: row;
    padding: 13px 16px;
    margin-bottom: 2px;
    color: white;
    font-size: 16px;
    text-decoration: none;
    background-color: #415464;
    border-radius: 3px;
    -webkit-transition: background-color 0.2s;
    transition: background-color 0.2s;
    cursor: default;
    align-items: center;
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    cursor: pointer;
}

.accordion__item .accordion__title:hover {
    transition: all 0.5s ease-out;
}

.accordion__title.visible {
    background-color: #405464;
}


.accordion__title.notvisible {
    background-color: #A3B8C9;
}


.accordion__title.infrastructure.visible {
    background-color: #42C3F1;
}

.accordion__title.infrastructure.notvisible {
    background-color: #D0F0FB;
}


.accordion__title.jurisdictions.visible {
    background-color: #0AADAB;
}

.accordion__title.facilities.visible {
    background-color: #3C91AF;
}

.accordion__title.roads.visible {
    background-color: #C45F31;
}

.accordion__title.power.visible {
    background-color: #CE9B0D;
}

.accordion__title.pipelines.visible {
    background-color: #767676;
}

.accordion__title.sequestration.visible {
    background-color: #344451;
}


.accordion__item .accordion__title .accordion__arrow {
    position: absolute;
    top: 13px;
    right: 10px;
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    text-align: center;
    color: #fff;
    line-height: 30px;
    font-size: 20px;
    font-weight: 700;
    margin-right: 5px;
    background-color: #c9c9c9;
    border-radius: 50%;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.accordion__item .accordion__title .accordion__title-text {
    flex: 1;
    /* takes up remaining space */
}

.fa-eye,
.fa-eye-slash,
.fa-bell,
.fa-bell-slash,
.fa-tag,
.fa-tag-slash,
.fa-chevron-right,
.fa-chevron-down {
    font-size: 12px;
}

.accordion-layer-toggle,
.sub-layer-toggle,
.symbol-layer-toggle {
    margin-left: auto;
    cursor: pointer;
    /* pushes eye to far right */
}

.accordion__item .accordion__rotate {
    transform: rotate(225deg);
}

.accordion__item .accordion__content {
    padding: 8px 20px;
    margin-bottom: 2px;
    font-size: 14px;
    display: none;
}

.accordion__item .accordion__arrow-item {
    font-weight: 700;
}

.esri-widget--button {
    width: 40px !important;
    /* default is 32px */
    height: 40px !important;
    font-size: 18px !important;

}

/*-------------------------------------*/

/*-------------- Modal ---------------------*/

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black with opacity */
}

/* Modal content */
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 4px;
    width: 400px;
    max-width: 90%;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content .content {
    font-size: 14px;
}

.modal-content h2 {
    font-size: 24px;
    color: #405464;
}

#btnHowTo {
    border: 1px solid transparent !important;
}

/* .button_actions {
    position: absolute;
    top: 129px;
    right: 15px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button_actions button {
    width: 100%;
    height: 100%;
    background-color: white;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    color: #151515;

} 

.button_actions button:hover {

    background-color: rgb(243, 243, 243);
}
*/

/* Close button */
.modal-close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*-------------------------------------*/

.ui-tooltip {
    /* padding: 6px;
    background-color: #cccccc;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    box-shadow: none !important; */
    font-family: "Inter", Sans-serif;
    font-size: 12px;
    background: #28282B;
    color: #FFF;
    padding: 6px 6px;
    border-radius: 4px;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2)
}

#tooltip {
    position: absolute;
    background: #FFF;
    color: #000;
    padding: 18px 25px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    display: none;
    z-index: 9999;
    max-width: 300px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2)
}

.mobile_header {
    display: none;
}

.burger {
    cursor: pointer;
    height: 24px;

}

.accordion__content {
    text-align: left;
    word-wrap: break-word;
    word-break: break-word;
}

.layer_title {
    white-space: initial !important;
}

.layer_title span {
    max-width: 300px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .esri-ui-bottom-right {
        flex-flow: column !important;
        gap: 8px;
        z-index: 2;
    }

    .esri-ui-inner-container {
        inset: 15px 15px 58px !important;
    }

    #sidePanel {
        top: 0px;
        left: -1000px;
        transition: 0.3s;
        width: 95vw;
    }

    .mobile_header {
        display: flex;
        width: 100%;
        background-color: white;
        align-items: center;
        justify-content: left;
        padding: 10px 14px;
        overflow: hidden;
        box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 5px 0px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px;
        border: 1px solid transparent;
        position: relative;
        z-index: 9;
        /* position: absolute;
        top: 0px;
        left: 0px; */
    }

    .burger img {
        height: 100%;
        object-fit: contain;
        opacity: 0.6;
    }

    #sidePanel.active {
        left: 0;
    }

    .layer_title {
        white-space: initial !important;
    }

    .layer_title span {
        max-width: 200px !important;
    }
}