/* TOOL BAR BUTTONS */
button, input::placeholder {font-family: 'Wix Made For Display';}
header button {
  background: url('/static/backgrounds/GJ_Verlaufe_IG3.png') fixed; /* 3 || 12 */
  background-size: cover;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  border: 0;
  outline: 0;
  cursor: pointer;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}
header button:hover{opacity: 0.9; transform: scale(1.03);}

.toolbar, .mobile-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
  overflow-x: auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 8px;
}

.tool-group{
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  min-width: 200px;
  max-width: 100%;
}

.bg-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bg-thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.2s;
}

.bg-thumb:hover, .bg-thumb.selected {
    border: 2px solid #007bff;
}

.delBtn, .alignBtn {
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.delBtn svg, .alignBtn svg {
  pointer-events: none;
}
.alignDiv {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.submitFormBtn:hover {
  transform: translateY(-2px);
}

.submitFormBtn:active {
  transform: translateY(2px);
}

/* Remove row button */
.removeRow {
  background-color: #dc3545;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Wix Made For Display';
  transition: background-color 0.2s ease, transform 0.1s ease;
  min-width: 32px;
}

.removeRow:hover {
  background-color: #c82333;
  transform: scale(1.05);
}

.removeRow:active {
  transform: scale(0.95);
}

/* Submit form button for creation form */
.submitFormBtn {
  background-color: #33c270 !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  min-width: 150px;
}

.submitFormBtn:hover {
  background-color: #2a9d5f !important;
}

/* Animate Autopilot Button */
#autopilotStart {
  position: relative;
  border: none;
  border-radius: 6px;
  color: #fff;
  background: #33c270; /* base button color */
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  z-index: 0;
}
#mobileAutopilotBtn{
  border: none;
  border-radius: 6px;
  color: #fff;
  background: #33c270; /* base button color */
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

/* animated rainbow edge */
#autopilotStart::before, #mobileAutopilotBtn::before {
  content: "";
  position: absolute;
  inset: -2px; /* slightly outside to look like an outer border */
  background: linear-gradient(
    270deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  background-size: 400% 400%;
  border-radius: 8px;
  animation: rainbowMove 6s linear infinite;
  z-index: -1;
  filter: brightness(1.2);
}

/* subtle glowing effect (optional but beautiful) */
#autopilotStart::after, #mobileAutopilotBtn::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 8px;
  background: inherit;
  filter: blur(10px);
  opacity: 0.6;
  z-index: -2;
  animation: rainbowMove 6s linear infinite;
}

@keyframes rainbowMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}


#modalbox button,
#picto-select-screen button,
#autopilot-screen button,
.autopilot-buttons button,
.closeBtn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  background-color: #33c270;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  width: 100%;
  max-width: 420px;
  margin: 20px auto 0;
  display: inline-block;
  text-align: center;
}
#modalbox button:hover,
#picto-select-screen button:hover,
#autopilot-screen button:hover,
.autopilot-buttons button:hover,
.closeBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0,0,0,0.14);
}

.autopilot-buttons button {
  width: auto;
  padding: 10px 14px;
  margin: 0 6px;
  max-width: none;
}
.autopilot-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

label[for="bgSelect"]{
  display: inline-flex;
  align-items: center;
  grid-area: 6px;
}
#settings-btn{
  all: unset;
  transition: all 500ms; -webkit-transition: all 500ms; -moz-transition: all 500ms; -o-transition: all 500ms;

  -webkit-mask: url(../img/navigation/settings.svg) no-repeat center;
  mask: url(../img/navigation/settings.svg) no-repeat center;
  background-color: #000;
  height: 32px;
  width: 32px;
  border: none;
  cursor: pointer;
  display: inline-block;
}
#settings-btn:hover{ opacity: 0.9; transform: scale(1.03); }