/* ===================== DARK MODE SUPPORT ===================== */
html.dark-mode {
  --bg-main: #181a1b;
  --bg-secondary: #23272b;
  --bg-glass: rgba(36, 39, 46, 0.7);
  --bg-glass-strong: rgba(36, 39, 46, 0.92);
  --border-main: #333a40;
  --border-light: #444b52;
  --text-main: #f3f6fa;
  --text-secondary: #bfc9d1;
  --accent: #3399ff;
  --accent-hover: #1976d2;
  --shadow: 0 4px 20px 3px rgba(0,0,0,0.45);
  --shadow-strong: 0 8px 32px rgba(0,0,0,0.7);
}

html.dark-mode body{
  background: var(--bg-main);
  color: var(--text-main);
}

html.dark-mode header,
html.dark-mode #main-menu-container,
html.dark-mode #content-container,
html.dark-mode .main_section_area,
html.dark-mode .left_section,
html.dark-mode .right_section,
html.dark-mode #gradien_section,
html.dark-mode #export-dialog,
html.dark-mode #css-output-dialog,
html.dark-mode footer,
html.dark-mode #tagline,
html.dark-mode .menu-item .dropdown-content,
html.dark-mode .menu-list.mobile.open {
  background: var(--bg-secondary) !important;
  color: var(--text-main) !important;
  border-color: var(--border-main) !important;
}


/* Only apply dark glass background to containers, not to color display boxes */
html.dark-mode .main_section_area {
  background: var(--bg-glass) !important;
  box-shadow: var(--shadow);
  border-color: var(--border-light) !important;
}

html.dark-mode .color-format-box {
  background: var(--bg-glass) !important;
  box-shadow: var(--shadow);
  border-color: var(--border-light) !important;
}
html.dark-mode .menu-item a:hover {
  color: #fff;
  background-position: left bottom;
  box-shadow: 0 2px 8px rgba(51,153,255,0.25);
}
html.dark-mode .custom-file-label,
html.dark-mode #useCameraBtn,
html.dark-mode #exportBtn,
html.dark-mode #dialog-buttons button,
html.dark-mode #closeCssDialogBtn,
html.dark-mode #copyGradientBtn{
  background-color: var(--accent);
  color: #fff;
}

 html.dark-mode #sliderHiding,
 html.dark-mode #container-descriptions h2{
  color: #fff;
 }
html.dark-mode .custom-file-label:hover,
html.dark-mode #useCameraBtn:hover,
html.dark-mode #exportBtn:hover,
html.dark-mode #dialog-buttons button:hover,
html.dark-mode #closeCssDialogBtn:hover,
html.dark-mode #copyGradientBtn:hover {
  background-color: var(--accent-hover);
}
html.dark-mode #slider-container input[type="range"]::-webkit-slider-thumb,
html.dark-mode #slider-container input[type="range"]::-moz-range-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
}
html.dark-mode #slider-container input[type="range"]::-webkit-slider-runnable-track,
html.dark-mode #slider-container input[type="range"]::-moz-range-track {
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--progress, 0%), #444 var(--progress, 0%), #444 100%);
}
html.dark-mode #hovered-hex {
  background: rgba(36,39,46,0.85);
  color: var(--accent);
}
html.dark-mode #export-dialog,
html.dark-mode #css-output-dialog {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-color: var(--border-light);
}
html.dark-mode #css-output {
  background: #23272b;
  color: #e0e6ed;
  border-color: var(--border-light);
}
html.dark-mode .selected-indicator {
  background: #fff;
  border: 2px solid var(--accent);
}
html.dark-mode .variation-tooltip,
html.dark-mode .Codestooltip,
html.dark-mode #copyGradientTooltip {
  color: var(--accent);
  background: #23272b;
}
html.dark-mode .more-menu-item a,
html.dark-mode .Policy-menu-item a {
  color: var(--text-secondary);
}
html.dark-mode .more-menu-item a:hover,
html.dark-mode .Policy-menu-item a:hover {
  color: var(--accent);
}
html.dark-mode #tagline {
  color: #888;
}

/* ===================== END DARK MODE SUPPORT ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

body {
  font-family: 'Roboto', sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background: white;
  color: #333;
  line-height: 1.6;
  z-index: 1000;
}

header {
  width: 100%;
  height: auto;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#main-menu-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  padding: 15px 10px;
  border-bottom: 1px solid #e3e3e3;
  background-color: #fff;
}

.logo-container {
  width: 20%;
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo-container img {
  width: 70px;
  height: 70px;
  margin-right: 10px;
}

.menu-container {
  width: 70%;
  height: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.menu-list {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
}


.menu-item a {
  text-decoration: none;
  color: #06f;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 15px;
  background: linear-gradient(to right, #06f 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  transition: background-position 0.5s ease, color 0.5s ease;
}

.menu-item a.active,
.menu-item a.active:visited {
  color: #fff !important;
  background-position: left bottom !important;
  background: #06f !important;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4);
}

.menu-item a:hover {
  background-position: left bottom;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4);
}
/* Make dropdown behave like a menu item */
.menu-item.dropdown {
  position: relative;
  bottom: 5px;
}

.menu-item.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* Dropdown content hidden by default */
.menu-item .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 4px 20px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #fff;
  border-radius: 6px;
  z-index: 999;
  padding: 10px 0;
  list-style: none;
}

/* Each dropdown item */
.menu-item .dropdown-content li a {
  display: block;
  padding: 10px 20px;
  color: #06f;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.menu-item .dropdown-content li a:hover {
  color: #fff;
}

/* Show dropdown on hover */
.menu-item.dropdown:hover .dropdown-content {
  display: block;
}

/* Optional: arrow icon rotation on hover (if using Font Awesome or custom) */
.menu-item.dropdown:hover i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

#content-container {
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  background: #fff;
}

#hiding-container {
  margin-top: 40px;
  padding: 20px;
  z-index: 1000;
}

#hiding-container h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.2;
  background: linear-gradient(90deg, #06f 30%, #a0e9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* text-fill-color: transparent; */
  z-index: 10000;
}

#container-descriptions {
  width: 100%;
  height: auto;
  padding: 0 20px 20px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#container-descriptions h2 {
  font-size: 18px;
  font-weight: 400;
  color: #666;
  line-height: 1.5;
}

#functionality-section {
  width: 100%;
  height: auto;
  padding: 20px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main_section_area {
  width: 75%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px 10px rgba(0, 0, 0, 0.05);
}

.left_section {
  margin-left: 10px;
  margin-right: auto;
  /* Ensures all direct children align from same left starting point */
  max-width: 90%;
  width: 40%;
  height: auto;
  padding: 10px;
  background-color: white;
  display: block;
  justify-content: flex-start;
}

#slider-container {
  width: 85%;
  margin: 20px 0 40px 10px;
  text-align: left;
}

#slider-container label {
  font-weight: bold;
  color: #333;
  display: inline-block;
  margin-bottom: 8px;
}

/* Slider track styling */
#slider-container input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  background: #ccc;
  border-radius: 2px;
  outline: none;
}

/* WebKit (Chrome, Safari, Edge) */
#slider-container input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  height: 16px;
  width: 16px;
  background: white;
  border: 2px solid #06f;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px;
  /* aligns thumb with track */
}

#slider-container input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(to right, #06f 0%, #06f var(--progress, 0%), #ccc var(--progress, 0%), #ccc 100%);
  border-radius: 2px;
}

/* Firefox */
#slider-container input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #06f;
}

#slider-container input[type="range"]::-moz-range-track {
  height: 4px;
  background: #ccc;
  border-radius: 2px;
}

.file-section {
  width: 85%;
  margin-left: 10px;
  margin-bottom: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
}

.custom-file-label,
#useCameraBtn {
  background-color: #06f;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#useCameraBtn {
  padding: 14px 24px;
}
.custom-file-label:hover,
#useCameraBtn:hover {
  background-color: #0055cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#captureBtn {
  width: 40%;
  height: 48px;
  background-color: #06f;
  border-radius: 8px;
  outline: none;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bolder;
  font-size: 16px;
}

#switchCameraBtn {
  width: 40%;
  height: 48px;
  background-color: #06f;
  border-radius: 8px;
  outline: none;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bolder;
  font-size: 16px;
}

#paletteBox-hiding {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-left: 13px;
}

#palette-section {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-left: 10px;
  margin-bottom: 20px;
}

#shared-color-box {
  width: 340px;
  height: 50px;
  display: flex;
  margin: 10px 0px;
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
  position: relative;
  border-radius: 13px;
  background: rgba(255,255,255,0.35);
  box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.10), 0 1.5px 6px 0 rgba(0,0,0,0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: box-shadow 0.3s, background 0.3s;
}

#controls {
  display: grid;
  margin-left: 10px;
  gap: 10px;
}

#plusbtn, #minusbtn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 2px solid #7d7c83;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#plusbtn:hover, #minusbtn:hover {
  background-color: #f0f0f0;
}

#export-controls {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: flex-start;
  margin-left: 10px;
}

#exportBtn {
  width: 87%;
  height: 48px;
  background: linear-gradient(135deg, #06f, #a0e9ff);
  border-radius: 8px;
  outline: none;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
}

#exportBtn:hover {
  background-color: #0055cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#export-dialog {
  display: none;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 25px 20px;
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
}

#dialog-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#dialog-buttons button {
  background-color: #06f;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#dialog-buttons button:hover {
  background-color: #0055cc;
  transform: translateY(-1px);
}
.right_section {
  width: 60%;
  height: 100%;
  padding: 30px;
  background-color: #fafafa;
  border-radius: 0px 12px 12px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img_container {
  width: 90%;
  height: 60%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.img_container img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

#image-picker_cursors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.image-picker_cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  cursor: move;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.image-picker_cursor:hover {
  transform: scale(1.1);
}
.image-picker_cursor {
  transition: all 0.2s ease;
  will-change: transform; /* Optimize for animation */
  position: absolute;
  cursor: move;
  touch-action: none; /* Prevent browser touch handling */
}
.selected-indicator {
  position: absolute;
  width: 10px;
  height: 10px;
  background: black;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  pointer-events: none;
}

.color-block {
  position: relative;
  height: 100%;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.10), 0 1.5px 6px 0 rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.22);
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
}

.color-block:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 6px 18px rgba(31, 38, 135, 0.18), 0 2px 8px 0 rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.35);
}

#hovered-hex {
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 5px;
  border-radius: 4px;
}

#gradien_section {
  width: 100%;
  height: auto;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#main-gradient-container {
  width: 75%;
  height: auto;
}

#clicked-color-display {
  margin-top: 20px;
}

.clicked-color-box {
  width: 90%;
  height: 150px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18), 0 1.5px 6px 0 rgba(0,0,0,0.10);
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  background: rgba(255,255,255,0.22);
  padding: 15px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  transition: box-shadow 0.3s, background 0.3s;
}

.clicked-color-box .color-sample {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.fade-in {
  animation: fadeIn 0.7s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.color-format-box {
  width: 280px;
  padding: 15px;
  border-radius: 12px;
  background: rgba(255,255,255,0.35);
  box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.10), 0 1.5px 6px 0 rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: box-shadow 0.3s, background 0.3s;
  position: relative;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  margin: 10px 0;
}

.color-format-box button {
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 13px;
  background: #06f;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-format-box button:hover {
  background: #0055cc;
}

.Codestooltip {
  display: none;
  margin-left: 10px;
  color: #06f;
  font-weight: 500;
  font-size: 14px;
  position: relative;
  top: 10px;
}

.tooltip {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
  color: #06f;
  display: none;
}

.variation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}

.variation-box {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  font-family: 'Roboto Mono', monospace;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.variation-box:hover {
  transform: scale(1.05);
}

.variation-tooltip {
  position: absolute;
  bottom: -20px;
  font-size: 10px;
  color: #06f;
  display: none;
}

#gradient-preview-box {
  margin-top: 30px;
  width: 100%;
  text-align: center;
  z-index: 1000 !important;
}

#gradient-box {
  height: 100px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.4s ease;
  margin: auto;
  background: #f5f5f5;
  z-index: 1000 !important;
}

#gradient-actions {
  margin-top: 15px;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

#copyGradientBtn {
  background-color: #06f;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#copyGradientBtn:hover {
  background-color: #0055cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tooltip {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #06f;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip.show {
  opacity: 1;
}

#copyGradientTooltip {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #e6f0ff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  color: #06f;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#copyGradientTooltip.show {
  opacity: 1;
  visibility: visible;
}

#camera {
  width: 100%;
  max-width: 400px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#export-dialog {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-width: 400px;
  width: 90%;
}

#css-output-dialog {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  width: 80%;
  max-width: 800px;
  transition: all 0.3s ease;
  animation: fadeIn 0.3s ease-in-out;
}

#css-output-dialog h3 {
  margin-top: 0;
  color: #06f;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #e3e3e3;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

#css-output {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  white-space: pre;
  overflow: auto;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f9f9f9;
  color: #333;
  height: 300px;
  width: 100%;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.5;
}

#closeCssDialogBtn {
  width: 140px;
  height: 40px;
  background-color: #06f;
  border-radius: 8px;
  outline: none;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  margin-top: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
}

#closeCssDialogBtn:hover {
  background-color: #0055cc;
  transform: translateY(-1px);
}

footer {
  width: 100%;
  height: auto;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
  border-top: 1px solid #c3c2c2;
  background-color: #fff;
  box-shadow: 2px 2px 10px 10px rgba(0, 0, 0, 0.05);
}

#footer-logo {
  width: 25%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: yellow; */
}

#footer-logo img {
  width: 120px;
  height: 120px;
  margin-right: 10px;
}

#footer-content {
  width: 75%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items:center;
  align-items: center;
}

#more-section {
  width: 50%;
  height: auto;
  display: grid;
  justify-content: center;
  align-items: center;
}

.more-menu-list {
  list-style: none;
  display: grid;
  gap: 15px;
  padding: 0;
  margin: 0;
  text-align: left;
}

.more-menu-list p {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #06f;
  margin-bottom: 10px;
}

.more-menu-item a {
  text-decoration: none;
  color: #555;
  font-weight: 400;
  padding: 6px 0;
  border-radius: 0;
  transition: all 0.2s ease;
  display: inline-block;
  font-size: 14px;
}

.more-menu-item a:hover {
  color: #06f;
  transform: translateX(3px);
}

#policy-section {
  width: 50%;
  height: auto;
  display: grid;
  justify-content: center;
  align-items: center;
  position: relative;
  right: 100px;
}

.Policy-menu-list {
  list-style: none;
  display: grid;
  gap: 15px;
  padding: 0;
  margin: 0;
  text-align: left;
}

.Policy-menu-list p {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #06f;
  margin-bottom: 10px;
}

.Policy-menu-item a {
  text-decoration: none;
  color: #555;
  font-weight: 400;
  padding: 6px 0;
  border-radius: 0;
  transition: all 0.2s ease;
  display: inline-block;
  font-size: 14px;
}

.Policy-menu-item a:hover {
  color: #06f;
  transform: translateX(3px);
}

#tagline {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-top: 1px solid #e3e3e3;
  font-size: 12px;
  font-weight: 300;
  background-color: #fff;
  color: #888;
}

#tagline h3 {
  font-weight: 300;
}


/* ===== Decorative Circles for UI Enhancement ===== */
.decorative-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  filter: blur(0.5px) saturate(1.2);
  transition: opacity 0.5s;
}

.circle-top-left {
  top: -120px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 60% 40%, #06f 60%, #fff0 100%);
  box-shadow: 0 0 80px 20px #06f3, 0 0 0 0 #fff0;
}

.circle-bottom-right {
  top: 170px;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 40% 60%, #ff6fcb 60%, #fff0 100%);
  box-shadow: 0 0 60px 10px #ff6fcb55, 0 0 0 0 #fff0;
  overflow: visible;
  transform: translate(50%, 50%);
  pointer-events: none;
  opacity: 0.15;
}
.circle-bottom-right2 {
  top: 320px;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 40% 60%, #ee8ac9 60%, #fff0 100%);
  box-shadow: 0 0 60px 10px #ff6fcb55, 0 0 0 0 #fff0;
  overflow: visible;
  transform: translate(50%, 50%);
  pointer-events: none;
  opacity: 0.15;
}
html, body {
  overflow-x: clip;
}

.circle-center-fade {
  bottom: 250px;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 50% 50%, #ffd600 60%, #fff0 100%);
  opacity: 0.22;
  box-shadow: 0 0 40px 10px #ffd60055, 0 0 0 0 #fff0;
}
body {
  position: relative;
  /* Ensure decorative circles are positioned absolutely relative to body */
}



/* 1440px and below */
@media (max-width: 1440px) {
  .main_section_area { width: 90%; }
  #main-gradient-container { width: 90%; }
}
@media (max-width: 1225px) {
  .main_section_area { width: 95%; }
  #main-gradient-container { width: 95%; }
  .left_section{width: 51%;}
}
/* 1024px and below */
@media (max-width: 1024px) {
  .main_section_area, #main-gradient-container { width: 98%; flex-direction: column; padding: 20px;}
  .right_section {order: 1;}
  .left_section {order: 2;}
  .img_container {width: 50%;}
  #slider-container {
  width: 100%;
  margin: 20px 0 40px 10px;
  text-align: left;
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
}
/* Slider track styling */
#slider-container input[type="range"] {
  width: 50%;
}
.file-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 85px;
  margin-bottom: 50px;
}
#paletteBox-hiding {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 13px;
}
#palette-section {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  margin-bottom: 20px;
}
#shared-color-box {
  width: 50%;
}
#export-controls {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  margin-left: 10px;
}
#exportBtn {
  width: 55%;
}
  .left_section, .right_section { width: 100%; padding: 10px; }
  .menu-list { gap: 2px; font-size: 13px; }
}
/* Responsive menu for <= 900px */
@media (max-width: 900px) {
  .menu-container {
    position: relative;
  }
  #menuToggle {
    display: flex !important;
    z-index: 1201;
  }
  .menu-list {
    display: none;
  }
  .menu-list.mobile.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    width: 60vw;
    max-width: 340px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
    z-index: 1200;
    padding: 48px 28px 24px 28px;
    gap: 18px;
    border-radius: 16px 0 0 16px;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s;
    opacity: 1;
    transform: translateX(0);
  }
  .menu-list.mobile {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 60vw;
    max-width: 340px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
    z-index: 1200;
    padding: 48px 28px 24px 28px;
    gap: 18px;
    border-radius: 16px 0 0 16px;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s;
    opacity: 0;
    transform: translateX(100%);
  }
  body.menu-open {
    overflow: hidden;
  }
  .menu-list.mobile.open .menu-list {
    position: relative;
    right: 200px;
  }
  .menu-list.mobile.open .menu-item{
    position: relative;
    top: 100px;
    left: 10px;
    margin-bottom: 10px;
  }
  .menu-list.mobile.open .menu-item a {
    font-size: 1.2rem;
    padding: 14px 10px;
    width: 100%;
    border-radius: 8px;
    background: none;
    color: #06f;
    text-align: left;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
  }
  .menu-list.mobile.open .menu-item a.active {
    background: #06f !important;
    color: #fff !important;
  }
  .menu-list.mobile.open .menu-item a:hover {
    background: #0055cc !important;
    color: #fff !important;
  }
  .img_container {width: 60%;}
  #slider-container {
  width: 100%;
  margin: 20px 0 40px 10px;
  text-align: left;
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
}
/* Slider track styling */
#slider-container input[type="range"] {
  width: 55%;
}
.file-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 65px;
  margin-bottom: 50px;
}
#paletteBox-hiding {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 13px;
}
#palette-section {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  margin-bottom: 20px;
}
#shared-color-box {
  width: 50%;
}
#export-controls {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  margin-left: 10px;
}
#exportBtn {
  width: 55%;
}
}

/* 768px and below */
@media (max-width: 875px) {
  #policy-section {
  width: 50%;
  height: auto;
  display: grid;
  justify-content: center;
  align-items: center;
  position: relative;
  right: 0px;
}
}
/* 768px and below */
@media (max-width: 768px) {
  .main_section_area { flex-direction: column; }
  .left_section, .right_section { width: 100%; padding: 5px; }
  #color-code-details{
     width: 100% !important; 
    display: flex;
    flex-direction: column;
    align-items: center;
  } 
  #color-variations { width: 100% !important; }

  .img_container {width: 60%;}
  #slider-container {
  width: 100%;
  margin: 20px 0 40px 10px;
  text-align: left;
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
}
/* Slider track styling */
#slider-container input[type="range"] {
  width: 70%;
}
.file-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 65px;
  margin-bottom: 50px;
}
#paletteBox-hiding {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 13px;
}
#palette-section {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  margin-bottom: 20px;
}
#shared-color-box {
  width: 65%;
}
#export-controls {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  margin-left: 10px;
}
#exportBtn {
  width: 70%;
}
}

@media (max-width: 675px){

  footer {
  flex-direction: column;
}
#footer-logo {
  margin-bottom: 50px;
}
#footer-content{
  width: 100%;
}
#policy-section {
  width: 100%;
  height: auto;
  display: grid;
  justify-content: center;
  align-items: center;
  position: relative;
  right: 0px;
}
#more-section {
  width: 100%;
  height: auto;
  display: grid;
  justify-content: center;
  align-items: center;
}
.img_container {width: 65%;}
.file-section{
  gap: 30px;
}
}
@media (max-width: 575px) {
   .img_container {width: 75%;}
#slider-container input[type="range"] {
  width: 83%;
}
.file-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-bottom: 50px;
}
#shared-color-box {
  width: 80%;
}
#exportBtn {
  width: 85%;
  font-size: 13px;
}
.custom-file-label,
#useCameraBtn {
  background-color: #06f;
  padding: 8px 18px;
  font-size: 13px;
}
#useCameraBtn {
  padding: 10px 18px;
}
}

@media(max-width: 475px){
  .menu-list.mobile.open .menu-item a {
    font-size: 1rem;
  }
  .img_container {width: 80%;}
#slider-container input[type="range"] {
  width: 85%;
}
.file-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  margin-bottom: 50px;
}
#shared-color-box {
  width: 80%;
}
#exportBtn {
  width: 89%;
  font-size: 13px;
}
.custom-file-label,
#useCameraBtn {
  background-color: #06f;
  padding: 8px 14px;
  font-size: 13px;
}
#useCameraBtn {
  padding: 10px 14px;
}
}
/* 425px and below */
@media (max-width: 425px) {
  #hiding-container h1 { font-size: 28px; }
  .main_section_area, #main-gradient-container { width: 100%; padding: 20px 5px; }
  .logo-container img { width: 60px; height: 60px; }
  .menu-list { flex-direction: column; gap: 0; }
  .menu-item a { font-size: 13px; padding: 6px 8px; }
  .left_section, .right_section { padding: 2px; }
  .img_container {width: 85%;}
#slider-container input[type="range"] {
  width: 85%;
}
.file-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
}
#shared-color-box {
  width: 80%;
}
#exportBtn {
  width: 89%;
  font-size: 13px;
}
.custom-file-label,
#useCameraBtn {
  background-color: #06f;
  padding: 8px 10px;
  font-size: 13px;
}
#useCameraBtn {
  padding: 10px 10px;
}
  #footer-logo img { width: 105px; height: 105px; }
}

/* 375px and below */
@media (max-width: 375px) {
  .menu-list.mobile.open .menu-item{
    left: -20px;
  }
  .menu-list.mobile.open .menu-item a {
    font-size: .8rem;
  }
  #hiding-container h1 { font-size: 22px; }
  .menu-item a { font-size: 12px; padding: 4px 6px; }
  .color-format-box{width: 220px;}
  .img_container {width: 85%;}
#slider-container input[type="range"] {
  width: 85%;
}
.file-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 50px;
}
#shared-color-box {
  width: 80%;
}
#exportBtn {
  width: 89%;
  font-size: 13px;
}
.custom-file-label,
#useCameraBtn {
  background-color: #06f;
  padding: 8px 7px;
  font-size: 12px;
}
#useCameraBtn {
  padding: 10px 8px;
}
  #footer-logo img { width: 80px; height: 80px; }
}

/* 325px and below */
@media (max-width: 325px) {
  .menu-list.mobile.open .menu-item{
    left: -10px;
  }
  .menu-list.mobile.open .menu-item a {
    font-size: .7rem;
  }
  #hiding-container h1 { font-size: 16px; }
  .menu-item a { font-size: 10px; padding: 2px 4px; }
}