.v8result .axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v8result .bar-wrapper {
  display: flex;
  width: 200%;
  margin: 0 5px;
  height: 35px;
  border-radius: 5px;
  overflow: hidden;
  text-transform: uppercase;
}

.v8result .bar {
  height: 35px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  padding: 2px;
}
.v8result .bar-label {
  font-size: 12px;
  font-weight: bold;
}

.v8result .equality {
  background-color: #e74c3c;
}

.v8result .markets {
  background-color: #27ae60;
}

.v8result .globe {
  background-color: #e67e22;
}

.v8result .nation {
  background-color: #3498db;
}

.v8result .liberty {
  background-color: #f1c40f;
}

.v8result .authority {
  background-color: #2c3e50;
}

.v8result .tradition {
  background-color: #8e44ad;
}

.v8result .progre {
  background-color: #2ecc71;
}

.v8result h1 {
  font-size: 18px;
}
.v8result h2 {
  font-size: 16px;
  margin-bottom: 1px;
}
.v8result h3 {
  font-size: 15px;
}

.v8result h1,
.v8result h2 {
  text-align: center;
}

.v8result h2 span {
  font-weight: 300;
}

.平等 h4 {
  color: #e74c3c;
}
.市场 h4 {
  color: #27ae60;
}
.民族 h4 {
  color: #3498db;
}
.国际 h4 {
  color: #e67e22;
}
.自由 h4 {
  color: #f1c40f;
}
.威权 h4 {
  color: #2c3e50;
}
.保守 h4 {
  color: #8e44ad;
}
.进步 h4 {
  color: #2ecc71;
}

.closest-match {
  background-color: #f0f7ff63;
  transition: all 0.3s ease;
}

.closest-match:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/**spectrum**/

.instructions {
  margin: 20px 0;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 4px solid var(--bs-primary);
  border-radius: 0 5px 5px 0;
}

.dimension-selector {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.dimension-btn {
  margin: 0 5px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.dimension-btn.active {
  background-color: var(--bs-secondary);
  color: white;
}

.controls {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.legend {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  margin: 0 15px;
}

.legend-color {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-right: 5px;
}

.user-legend .legend-color {
  background-color: var(--bs-danger);
  border: 2px solid var(--bs-danger);
}

.ideology-legend .legend-color {
  background-color: var(--bs-dark);
}

.chart-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.chart {
  width: 100%;
  height: 100%;
  position: relative;
}

.quadrant-labels {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.quadrant-label {
  position: absolute;
  font-size: 16px;
  font-weight: bold;
  color: #555;
  text-align: center;
}

.axis-labels {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.axis-label {
  position: absolute;
  font-size: 14px;
  color: #777;
  text-align: center;
  font-weight: bold;
}

.ideology-tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
  white-space: nowrap;
}

.ideology-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--bs-dark);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
}

.user-point {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: var(--bs-danger);
  border: 3px solid var(--bs-danger);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
  animation: pulsate 2s infinite;
}

@keyframes pulsate {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

#userScoresInput {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.ideology-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.ideology-item {
  margin: 5px;
  padding: 1px 5px;
  background-color: #f0f0f0;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ideology-item:hover {
  background-color: #e0e0e0;
}

.ideology-item.active {
  background-color: var(--bs-dark);
  color: white;
}

.axis-line {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.1);
}

.horizontal-line {
  width: 100%;
  height: 1px;
  left: 0;
}

.vertical-line {
  height: 100%;
  width: 1px;
  top: 0;
}

@media (max-width: 768px) {
  .chart-container {
    height: 400px;
  }

  .quadrant-label {
    font-size: 12px;
  }

  .axis-label {
    font-size: 10px;
  }
}
