/* =============================
   START BUTTON ON THE RIGHT
============================= */

#startGameButton:hover {
  background: #0056b3;
}

#startGameButton {
  padding: 12px 24px;      /* larger height & width */
  font-size: 18px;          /* bigger text */
  border-radius: 8px;       /* slightly more rounded */
  min-width: 160px;         /* optional fixed width */
}

/* =============================
   TOOLBAR ON THE LEFT
============================= */

#boardToolbar {
  display: flex;
  position: relative;
  margin: 16px 16px 16px 16px;
  z-index: 10;
  flex-direction: column;
  align-items: stretch;

  padding: 10px;
  gap: 10px;
  background: #f7f9fc;
  border: 1px solid #d0d7e2;
  border-radius: 8px;

  box-shadow: 0 2px 6px rgba(0,0,0,0.05);

  width: fit-content;
}

#playModeButtons, #editModeButtons, #toolbarTopRow {
  display: flex;
  flex-direction: column; /* stack buttons vertically */
  gap: 6px;
}

#boardToolbar button {
  padding: 6px 10px;
  font-size: 14px;
  font-family: Arial;

  border: 1px solid #c5ccd8;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

#boardToolbar button:hover {
  background: #0056b3;
  border-color: #7aa7ff;
}

#boardToolbar button:active {
  background: #dce8ff;
}

/* =============================
   THEME MENU
============================= */

.themeMenuWrapper {
  position: relative;
  display: flex;
  width: 100%;
}

.themeMenuWrapper button {
  width: 100%;
}

.themeMenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  background: #f7f9fc;
  border: 1px solid #c5ccd8;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  padding: 6px;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.themeMenu.hidden {
  display: none;
}

.themeMenu button {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font-size: 14px;
  font-family: Arial;
  border: 1px solid transparent;
  border-radius: 6px;
  background: white;
  color: #222;
  cursor: pointer;
}

.themeMenu button:hover {
  background: #e8f0ff;
  border-color: #b7ccff;
}

/* Section label inside theme menu */
.themeMenu button[disabled] {
  background: #eef3fb;
  color: #334;
  font-weight: bold;
  cursor: default;
  border: 1px solid #d8e2f2;
  opacity: 1;
}

.themeMenu button[disabled]:hover {
  background: #eef3fb;
  border-color: #d8e2f2;
}

.themeMenuSection {
  padding: 6px 8px 4px 8px;
  font-size: 12px;
  font-weight: bold;
  color: #556;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
