body {
  margin: 1em;
  font-family: sans-serif;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

svg {
  width: 100%;
  height: auto;
}

footer {
  font-size: 0.9em;
  color: gray;
  margin-top: 2em;
  text-align: left;
}

#chart {
  width: 100%;
  max-width: 650px;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid black;
}

.controls {
  margin-bottom: 20px;
}

.title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

#latest-update {
  font-size: 0.95em;
  margin-top: 0.5em;
}

.new-label {
  color: red;
  font-weight: bold;
}

.search-icon {
  cursor: pointer;
  color: gray;
  margin-left: 10px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  max-width: 600px;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.controls {
    font-size: 0.95em;
    margin-bottom: 0.5em;
}

#search-box {
    width: 150px;
}

.info-box {
  min-height: 90px;
  max-height: none;
  padding: 0.5em 1em;
  margin-bottom: 0.8em;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  border-radius: 6px;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  word-break: break-word;
  overflow-wrap: break-word;
}

.info-box.highlight {
  background-color: #fffbe6;
}