@font-face {
    font-family: 'DIN';
    src: url('../fonts/DINBold.eot');
    src: url('../fonts/DINBold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/DINBold.woff2') format('woff2'),
        url('../fonts/DINBold.woff') format('woff'),
        url('../fonts/DINBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'DIN';
    src: url('../fonts/DIN-Light.eot');
    src: url('../fonts/DIN-Light.eot?#iefix') format('embedded-opentype'),
        url('../fonts/DIN-Light.woff2') format('woff2'),
        url('../fonts/DIN-Light.woff') format('woff'),
        url('../fonts/DIN-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'DIN';
    src: url('../fonts/DIN-Medium.eot');
    src: url('../fonts/DIN-Medium.eot?#iefix') format('embedded-opentype'),
        url('../fonts/DIN-Medium.woff2') format('woff2'),
        url('../fonts/DIN-Medium.woff') format('woff'),
        url('../fonts/DIN-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

body {
    overflow: hidden;
    font-size: 18px;
    margin: 0;
    font-family: 'DIN';
    font-weight: 500;
    color: #262626;
    letter-spacing: 0.30px;
}

.full-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.nav-bar {
    position: sticky;
    background: #fff;
    width: 100%;
    left: 0;
    top: 0;
    margin: 0px;
    /* padding: 0px; */
    z-index: 9999;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    width: 100%;
    left: 0;
    top: 0;
    margin: 0px;
    padding: 0px;
}

.nav-item {
    padding: 0px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* .collapse-header {
    padding-right: 10px;
    position: sticky;
    color: #fff;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    cursor: pointer;
}

.collapse-header :hover {
    background-color: grey;
} */

.collapse-header {
  padding-right: 2px;
  position: sticky;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  background-color: #fffae6;
}

.collapse-header:hover {
  background-color: #f3eac2;
}

.arrow-img {
  transition: transform 0.2s ease;
  float: right;
  margin-left: auto;
}

.header-logo {
    padding-left: 5px;
}

.collapse-footer {
    padding-right: 2px;
    position: sticky;
    color: #fff;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    cursor: pointer;
}

.collapse-footer :hover {
    background-color: grey;
}

.arrow-img-footer {
  transition: transform 0.2s ease;
  /*margin-right: 2px;*/
}

/* .collapse {
    position: sticky;
    color: #fff;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    cursor: pointer;
}

.collapse :hover {
    background-color: grey;
} */

.collapse {
  cursor: pointer;
  padding: 6px;
  margin: 10px auto;
  border-radius: 6px;
  background-color: #F3F4F6; /* light gray */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
}

.collapse:hover {
  background-color: #E5E7EB;
}

.arrow-icon {
  display: block;
  transition: transform 0.2s ease;
}

.hide {
    display: none;
}

.divider {
    margin: 0;
    padding: 0;
    height: 5px;
    background-color: #093f61;
}

.main-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.layer-panel {
    width: auto;
    overflow: hidden;
    font-size: 1.2rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 10px 0;
    background-color: #fff;
    border-right: 1px solid #ddd;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);

    /* THIS IS THE CHANGE: Adds 10px of space between each button */
    gap: 2px;
}

.map-panel {
    flex: 2;
    overflow: hidden;
}

.container-one {
    display: flex;
    width: 100%;
    height: 70%;
    overflow: hidden;
}

.map {
    flex: 4;
    overflow: hidden;
    height: 100%;
}

.data {
    flex: 1;
    overflow-y: hidden;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.data::-webkit-scrollbar {
    display: none;
}

#data-table {
    font-size: 1.0rem;
}

.container-two {
    display: flex;
    width: 100%;
    height: 30%;
    overflow: hidden;
}

.plot {
    display: flex;
    flex-direction: column;
    flex: 4;
    border: 1px solid #000000;
    overflow: hidden;
}

.plot div {
    overflow: hidden;
}

.repo-stats {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: auto;
    background-color: #FAFFBF;
}

.repo-stats div {
    overflow: hidden;
    font-size: 1.0rem;
}

.repo-stats table {
    font-size: 1.0rem;
}

.repo-stats table td {
    text-align: left;
}

#date {
    font-size: 1rem;
}

h1 {
    font-size: 1.75rem;
}

.info-icon {
    /* font-size: 1.5rem; */
    width: 1.5rem;
}

.td-right {
    text-align: right;
}

.footer {
    position: sticky;
    background: #000000;
    width: 100%;
    left: 0;
    top: 0;
    margin: 0px;
    padding: 0px;
    z-index: 9999;
    bottom: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    background: #000000;
    align-items: center;
    width: 100%;
    left: 0;
    top: 0;
    margin: 0px;
    padding: 0px;
}

.social-icons {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
    margin-right: 20px;
}

.social-icons a {
    color: white;
    text-decoration: none;
}

.social-icons a svg {
    width: 12px;
    height: 12px;
    fill: white;
}

.hide-footer {
    display: none;
}

.footer-links {
    background-color: #fff;
    margin-right: 40px;
}

.dygraph-title {
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.3px;
}

#platform-info {
    width: 99.9%;
    height: 8%;
    background-color: #D3D3D3;
    border-bottom: 1px solid #000000;
    font-size: 1rem;
    font-weight: bold;
    overflow: hidden;
    vertical-align: middle;
    padding: 2px;
}

/* LAYER PANEL */
.image-btn {
    border: none;
    background: none;
    cursor: pointer;
    margin: 2px 0;
    padding: 0;
    transition: transform 0.2s ease;
}

.image-btn img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    box-shadow: 0 0 0 transparent;
    border: 2px solid transparent;
}

/* Circle for radios */
.radio img {
    /* border-radius: 50%; */
    border-radius: 6px;

}

/* Square for toggles */
.toggle img {
    border-radius: 6px;
}

.image-btn:hover img {
    transform: scale(1.1);
}

.selected img {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
    border: 2px solid #007bff;
}

.horizontal-divider {
    width: 75%;
    height: 1px;
    background-color: black;
    margin: 10px 0;
}

.gray-scale {
    filter: grayscale(1);
}

.progress-container {
    /* width: 10%; */
    background-color: #ddd;
    /* border-radius: 10px; */
    overflow: hidden;
    /* margin: auto; */
}

.progress-bar {
    height: 1rem;
    width: 0%;
    background-color: #4caf50;
    transition: width 1s linear;
}

.popup-container {
  max-height: 80vh;        /* Limits overall popup height */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px;
  font-family: 'DIN';
    src: url('../fonts_monitoring/DIN-Medium.eot');
    src: url('../fonts_monitoring/DIN-Medium.eot?#iefix') format('embedded-opentype'),
        url('../fonts_monitoring/DIN-Medium.woff2') format('woff2'),
        url('../fonts_monitoring/DIN-Medium.woff') format('woff'),
        url('../fonts_monitoring/DIN-Medium.ttf') format('truetype');
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.popup-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.close-btn {
  cursor: pointer;
  color: #666;
  font-size: 1.2em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
  color: #d00;
  transform: scale(1.1);
}

.popup-content {
  overflow-y: auto;
  padding-top: 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  max-height: calc(80vh - 50px); /* subtract header height for scrollable content */
}

#custom-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px 15px;
    z-index: 1002;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
}

#custom-popup .close-btn {
    float: right;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
}

#custom-popup2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    padding: 15px;
    z-index: 1003;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: auto;
    display: none;
    flex-direction: column;
}

#custom-popup2 .close-btn {
    float: right;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 3px;
}

#popup-content2 {
    max-height: 100%;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#info-popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    flex-direction: column;
}

#info-content .close-btn {
    float: right;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    align-self: flex-end;
    border-radius: 3px;
}

#info-content {
    font-size: 1rem;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    z-index: 2000;
    max-width: 1000px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

#slider-range {
    /* position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem; */
    width: 100%;
    z-index: 1001;
    background-color: transparent;
}

#time-slider-div {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
    width: auto;
    z-index: 1001;
    background-color: transparent;
}

#info-card {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: white;
    border-radius: 4px;
    z-index: 999;
}

.button {
    background-color: white;
    color: #008CBA;
    border: 2px solid #008CBA;
    border-radius: 2px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition-duration: 0.4s;
    cursor: pointer;
    margin-top: 1rem;
}

.button:hover {
    background-color: #008CBA;
    color: white;
}

/* .ui-slider .ui-slider-handle{
    width: 0.6em;
    height: 1.2em;
} */

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
    background: #007fff;
}

/* .ui-widget-content {
    background: transparent;
} */

.ui-slider-handle {
    position: relative;
}

.ui-slider .ui-slider-range {
    background-color: #6495ed;
}

.tooltip {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
}

.tooltip.offset {
    top: -3rem;
}

#information {
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.overlay-image {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 3rem;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#graphs {
    position: relative;
}

#graphs2 {
    position: relative;
}

@media (min-width: 300px) and (max-width: 480px) {
    #info-content {
        font-size: 0.5rem;
    }

    .image-btn img {
        width: 15px;
        height: 15px;
    }

    .horizontal-divider {
        margin: 3px 0;
    }

    .sidebar {
        width: 30px;
    }

    h1 {
        font-size: 0.7rem;
    }

    .info-icon {
        /* font-size: 0.5rem; */
        width: 0.525rem;
    }

    .repo-stats div {
        font-size: 0.5rem;
    }

    .repo-stats table {
        font-size: 0.5rem;
    }

    .progress-bar {
        height: 0.4rem;
    }

    #date {
        font-size: 0.4rem;
    }

    #data-table {
        font-size: 0.5rem;
    }

    .menumn li a {
        font-size: 0.3rem;
    }

    .layer-panel {
        font-size: 0.5rem;
    }

    body {
        overflow: auto;
    }

    .dygraph-title {
        font-size: 10px;
    }

    #platform-info {
        font-size: 10px;
    }

    .container-one {
        height: 60%;
    }

    .container-two {
        height: 40%;
    }

}

/* Medium screens (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    #info-content {
        font-size: 0.7rem;
    }

    .image-btn img {
        width: 20px;
        height: 20px;
    }

    .horizontal-divider {
        margin: 4px 0;
    }

    .sidebar {
        width: 40px;
    }

    h1 {
        font-size: 1rem;
    }

    .info-icon {
        /* font-size: 0.8rem; */
        width: 0.75rem;
    }

    .repo-stats div {
        font-size: 0.5rem;
    }

    .repo-stats table {
        font-size: 0.5rem;
    }

    .progress-bar {
        height: 0.4rem;
    }

    #date {
        font-size: 0.4rem;
    }

    #data-table {
        font-size: 0.5rem;
    }

    .menumn li a {
        font-size: 0.4rem;
    }

    .layer-panel {
        font-size: 0.5rem;
    }

    .dygraph-title {
        font-size: 10px;
    }

    #platform-info {
        font-size: 10px;
    }

    .container-one {
        height: 60%;
    }

    .container-two {
        height: 40%;
    }
}

/* Larger screens (769px to 1920px) */
@media (min-width: 769px) and (max-width: 1920px) {
    #info-content {
        font-size: 0.7rem;
    }

    .image-btn img {
        width: 25px;
        height: 25px;
    }

    .horizontal-divider {
        margin: 5px 0;
    }

    .sidebar {
        width: 50px;
    }


    h1 {
        font-size: 1rem;
    }

    .info-icon {
        /* font-size: 0.8rem; */
        width: 0.75rem;
    }

    .repo-stats div {
        font-size: 0.7rem;
    }

    .repo-stats table {
        font-size: 0.7rem;
    }

    .progress-bar {
        height: 0.6rem;
    }

    #date {
        font-size: 0.6rem;
    }

    #data-table {
        font-size: 0.7rem;
    }

    .menumn li a {
        font-size: 0.6rem;
    }

    .header-logo {
        width: 70%;
    }

    .footer-logo {
        width: 12.5%;
    }

    .arrow-img {
        height: 15px;
        width: 15px;
    }

    .layer-panel {
        font-size: 0.7rem;
    }

    .map {
        flex: 2.25;
    }

    .data {
        flex: 1;
    }

    .plot {
        flex: 2.25;
    }

    .repo-stats {
        flex: 1;
    }

    .container-one {
        height: 65%;
    }

    .container-two {
        height: 35%;
    }

    .dygraph-title {
        font-size: 12px;
    }

    #platform-info {
        font-size: 12px;
    }

}

@media (min-aspect-ratio: 5/2) {
    #graphs {
        display: none;
    }

    #graphs2 {
        display: block;
    }
}