/* set var for sidebar width */
:root {
    --sidebar-width: 16vw;
    
}

html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100% !important;
  width: 100%;
  font-family: var(--sans-serif);
}

/* New styles for the map wrapper  */
.map-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  z-index: -100 !important;
}

#map {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* New style for the overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(115, 115, 115, 0.35); /* Semi-transparent black */
  backdrop-filter: blur(13px); /* Apply blur effect */
  z-index: 9998; /* Ensure it's behind the popup */
}

/* Other styles remain the same */


.hero-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 60%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0);
  padding: 20px;
  z-index: 9999;
  /* border-radius: 20px;
  backdrop-filter: blur(10px) !important; */
}

.hero-popup-content {
  text-align: center;
}

.hero-popup-content h1 {
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(30deg, #1b3272, currentColor);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  max-width: none;
}

.hero-popup-content h2 {
  margin: 0;
  font-size: 25px;
  font-style: initial;
  font-weight: 500;
  line-height: 1.5;
  color: rgb(68, 73, 80);
  margin-bottom: 20px;
  max-width: none;
}

.hero-popup-content a {
  display: block;
  font-size: 16px;
  text-decoration: none;
  color: rgb(49, 49, 70);
  margin-bottom: 20px;
}

#close-hero-popup {
  background-color: #275863bd;
  color: rgb(234, 220, 220);
  width: 6vw;
  height: 8vh;
  font-size: 30px;
  font-family: var(--sans-serif);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

#close-hero-popup:hover {
  background-color: #338a9dbd;
}

#console h2 {
  font-size: 20px;
  text-align: center;
  font-family: var(--sans-serif);
}

h3 {
  font-size: 16px;
}

p {
  font-size: 14px;
  text-align: left;
}

.map-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  margin-right: 20px;
  font-family: Arial, sans-serif;
  border-radius: 3px;
}

#features {
  top: 0;
  height: 100px;
  margin-top: 20px;
  width: 250px;
}

#legend {
  padding: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 18px;
  height: 150px;
  margin-bottom: 40px;
  width: 100px;
}

a {
  text-decoration: none;
  color: #2dc4b2;
}

#console {
  position: relative;
  top: 1.5vh;
  height: 90vh;
  left: 1vw;
  width: var(--sidebar-width);
  padding: 20px 20px;
  background-color: white;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.3);
  transition: left 0.5s ease; /* Add transition for left property */
  border-radius: 10px;
  z-index: 10;
}



.session {
  margin-bottom: 10px;
}

.row {
  height: 12px;
  width: 100%;
}

.colors {
  background: linear-gradient(
    to right,
    #2dc4b2,
    #3bb3c3,
    #669ec4,
    #8b88b6,
    #a2719b,
    #aa5e79
  );
  margin-bottom: 5px;
}

.label {
  width: 15%;
  display: inline-block;
  text-align: center;
}

#mini-country-info {
  margin-bottom: 20px;
}

#observablehq-center {
  margin: 0rem 0rem !important;
  container-type: initial !important;
}

#observablehq-main,
#observablehq-header {
  margin: 0rem auto !important;
  max-width: 100vw !important;
}
#observablehq-footer {
  position: absolute;
  bottom: 0;
  right: 0;
  margin-right: 15px;
  margin-bottom: 0px; 
  text-decoration: none !important;
}

#observablehq-footer > div > p {
  text-align: right;
}
#observablehq-footer > div > p > a{
  text-decoration: none !important;
  color: var(--theme-foreground);
  opacity: 0.7;
}

#toggle-button {

  position: fixed;
  top: 50%;
  left: 20.5vw;
  transform: translateY(-50%);
  z-index: 1001;
  transition: left 0.5s ease;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  background: transparent; /* Set background to transparent */
}

#toggle-button::before {
  content: "";
  display: block;
  border: none;
  outline: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(0, 0, 0, 0.4);
  border-top: 2px solid rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%) rotate(225deg); /* Initially pointing left */
  transition: transform 0.5s ease;
}

#toggle-button.open::before {
  transform: translate(-50%, -50%) rotate(45deg); /* Rotate to point right */
}


.search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

.search-bar input[type="text"] {
  width: 100%;
  height: 30px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.country-radar {
    overflow: visible;
    padding: 0px;
}

input[type="range"] {
    width: 15vw !important;
}

#nav {
  padding: 15px 0px;
  bottom: 0;
  position: absolute; /* Set the nav's position to absolute */
  font: 16px var(--sans-serif);
  color: #1b1e23;

}

#nav > p {

  color: #1b1e23;
  text-decoration: none;
}

#nav > a[href] {
    text-decoration: none;
}

#nav a:hover {
  background: var(--theme-background);
}

#map-legend {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px;
  width: 11vw;
  background-color: white;
  border-radius: 10px;
}

.legend-item {
  margin-bottom: 10px;
}

.legend-gradient {
  display: inline-block;
  width: 10vw;
  height: 20px;
  background-image: linear-gradient(to right, #a50026, #ffffbf, #006837);
}