body, html {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}

#page-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#content-container {
  display: flex;
  flex: 1; /* Take up the remaining space */
}

/* banner */
#header {
  background: #67a9ff;
  /* color: white; */
  /* background-image: "headerback1.png"; */
  padding: 10px 20px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  /* z-index: 1000; */
  height: 10%; /* Fixed height for the header */
  display: flex; 
  justify-content: space-between; 
  align-items: center;
}

#sidebar {
  width: 30%;
  resize: horizontal;
  /* height: 100%; */
  /* position: absolute; */
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 3px 0 5px rgba(0,0,0,0.1);
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  /* display: flex; */
  /* flex-direction: column; */
  /* flex: 1; */
}

#sidebar-header {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
}

#map {
  position: relative;

  flex-grow: 1;
}

.top_tabs { 
  display: flex; 
  cursor: pointer; 
}

.tab { 
  padding: 10px; 
  background: #ccc; 
  border: 1px solid #ddd; 
}

.tab.active { 
  background: #fff; 
  border-bottom: none; 
}

.tab-content { 
  display: none; 
}

.tab-content.active { 
  display: block; 
}

.modal {
  left: 80%; 
  top: 0%;
  height: 100%; 
  width: 20%; 
  display: block; 
  position: fixed; 
  z-index: 1000;

  background-color: rgba(255, 255, 255, 1);
  /* box-shadow: 3px 0 5px rgba(0,0,0,0.1); */
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;

  display: none;
}

#theme-section, #data-sources, #tools-section, #query-options {
  margin-bottom: 20px;
}

.tool-item, .time-range-picker, .dropdown-picker, .slider-picker {
  margin-bottom: 10px;
}

.dl-menu {
  text-decoration: none; 
  display: inline-block;
  margin-top: 1rem;
  background-color: rgba(77, 77, 251, 0.8);
  color: white;
  padding: 10px 20px 10px 20px;
  border: 1px solid black;
  font-size: 12px;
  border-radius: 5px;
}

.dl-menu:hover {
  background-color: rgba(43, 43, 255, 0.8)
}

.dl-button {
  background-color: rgba(77, 77, 251, 0.8);
  color: white;
}

.dl-button:hover {
  background-color: rgba(43, 43, 255, 0.8)
}

#container {
  width: 85%;
  height: auto;
  top: 0;
  position: absolute;
  top: 35%;
  visibility: hidden;
  display: none;
  background-color: rgb(255, 255, 255); /* complimenting your modal colors */
  border: 2px solid black;
  padding: 10px;
}

#container:target {
  visibility: visible;
  display: block;
}

.tabs {
  position: relative;
  margin: 0 auto;
  top: 25%;
}

.tabs input[type="radio"] {
  display: none;
}

.tabs ul {
  list-style-type: none;
  padding-left: 0;
}

.tabs ul li label {
  display: block;
  text-decoration: none; 
  display: inline-block;
  margin-bottom: 1rem;
  padding: 10px 20px 10px 20px;
  font-size: 12px;
  background: rgba(77, 77, 251, 0.8);
  cursor: pointer;
  text-align: center;
  border: 1px solid black;
  border-radius: 5px;
  color: white;
}

.tabs ul li label:hover {
  background: rgba(43, 43, 255, 0.8);
}

.tabs .content section {
  display: none;
  padding: 1rem;
  border: 1px solid #ccc;
}

.tabs input[type="radio"]:checked + label {
  background: #fff;
  border-bottom: 1px solid #fff;
  position: relative;
  z-index: 1;
}

#dl-option-geoJSON:checked ~ .content #geoJSON-container,
#dl-option-csv:checked ~ .content #csv-container,
#dl-option-plscp:checked ~ .content #planetscope-container,
#dl-option-S2:checked ~ .content #GEE-container,
#dl-option-S1:checked ~ .content #GEE-container,
#dl-option-L8:checked ~ .content #GEE-container, 
#dl-option-L7:checked ~ .content #GEE-container,
#dl-option-L9:checked ~ .content #GEE-container {

  display: block;
}

.tabs .content {
  position: relative;
  z-index: 0;
}

.small-button {
  background: white;
  color: black;
}

.small-button:hover {
  background: rgb(195, 195, 195);
}

.script-box {
  border: 1.5px solid black;
  width: 90%;
  height: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5px;
  padding-right: 5px;
}

#tutorial-box {
  width: 34%;
  height: 45%;
  position: sticky;
  left:33%;
  top:27%;
  z-index: 1000;
  border-width: 1px;
  border-color: black;
  border-style:solid;
  background-color:white;
}

input[type=checkbox] {
  margin-right: 5px;
}

button {
  background-color: #0498fa;
  color: white;
  padding: 10px 15px;
  border-style: solid;
  border-width: 1px; 
  border-color: black;
  cursor: pointer;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5px;
}

button:hover {
  background-color: #0070da;
}

button#search-button {
  font-size: 16px;
}

h1 {
  color: #ffffff;
  margin: 0 0 10px 0;
}

.table-container { max-height: 65vh; overflow-y: auto; }

.code-snippet-container { max-height: 40vh; overflow-y: auto; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.7em; /* Adjust the font size as needed */
  margin-bottom: 20px;
  overflow-x: scroll;
}

th, td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  /* overflow-x: scroll; */
}

th {
  background-color: #f2f2f2;
  color: #333;
}
  
hr.solid {
  border-top: 0.5px solid #cfcfcf;
  border-bottom: none;
  border-left: none;
  border-right: none;
}

select {
  font-size: 14px; 
  font-weight: 554;
  padding-left: 15px; 
  padding-right: 15px;
  padding-top: 10px; 
  padding-bottom: 10px;
}

option {
  font-size: 14px; 
  font-weight: 554;
}

.advanced-search { 
  display: block; 
}

.search_success {
  color: green;
}

.search_error {
  color: red;
}

a:visited {
  color: rgb(155, 252, 255);
}

#upload_button {
  display: inline-block;
}
#upload_button input[type=file] {
  display:none;
}
