html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

section.hero--coloring-book {
    background: transparent !important;
    /* background-image: url(../images/hero.jpg) !important; */
    position: relative;
}

section.hero--coloring-book .mobile-bg {
    display: none;
}

section.hero--coloring-book .desktop-bg,
section.hero--coloring-book .mobile-bg {
    object-fit: cover;
    -o-object-fit: cover;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.col-small {
    width: 100%;
    max-width: 355px;
    float: left;
    position: relative;
}

.col-big {
    width: calc(100% - 760px);
    float: left;
    margin: 0 20px;
}

.coloring-book-example {
    text-align: center;
}

section.hero--coloring-book h1 {
    font-weight: 800;
    font-size: 44px;
    margin-bottom: 25px;
}
.drawing-slideshow-item {
    text-align: center;
}

.drawing-slideshow-item img {
    max-width: 100%;
    display: inline;
}

.drawing-slideshow-item {
    border: 1px solid #d6d6d6 !important;
}

.drawing-slideshow .slick-slide {
    margin: 10px 0 !important;
}

.drawing-slideshow .slick-arrow {
    width: 38px;
    height: 38px;
    display: block;
    margin: auto;
    background-size: 100%;
    background-repeat: no-repeat;
    font-size: 0;
    border: 0;
    content: '';
    background-color: transparent;
    position: relative;
    z-index: 999;
}

.drawing-slideshow .slick-prev {
    background-image: url(../images/icons/scroll-up.png);
    top: 70px;
}

.drawing-slideshow .slick-next {
    background-image: url(../images/icons/scroll-down.png);
    bottom: 70px;
}

.drawing-slideshow .slick-list {
    margin: -10px 0 !important;
}

.intro-wrapper {
    position: relative;
    display: inline-block;
    top: 50%;
    bottom: 0;
    transform: translateY(-50%);
    color: #fff;
    width: 100%;
}

.intro-button {
    display: inline-block;
    width: 230px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 70px;
    margin: auto;
}

.intro-button .button {
    color: #fff;
}

.posts--gallery {
    padding: 0 130px;
    margin-bottom: 100px;
}

.posts--gallery .load-more {
    background: #fff;
}

.posts--gallery .load-more::after {
    background: linear-gradient(transparent,#fff);
}

.section--gallery h3 {
    font-size: 41px;
    color: #000;
    font-weight: 800;
    margin-bottom: 25px;
}

.section--coloring-book {
    cursor: url(../images/icons/pen.png), auto;
    position: relative;
    padding: 100px 0;
}

.coloring-book-wrapper {
    padding: 20px;
    width: 1655px;
    max-width: 100%;
    margin: auto;
    -webkit-box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2);
    box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2);
}

.all-colors button,
.all-colors button:hover {
    cursor: url(../images/icons/pen.png), auto;
}

.all-colors button {
    background-color: transparent;
    border: 0;
    box-shadow: none;
}

.section--gallery p {
    font-weight: 100;
    font-size: 16px;
    margin-bottom: 75px;
}

.number-of-gallery-items {
    width: 165px;
    margin: 0 auto 40px auto;
    text-align: center;
    height: 65px;
    background-color: #ffc268;
    color: #fff;
    border-radius: 20px;
    font-size: 30px;
    line-height: 65px;
    font-weight: 800;
}

.coloring-book-info {
    background-color: #ececec;
    padding: 20px;
    font-size: 16px;
    font-weight: 100;
}

.drawing-box {
    border: 1px solid #d6d6d6;
}

.drawing-box img {
    max-width: 100%;
}

.all-colors {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: space-between;
}
  
.all-colors li {
    flex: 1 0 20%; /* explanation below */
    margin: 1% 8px;
    height: 25px;
    max-width: 21%;
    border-radius: 10px;
    position: relative;
}

.all-colors li button {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: block;
    z-index: 9999;
    width: 100%;
    height: 25px;
}

.active-color {
    width: 110px;
    height: 40px;
    border-radius: 20px;
    border: 1px solid #d6d6d6;
    display: block;
    margin: 20px auto;
}

.coloring-book-paleta {
    background-color: #ececec;
    padding: 20px 0;
    margin-bottom: 20px;
}

.drawing-tools {
    padding: 10px 25px;
    background-color: #bf2932;
    display: inline-flex;
    align-items: center;
    border-radius: 15px;
    margin: 0;
    font-size: 0;
}

.coloring-book-right .drawing-tools {
    margin-top: 5px;
}

.drawing-tools button {
    background-color: transparent;
    border: 0;
}

.drawing-tools li {
    display: inline-block;
    width: 35px;
    height: 35px;
    margin-right: 15px;
}

.drawing-tools li:last-child {
    margin-right: 0;
}

.drawing-tools li img {
    max-width: 100%;
    max-height: 25px;
}

.drawing-tools .tool {
    position: relative;
    width: 35px;
    height: 35px;
}

.drawing-tools .tool img {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
}

.tooltips {
  position: relative;
  display: inline-block;
}

.tooltips .tooltiptext {
    visibility: hidden;
    width: 270px;
    background-color: #ececec;
    color: #000;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 180%;
    left: -10px;
    margin-left: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.tooltips .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  margin-left: -5px;
  border-width: 15px;
  border-style: solid;
  border-color: #ececec transparent transparent transparent;
}

.tooltips:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.coloring-book-tools--mobile {
    display: none;
}

#bojanka-canvas {
    text-align: center;
    max-width: 100%;
}

#bojanka-canvas svg {
    max-width: 100%;
    height: auto;
}

.mobile-dialog {
    display: none;
    padding: 80px 10px 30px 10px;
    position: relative;
    background-color: #ececec;
    border-radius: 10px;
    margin: 20px 0;
}

.mobile-dialog button {
    background-color: transparent;
    border: 0;
}

button.btn--close {
    background-color: #bf2932;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 10px;
    right: 10px;
    text-align: center;
    border-radius: 50%;
}

button.btn--close img {
    width: 30px;
}

.save-option-item {
    position: relative;
    padding-left: 100px;
    min-height: 120px;
    margin-bottom: 60px;
    font-size: 30px;
    font-weight: 400;
}

.save-option-item--button {
    position: absolute;
    width: 60px;
    height: 60px;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.mobile-dialog--save-mobile {
    padding: 80px 40px 30px 40px;
}

.share-option-item {
    text-align: center;
    margin-bottom: 60px;
}

.share-option-item button,
.share-option-item a {
    height: 50px;
    width: 50px;
}

.share-option-item button img,
.share-option-item a img {
    max-width: 100%;
    max-height: 50px;
}

#color-palette {
    width: 100%;
    overflow-x: auto;
    position: relative;
}

.popup-wrapper {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    padding: 10px;
    display: none;
}

.popup-content {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    /* min-height: 200px; */
    border-radius: 20px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: auto;
    padding: 20px;
}

.popup-content .btn--close {
    width: 20px;
    height: 20px;
    border: 0;
}

.popup-content .btn--close img {
    width: 10px;
}

.button--plazma-yesno {
    width: 100px !important;
    height: 47px;
}

.button--plazma-yesno span {
    height: 47px;
}

.image-date {
    position: absolute;
    background-color: rgba(193, 39, 45, 0.8);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    padding: 5px 10px;
    bottom: 0;
    right: 0;
    font-weight: 800;
}

.drawing-slideshow-item {
    height: 330px !important;
}

.drawing-slideshow-item img {
    height: 100%;
    width: auto;
}

.coloring-book-tools {
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

.tool--sound-on-off .tooltiptext {
    bottom: 133%;
    left: -3px;
}

/* Animations */
.selected-color:hover,
.drawing-tools button:hover img,
.tool--sound-on-off:hover img,
.slick-arrow:hover {
    transform: scale(1.07);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.selected-color,
.drawing-tools button img,
.tool--sound-on-off img,
.slick-arrow {
    transition: all 0.3s ease;
}

@media(max-width: 1650px){
    .col-small {
        max-width: 255px;
    }
    .col-big {
        width: calc(100% - 555px);
    }

    .all-colors li {
        max-width: 100%;
    }
}

@media(max-width: 1280px){
    .col-small {
        max-width: 200px;
    }
    .col-big {
        width: calc(100% - 445px);
    }

    .all-colors li {
        max-width: 100%;
    }

    .posts--gallery {
        padding: 0 15px;
        max-width: 1170px;
        width: 100%;
        margin: auto;
    }
}

@media(max-width: 991px){
    .col-small {
        max-width: 100%;
        float: none;
        margin: 0;
    }
    .col-big {
        width: 100%;
        float: none;
        margin: 0;
    }

    .all-colors li {
        max-width: 100%;
    }

    .drawing-tools {
        display: none;
    }

    .tool--sound-on-off {
        margin-left: 0 !important;
    }

    .coloring-book-tools .tool--sound-on-off {
        display: none;
    }

    .coloring-book-tools--mobile {
        display: block;
        margin-bottom: 20px;
    }

    .hero--coloring-book {
        text-align: center;
    }

    .coloring-book-tools--mobile .drawing-tools {
        display: block;
        background-color: transparent;
        text-align: center;
    }
    .coloring-book-tools--mobile .drawing-tools li {
        height: auto;
        width: 80px;
        margin: 0 10px;
    }
    .coloring-book-tools--mobile .drawing-tools li button {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background-color: #bf2932;
        border: 1px solid #bf2932;
        text-align: center;
    }

    .coloring-book-info {
        display: none;
    }

    .all-colors {
        width: 2400px;
    }

    .all-colors li {
        flex: 1 0 80px;
        margin: 10px; 
    }

    .coloring-book-paleta {
        position: relative;
    }

    .active-color-wrapper {
        position: absolute;
        top: -40px;
        left: 0;
        right: 0;
    }

    .active-color {
        background-color: #d6d6d6;
    }

    .coloring-book-wrapper {
        box-shadow: none;
    }

    .coloring-book-wrapper .row {
        -webkit-box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2);
        -moz-box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2);
        box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2);
        padding-top: 50px;
    }

    .drawing-slideshow-item {
        border: 0 !important;
    }

    ul.drawing-tools {
        font-size: 0;
    }

    .coloring-book-left {
        padding: 0 20px;
    }

    .section--coloring-book {
        padding: 50px 0;
    }

    .tool--sound-on-off img {
        width: 65px;
        max-height: 65px !important;
        height: 65px;
    }
}

@media(max-width: 768px){
    section .grid .grid-item {
        width: 100% !important;
    }

    section.hero--coloring-book .desktop-bg {
        display: none;
    }

    section.hero--coloring-book .mobile-bg {
        display: block;
    }
}

@media(max-width: 600px){

    .coloring-book-tools--mobile .drawing-tools li {
        margin: 0 2px;
        width: 40px;
    }

    .coloring-book-tools--mobile .drawing-tools li button {
        width: 35px;
        height: 35px;
    }

    .tool--sound-on-off img {
        width: 20px;
        max-height: 35px;
        height: auto;
    }

    .coloring-book-tools--mobile .drawing-tools li button img {
        height: 20px;
    }

    .save-option-item {
        font-size: 18px;
    }

    .mobile-dialog--save-mobile button img {
        width: 25px;
    }

    .save-option-item--button {
        width: 30px;
        height: 30px;
    }

    .save-option-item {
        min-height: auto;
        padding-left: 50px;
    }
}

.block_ui {
    position:fixed;
    z-index:10000000;
    top:0;
    right:0;
    bottom:0;
    left:0;
    background:rgba(0,0,0,0.6);
    color: #fff;
}

.block_ui .submit_indicator {
    display: block;
    position: relative;
    width: 300px;
    margin: auto;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

.submit_indicator .loader {
    display: block;
    margin: auto;
    margin-bottom: 40px;
    color: #fff;
}

.submit_indicator .loader,
.submit_indicator .loader:after,
.submit_indicator .loader:before {
    animation:load-hover 1.8s infinite ease-in-out
}

.submit_indicator .loader {
    animation-delay:-.16s
}

.submit_indicator .loader:before {
    animation-delay:-.32s
}

.coloring-book-tools .bojanka-undo img {
    width: 29px;
    height: 25px;
}

.coloring-book-tools .bojanka-save img {
    width: 25px;
    height: 25px;
}

.coloring-book-tools .bojanka-to-gallery img {
    width: 33px;
    height: 29px;
}

.tool--sound-on-off {
    border: 0;
    width: 55px;
    height: 55px;
    margin-left: 30px;
    background-color: transparent;
}

.coloring-book__arrow {
    position: absolute;
    top: 50%;
    margin-top: -16px;
    width: 32px;
    height: 32px;
    z-index: 100;
    /*display: inline-flex;*/
    align-items: center;
    background: transparent;
    border: none;
    display: none;
}
.coloring-book__arrow.coloring-book__arrow--prev {
    left: -26px;
}
.coloring-book__arrow.coloring-book__arrow--next {
    right: -26px;
}
.coloring-book__arrow svg {
    fill: currentColor;
    color: #C1272D;
    width: 32px;
    height: 48px;
}

.btn--scroll-colors {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    padding: 0;
    border: 0;
    background-color: transparent;
    width: 30px;
    z-index: 99999;
    display: none;
}

.btn--scroll-colors--left {
    left: -15px;
    transform: rotate(-90deg);
}

.btn--scroll-colors--right {
    right: -15px;
    transform: rotate(-90deg);
}

@media only screen and (max-width: 991px) {
    .all-colors {
        margin: 0;
    }
    .btn--scroll-colors {
        display: block;
    }
    .all-colors li {
        height: 40px;
        border-radius: 18px;
    }
    .active-color {
        border-radius: 18px;
        border: 4px solid #BCBCBC;
    }
    .coloring-book-example {
        display: none;
    }
    .drawing-slideshow .slick-arrow {
        width: 50px;
        height: 50px;
    }
    .coloring-book-tools--mobile .drawing-tools {
        padding-left: 10px;
        padding-right: 10px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .coloring-book-tools--mobile .drawing-tools li {
        width: auto;
    }
    .coloring-book-tools--mobile .drawing-tools li button {
        width: 55px;
        height: 55px;
    }
}
@media only screen and (min-width: 992px) {
    .coloring-book-wrapper .row {
        display: flex;
        flex-wrap: wrap;
    }
    .coloring-book-wrapper .row > div {
        float: none;
    }
    .coloring-book-wrapper .row > div .coloring-book-right {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .coloring-book-wrapper .row > div .coloring-book-right .coloring-book-tools {
        margin-top: auto;
    }
}