/* General Body Styling */
body {
  margin: 0;
  background-color: black;
  overflow: hidden;
  font-family: Arial, sans-serif;
  color: white;
}

/* Game Container */
#gameContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: calc(100vh - 200px); /* Reserve space for the bottom container */
  overflow: hidden;
}

#gameCanvas {
  display: block;
  background: linear-gradient(to bottom, #000, #111);
  border: 5px solid yellow;
  border-radius: 10px;
  box-shadow: 0 8px 15px rgba(255, 255, 0, 0.7);
}

/* Bottom Container */
#bottomContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  width: 100%;
  background: linear-gradient(to bottom, #222, #333);
  flex-wrap: wrap;
  gap: 10px;
  height: auto;
}


/* Score Frame */
#scoreFrame {
  flex: 1;
  background: linear-gradient(to bottom, #ffcc00, #ff9900);
  border: 2px solid #ffcc00; /* Reduced border size */
  border-radius: 10px; /* Smaller border radius */
  padding: 5px; /* Reduced padding */
  text-align: center;
  box-shadow: 0 4px 10px rgba(255, 204, 0, 0.7); /* Reduced shadow */
  width: 80px; /* Adjusted width */
  height: 60px; /* Adjusted height */
}

#scoreFrame h2 {
  font-size: 14px; /* Reduced font size */
  margin: 0;
  text-shadow: 0 0 5px #ffcc00, 0 0 10px #ff9900; /* Reduced glow */
}

/* Restart Button */
#restartButton {
  flex: 1;
  padding: 5px; /* Reduced padding */
  font-size: 12px; /* Smaller font size */
  font-weight: bold;
  text-align: center;
  color: black;
  background-color: yellow;
  border: 2px solid yellow;
  border-radius: 6px; /* Smaller border radius */
  cursor: pointer;
  box-shadow: 0 0 5px yellow, 0 0 10px yellow, 0 0 15px orange; /* Reduced glow */
  text-shadow: 0 0 5px yellow; /* Reduced glow */
  width: 80px; /* Adjusted width */
  height: 30px; /* Adjusted height */
}

#restartButton:hover {
  background-color: orange;
  box-shadow: 0 0 10px orange, 0 0 15px red, 0 0 20px red; /* Adjusted glow for hover */
}

/* Settings Frame */

#settingsFrame {
  flex-grow: 1; /* Allow the frame to grow and fill the available space */
  background: linear-gradient(to bottom, #0033cc, #001a66); /* Darker gradient */
  border: 2px solid #0055ff; /* Border size */
  border-radius: 10px; /* Border radius */
  padding: 5px; /* Padding */
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.7); /* Shadow */
  max-height: 100px; /* Maximum height */
  overflow-y: auto; /* Enable vertical scrolling if content exceeds height */
  width: 100%; /* Ensure it spans the full width of the parent container */
  margin: 0; /* Remove any external margins */
}



#settingsFrame h2 {
  font-size: 14px; /* Reduced font size */
  margin: 5px 0; /* Reduced spacing */
  text-shadow: 0 0 5px #0055ff, 0 0 10px #0033cc; /* Reduced glow */
}

/* Inputs */
input[type="range"] {
  width: 80%; /* Reduced input width */
  margin: 5px 0; /* Reduced margin */
}

label {
  font-size: 12px; /* Reduced label font size */
}

.setting {
  margin-bottom: 5px; /* Reduced spacing */
}

/* Apply Button */
.apply-button {
  display: block;
  margin: 5px auto;
  padding: 5px; /* Reduced padding */
  font-size: 12px; /* Reduced font size */
  font-weight: bold;
  color: black;
  background-color: yellow;
  border: 2px solid yellow;
  border-radius: 6px; /* Smaller border radius */
  cursor: pointer;
  box-shadow: 0 0 5px yellow, 0 0 10px yellow, 0 0 15px orange; /* Reduced glow */
  text-shadow: 0 0 5px yellow; /* Reduced glow */
  width: 80px; /* Adjusted width */
}

.apply-button:hover {
  background-color: orange;
  box-shadow: 0 0 10px orange, 0 0 15px red, 0 0 20px red; /* Adjusted glow for hover */
}

/* Responsive Design */
@media (max-width: 768px) {
  #bottomContainer {
    flex-direction: column; /* Stack elements vertically */
    gap: 10px; /* Adjusted gap */
  }

  #scoreFrame,
  #settingsFrame,
  #restartButton {
    flex: unset;
    width: 90px; /* Adjusted width for smaller screens */
    height: auto;
  }

  #restartButton {
    font-size: 10px;
    padding: 4px;
  }

  .apply-button {
    font-size: 10px;
    padding: 4px;
    width: 90px;
  }
}
