/* echo ranging.html specific styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Microsoft YaHei', sans-serif;
}

body {
  background: white;
  color: black;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 20px;
  margin: 20px 0;
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #999;
}

h1 {
  color: black;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: normal;
}

.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

canvas {
  background-color: #eef;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.controls-panel {
  flex: 1;
  min-width: 300px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.controls {
  margin-bottom: 20px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-right: 10px;
}

button:hover {
  background-color: #45a049;
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

#resetBtn {
  background-color: #2196F3;
}

#resetBtn:hover {
  background-color: #0b7dda;
}

.info-panel {
  width: 100%;
  background-color: #f0f8ff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info {
  font-size: 18px;
  line-height: 1.6;
}

input[type="range"] {
  width: 300px;
  vertical-align: middle;
  margin-right: 10px;
}

.controls label {
  display: inline-block;
  width: auto;
  margin-bottom: 10px;
  font-weight: bold;
}

.comment {
  color: #777;
  font-size: 0.9em;
  font-style: italic;
}

.description {
  margin-bottom: 20px;
  line-height: 1.5;
}

.button-group {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  
  canvas, .controls-panel {
    width: 100%;
  }
}
