* {
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, arial, sans-serif
}

body {
    font-size: 16px;
    transition: all .1s linear 0s;
    background: #fff
}

body.night {
    transition: all .1s linear 0s;
    background: #000
}

.wrapper {
    position: relative
}

header.header {
    grid-area: header
}

header.header h1 {
    font-weight: 400;
    font-size: 2.3em;
    color: #dcdce3;
    padding-top: 14px
}

.palette {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows:auto 70vh 45px auto auto;
    grid-template-columns:70vh 45px 28vh;
    grid-template-areas:"header header header" "color-picker tone-picker info" "alpha-picker theme-switcher tools" "example-text example-text example-text" "languages languages languages" "color-sets color-sets color-sets" "article article article" "comments comments comments" "footer footer footer";
    grid-gap: 7px;
    justify-content: center;
    width: 100%
}

.palette .info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%
}

.palette .info .select-wrapper {
    display: none
}

.palette .info .color-preview {
    grid-area: color-viewer;
    overflow: hidden;
    width: 100%;
    height: 20vh;
    border-radius: 5px;
    background-color: #fff
}

.palette .info .inputs {
    grid-area: inputs;
    display: flex;
    flex-flow: column nowrap;
    align-items: center
}

.palette .info .inputs .caption {
    color: #616161;
    font-size: .7em
}

.palette .info .inputs label {
    margin: 10px 0 2px
}

.palette .info .inputs input {
    box-sizing: border-box;
    transition: all .1s linear 0s;
    padding: .35em 0;
    text-align: center;
    color: #616161;
    border: #fff solid 1px;
    border-radius: 5px;
    width: 90%;
    font-size: 1em;
    outline: none;
    background: #fff
}

.palette .info .inputs .hex-wrapper {
    width: 90%;
    display: grid;
    grid-template-columns:20px 1fr;
    grid-template-areas:"lattice hex"
}

.palette .info .inputs .hex-wrapper .lattice {
    grid-area: lattice;
    color: #616161;
    font-size: 1.4em;
    padding-top: 10px
}

.palette .info .inputs .hex-wrapper input {
    grid-area: hex;
    width: 100%
}

.palette .info .inputs input, .palette .info .inputs .rgb-wrapper {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15)
}

.palette .info .inputs .rgb-wrapper {
    transition: all .1s linear 0s;
    width: 90%;
    border: #fff solid 1px;
    border-radius: 5px;
    background: #fff
}

.palette .info .inputs .rgb-wrapper input {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0);
    background: none;
    width: 100%
}

.palette .info .inputs .rgb-wrapper .line {
    transition: all .1s linear 0s;
    position: relative;
    margin: 0 auto;
    width: 90%;
    height: 1px;
    background: #d4d4d4
}

.palette .color-picker {
    grid-area: color-picker;
    position: relative;
    height: 100%
}

.palette .color-picker .color-picker-background {
    z-index: 10;
    position: absolute;
    top: 0
}

.palette .color-picker .cursor-svg {
    z-index: 11;
    overflow: visible;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%
}

.palette .tone-picker {
    grid-area: tone-picker;
    position: relative;
    height: 100%
}

.palette .tone-picker .tone-picker-background {
    z-index: 10;
    position: absolute;
    top: 0
}

.palette .tone-picker .cursor-svg {
    z-index: 11;
    overflow: visible;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%
}

.palette .alpha-picker {
    grid-area: alpha-picker;
    position: relative;
    height: 100%
}

.palette .alpha-picker .alpha-picker-background {
    z-index: 10;
    position: absolute;
    top: 0
}

.palette .alpha-picker .cursor-svg {
    z-index: 11;
    overflow: visible;
    position: absolute;
    top: 0;
    height: 100%
}

.palette .transparent-fill {
    transition: all .1s linear 0s;
    fill: #dbdbdb
}

.palette .color-picker-background, .palette .tone-picker-background, .palette .alpha-picker-background {
    overflow: hidden;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    touch-action: none
}

.palette .tone-picker-cursor-horizontal {
    display: none
}

.palette .tone-gradient-horizontal {
    display: none
}

.palette .tools {
    position: relative;
    grid-area: tools;
    display: flex;
    align-items: center
}

.palette .tools .dwnld-btn {
    background: #f2f2f2;
    width: 45px;
    cursor: pointer;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px
}

.palette .tools .dwnld-btn svg {
    vertical-align: middle;
    fill: rgba(0, 0, 0, .25)
}

a {
    color: #00b3ff;
    font-size: 1em;
    text-decoration: none
}

a:hover {
    color: #36c3ff
}

a:active {
    color: #0094d4
}

.example-text {
    grid-area: example-text;
    font-size: 1em;
    width: 100%;
    padding: 5px 0;
    border: none
}

.example-text:hover {
    background: rgba(0, 0, 0, .05)
}

.example-text:focus {
    outline: none;
    background: none
}

article.article {
    grid-area: article
}

article.article p {
    font-size: 1em;
    color: #454545;
    line-height: 22pt;
    padding-top: 5px
}

article.article a {
    font-size: 1em
}

.languages {
    grid-area: languages;
    font-weight: bold
}

.languages a {
    margin-right: 10px
}

.languages a:hover {
    color: #d00
}

.comments {
    grid-area: comments;
    display:none;
}

.footer {
    grid-area: footer;
    text-align: center;
    padding: 20px 0;
    font-size: 1em
}

.footer a {
    font-size: 1em
}

.night .footer {
    color: #454545
}

.non-select {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    cursor: default
}

.scale-out-anim {
    -webkit-transition-property: none !important;
    -moz-transition-property: none !important;
    -o-transition-property: none !important;
    transition-property: none !important;
    opacity: 0 !important
}

.cursor {
    opacity: 0;
    touch-action: none
}

.mobile-background {
    display: none
}

.mobile-color-model-select {
    display: none
}

.theme-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-area: theme-switcher;
    cursor: pointer;
    border-radius: 5px;
    background: #f2f2f2
}

.theme-switcher svg {
    fill: rgba(0, 0, 0, .25);
    transform: rotate(22deg)
}

.dark-bckgr {
    z-index: 3;
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .3)
}

.dark-bckgr.visible {
    display: block
}

.night header.header h1 {
    color: #3a3a3c
}

.night .palette .info .color-preview {
    background-color: #000
}

.night .transparent-fill {
    transition: all .1s linear 0s;
    fill: #404040
}

.night .palette .inputs input {
    transition: all .1s linear 0s;
    color: #787878;
    border-color: #000;
    box-shadow: none;
    background: #383838
}

.night .palette .inputs input:focus {
    border-color: #424242;
    background: #1f1f1f
}

.night .palette .inputs input::selection {
    background: #949494
}

.night .palette .inputs .rgb-wrapper {
    border-color: rgba(0, 0, 0, 0);
    box-shadow: none;
    background: rgba(0, 0, 0, 0)
}

.night .palette .inputs .rgb-wrapper input {
    transition: all .1s linear 0s;
    color: #787878;
    border-color: #000;
    box-shadow: none;
    background: #383838
}

.night .palette .inputs .rgb-wrapper input:focus {
    border-color: #424242;
    background: #1f1f1f
}

.night .palette .inputs .rgb-wrapper input::selection {
    background: #949494
}

.night .palette .inputs .rgb-wrapper.focus {
    border-color: rgba(0, 0, 0, 0)
}

.night .palette .inputs .rgb-wrapper .line {
    transition: all .1s linear 0s;
    background: rgba(0, 0, 0, 0)
}

.night .author-link {
    color: #8e8e93 !important
}

.night .info .donate-btn {
    color: #ccc;
    background: #4f4f4f
}

.night .info .donate-btn:hover {
    background: #545454
}

.night .info .donate-btn:active {
    background: #2b2b2b;
    color: #787878
}

.night .info .donate-btn svg {
    fill: #000
}

.night a {
    color: #878787
}

.night a:hover {
    color: #a3a3a3
}

.night a:active {
    color: #6b6b6b
}

.night a a {
    color: #ccc
}

.night a a:hover {
    color: #fff
}

.night a a:active {
    color: #aaa
}

.night .theme-switcher {
    background: #000
}

.night .theme-switcher svg {
    fill: rgba(255, 255, 255, .33)
}

.night .theme-switcher:hover svg {
    fill: rgba(255, 255, 255, .5)
}

.night .tools .dwnld-btn {
    background: #000
}

.night .tools .dwnld-btn svg {
    fill: rgba(255, 255, 255, .33)
}

.night .tools .dwnld-btn:hover svg {
    fill: rgba(255, 255, 255, .5)
}

.night .example-text:hover {
    background: rgba(255, 255, 255, .17)
}

.night .alpha-picker-background .transparent-white {
    display: none
}

.night article.article {
    position: relative;
    margin: 0 auto;
    max-width: 1361.41px
}

.night article.article h1 {
    font-size: 1.5em;
    color: #454545
}

.night article.article div.quotation div.text {
    background: #1c1c1e
}

.night article.article div.quotation div.text p {
    color: #636366 !important
}

.night article.article div.quotation div.grey-arrow .quotation-arrow {
    fill: #1c1c1e !important
}

.night article.article div.quotation-author {
    color: #454545
}

@media only screen and (max-device-width: 1125px) {
    html, body {
        overscroll-behavior-y: contain
    }

    .theme-switcher, .palette .tools .dwnld-btn {
        display: none
    }

    .mobile-background {
        display: initial;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh
    }

    .wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-end
    }

    .wrapper .comments {
        display: none
    }

    .wrapper .palette {
        font-size: 1em;
        display: grid;
        grid-template-rows:34px minmax(10px, 50px) minmax(100px, 94vw) minmax(10px, 50px);
        grid-template-columns:94vw;
        grid-template-areas:"info" "alpha-picker" "color-picker" "tone-picker";
        grid-gap: 10px;
        justify-content: center;
        align-content: end;
        padding: 3vw;
        box-sizing: border-box;
        margin: 0;
        width: 100%;
        height: 100vh
    }

    .wrapper .palette .header {
        display: none
    }

    .wrapper .palette .info {
        order: 1;
        display: flex;
        align-items: flex-end;
        font-size: 1em
    }

    .wrapper .palette .info .color-preview {
        display: none
    }

    .wrapper .palette .info .inputs-wrapper {
        width: 100%;
        height: 100%
    }

    .wrapper .palette .info .inputs {
        display: grid;
        width: 100%;
        grid-column-gap: 10px;
        grid-template-columns:120px 1fr;
        grid-template-rows:auto;
        grid-template-areas:"select input";
        align-items: flex-end;
        justify-content: center;
        height: 100%
    }

    .wrapper .palette .info .inputs .caption {
        display: none
    }

    .wrapper .palette .info .inputs input {
        display: none;
        width: 100%;
        font-size: 1em;
        padding: .2em 0 .15em 0;
        border-radius: 100vw;
        color: #000;
        background: #fff
    }

    .wrapper .palette .info .inputs input:focus {
        background: #fff
    }

    .wrapper .palette .info .inputs .hex-wrapper .lattice {
        display: none
    }

    .wrapper .palette .info .inputs .rgb-wrapper, .wrapper .palette .info .inputs .hex-wrapper {
        display: none;
        border: none;
        width: 100%;
        height: 100%
    }

    .wrapper .palette .info .inputs .rgb-wrapper .line, .wrapper .palette .info .inputs .hex-wrapper .line {
        display: none
    }

    .wrapper .palette .info .inputs .selected {
        grid-area: input;
        display: initial
    }

    .wrapper .palette .info .select-wrapper {
        position: relative;
        grid-area: select;
        display: block;
        height: 100%
    }

    .wrapper .palette .info .select-wrapper .select-substitute {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background: #000;
        color: #fff;
        text-align: center;
        border-radius: 100vw;
        padding: .2em 0 .15em 0;
        line-height: 1.2em;
        font-size: 1em
    }

    .wrapper .palette .info .select-wrapper select.mobile-color-model-select {
        opacity: 0;
        box-sizing: border-box;
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0 auto;
        line-height: 30px;
        outline: none;
        font-size: 1em;
        font-weight: bold;
        color: #fff;
        text-align-last: center;
        text-align: -webkit-center;
        border: none;
        background: red;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none
    }

    .wrapper .palette .info .hex-input-lattice {
        display: none
    }

    .wrapper .palette .info .author {
        display: none
    }

    .wrapper .palette .info .donate-btn {
        display: none
    }

    .wrapper .palette .color-picker {
        order: 3;
        width: 100%;
        height: 100%
    }

    .wrapper .palette .tone-picker {
        order: 2;
        width: 100%;
        height: 100%
    }

    .wrapper .palette .tone-picker .tone-gradient-horizontal {
        display: initial
    }

    .wrapper .palette .tone-picker .tone-gradient-vertical {
        display: none
    }

    .wrapper .palette .alpha-picker .transparent-fill {
        fill: #bdbdbd
    }

    .wrapper .palette .tone-picker-cursor-vertical {
        display: none
    }

    .wrapper .palette .tone-picker-cursor-horizontal {
        display: initial
    }

    .wrapper .palette .tools {
        display: none
    }

    .wrapper .palette .example-text {
        display: none
    }

    .wrapper .palette .article, .wrapper .palette .footer, .wrapper .palette .languages {
        display: none
    }
}

.paint-filed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    overflow: hidden
}

.dwnld-popup, .dwnld-btn {
    display: none
}

.dwnld-popup {
    display: none;
    z-index: 100
}

.dwnld-popup.visible {
    display: block
}

.dwnld-popup .popup {
    z-index: 5;
    position: fixed;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: max-content;
    height: 200px;
    padding: 10px;
    border-radius: 5px;
    background: #fff;
    box-shadow: #000 0 20px 100px -15px
}

.dwnld-popup .popup .dwnld-trnsprnt {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 500px;
    height: 149px
}

.dwnld-popup .popup .rect {
    position: relative;
    width: 500px;
    height: 150px;
    background: #007aff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 17pt
}

.dwnld-popup .popup .rect input {
    transition: all 130ms ease-in-out;
    width: 100px;
    padding: 4px 0;
    margin: 0 10px;
    font-size: 21pt;
    text-align: center;
    background: rgba(255, 255, 255, .3);
    border: none;
    outline: none;
    color: #fff;
    border-radius: 5px
}

.dwnld-popup .popup .rect input.dark {
    color: rgba(0, 0, 0, .9);
    background: rgba(0, 0, 0, .2)
}

.dwnld-popup .popup .rect input::placeholder {
    color: #fff
}

.dwnld-popup .popup .rect input.dark::placeholder {
    color: rgba(0, 0, 0, .9)
}

.dwnld-popup .popup .rect input:focus::placeholder {
    color: rgba(255, 255, 255, 0)
}

.dwnld-popup .popup .rect input.dark:focus::placeholder {
    color: rgba(0, 0, 0, 0)
}

.dwnld-popup .popup .rect input:hover {
    background: rgba(255, 255, 255, .4)
}

.dwnld-popup .popup .rect input.dark:hover {
    background: rgba(0, 0, 0, .17)
}

.dwnld-popup .popup .rect input:focus {
    background: rgba(255, 255, 255, .2)
}

.dwnld-popup .popup .rect input.dark:focus {
    background: rgba(0, 0, 0, .22)
}

.dwnld-popup .popup .rect input::-webkit-inner-spin-button {
    -webkit-appearance: none
}

.dwnld-popup .popup .btns {
    display: flex;
    justify-content: space-between;
    margin-top: 10px
}

.dwnld-popup .popup .btns .dwnld-btns {
    display: flex
}

.dwnld-popup .popup .btns .dwnld-btns .btn {
    width: 80px;
    margin-left: 7px;
    color: #fff;
    background: #007aff
}

.dwnld-popup .popup .btns .dwnld-btns .btn:hover {
    background: #1486ff
}

.dwnld-popup .popup .btns .dwnld-btns .btn:active {
    background: #0074f0
}

.dwnld-popup .popup .btns .btn.cancel {
    border: #c2c2c2 solid 1px;
    color: #525252
}

.dwnld-popup .popup .btns .btn.cancel:hover {
    border: #999 solid 1px
}

.dwnld-popup .popup .btns .btn.cancel:active {
    background: #f2f2f2
}

.btn {
    width: 100px;
    padding: 9px 0;
    font-size: 14pt;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    user-select: text;
    -webkit-user-select: none
}

.night .popup {
    background: #2b2b2b
}
