/* Copyright 2025 CodeRandom. All Rights Reserved */
/* CSS resets and global styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
}
/* Theme-specific styles */
.light-theme {
  background: #d3d3d3;
  color: #000;
}
.light-theme canvas#gameCanvas {
  background: #d3d3d3;
}
.light-theme canvas#miniMap {
  background: rgba(255, 255, 255, 0.8);
}
.dark-theme {
  background: #000;
  color: #fff;
}
.dark-theme canvas#gameCanvas {
  background: #000;
}
.dark-theme canvas#miniMap {
  background: rgba(0, 0, 0, 0.8);
}
canvas {
  display: block;
}
/* Sidebar Styles */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: #fff;
  border-right: 2px solid #ccc;
  padding: 15px;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1100;
}
.dark-theme #sidebar {
  background: #333;
  color: #fff;
}
#sidebar.hidden {
  transform: translateX(-100%);
}
/* Tabs inside sidebar */
#sidebarTabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.tabButton {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: #eee;
  margin-right: 5px;
  transition: background 0.2s;
}
.dark-theme .tabButton {
  background: #555;
  color: #fff;
}
.tabButton:last-child {
  margin-right: 0;
}
.tabButton.active {
  background: #ddd;
  font-weight: bold;
}
.dark-theme .tabButton.active {
  background: #777;
}
.tabContent {
  display: none;
}
.tabContent.active {
  display: block;
}
#sidebar h2 {
  margin-bottom: 10px;
}
#sidebar ul {
  list-style: disc;
  margin-left: 20px;
}
#sidebar button {
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}
#toggleSidebar {
  position: fixed;
  top: 10px;
  left: 310px;
  z-index: 1200;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccc;
}
/* Mini-Map Styles */
#miniMap {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 150px;
  height: 150px;
  border: 2px solid #000;
  border-radius: 50%;
  z-index: 1400;
}
/* Overlays */
#gameOverOverlay,
#startOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
}
#gameOverOverlay {
  display: none;
}
#overlayContent,
#startContent {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
}
.dark-theme #overlayContent,
.dark-theme #startContent {
  background: #333;
  color: #fff;
}
#overlayContent input {
  padding: 5px;
  font-size: 16px;
  width: 80px;
  text-align: center;
  margin-top: 10px;
}
#overlayContent button,
#startContent button {
  padding: 5px 10px;
  margin-top: 10px;
  font-size: 16px;
  cursor: pointer;
}
#errorMessage {
  color: red;
  margin-top: 10px;
  display: none;
}
/* Audio Controls (in Settings tab) */
#audioControls {
  margin-bottom: 10px;
}
#audioControls label {
  font-size: 16px;
  display: block;
  margin-bottom: 5px;
}
#volumeSlider {
  width: 100%;
}
/* Theme Toggle Button in Settings */
#toggleThemeBtn {
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}
