/* ===================== 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 .container,
html.dark-mode .info-section,
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 .info-section h3{
  color: #06f;
}

html.dark-mode .image-title{
  color: #fff;
}

/* 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 #sliderHiding,
html.dark-mode #container-descriptions h2 {
  color: #fff;
}

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;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border: 1px solid #ffe9e9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px 15px rgba(0, 0, 0, 0.05);
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
}

.description {
  text-align: center;
  margin-bottom: 40px;
  color: #555;
  line-height: 1.6;
}
.controls {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }
        #support-btns{
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        .search-filter {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        input,
        select,
        button {
            padding: 10px 15px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        #category-btn-section{
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            text-align: center;
        }

        input {
            min-width: 200px;
            background-color: white;
        }

        select {
            background-color: white;
            cursor: pointer;
        }

        button {
            background-color: #06f;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        button:hover {
            background-color: #0055cc;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }


        /* Base button styles */
        .category-btn {
            position: relative;
            padding: 10px 14px 10px 32px;
            /* Left padding for circle */
            border: none;
            border-radius: 6px;
            background-color: #e0e0e0;
            color: #333;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
            white-space: nowrap;
            margin: 7px;
        }

        /* Circle for each button */
        .category-btn::before {
            content: '';
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        /* Hover state */
        .category-btn:hover {
            background-color: rgb(198, 218, 249);
            /* Blue background on hover */
            /* color: white; */
            /* White text on hover */
        }

        /* Active (clicked) state */
        .category-btn.active {
            background-color: rgb(198, 218, 249);
            /* Blue background when active */
            color: #06f;
            /* White text when active */
        }

        /* Specific circle colors for each category - these never change */
        .category-btn[data-value="red"]::before {
            background-color: #ff0000;
        }

        .category-btn[data-value="maroon"]::before {
            background-color: #800000;
        }

        .category-btn[data-value="brown"]::before {
            background-color: #a52a2a;
        }

        .category-btn[data-value="tan"]::before {
            background-color: #d2b48c;
        }

        .category-btn[data-value="orange"]::before {
            background-color: #ffa500;
        }

        .category-btn[data-value="peach"]::before {
            background-color: #ffdab9;
        }

        .category-btn[data-value="gold"]::before {
            background-color: #ffd700;
        }

        .category-btn[data-value="yellow"]::before {
            background-color: #ffff00;
        }

        .category-btn[data-value="lime"]::before {
            background-color: #00ff00;
        }

        .category-btn[data-value="olive"]::before {
            background-color: #808000;
        }

        .category-btn[data-value="green"]::before {
            background-color: #008000;
        }

        .category-btn[data-value="teal"]::before {
            background-color: #008080;
        }

        .category-btn[data-value="cyan"]::before {
            background-color: #00ffff;
        }

        .category-btn[data-value="blue"]::before {
            background-color: #0000ff;
        }

        .category-btn[data-value="navy"]::before {
            background-color: #000080;
        }

        .category-btn[data-value="purple"]::before {
            background-color: #800080;
        }

        .category-btn[data-value="magenta"]::before {
            background-color: #ff00ff;
        }

        .category-btn[data-value="pink"]::before {
            background-color: #ffc0cb;
        }

        .category-btn[data-value="grey"]::before {
            background-color: #808080;
        }

        .category-btn[data-value="silver"]::before {
            background-color: #c0c0c0;
        }

        .category-btn[data-value="white"]::before {
            background-color: #ffffff;
            border: 1px solid #ccc;
            /* Make white circle visible */
        }

        .category-btn[data-value="black"]::before {
            background-color: #000000;
            border: 1px solid #ccc;
            /* Make black circle visible */
        }

        .color-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 20px;
        }

        .color-box {
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            transition: all 0.3s ease;
            box-shadow:
                0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.18),
                0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.18),
                2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.18),
                5px 10px 12.6px -2.5px hsl(var(--shadow-color) / 0.18);
        }

        .color-box:hover {
            transform: translateY(-5px);
            box-shadow:
                0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34),
                0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.34),
                2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.34),
                5px 10px 12.6px -2.5px hsl(var(--shadow-color) / 0.34);
        }
        
        /* Download button styles */
.download-btn {
  position: absolute;
  top: 8px;
  left: 4px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: white;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.color-box:hover .download-btn {
  opacity: 1;
}

/* Ensure color content has relative positioning */
.color-content {
  position: relative;
}


        .color-content {
            height: 180px;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            cursor: pointer;
        }

        .color-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
        }

        .color-content::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 30%;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
        }

        .color-details {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 15px;
            background-color: white;
            text-align: center;
        }

        .color-name {
            font-weight: 600;
            margin-bottom: 5px;
            color: #2c3e50;
        }

        .color-values {
            display: flex;
            justify-content: center;
            gap: 10px;
            font-size: 12px;
        }

        .hex-value,
        .rgb-value {
            padding: 3px 8px;
            border-radius: 4px;
            background-color: #f1f3f5;
            cursor: pointer;
            transition: all 0.2s;
            color: #000000;
        }

        .hex-value:hover,
        .rgb-value:hover {
            background-color: #d6e6f5;
        }

        .color-pattern {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0.15;
            background-image:
                radial-gradient(circle at 25% 25%, white 10%, transparent 20%),
                radial-gradient(circle at 75% 75%, white 10%, transparent 20%);
            background-size: 30px 30px;
        }

        .color-stripe {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 10px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
        }

        .copy-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: #06f;
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            display: none;
            z-index: 1000;
            animation: fadeIn 0.3s;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .color-tag {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: rgba(255, 255, 255, 0.9);
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            color: #2c3e50;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .color-circle {
            position: absolute;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            top: -20px;
            left: -20px;
        }

        .color-diamond {
            position: absolute;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.2);
            transform: rotate(45deg);
            bottom: 20px;
            right: 20px;
        }

        .clickable-area {
            cursor: pointer;
            position: relative;
        }

        .load-more-container {
            text-align: center;
            margin: 30px 0;
        }

        .load-more-btn {
            background-color: #06f;
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .load-more-btn:hover {
            background-color: #0055cc;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .end-message {
            margin-top: 15px;
            color: #6c5ce7;
            font-weight: 500;
            font-size: 14px;
            display: none;
        }

        #loadingIndicator {
            text-align: center;
            padding: 20px;
            display: none;
        }

        .error-message {
            text-align: center;
            color: #dc3545;
            padding: 20px;
            display: none;
        }
.info-section {
  width: 100%;
  margin-top: 40px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: start;
  padding-left: 40px;
}
.info-hiding{
  width: 100%;
  height: auto;
  display:flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}
.info-section h3 {
  color: #2c3e50;
  margin-top: 0;
  font-size: 22px;
}

.info-section p {
  line-height: 3.3;
}

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;
  }

  #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;
  }

  #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;
  }
}

@media (max-width: 768px) {
            .color-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }

            .controls {
                flex-direction: column;
            }
            #support-btns{
                        flex-direction: column;
                        align-items: center;
            }
            .search-filter {
                width: 100%;
                margin-bottom: 10px;
            }
            #searchInput{
                    width: 100%;
            }

            input {
                flex-grow: 1;
            }
            .category-btn {
                padding: 6px 10px 6px 26px;
                font-size: 12px;
            }

            .category-btn::before {
                width: 10px;
                height: 10px;
                left: 8px;
            }

            .search-filter {
                flex-direction: column;
                align-items: flex-start;
            }
        }

@media (max-width: 675px) {

  .info-section {
  padding-left: 20px;
}

  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;
  }

  .file-section {
    gap: 30px;
  }
}

@media (max-width: 575px) {

  #slider-container input[type="range"] {
    width: 83%;
  }

  .file-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
  }

  #shared-color-box {
    width: 80%;
  }

  #exportBtn {
    width: 85%;
    font-size: 13px;
  }

  .custom-file-label,
  #useCameraBtn {
    background-color: #06f;
    padding: 8px 16px;
    font-size: 12px;
  }

  #useCameraBtn {
    padding: 10px 16px;
  }
}

@media(max-width: 475px) {
  .menu-list.mobile.open .menu-item a {
    font-size: 1rem;
  }

  #slider-container input[type="range"] {
    width: 85%;
  }

  .file-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin-bottom: 50px;
    padding: 0px;
  }

  #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;
  }
  .info-section {
  padding-left: 0px;
}
}

/* 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;
  }

  #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;
  }

  #slider-container input[type="range"] {
    width: 85%;
  }
  #functionality-section{
    padding: 5px 5px;
  }
  .input-section {
    width: 100%;
  }
  .file-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
  }

  #shared-color-box {
    width: 80%;
  }

  #exportBtn {
    width: 89%;
    font-size: 13px;
  }

  .custom-file-label,
  #useCameraBtn {
    background-color: #06f;
    padding: 7px 6px;
    font-size: 11px;
  }

  #useCameraBtn {
    padding: 8px 6px;
  }

  #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;
  }
}