body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

#map {
  width: 100%;
  height: 100vh;
}

.controls {
  position: absolute;
  bottom: 35px;
  left: 10px;
  background: white;
  padding: 10px;
  border-radius: 5px;
  z-index: 100;
}

/* Legend styling */
#legend {
    position: absolute;
    bottom: 25px;
    right: 10px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 100;
}
#legend h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
}
#legend div {
    margin: 5px 0;
    display: flex;
    align-items: center;
}
#legend span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 50%;
}
#legend p {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #666;
}

/* Introduction Page Styling */
.intro {
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  overflow-y: auto;
}

.intro-content {
  max-width: 800px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

.intro-content h1 {
  color: #007BFF;
  margin-bottom: 15px;
}

.intro-content h2 {
  color: #333;
  margin-top: 15px;
}

.intro-content p, .intro-content ul {
  color: #555;
  font-size: 16px;
  text-align: left;
}

.intro-content ul {
  list-style-type: disc;
  padding-left: 20px;
}

#start-exploring {
  margin-top: 20px;
  background-color: #007BFF;
  color: white;
  padding: 12px 24px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#start-exploring:hover {
  background-color: #0056b3;
}

#co2-slider {
  width: 90%;
}

#play-button {
  background-color: white;
  border-color: grey;
  position: relative;
  margin: 2px;
  top: -3px;
  left: 3px;
}

/* Fade-out animation */
@keyframes fadeOut {
  from {
      opacity: 1;
  }
  to {
      opacity: 0;
      visibility: hidden;
  }
}

/* Apply animation class */
.fade-out {
  animation: fadeOut 1s ease-out forwards;
}
