/*coolHue Stylesheet */

* {
    box-sizing: border-box;
}

::selection {
    background: #2e2e2e;
    color: #FFFFFF;
}

body {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Source Sans Pro', sans-serif;
    margin: 0;
}

a {
    color: #2750C4;
    text-decoration: none;
}

.ch-topbar {
    width: 100%;
    border-bottom: solid 1px #E5E5E5;
    background: #FFFFFF;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.08);
    font-size: 0;
}

.ch-topbar .grid-lt {
    width: 35%;
    display: inline-block;
    vertical-align: middle;
    padding: 10px;
}
.ch-topbar .grid-lt img{
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}
.ch-topbar .grid-lt h1{
    font: 20px 'Source Sans Pro', sans-serif;
    background: linear-gradient(45deg, #ff36a5 25%, #0060ff 50%, #43008f 70%);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}
.ch-topbar .grid-rt {
    width: 65%;
    display: inline-block;
    text-align: right;
    vertical-align: middle;
    padding: 0 10px;
}

.ch-share-brick {
    padding: 0 5px;
    border-radius: 5px;
    color: #534e5c;
    background: #FFFFFF;
    transition: .25s ease-in;
    transform: translateY(0px);
    display: inline-block;
    text-decoration: none;
    margin: 5px;
}

.ch-share {
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    opacity: .75;
    transition: .25s ease-in;
}

.ch-share-text,
.ch-starcount {
    display: inline-block;
    vertical-align: middle;
    color: #534e5c;
    font-size: 16px;
    margin-left: 3px;
}

.ch-share:hover {
    opacity: 1;
}

.twitter {
    background-image: url("../images/icon-twitter.svg");
}

.facebook {
    background-image: url("../images/icon-facebook.svg");
}

.github {
    background-image: url("../images/icon-github.svg");
}

p {
    font-size: 18px;
    color: #929197;
    padding: 15px 25px;
}

.ch-paper {
    width: 100%;
    max-width: 1600px;
    text-align: center;
    margin: 20px auto;
}

.ch-footer {
    text-align: center;
    padding: 0 0 25px 0;
}

.ch-gradient-brick {
    width: 180px;
    display: inline-block;
    margin: 25px;
    box-shadow: 0px 0px 51px 0px rgba(0, 0, 0, 0.08), 0px 6px 18px 0px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0px);
}

.ch-gradient-brick:hover {
    box-shadow: 0px 0px 114px 0px rgba(0, 0, 0, 0.08), 0px 30px 25px 0px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.ch-gradient {
    width: 100%;
    height: 180px;
    position: relative;
    background-color: #CFD8DC;
}

.ch-actions {
    display: none;
    position: absolute;
    right: 5px;
    bottom: 5px;
}

.ch-gradient-brick:hover .ch-actions {
    display: block;
    animation: micro-move .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ch-code,
.ch-grab {
    width: 26px;
    height: 26px;
    display: inline-block;
    background-image: url("../images/coolhue-sprite.svg");
    background-repeat: no-repeat;
    cursor: pointer;
    vertical-align: middle;
    margin: 3px;
    transform: translateY(0px);
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: .7;
}

@keyframes micro-move {
    from {
        transform: translateY(5px);
    }
    to {
        transform: translateY(0px);
    }
}

.ch-code:hover,
.ch-grab:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.ch-code:active,
.ch-grab:active {
    opacity: 1;
    transform: translateY(-2px);
}

.ch-code {
    background-position: -26px 0px;
}

.ch-grab {
    background-position: 0px 0px;
}

.ch-colors {
    padding: 12px;
    text-align: left;
    text-transform: uppercase;
    font-size: 18px;
}

.ch-color-from {
    margin-bottom: 3px;
}

.ch-color-from,
.ch-color-to {
    color: #929197;
    display: block;
    padding: 0px;
}

.ch-notify-plank {
    position: fixed;
    width: 260px;
    max-width: 80%;
    top: 30px;
    right: 0;
    z-index: 500;
    text-align: right;
}

.ch-notify {
    margin: 0px 35px 10px 0px;
    background-color: #FFFFFF;
    box-shadow: 0px 4px 15.36px 0.64px rgba(0, 0, 0, 0.1), 0px 2px 6px 0px rgba(0, 0, 0, 0.12);
    padding: 10px 20px;
    color: #534E5C;
    display: inline-block;
    border-radius: 500px;
    font-size: 18px;
    transition: .35s ease-in-out;
}

.ch-notify-animate {
    animation: notify-up 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ch-distro {
    position: fixed;
    z-index: 50;
    right: 15px;
    bottom: 15px;
    min-width: 200px;
    max-width: 100%;
}

.ch-distro-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: absolute;
    right: 0px;
    bottom: 0px;
    background-color: #FFFFFF;
    background-image: url("../images/coolhue-sprite.svg");
    background-repeat: no-repeat;
    background-position: 0px -25px;
    box-shadow: 0px 12px 27px 3px rgba(0, 0, 0, 0.15), 0px 6px 4px 0px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0px);
    cursor: pointer;
}

.ch-distro-icon-active,
.ch-distro-icon:hover {
    box-shadow: 0px 25px 30px 5px rgba(0, 0, 0, 0.1), 0px 5px 20px 5px rgba(0, 0, 0, 0.03);
    transform: translateY(-6px);
}

.ch-distro-icon-active {
    background-position: -50px -25px;
}

.ch-distro-wrapper {
    left: 0px;
    right: 0px;
    bottom: 70px;
    position: absolute;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 51px 0px rgba(0, 0, 0, 0.08), 0px 6px 18px 0px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 15px;
    display: none;
}

.ch-distro-type {
    color: #2750C4;
    display: block;
    padding: 7px 0 7px 0;
    text-decoration: none;
    font-size: 17px;
    background-position: left center;
    background-repeat: no-repeat;
}

.ch-distro-type:hover {
    text-decoration: underline;
}

.ch-distro-type:before {
    content: "";
    width: 26px;
    height: 26px;
    display: inline-block;
    vertical-align: middle;
    margin-top: -3px;
    margin-right: 7px;
}

.ch-distro-type:nth-child(1):before {
    background-image: url("../images/coolhue-sprite.svg");
    background-position: 0px -77px;
}

.ch-distro-type:nth-child(2):before {
    background-image: url("../images/coolhue-sprite.svg");
    background-position: -26px -77px;
}

.ch-distro-type:nth-child(3):before {
    background-image: url("../images/coolhue-sprite.svg");
    background-position: -52px -77px;
}

.ch-distro-wrapper-flap-up {
    animation: flap-up 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ch-distro-wrapper-flap-down {
    animation: flap-down 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ch-distro-wrapper-visible {
    display: block;
}

@keyframes flap-up {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes flap-down {
    0% {
        opacity: 1;
        transform: translateY(0px);
    }
    100% {
        opacity: 0;
        transform: translateY(25px);
    }
}

@keyframes notify-up {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    10%,
    90% {
        opacity: 1;
        transform: translateY(0px);
    }
    100% {
        opacity: 0;
        transform: translateY(-25px);
    }
}

.ch-notify span {
    display: block;
    text-align: center;
}

noscript {
    font-size: 20px;
    color: #757575;
}

@media screen and (min-width:320px) and (max-width:1024px) {
    .ch-gradient-brick .ch-actions {
        display: block;
        animation: micro-move .3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .ch-gradient-brick:hover {
        transform: translateY(0px);
        box-shadow: 0px 0px 51px 0px rgba(0, 0, 0, 0.08), 0px 6px 18px 0px rgba(0, 0, 0, 0.05);
    }
    .ch-code:hover,
    .ch-grab:hover {
        transform: translateY(0px);
    }
}

@media screen and (max-width:600px) {
    .ch-topbar {
        padding: 0px 0 10px 0;
    }
    .ch-topbar .grid-lt, .ch-topbar .grid-rt{
        width: 100%;
        display: block;
        text-align: center
    }
}

@media screen and (max-width:480px) {
    .ch-topbar .grid-lt{
        padding-bottom: 0;
    }
}

/* Dialog */

.wk-wrapper{
    width: 800px;
    margin: 100px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 9px 2px rgba(0,0,0,0.08);
    padding: 20px;
    max-width: 100%;
    transform: translateY(-45px);
    opacity: 0;
    transition: .25s;
}


.wk-wrapper h2{
    font-size: 34px;
    font-weight: 400;
    color: rgba(0,0,0,1);
    margin: 10px 0 0 0;
}

.wk-wrapper p{
    color: #534e5c;
    font-size: 18px;
    margin: 0;
    padding: 5px 0 15px 0; 
}

.wk-titling{
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
}

.wk-wrapper .wk-content, .wk-preview{
    display: inline-block;
    vertical-align: top;
}

.wk-wrapper .wk-content {
    width: 55%;
}

.wk-wrapper .wk-preview {
    text-align: right;
    width: 43%;
}

.wk-wrapper .wk-preview img{
    max-width: 100%;
}

.wk-wrapper .wk-close{
    text-align: right;
    opacity: .5;
    margin-bottom: 10px;
}

.wk-wrapper .wk-close:hover{
    opacity: .7;
    cursor: pointer;
}
.wk-wrapper .inline-flag a{
    margin-left: 0;
}
.wk-wrapper .inline-flag img{
    height: 48px;
}

@media screen and (max-width:1024px) {
    .wk-preview{
       display: none;
   }
   .wk-wrapper .wk-content{
       width: 100%;
       text-align: center;
   }
   .wk-wrapper{
       width: 100%;
       height: 100%;
       padding: 20px 10px;
       margin: 0;
       text-align: center;
   }
   .wk-wrapper .wk-close{
       margin-right: 10px;
   }
  }

          /* Overlay */

.overflow-blocked {
    overflow: hidden;
}

.fade-overlay {
    background-color: rgba(255, 255, 255, .85);
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    animation: fade-in-dg .35s ease-in-out;
    z-index: 49;
    display: none;
}

.fade-overlay-show{
    display: block;
}

.fade-overlay .wk-wrapper {
    animation: pop-in-dg .45s ease-in-out forwards;
    z-index: 50;
}

.fade-overlay.hide-overlay{
    animation: fade-out-dg .35s ease-in-out forwards;
}

.fade-overlay.hide-overlay {
    color: #d85537;
}

@keyframes fade-in-dg {
    from {
        background-color: rgba(255, 255, 255, 0);
    }
    to {
        background-color: rgba(255, 255, 255, .85);
    }
}

@keyframes fade-out-dg {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes pop-in-dg {
    from {
        transform: translateY(-250px);
        opacity: 0;
    }
    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

.inline-flag {
    display: inline-block;
    vertical-align: middle;
}

.inline-flag a {
    margin: 5px;
    display: inline-block;
}

.inline-flag img{
    width: auto;
    height: 40px;
}