/* ===================== 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,
html.dark-mode .color-header,
html.dark-mode .all-shades-title {
    color: #06f;
}

html.dark-mode .image-title,
html.dark-mode .color-detail-label,
html.dark-mode .color-detail-value {
    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);
}

.main_section_area {
    width: 80%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 20px;
    flex-direction: row;
}

.color-header {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 45px;
    color: #333;
    padding: 25px;
}
.color-description {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.color-display {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.color-box {
    width: 370px;
    height: 320px;
    border-radius: 8px;
    box-shadow: 0 4px 12px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid #000000;
}

.color-details {
    flex: 0.7;
    font-family: monospace;
    font-size: 24px;
}

.color-detail-row {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.color-detail-label {
    min-width: 80px;
    /* Ensures consistent spacing */
    margin-right: 20px;
    /* Space between label and value */
}

/* Add this to your existing CSS */
.copy-all-btn {
    background-color: #06f;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 13px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    color: white;
}

.copy-all-btn:hover {
    background-color: #0055cc;
}

.copy-all-btn:active {
    background-color: #d0d0d0;
}

.copy-all-btn i {
    margin-right: 5px;
}

.color-detail-label {
    width: 80px;
    font-weight: bold;
    color: #555;
}

.color-detail-value {
    flex: 1;
}

.variations-section {
    margin-top: 40px;
}

.all-shades-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

.variations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 160px);
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    /* This centers the grid items */
}

.variation-box {
    width: 160px;
    height: 100px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.variation-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.variation-download-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.variation-box:hover .variation-download-btn {
    opacity: 1;
}

.variation-download-btn:hover {
    background: white;
    color: #06f;
}
.variation-value {
    padding: 10px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.back-btn {
    display: inline-block;
    margin-bottom: 30px;
    padding: 10px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 16px;
}

.back-btn:hover {
    background: #555;
}

.original-color {
    outline: 3px solid #333;
    outline-offset: 3px;
    position: relative;
}

.original-color::after {
    content: "Original";
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.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;
    }

    .color-details {
        flex: 1;
        font-family: monospace;
        font-size: 24px;
        line-height: 55px;
    }

    .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;
    }
}

/* 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;
    }

    .color-display {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .color-box {
        width: 100%;
        max-width: 370px;
        /* Prevents box from getting too wide */
        height: 280px;
    }

    .color-details {
        width: 100%;
        max-width: 400px;
        /* Optimal reading width */
        text-align: center;
        margin-left: 0;
    }

    .color-detail-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .color-detail-label {
        margin-right: 10px;
        margin-bottom: 5px;
    }

    .color-detail-value {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@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: 600px) {
    .variations-grid {
        grid-template-columns: repeat(auto-fit, 140px);
        gap: 15px;
    }

    .variation-box {
        width: 140px;
        height: 90px;
    }

    .color-details {
        font-size: 20px;
    }

    .color-box {
        height: 250px;
    }

    .color-detail-label {
        min-width: 70px;
    }
}

@media (max-width: 575px) {}

@media(max-width: 475px) {
    .menu-list.mobile.open .menu-item a {
        font-size: 1rem;
    }

    .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;
    }

    #container-descriptions h2 {
        font-size: 14px;
    }

    .logo-container img {
        width: 60px;
        height: 60px;
    }

    .menu-list {
        flex-direction: column;
        gap: 0;
    }

    .menu-item a {
        font-size: 13px;
        padding: 6px 8px;
    }

    .color-details {
        font-size: 18px;
    }

    .color-box {
        height: 220px;
    }

    .color-detail-row {
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .color-detail-label {
        min-width: 60px;
        margin-right: 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;
    }

    .menu-item a {
        font-size: 12px;
        padding: 4px 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: 27px;
    }

    #container-descriptions h2 {
    font-size: 13px;
}

    .menu-item a {
        font-size: 10px;
        padding: 2px 4px;
    }
}