/* ===================== 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 #main-gradient-container,
html.dark-mode #main-palette-container,
html.dark-mode .palette-container-hiding,
html.dark-mode #gradient-btn-box,
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;
}

html.dark-mode .main_section_area,
html.dark-mode #palette-container,
html.dark-mode .color-format-box {
  background: var(--bg-glass) !important;
  box-shadow: var(--shadow);
  border-color: var(--border-light) !important;
}
html.dark-mode #container-descriptions h2{
  color: #fff;
}
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 #clearBtn,
html.dark-mode #exportBtn,
html.dark-mode #copy-btn,
html.dark-mode .selected-option,
html.dark-mode #direction-select {
  background-color: var(--accent);
  color: #fff;
}

html.dark-mode #clearBtn:hover,
html.dark-mode #exportBtn:hover,
html.dark-mode #copy-btn:hover,
html.dark-mode .selected-option:hover,
html.dark-mode #direction-select:hover,
html.dark-mode #direction-select:focus {
  background-color: var(--accent-hover);
}

html.dark-mode .color-format-box {
  color: var(--text-main);
}

html.dark-mode .color-format-box .code {
  color: var(--text-main);
}
html.dark-mode .format-label {
  color: var(--text-main); /* Or #fff */
}
html.dark-mode .copied-above-button {
  background: #23272b;
  color: var(--accent);
}

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; /* Changed font stack */
}

body {
  font-family: 'Roboto', sans-serif; /* Changed font */
  text-align: center;
  margin: 0;
  padding: 0;
  background: white;
  color: #333; /* Added */
  line-height: 1.6; /* Added */
  box-sizing: border-box;
}

header {
  width: 100%;
  height: auto;
  position: sticky; /* Added */
  top: 0; /* Added */
  z-index: 100; /* Added */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Added */
}

#main-menu-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  padding: 15px 10px; /* Changed padding */
  border-bottom: 1px solid #e3e3e3; /* Changed border */
  background-color: #fff; /* Changed background */
}

.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; /* Changed gap */
  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: 0px;
  margin: 0px;
  box-sizing: border-box;
  background: #fff; /* Added */
}

#hiding-container {
  margin-top: 40px; /* Changed margin */
  padding: 20px;
}

#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; */
}

#container-descriptions {
  width: 100%;
  height: auto;
  padding: 0 20px 20px; /* Changed padding */
  margin-bottom: 40px; /* Changed margin */
  max-width: 700px; /* Added */
  margin-left: auto; /* Added */
  margin-right: auto; /* Added */
}

#container-descriptions h2 {
  font-size: 18px; /* Changed size */
  font-weight: 400; /* Changed weight */
  color: #666; /* Changed color */
  line-height: 1.5; /* Added */
}

#functionality-section {
  width: 100%;
  height: auto;
  padding: 20px 10px; /* Changed padding */
  display: flex;
  justify-content: center;
  align-items: center;
}

.main_section_area {
  width: 70%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border: 1px solid #e3e3e3; /* Changed border */
  border-radius: 12px; /* Changed radius */
  overflow: hidden; /* Added */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Added */
}

.left_section {
  margin-left: 10px;
  margin-right: auto;
  max-width: 90%;
  width: 40%;
  height: auto;
  padding: 10px;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.right_section {
  width: 60%;
  height: 100%;
  padding: 30px; /* Changed padding */
  background-color: #fafafa; /* Changed background */
  border-radius: 0px 12px 12px 0px; /* Changed radius */
  display: grid;
  justify-content: center;
  align-items: center;
}

#gradien_section {
  width: 100%;
  height: auto;
  padding: 10px; /* Changed padding */
  display: flex;
  justify-content: center;
  align-items: center;
}

#main-gradient-container {
  width: 71%;
  height: auto;
}

#main-palette-container {
  width: 100%;
  height: auto;
  padding: 5px;
}

.pallete_colors_box {
  width: 100%;
  height: auto;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#color-details-box {
  width: 100%;
  height: auto;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#palette-container {
  width: 100%;
  display: inline-block;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.palette-container-hiding{
  width: 100%;
  height: auto;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.palette-container-palette{
  width: 100%;
  height: auto;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.palette-btns-box{
  width: 100%;
  height: auto;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#clearBtn {
  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);
  margin: 7px;
}

#clearBtn:hover {
  background-color: #0055cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#exportBtn {
  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);
  margin: 7px;
}

#exportBtn:hover {
  background-color: #0055cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive 8 color format boxes */
#color-details {
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 10px;
}
.color-format-box {
  width: 280px;
  padding: 15px;
  border-radius: 8px;
  background: #f5f5f5;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  position: relative;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  margin: 10px 0;
  transition: all 0.2s ease;
}

.color-format-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.format-label {
  color: #333;
}
.color-format-box .code {
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  color: #333;
  word-break: break-word;
}

.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;
}
#controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#spectrum-container {
  position: relative;
  width: 150px;
  height: 500px;
  background: linear-gradient(to bottom, red, yellow, lime, cyan, blue, magenta, red, orange);
  cursor: crosshair;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#spectrum-cursor {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#shade-box {
  width: 400px;
  height: 400px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 5px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.shade {
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #000;
  font-weight: bold;
  user-select: none;
}

.shade:hover::after {
  content: "Click to copy";
  position: absolute;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 4px;
}

.slider-container {
  display: grid;
  justify-content: flex-start;
  align-items: start;
  margin: 10px;
}
.slider-container label {
  justify-self: start;
  font-weight: bold;
  margin-bottom: 5px;
}
#saturation-slider {
  margin-top: 15px;
  width: 200px;
  transform-origin: left bottom;
  appearance: none;
  height: 8px;
  border-radius: 5px;
  outline: none;
  background: linear-gradient(to right, #06f 0%, #ccc 0%);
}

/* Webkit */
#saturation-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background:white ;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #06f;
  margin-top: -3px;
}

#saturation-slider::-webkit-slider-runnable-track {
  background: transparent;
  height: 8px;
  border-radius: 5px;
}

/* Firefox */
#saturation-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #06f;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
}

#saturation-slider::-moz-range-track {
  background: transparent;
  height: 8px;
  border-radius: 5px;
}

/* Highlight the selected shade */
.shade.active-shade {
  border: 1px solid black !important;
  box-shadow: 0 0 2px black;
}
.palette-swatch {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
#gradient-box{
  margin-top: 20px; /* Changed margin */
  width: 100%;
  height: 60px;
  border-radius: 8px;
  border: 1px solid #ddd; /* Changed border */
  position: relative;
  background: #fafafa; /* Added */
}
/* Label Styling */
label[for="direction-select"] {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
}

/* Select Dropdown Styling */
#direction-select {
  appearance: none;
  background-color: #06f;
  border: 2px solid #fff;
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
/* Add dropdown arrow using background */
#direction-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='70,100 20,40 120,40' fill='%2306f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

/* Hover & Focus Styles */
#direction-select:hover,
#direction-select:focus {
  background-color: #0055cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.copied-above-button {
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #06f;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 10;
}
#gradient-btn-box{
  width: 100%;
  height: auto;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.custom-dropdown {
  position: relative;
  width: 220px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Top box styling */
.selected-option {
  background-color: #06f;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 8px;
}
.selected-option:hover{
  background-color: #0055cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* Dropdown box styling */
.dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 2px solid #06f;
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 99;
}

/* Dropdown option items */
.dropdown-options div {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #06f;
  border-top: 1px solid #eee;
}

.dropdown-options div:hover {
  background-color: #06f;
  color: white;
}
#copy-btn {
  background-color: #06f;
  color: white;
  border: none;
  padding: 15px 30px;
  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);
  margin: 7px;
}

#copy-btn:hover {
  background-color: #0055cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
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%; }
}

/* 1024px and below */
@media (max-width: 1024px) {
  .main_section_area, #main-gradient-container { width: 98%; flex-direction: column; }
  .left_section, .right_section { width: 100%; padding: 10px; }
  .menu-list { gap: 2px; font-size: 13px; }
  .left_section{
   width: 100%;
   max-width: 100%;
   margin: 20px;
  }
  #controls {
    width: 50%;
    flex-direction: row !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
  }
  #spectrum-container {
    width: 100% !important;
    height: 60px !important;
    background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red, orange) !important;
    border-radius: 8px;
    margin-bottom: 12px;
    margin-right: 0;
    margin-left: 0;
    position: relative;
    display: block;
  }
  #spectrum-cursor {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
}
/* 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;
  }
   #controls {
    width: 60%;
    flex-direction: row !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
  }
}

/* 768px and below */
@media (max-width: 875px) {
  #controls {
    width: 65%;
  }
  #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; }
  #palette-section, #export-controls { flex-direction: column; align-items: flex-start; }
  #main-gradient-container { width: 100%; }
  #color-code-details, #color-variations { width: 100% !important; }
  #controls {
    width: 70%;
  }
}

@media (max-width: 675px){
  #controls {
    width: 75%;
  }

  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;
}
}

@media (max-width: 550px){
  #controls {
    width: 80%;
  }
}

@media(max-width: 475px){
  .menu-list.mobile.open .menu-item a {
    font-size: 1rem;
  }
  #shade-box {
  width: 340px;
  height: 340px;
}
  #controls {
    width: 98%;
  }
}

/* 425px and below */
@media (max-width: 425px) {
  #hiding-container h1 { font-size: 28px; }
  .main_section_area, #main-gradient-container { width: 100%; }
  .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; }
  #clearBtn {
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
}
#exportBtn {
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
}
#copy-btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
}
.custom-dropdown {
  position: relative;
  width: 130px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Top box styling */
.selected-option {
  background-color: #06f;
  color: white;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
}
  #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; }
  .shade{
    width: 45px;
    height: 45px;
    font-size: 9px;
  }
  .palette-swatch{
    width: 45px;
    height: 45px;
  }
  #shade-box {
  width: 275px;
  height: 275px;
}
  #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; }
  #clearBtn {
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 11px;
}
#exportBtn {
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 11px;
}
}