body {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

button {
  margin: 0 5px;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #edededf1;
  border: none;
  cursor: pointer;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

button.active {
  background-color: #363636f1;
  color: #f0f0f0;
}

input {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/***************************
 * Navbar
 **************************/

nav {
  width: 100%;
  height: 80px;
  padding: 0 10px;
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  z-index: 99;
  background-color: #f0f0f0;
  box-sizing: border-box;
}

nav .nav_wrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

nav .nav_wrapper img {
  height: 50px;
}

nav .nav_wrapper a {
  padding: 0 20px;
  color: #000000;
  text-decoration: none;
}

nav .nav_wrapper a#logo_link {
  padding: 0 10px 0 0px;
  color: none;
  text-decoration: none;
  font-family: 'Jost', 'Roboto', Arial, Helvetica, sans-serif;
}

#languageDropdownWrapper {
  position: relative;
  display: inline-block;
  min-width: 120px; /* Adjust as needed */
}

#languageDropdownContainer {
  background-size: 24px; /* Slightly smaller flag for better fit */
  background-repeat: no-repeat;
  background-position: 5px center;
  border-radius: 5px;
  border: 1px solid #ccc;
  overflow: hidden;
  background-color: #f0f0f0; /* Light gray background */
}

select#languageDropdown {
  width: 100%;
  padding: 5px 25px 5px 35px; /* Adjusted padding */
  border-radius: 5px;
  background: transparent;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 14px;
  line-height: 1.3;
}

/* Custom dropdown arrow */
select#languageDropdown {
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 5px center;
}

/* Hide default dropdown arrow in IE */
select#languageDropdown::-ms-expand {
  display: none;
}

/* Ensure text color contrast */
select#languageDropdown option {
  background-color: white;
  color: black;
}

nav .nav_wrapper .nav_left {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
}

nav .nav_wrapper .nav_right {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
}

#inatech-logo {
  height: 80px;
  padding: 0;
}

#inatech-logo img {
  height: 100%;
}

/***************************
 * Carbon Map
 **************************/

.carbon_map {
  height: calc(100% - 80px);
  padding-top: 80px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/***************************
* For other pages
*****************************/

.site_base {
  height: calc(100% - 80px);
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  z-index: 1;
}

/*** For FAQ ***/

.faq-container {
  display: flex;
  flex-direction: column;
  width: 50%;
}

.faq {
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.question {
  background-color: #f4f4f4;
  padding: 20px;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.question:hover {
  background-color: #e0e0e0;
}

.answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.question.active + .answer {
  padding: 20px;
  max-height: 1000px; /* Adjust this value as needed */
}

.arrow {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.question.active .arrow {
  transform: rotate(90deg);
}


/***************************
 * Carbon Map Navigation
 **************************/

.carbon_map .navigation {
    padding-top: 10px;
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 2;
    background-color: #ffffff;
    border-radius: 0 0 15px 0;
}

.carbon_map .navigation .navigation_wrapper {
    margin: 10px 5px;
    border-radius: 15px;
    display: flex;
    flex-direction: row;
    /* justify-content: space-between; */
    justify-content: left;
}

.carbon_map .map_navigation_scale {
    width: 40%;
    height: 30px;
    padding: 5px 15px;
    position: absolute;
    top: 75%;
    left: calc(5% - 15px);
    z-index: 2;
    background-color: #ffffff;
    border-radius: 15px;
    display: flex;
}

.carbon_map .map_navigation_scale .colorscale {
  width: 100%;
  height: 10px;
  margin-top: 10px;
  border-radius: 15px;
  background: linear-gradient(
    90deg,
    #44bb44,
    #eecc33,
    #aa3333,
    #662a2a,
    #222222
  );
  color: #000000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.carbon_map .map_navigation_scale .colorscale div {
  font-size: 10px;
  width: 0px;
  overflow: visible;
}

.carbon_map .map_navigation_scale .colorscale div p {
  width: fit-content;
  transform: translateX(-50%);
}

@media screen and (max-width: 800px) {
  .carbon_map .map_navigation_scale {
    width: 85%;
    left: calc(7.5% - 15px);
  }

  .carbon_map .map_navigation_scale .colorscale > *:nth-child(even) {
    display: none;
  }

  .nav_right a {
    display: none;
  }

  #languageDropdownWrapper {
    display: initial;
  }
}


/***************************
 * Carbon Map Row 1
 **************************/

.carbon_map .row-1 {
  width: 50%;
  height: 100%;
}


.carbon_map .row-1 #map {
  width: 100%;
  height: 80%;
}

.carbon_map .row-1 #map .mapboxgl-popup {
  max-width: 400px;
  font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
  z-index: 3;
}

.carbon_map .row-1 #map .mapboxgl-popup .mapboxgl-popup-close-button {
  position: fixed;
  float: right;
  background-color: lightgray;
  margin: 0;
  padding: 0px 3px;
}

.carbon_map .row-1 .map_navigation {
  height: 20%;
  padding: 25px;
  box-sizing: border-box;
  background-color: #ffffff;
}

.carbon_map .row-1 .map_navigation .map_navigation_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carbon_map .row-1 .map_navigation .map_navigation_wrapper .buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

input#dateRangePicker {
  margin: 0 5px;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #edededf1;
  border: none;
  cursor: pointer;
  text-align: center;
}

.carbon_map .row-1 .map_navigation .map_navigation_wrapper .datepicker {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.carbon_map .row-1 .map_navigation .map_navigation_wrapper .datepicker input {
  width: 150px;
  padding: 5px;
  border-radius: 5px;
}

/***************************
 * Carbon Map Row 2
 **************************/

.carbon_map .row-2 {
  width: 50%;
  height: 100%;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  position: relative;
  z-index: 5;
  overflow-y: auto;
  overflow-x: hidden;
}


.carbon_map .row-2 #resize-row {
  position: absolute;
  left: 5px;
  top: 5px;
}

.carbon_map .row-2 .data {
  height: 120px;
  padding: 25px;
  box-sizing: border-box;
}


.carbon_map .row-2 .data * {
  margin: 0;
}

.carbon_map .row-2 .chart {
  height: 39%;
  box-sizing: border-box;
}

/***************************
 * Mobile
 **************************/

@media screen and (max-width: 600px) {
  nav .nav_wrapper {
    /*display: none;*/
    overflow: hidden;
    overflow-x: auto;
  }

  nav .nav_wrapper a {
    padding: 0 10px;
  }

  select#languageDropdown {
    width: 55px;
  }

  .mapboxgl-ctrl-bottom-left {
    display: none;
  }

  .mapboxgl-ctrl-bottom-right {
    display: none;
  }

  .carbon_map .row-1 .map_navigation .map_navigation_wrapper .colorscale{
    width: 80%;
  }

  .carbon_map .row-1 .map_navigation .map_navigation_wrapper .buttons {
    flex-wrap: wrap;
  }


  button {
    margin: 0 2px;
  }
}

@media screen and (max-width: 800px) {
  .carbon_map {
    height: auto;
    flex-direction: column;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .carbon_map .row-1,
  .carbon_map .row-2 {
    width: 100%;
  }

  .carbon_map .row-2 {
    overflow-y: initial;
  }

  .carbon_map .row-1 #map {
    height: 80vh;
  }

  .carbon_map .row-1 .chart iframe,
  .carbon_map .row-2 .chart iframe{
    min-height: 400px;
  }

  .carbon_map .row-1 .map_navigation {
    height: auto;
    color: #eeffe8;
  }

  .carbon_map .row-2 #resize-row {
    display: none;
  }

  .faq-container {
    width: 90%;
  }
}

.google-visualization-tooltip-item-list {
  text-align: left;
  z-index: 11;
}

.google-visualization-tooltip-item {
  margin: 0 !important;
}

.google-visualization-tooltip-item span {
  float: right;
  min-width: 90px;
  text-align: right;
}

.google-visualization-tooltip-item span:first-of-type {
  float: initial;
}

#generation_legend {
  position: absolute;
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  /*max-height: calc(35vh - 200px);*/
}

#generation_legend span {
  margin-right: 20px;
  margin-bottom: 5px;
  cursor: pointer;
  border: 1px lightgray solid;
  border-radius: 10px;
  padding: 0 5px;
}

#generation_legend span.deactived {
  color: lightgray;
  text-decoration: line-through;
  cursor: pointer;
}

#generation_legend span.inactive {
  color: lightgray;
  text-decoration: line-through;
  cursor: not-allowed;
}

#generation_legend span span {
  margin-right: 0;
  margin-bottom: 0;
  border: none;
  padding: 0;
}

/**
    For Publications
*/

.publication {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    width: 900px; /* Set a fixed width for each publication */
}

.toggle-abstract {
    background-color: black;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.toggle-abstract:hover {
    background-color: darkgray;
}

.abstract {
    display: none;
    text-align: justify;
    overflow-y: auto;
    max-height: 200px;
}

