html,
body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

canvas {
  display: block;
  margin: 0 auto;
}

main {
  overflow: hidden;
}

#container {
  width: 100%;
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

/* Button Container */
.main-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  width: 100%;
  max-width: 1200px;
}

/* Common Button Styles */
button {
  width: auto;
  height: auto;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #444;
}

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

/* Dev Mode Button */
#dev-mode-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 160px;
  height: 50px;
  font-size: 18px;
  z-index: 1000;
}

/* Calibrate Button */
#calibrate-button {
  width: 180px;
}

/* Location Info */
#location-info {
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  box-sizing: border-box;
  font-family: Arial;
  color: black;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

#location-info p {
  margin: 8px 0;
  text-align: center;
  font-size: 1rem;
}

#current-position {
  font-weight: bold;
  color: #333;
}

#tower-distance {
  color: #4caf50;
  font-weight: bold;
}

/* Dev Mode Styles */
.dev-mode #location-info {
  display: block;
}

.dev-mode #dev-mode-button {
  background-color: #000;
}

/* User Mode Styles */
.user-mode #location-info {
  display: none;
}

.user-mode #dev-mode-button {
  background-color: #333;
}

/* Hide dev mode buttons by default */
#find-tower-button,
#compass-button,
#reset-button {
  display: none;
}

/* Show dev mode buttons when in dev mode */
.dev-mode #find-tower-button,
.dev-mode #compass-button,
.dev-mode #reset-button {
  display: block;
}

#reset-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff4444;
}

#reset-button:hover {
  background-color: #ff6666;
}

#reset-button:active {
  background-color: #cc0000;
}

/* Dev Console Styles */
.dev-console {
  display: none;
  margin: 20px auto;
  width: 90%;
  max-width: 1200px;
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dev-mode .dev-console {
  display: block;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #2d2d2d;
  border-bottom: 1px solid #3d3d3d;
}

.console-header h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.console-output {
  height: 200px;
  padding: 15px;
  background-color: #1e1e1e;
  color: #fff;
  font-family: monospace;
  overflow-y: auto;
  white-space: pre-wrap;
}

#clear-console {
  padding: 5px 10px;
  font-size: 14px;
  background-color: #4a4a4a;
}

#clear-console:hover {
  background-color: #5a5a5a;
}

/* Cache Info Styles */
#cache-info {
  display: none;
  margin: 15px auto;
  padding: 15px;
  width: 90%;
  max-width: 1200px;
  border-radius: 8px;
}

#cache-info p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: #333;
  text-align: center;
}

.dev-mode #cache-info {
  display: block;
}
