body {
  margin: auto;
  font-family: "Segoe UI", sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2em;
}

#anim-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: calc(90vh - 20px);
  margin: auto;
  margin-top: 0;
}

#controls {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.0);
  width: parent;
  margin-bottom: 5px;
  user-select: none;
  gap: 15px;
  padding-left: 10px;
}

#controls label {
  font-weight: 600;
  font-size: 18px;
  color: #555;
}

#controls select {
  padding: 7px 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1.5px solid #ccc;
  transition: border-color 0.3s ease;
  cursor: pointer;
}

#controls select:hover,
#controls select:focus {
  border-color: #007bff;
  outline: none;
}

.text-box {
  width: 25%;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
  padding-right: 20px;
}

h2 {
  font-size: 2.5rem;
  color: #23272f;
  margin: 0;
  padding-bottom: 10px;
  text-align: center;
}

#info-container h2 {
  text-align: center;
}

.text-box h2 {
    font-size: 2.2rem;
    color: #23272f;
    border-radius: 22px;
    margin: 0px auto 0px auto;
    width: fit-content;
    letter-spacing: 2px;
    font-weight: 900;
    text-align: center;
}

#map-svg {
  flex: 1;
  height: 60%;
  border-radius: 12px;
  box-shadow: 0 4px 4px rgb(0 0 0 / 0.1);
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.2s ease;
  margin-bottom: 5px;
  margin-right: 5px;
  display: block;
}

#map-svg:active {
  cursor: grabbing;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.2);
}

#rankingChart {
  width: 100%;
  height: 300px;
  margin-top: 20px;
}

#map-and-chart {
  display: flex;
  flex-direction: column;
  height: 100%;  
  width: 50%;
}

#info-container {
  height: 100%;
  width: 20%;
  display: flex;
  flex-direction: column;
}

#country-info {
  padding-left: 20px;
  overflow-y: auto;
  box-sizing: border-box;
  width: 100%;
  height: fit-content;
}

#global-info {
  padding-left: 20px;
  box-sizing: border-box;
  width: 100%;
  height: fit-content;
}

.tooltip {
  position: absolute;
  pointer-events: none;
  background-color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  font-weight: 600;
  color: #222;
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
  user-select: none;
  z-index: 10;
}

#ranking-container {
  height: 40%;
  display: flex;
  justify-content: center;
}
