html {
    position: relative;
    height: 100%;
}

/*black white theme*/
html[data-theme="dark"] {
    --main-backgroundcolor_hex: var(--soft-black-hex);
    --main_backgroundcolor_rgb: var(--soft-black-rgb);
    --header-background_hex: var(--p-white-soft-hex); /*var(--nav-gray_hex);*/
    --main-color_hex: var(--p-white-soft-hex);
    --main-color-rgb: var(--p-white-soft-rgb);
    --header-color: var(--p-white-soft-hex);
    --footer-color: var(--p-white-soft-hex);
    --border-color: var(--gray-max_hex);
    --box-shadow: RGB(68, 68, 68, 0.15);
    --button-color_hex: var(--green_hex);
    --button-color-focus_hex: var(--green-darker_hex);
    --signal-color_hex: var(--p-orange_hex);
    --border_width_standard: 0.02rem;
}

html[data-theme="dark"] .img_invert {
    /*invert color of icons*/
    filter: invert(1) hue-rotate(180deg);
}

html[data-theme="dark"]::before {
    filter: grayscale(0.2) opacity(0.8) brightness(1);
    /*opacity: 0.4; Ensures the same opacity for the dark theme */
}

html {
    transition:
        color 300ms,
        background-color 300ms;
    background: var(--main-backgroundcolor_hex);
    color: var(--main-color_hex);
}
