body {
    font-family: 'Arial', sans-serif;
    margin: 20px;
    background-color: #f5f5f5;
  }
  
  #charts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
  }
  
  .chart {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  #value-display {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .value-group {
    text-align: center;
  }
  
  .value-group {
    text-align: center;
    border: 2px solid #ccc;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

  .value-item {
    margin: 4px 0;
    font-size: 16px;
    color: #333;
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 600;
}
  
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    height: 2px;
    margin: 20px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 50px;
    background: url('simple_mouse.svg') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    width: 50px;
    height: 50px;
    background: url('simple_mouse.svg') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    border: none;
}

h1 {
    text-align: center;
    padding-top: 5px;
    color: #333;
    margin: 20px 0;
  }
  
  #gender-buttons {
    text-align: center;
    margin: 20px 0;
  }
  
  .gender-button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .gender-button.active {
    background-color: #0066cc;
    color: white;
  }
  
  .gender-button[data-gender="f"].active {
    background-color: #cc0066;
  }

#slider-container {
  margin: 20px auto;
  width: 750px;
  position: relative;
}

#slider-container input[type="range"] {
  display: block;
  margin-left: 20px;
  margin-right: 30px;
}

#slider-container::after {
  content: "";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: url('cheese.webp') no-repeat center center;
  background-size: contain;
}

#title {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 32px;
  color: #333;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

#question {
  text-align: center;
  margin-top: 80px; /* Adjust to leave space for the title */
  font-size: 18px;
  color: #999; /* Light gray */
  font-family: 'Georgia', serif; /* Stylish font */
  font-style: italic;
}

#instruction {
  text-align: center;
  margin: 10px 0;
  font-size: 16px;
  color: #333;
}

/* Shading Legend */
#shading-legend {
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between legend items */
  margin: 20px 0;
  font-size: 14px;
  color: #333;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px; /* Space between color box and label */
}

.legend-color-box {
  width: 32px;
  height: 16px;
  border: 1px dashed #ccc; /* Border for both boxes */
}

.legend-label {
  font-size: 14px;
  color: #333;
}

/* Write-Up Section */
#write-up {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

#write-up h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 700;
}

#write-up h3 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
  font-weight: 100;
}

#write-up p {
  margin-bottom: 20px;
  color: #555;
}

#write-up ul {
  margin: 20px 0;
  padding-left: 20px;
}

#write-up ul li {
  margin-bottom: 10px;
}

#volume-container{
  position:absolute;
  top:1rem;
  right:3rem;
  font-size: 80%;
  font-family: inherit;
}
#volume-container::after {
  content: "";
  position: absolute;
  right: -45px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: url('cheese.webp') no-repeat center center;
  background-size: contain;
}
