/* CSS: Style the modal */
.ursa-logo {
  width: 12vw;
  max-width: 65px;
  min-width: 45px;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: pointer; /* Indicate the logo is clickable */
}

/* Media query for smaller screens (e.g., mobile) */
@media screen and (max-width: 600px) {
  .ursa-logo {
    width: 20vw;
    max-width: 100px;
  }
}

/* Media query for larger screens (e.g., desktop) */
@media screen and (min-width: 1200px) {
  .ursa-logo {
    max-width: 65px;
  }
}
.ursa-logo2 {
  width: 13vw;
  max-width: 75px;
  min-width: 55px;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: pointer; /* Indicate the logo is clickable */
}

/* Media query for smaller screens (e.g., mobile) */
@media screen and (max-width: 600px) {
  .ursa-logo2 {
    width: 20vw;
    max-width: 100px;
  }
}

/* Media query for larger screens (e.g., desktop) */
@media screen and (min-width: 1200px) {
  .ursa-logo2 {
    max-width: 75px;
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; /* Full viewport coverage */
  top: 0; /* Full viewport coverage */
  width: 100%; /* Cover entire viewport width */
  height: 100%; /* Cover entire viewport height */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  overflow: auto; /* Allow scrolling if content overflows */
}

.modal-logo {
  width: 15vw; /* Scale logo with viewport width */
  max-width: 120px; /* Cap logo size */
  min-width: 80px; /* Minimum logo size */
  height: auto;
  display: block;
  margin: 0 auto 1rem; /* Center logo, 1rem bottom margin */
}

.modal-content {
  background-color: white;
  padding: 1.5rem; /* Compact padding */
  border-radius: 8px;
  width: 90%; /* Use most of available width */
  max-width: 600px; /* Max width for larger screens */
  min-width: 280px; /* Min width for small screens */
  position: absolute; /* Position relative to .modal */
  left: 50px; /* Match modal's intended offset */
  top: 50px; /* Match modal's intended offset */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  font-size: 1rem;
  max-height: calc(100vh - 150px); /* Fit within viewport minus margins and padding */
  overflow-y: auto; /* Scroll content if it overflows vertically */
}
.modal-content h2 {
  font-size: 1.3rem; /* Smaller than default h2 for a compact look */
  font-family: 'Lato', sans-serif; /* Match the select menu's font or choose another */
  font-weight: 700; /* Bold for emphasis */
  color: #333; /* Dark gray for readability */
  text-align: center; /* Center the heading */
  margin: 0 0 1rem; /* Spacing below the heading */
}
/* Media query for smaller screens (e.g., mobile) */
@media screen and (max-width: 600px) {
  .modal {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .modal-content {
    padding: 1rem;
    width: 95%;
    min-width: 250px;
    left: 20px; /* Smaller margin for mobile */
    top: 20px;
    max-height: calc(100vh - 80px); /* Adjust for smaller margins */
  }

  .modal-logo {
    width: 20vw;
    max-width: 100px;
  }

  .modal-content h2 {
    font-size: 1.1rem;
  }

  .modal-content p,
  .modal-content ul li {
    font-size: 0.85rem;
  }
}

/* Media query for larger screens (e.g., desktop) */
@media screen and (min-width: 1200px) {
  .modal-content {
    max-width: 700px;
  }

  .modal-logo {
    max-width: 150px;
  }
}

.close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.close:hover {
  color: #000;
}


        .overlay {
            display: none;
            position: absolute;
            background: white;
            border: 1px solid #ccc;
            padding: 15px;
            width:700px;
            max-width: 600px;
            min-height:500px;
            max-height: 600px;
            overflow-y: auto;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            z-index: 99999;
            font-size: 14px;
            
            font-family: 'Courier New', Courier, monospace; /* Mimics Notepad's typical font */
        }

        .overlay pre {
            margin: 0;
            white-space: pre-wrap; /* Ensures text wraps while preserving spaces */
            word-wrap: break-word; /* Breaks long words if needed */
        }

        .backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.2);
            z-index: 999;
        }

        .button-container {
            position: absolute;
            margin: 0px;
        }
            .copy-button {
        position: sticky;
        bottom: 0px;
        right: 10px;
        float: right;
        padding: 8px 16px;
        font-size: 12px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .copy-button:hover {
        background-color: #0056b3;
    }

    .copy-button.copied::after {
        content: "Copied!";
        position: absolute;
        bottom: 40px;
        right: 10px;
        background: #28a745;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 10px;
    } 
#gfsEnsembleImgs img {
    
  display: block;


}
#gfsEnsembleImgs {
  z-index: 12999; /* Adjust z-index as needed */
}
.hiddenEnsb {
  display: none;
}
@media screen and (max-width: 1920px) and (max-height: 1080px) {


  #gefsShowBtn,#showOverlay {

    margin-top: -20px;
  } 
  .slidecontainer {

    margin-top: -10px;
  }
  .controls {

    margin-top: -23px;
  }
  .modelSelectors {

    margin-top: -30px;
  }  
}


@media screen and (max-width: 1920px) and (max-height: 1200px) {

  body {

    font-size:100%;
  }
  #gefsShowBtn,#showOverlay {

    margin-top: -20px;
  }
  .slidecontainer {

    margin-top: -10px;
  }
  .controls {

    margin-top: -23px;
  }
  .modelSelectors {

    margin-top: -30px;
  }  
}


* {
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    
}
    .loading-overlay {
      position: absolute;
      top: 85px;
      left: 1075px;
      width: 680px;
      height: 755px;
      background-color: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center;
      align-items: center;
      z-index:2000;
    }
    .loading-message {
      color: #fff;
      font-size: 24px;
    }
.updateBox2{
    -webkit-tap-highlight-color: transparent;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    color: 'black';
    
}
.updateBox{
    -webkit-tap-highlight-color: transparent;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    color: 'black';
}
.AN {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.AP {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}            
#gfsval{
  width:400px
}
#obsval{
  width:330px
}
 .rangeslider,
.rangeslider__fill {
  display: block;
  -moz-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3);
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

.rangeslider {
  background: #e6e6e6;
  position: relative;
  z-index:1000;
}

.rangeslider--horizontal {
  margin-top:0px;
  height: 20px;
  margin-left: 20px;
  width: 80%;
}

.rangeslider--vertical {
  width: 30px;
  min-height: 150px;
  max-height: 100%;
}
.rangeslider--disabled {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
  opacity: 0.4;
}
.rangeslider__fill {
  background: 	#FF0000;
  position: absolute;
}
.rangeslider--horizontal .rangeslider__fill {
  top: 0;
  height: 100%;
}
.rangeslider--vertical .rangeslider__fill {
  bottom: 0;
  width: 100%;
}
.rangeslider__handle {
  margin-left: 0px;  
  background: white;
  border: 1px solid #ccc;
  cursor: pointer;
  display: inline-block;
  width: 100px;
  height: 60px;
  position: absolute;
  background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwLjAiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMC4xIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g');
  background-size: 100%;
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(0, 0, 0, 0.1)));
  background-image: -moz-linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.1));
  background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.1));
  background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.1));
  -moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.rangeslider__handle:after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjEzIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIiBzdG9wLW9wYWNpdHk9IjAuMCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
  background-size: 100%;
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(0, 0, 0, 0.13)), color-stop(100%, rgba(255, 255, 255, 0)));
  background-image: -moz-linear-gradient(rgba(0, 0, 0, 0.13), rgba(255, 255, 255, 0));
  background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0.13), rgba(255, 255, 255, 0));
  background-image: linear-gradient(rgba(0, 0, 0, 0.13), rgba(255, 255, 255, 0));
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.rangeslider__handle:active, .rangeslider--active .rangeslider__handle {
  background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMC4xMiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
  background-size: 100%;
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(100%, rgba(0, 0, 0, 0.12)));
  background-image: -moz-linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.12));
  background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.12));
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.12));
}
.rangeslider--horizontal .rangeslider__handle {
  top: -20px;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
}
.rangeslider--vertical .rangeslider__handle {
  left: -10px;
  touch-action: pan-x;
  -ms-touch-action: pan-x;
}
input[type="range"]:focus + .rangeslider .rangeslider__handle {
  -moz-box-shadow: 0 0 8px rgba(255, 0, 255, 0.9);
  -webkit-box-shadow: 0 0 8px rgba(255, 0, 255, 0.9);
  box-shadow: 0 0 8px rgba(255, 0, 255, 0.9);
}