:root {
    --loaderBGcolor: #131313;
    --loaderGradientcolors: linear-gradient(#ff0000, #00ff00, #0000ff);
}
* {
    margin: 0;
    padding: 0;
}
body {
    overflow: hidden;
}

.editor-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
#picker {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: 100%;
}
.picker {
    margin: 0 40px;
    opacity: 1;
    transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#picker input[type='number'] {
    margin: 10px 5px;
    font-size: 1.2em;
    padding: 5px;
    max-width: 50px;
    border: none;
    background-color: rgba(255, 255, 255, 0.637);
    border: 1px solid rgba(211, 211, 211, 0.555);
    border-radius: 8px;
    border-bottom: 2px solid lightgray;
    -webkit-appearance: none;
    margin: 15px 15px 0 5px;
    opacity: 1;
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#picker.picker-hidden,
.color-tab .swiper-container.picker-hidden {
    transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    pointer-events: none;
}
.color-tab .swiper-container {
    overflow: visible;
}
.rgb-hex-toggler-wrapper {
    position: relative;
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    flex-direction: row;
}
#rgb-hex-toggler {
    cursor: pointer;
}
.input-colors-wrapper {
    max-height: 100vh;
}
.input-colors-wrapper.hidden {
    max-height: 0;
    overflow: hidden;
    transition: 0.5s ease-in-out;
}
#picker input[type='number'] {
    -moz-appearance: textfield;
    background: #ebf3ff96;
    border: 1px solid #b5c4db;
}
#picker input[type='text'] {
    font-size: 1.2em;
    padding: 5px;
    max-width: calc(85% - 30px);
    border: none;
    background-color: rgba(255, 255, 255, 0.637);
    border: 1px solid rgba(211, 211, 211, 0.555);
    border-radius: 8px;
    border-bottom: 2px solid lightgray;
    -webkit-appearance: none;
    margin-left: 10px;
    background: #ebf3ff96;
    border: 1px solid #b5c4db;
}
.picker-container {
    position: relative;
    right: 17px;
    top: 150px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* box-shadow: 0 0 10px -2px rgb(248, 223, 223); */
    box-shadow: 3px 3px 10px 1px rgba(0, 0, 0, 0.404);
    background: #ebf3ffd7;
    position: absolute;
    height: max-content;
    width: 400px;
    padding: 30px 0 0 0;
    z-index: 0;
    transition: 0.6s cubic-bezier(0.39, 0.575, 0.565, 1);
    border-radius: 10px;
    border: 1px solid #b5c4db;
}
.IroColorPicker {
    border: 3px solid #ebf3ff;
    box-shadow: 0px 0px 10px 5px rgba(114, 114, 114, 0.185) inset;
    padding: 15px 30px;
    border-radius: 10px;
}
/* .picker-container .swiper-slide {
    box-shadow: 0 0 4px 0px black;
} */
.color-tab,
.design-tab {
    /* position: absolute; */
    position: relative;
    height: max-content;
    width: 300px;
    right: 0;
    top: -30px;
    padding: 30px 0px 0px 0;
}
.tabs-container {
    position: absolute;
    top: -40px;
    left: 0;
    display: flex;
    background-color: transparent;
    margin-bottom: 15px;
    justify-content: center;
}
.editor-tab {
    padding: 10px 15px;
    text-align: center;
    color: #959595;
    cursor: pointer;
    background-color: #ebf3ffd7;
    margin: 0 5px;
    border-radius: 10px 10px 0 0;
}
.reset-color {
    /* position: absolute; */
    width: 100%;
    margin-top: 15px;
}
.btn-reset-colors {
    padding: 5px 10px;
    cursor: pointer;
    color: var(--btn_color);
    font-weight: 500;
    background-color: #ebf3ffd0;
    border: 2px solid lightgray;
    border-radius: 5px;
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0 auto;
}
.btn-reset-colors:hover {
    /* font-weight: 600; */
    background-color: var(--btn_color);
    color: #ebf3ff;
}
.editor-tab.editor-tab-selected {
    color: var(--btn_color);
    font-weight: 600;
    background-color: #ebf3ff;
}

/* Eye button */
.buttons-wrapper {
    position: absolute;
    right: 10px;
    top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.eye-button {
    background-color: rgba(255, 255, 255, 0.534);
    border-radius: 10px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.767);
    cursor: pointer;
    transition: 0.6s cubic-bezier(0.39, 0.575, 0.565, 1);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 30px;
    font-size: 1.5em;
    margin: 0 5px;
}
#close-button {
    right: 115px;
    top: 50px;
}
.eye-button#save-button {
    right: 190px;
    top: 50px;
}
.eye-button#download-button {
    right: 270px;
    top: 50px;
}
.eye-button:hover {
    background-color: rgba(255, 255, 255, 1);
}
.eye-button img {
    width: 80%;
    transform: scale(1);
    transition: 0.4s linear;
}
#close-button img {
    height: 90%;
}

.eye-button:hover img {
    transition: 0.4s linear;
    transform: scale(1.2);
}

/* Swiper items */
.item-color {
    overflow: visible;
    position: relative;
    width: 50px;
    height: 30px;
    margin: 3px;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
    box-shadow: 0 0 10px 0px rgb(167, 167, 167);
}
.item-color-original {
    width: 50px;
    height: 30px;
    margin: 3px;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
    box-shadow: 0 0 10px 0px rgb(167, 167, 167);
}
.item-color-text,
.item-color-original-text {
    visibility: hidden;
    position: absolute;
    font-size: 0.6em;
    transition: 0.3s linear;
    white-space: nowrap;
    background-color: rgba(245, 245, 245, 0.9);
    font-weight: 400;
    border-radius: 5px;
    padding: 2px 5px;
    left: 0px;
    top: 0px;
    opacity: 0;
    /* z-index: 99; */
}
.item-color:hover .item-color-text {
    visibility: visible;
    transition: 0.3s linear;
    transform: translateY(-50%);
    opacity: 1;
}
.item-color-original:hover .item-color-original-text {
    visibility: visible;
    transition: 0.3s linear;
    transform: translateX(-65%);
    opacity: 1;
}
.item-color:hover {
    transform: scale(1.2);
}
.selected-color {
    transition: 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
    transform: scale(1.2);
}
.selected-color::after {
    content: ' \25C0';
    position: absolute;
    top: 50%;
    right: -3px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.5em;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.356);
    transition: 0.6s cubic-bezier(0.39, 0.575, 0.565, 1);
}

/* .selected-color:hover::after {
    transform: translateY(-50%) scale(2);
    right: 150%;
    color: rgba(255, 255, 255, 0.24);
} */

.swiper-container.colors-swiper {
    position: absolute;
    left: -20px;
    top: 30px;
    max-width: max-content;
    max-height: max-content;
    margin: 0;
    /* overflow: hidden; */
    /* z-index: -5; */
}
.swiper-container.colors-swiper-original {
    position: absolute;
    left: -50px;
    top: 30px;
    max-width: max-content;
    max-height: max-content;
    margin: 0;
    z-index: -1;
    /* overflow: hidden; */
}
.swiper-slide.slide-color {
    text-align: center;
    font-size: 18px;
    background: #fff;
    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    max-width: max-content;
    max-height: 80px;
}

/* Loader */
.loader-wrapper {
    position: absolute;
    z-index: 2;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: var(--loaderBGcolor);
    transition: 0.5s linear;
}
.loader {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--loaderGradientcolors);
    animation: loader 0.5s linear infinite;
}
.loader-wrapper .loader-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    color: #636363;
}
.loader-wrapper .loader-text h2 {
    /* text-shadow: 0px 0px 4px rgb(153, 153, 153); */
}
.loader .loader-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--loaderGradientcolors);
}
.loader .loader-inner:nth-child(1) {
    filter: blur(5px);
}
.loader .loader-inner:nth-child(2) {
    filter: blur(10px);
}
.loader .loader-inner:nth-child(3) {
    filter: blur(25px);
}
.loader .loader-inner:nth-child(4) {
    filter: blur(50px);
}
.loader::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: var(--loaderBGcolor);
    border-radius: 50%;
}
@keyframes loader {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* RULLERS */
.ruler-vertical {
    position: fixed;
    top: 0;
    z-index: 0;
    width: 40px;
    height: 100%;
    padding-top: 60px;
    background-color: whitesmoke;
}

.ruler-horizontal {
    position: fixed;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 40px;
    padding-left: 60px;
    background-color: whitesmoke;
}

.ruler-horizontal svg,
.ruler-vertical svg {
    width: 100%;
    height: 100%;
    background-color: whitesmoke;
}

.ruler-vertical div,
.ruler-horizontal div {
    width: 40px;
    height: 40px;
}

.content {
    width: 100%;
    height: 100%;
    padding-top: 20px;
    padding-left: 30px;
    position: fixed;
    background-color: whitesmoke;
}

/* Edit tab .... buttons */
.layout {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    opacity: 1;
    transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.layout.layout-hidden {
    transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    pointer-events: none;
}
.btn-scale {
    font-size: 3em;
    width: 40px;
    height: 40px;
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--btn_color);
    font-weight: 500;
    background-color: #ebf3ff;
    border: 2px solid lightgray;
    border-radius: 5px;
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
g {
    transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
use {
    will-change: opacity;
    transition: 0.5s ease;
    animation: fade-out 0.5s ease;
}
.texture {
    max-height: 100%;
}

@keyframes fade-out {
    0% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}
use.faded-out {
    opacity: 0;
}
.btn-scale:hover {
    color: #ebf3ff;
    background-color: var(--btn_color);
}
.scale-info-container p {
    margin: 0 !important;
    font-size: 0.8em;
}
@media (max-width: 1112px) {
    /* .picker-container {
        position: absolute;
        right: 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
    } */
}
@media (max-width: 600px) {
    /* .picker-container {
        position: initial;
        position: relative;
        top: 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-left: auto;
    }
    .swiper-container.colors-swiper {
        max-width: max-content;
        max-height: 300px;
    }
    .swiper-container.colors-swiper-original {
        max-width: max-content;
        max-height: 300px;
    } */
}
/* *********************** MADAL *************************************/
/******************************************************************************/
.confirmation-save-design-cancel {
    padding: 10px 15px;
    cursor: pointer;
    margin: 0 15px;
    border-radius: 5px;
}
#confirmation-save-design-modal input,
#confirmation-save-design-modal select {
    height: 35px;
    background: #ffffff;
    border: 1px solid #0a2463;
    border-radius: 4px;
    /* font-size: 22px; */
    color: #0a2463;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}
.confirmation-save-design-cancel {
    transition: 0.3s linear;
    font-weight: 600;
}
.confirmation-save-design-cancel:hover {
    color: #fff;
    background-color: #b84848;
}
#design-save:hover {
    color: #fff;
    background-color: #2ea155;
}

/* *********************** DESIGN BUTTONS *************************************/
/******************************************************************************/
.layout .flex-row-align-wrap {
    /* flex-wrap: nowrap; */
    justify-content: flex-start;
    /* width: 80%; */
}
.up-down.btn-wrapper {
    position: relative;
    display: inline-block;
    width: 70px;
    margin: 30px 10px;
}
.up-down a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 90px;
    height: 90px;
    line-height: 60px;
    text-align: center;
    background: var(--btn_color);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 4px;
    box-shadow: 0 5px 5px -2px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid var(--btn_color);
    transition: 0.5s;
    opacity: 1;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.up-down a:hover {
    background: #fff;
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 20px -1px rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(0.9);
}
.up-down .d_layout {
    position: absolute;
    width: max-content;
    top: 50%;
    left: -50%;
    transform: translate(60%, -40%);
    background: transparent;
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}
.up-down a::before,
.up-down a::after {
    content: '\25A8';
    font-size: 1.5em;
    position: absolute;
    width: 60%;
    height: 100%;
    background: var(--btn_color);
    z-index: -1;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.up-down a:hover::before {
    opacity: 1;
    top: 5px;
    left: -5px;
    box-shadow: 5px 2px 5px rgba(0, 0, 0, 0.2);
    animation: animate 2s linear infinite;
}
.up-down a:hover::after {
    opacity: 1;
    top: -5px;
    right: -5px;
    animation: animate 2s linear infinite;
    box-shadow: -5px 2px 5px rgba(0, 0, 0, 0.2);
    animation-delay: -1s;
}
.up-down a:hover .d_layout {
    opacity: 0;
    /* transform: translate(25%, -100%); */
    transition: 0.5s;
}
@keyframes animate {
    0% {
        top: 10px;
    }
    50% {
        top: -10px;
    }
    100% {
        top: 10px;
    }
}

/**************************************************/
.left-right.btn-wrapper,
.basic.btn-wrapper {
    position: relative;
    display: inline-block;
    width: 70px;
    margin: 30px 10px;
}
.left-right a,
.basic a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 90px;
    height: 90px;
    line-height: 60px;
    text-align: center;
    background: var(--btn_color);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 4px;
    box-shadow: 0 5px 5px -2px rgba(0, 0, 0, 0.7);
    border: 2px solid var(--btn_color);
    border-radius: 5px;
    transition: 0.5s;
    opacity: 1;
    cursor: pointer;
}
.left-right a:hover,
.basic a:hover {
    background: #fff;
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 20px -1px rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(0.9);
}
.left-right .d_layout,
.basic .d_layout {
    position: absolute;
    width: max-content;
    top: 50%;
    left: -50%;
    transform: translate(60%, -40%);
    background: transparent;
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}
.left-right a::before,
.left-right a::after {
    content: '\25A8';
    font-size: 1.5em;
    position: absolute;
    width: 100%;
    height: 54%;
    background: var(--btn_color);
    z-index: -1;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.left-right a:hover::before {
    opacity: 1;
    top: 0px;
    left: -5px;
    z-index: 0;
    box-shadow: 5px 2px 5px rgba(0, 0, 0, 0.2);
    animation: animate2 2s linear infinite;
}
.left-right a:hover::after {
    opacity: 1;
    bottom: 00px;
    right: -5px;
    animation: animate2 2s linear infinite;
    box-shadow: -5px 2px 5px rgba(0, 0, 0, 0.2);
    animation-delay: -1s;
}
.left-right a:hover .d_layout {
    opacity: 0;
    /* transform: translate(25%, -100%); */
    transition: 0.5s;
}
@keyframes animate2 {
    0% {
        left: 10px;
    }
    50% {
        left: -10px;
    }
    100% {
        left: 10px;
    }
}

/**************************************************/
.zoom-out.btn-wrapper {
    position: relative;
    display: inline-block;
    width: 90px;
    margin: 30px 10px;
}
.zoom-out a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 90px;
    height: 90px;
    line-height: 60px;
    text-align: center;
    background: var(--btn_color);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 4px;
    box-shadow: 0 5px 15px -1px rgba(0, 0, 0, 0.7);
    border: 2px solid var(--btn_color);
    border-radius: 5px;
    transition: 0.5s;
    opacity: 1;
    cursor: pointer;
}
.zoom-out a:hover {
    background: #fff;
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 20px -1px rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(0.9);
}
.zoom-out .d_layout {
    position: absolute;
    width: max-content;
    top: 50%;
    left: 00%;
    font-size: 3em;
    transform: translate(25%, -50%);
    background: transparent;
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}
.zoom-out a::before {
    content: '-';
    font-size: 3em;
    position: absolute;
    width: 100%;
    height: 100%;
    /* transform: translate(50%, 50%); */
    background: var(--btn_color);
    z-index: -1;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.zoom-out a:hover::before {
    opacity: 1;
    top: 0px;
    left: 0px;
    z-index: 0;
    box-shadow: 5px 2px 5px rgba(0, 0, 0, 0.2);
    animation: animate3 1s linear infinite;
}

.zoom-out a:hover .d_layout {
    opacity: 0;
    transform: translate(25%, -100%);
    transition: 0.5s;
}
@keyframes animate3 {
    0% {
        transform: scale(1.1);
    }
    /* 50% {
        transform: scale(1.1);
    } */
    100% {
        transform: scale(0.8);
    }
}

/**************************************************/
.zoom-in.btn-wrapper {
    position: relative;
    display: inline-block;
    width: 90px;
    margin: 30px 10px;
}
.zoom-in a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 90px;
    height: 90px;
    line-height: 60px;
    text-align: center;
    background: var(--btn_color);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 4px;
    box-shadow: 0 5px 15px -1px rgba(0, 0, 0, 0.7);
    border: 2px solid var(--btn_color);
    border-radius: 5px;
    transition: 0.5s;
    opacity: 1;
    cursor: pointer;
}
.zoom-in a:hover {
    background: #fff;
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 20px -1px rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(0.9);
}
.zoom-in .d_layout {
    position: absolute;
    width: max-content;
    top: 50%;
    left: 00%;
    font-size: 3em;
    transform: translate(25%, -50%);
    background: transparent;
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}
.zoom-in a::before {
    content: '+';
    font-size: 3em;
    position: absolute;
    width: 100%;
    height: 100%;
    /* transform: translate(50%, 50%); */
    background: var(--btn_color);
    z-index: -1;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.zoom-in a:hover::before {
    opacity: 1;
    top: 0px;
    left: 0px;
    z-index: 0;
    box-shadow: 5px 2px 5px rgba(0, 0, 0, 0.2);
    animation: animate4 1s linear infinite;
}

.zoom-in a:hover .d_layout {
    opacity: 0;
    transform: translate(25%, -100%);
    transition: 0.5s;
}
@keyframes animate4 {
    0% {
        transform: scale(0.8);
    }
    /* 50% {
        transform: scale(0.8);
    } */
    100% {
        transform: scale(1.1);
    }
}
