/* assets/style.css */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: #f4f7f9;
  color: #333;
  padding-top: 60px; /* Space for fixed navbar */
}

/* Navigation Bar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #27ae60;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 3000;
}

#navbar .logo {
  font-size: 20px;
  font-weight: 500;
}

/* Headings and Paragraphs */
h1 {
  margin-top: 20px;
  font-weight: 500;
  color: #2c3e50;
  text-align: center;
}

p {
  margin: 10px 0;
  text-align: center;
}

/* Game and Ad Container */
#gameContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  #gameContainer {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
  }
}

/* Responsive Canvas Container */
#canvasContainer {
  width: 90%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  margin: 10px auto;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  border: 2px solid #bdc3c7;
  border-radius: 8px;
  background: #ecf0f1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ad Container */
#adContainer {
  width: 300px;
  margin-top: 20px;
  display: none;
}

@media (min-width: 800px) {
  #adContainer {
    display: block;
  }
}

/* Info Panel */
#info {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  background: #fff;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#info span {
  font-size: 16px;
  font-weight: 500;
}

/* Settings Panel */
#settingsPanel {
  display: none;
  position: fixed;
  top: 120px;
  right: 20px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1500;
  width: 280px;
}

#settingsPanel h3 {
  margin-top: 0;
  font-weight: 500;
  color: #2c3e50;
}

#settingsPanel label {
  display: block;
  margin: 10px 0 4px;
  font-size: 14px;
}

#settingsPanel input[type="color"],
#settingsPanel input[type="range"],
#settingsPanel input[type="number"],
#settingsPanel input[type="checkbox"] {
  width: 100%;
  margin-bottom: 8px;
}

#settingsPanel button {
  width: 100%;
  padding: 8px;
  background: #2980b9;
  border: none;
  color: #fff;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
}

/* Mobile Touch Controls */
#mobile-controls {
  width: 150px;
  height: 150px;
  margin: 10px auto;
}

#touchCanvas {
  width: 100%;
  height: 100%;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  border: 2px solid #3498db;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  touch-action: none;
}

@media (min-width: 800px) {
  #mobile-controls {
    display: none;
  }
}

/* Break Wall Button (Super Break Mode) */
#breakBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #e67e22;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1500;
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  display: none;
  z-index: 2500;
}

/* Modal */
#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

#modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 90%;
  max-width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#modal-button {
  margin-top: 15px;
  background: #3498db;
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
}
