@font-face {
    font-family: 'OpenSans';
    src: url('../data/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Limelight';
    src: url('../data/fonts/Limelight/Limelight-Regular.ttf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'WinkyRough';
    src: url('../data/fonts/Winky_Rough/static/WinkyRough-Regular.ttf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Oi';
    src: url('../data/fonts/Oi/Oi-Regular.ttf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Yomogi';
    src: url('../data/fonts/Yomogi/Yomogi-Regular.ttf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Lobster';
    src: url('../data/fonts/Lobster/Lobster-Regular.ttf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

#editor{
    height: 100vh;
    width: 100vw;
    display: block;
    background-color: #F4F5F7;
    overflow-scrolling: unset;
}
#editor-header{
    height:70px;
    width: 100vw;
    background-color: rgba(255, 255, 255, .9);
    z-index: 100001;
    position: relative;
    padding: 0px;
    align-items: center;
}
#editor-header-topheader-itemname{
    min-width: 250px;
    width: 250px;
    float:left;
    margin-left:20px;

}
.editor-header-topmenu{
    height:100%;
    background-color: rgba(255, 255, 255, .9);
    z-index: 100001;
    padding: 10px 0px;
    float:left;
    align-items: center;
    display:flex;
}
.editor-header-topheader{
    height:50px;
    background-color: #F4F5F7;
    z-index: 100001;
    float:right;
    padding: 10px 0px;
    align-items: center;
}
.editor-page {
    display: none;
    position: absolute;
    align-items: center;
    justify-content: center;
}
#editor-content{
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    position: absolute;
    display:block;
}
.page-overlay {
    background-size: cover; /* Ensures the image covers the entire div */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    display: block;
    position:absolute;
    z-index: 10;
    pointer-events: none;
    overflow:visible;
    }

.page-active{
    display:block;
}
.editor-content-navigation {
    position: absolute;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow:visible;
}
.editor-content-navigation > div{
    display:flex;
    position:absolute;

}
.editor-content-navigation > div > i{
    color: #788DBC;
    font-size: 20px;
    line-height: 40px;
}
.editor-content-navigation > div:hover{
    cursor: pointer;
}
.editor-content-navigation-left {
    width: 40px;
    height: 40px;
    left:30px;
    top:50%;
    background: #FFFFFF;
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    pointer-events: all;
    text-align: center;
    justify-content: center;
}
.editor-content-navigation-right {
    width: 40px;
    height: 40px;
    right:30px;
    top:50%;
    background: #FFFFFF;
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    pointer-events: all;
    text-align: center;
    justify-content: center;
}
.editor-content-navigation-add-image {
    width: 60px;
    height: 60px;
    bottom:10px;
    right:30px;
    background: #e7ebfb;
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    pointer-events: all;
    text-align: center;
    justify-content: center;
}
.editor-content-navigation-add-text {
    width: 60px;
    height: 60px;
    bottom:10px;
    right:100px;
    background: #e7ebfb;
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    pointer-events: all;
    text-align: center;
    justify-content: center;
}
.editor-content-navigation-name {
    top:10px;
}
.editor-content-navigation-add-image > div {
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: url('/img/icons/icon-add-image.svg') no-repeat 55% 65% ;
    background-size: 60%;
}
.editor-content-navigation-add-text > div {
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: url('/img/icons/icon-add-text.svg') no-repeat 55% 65% ;
    background-size: 60%;
}

#editor-content-sidebar{
    top:70px;
    flex-direction: column;
    background-color: rgba(255, 255, 255, .9);
    z-index: 100001;
    position: absolute;
    align-items: center;
}

.editor-content-sidebar-header{
    background: #FFFFFF;
    float:left;
}
.editor-content-sidebar-content{
    background: rgba(230, 229, 229, 0.7);
    float:right;
    overflow:auto;

}






.editor-object-controls-layer-text{
    background: #E7EBFB;
    width: 240px;
    padding: 8px;
    border-radius: 10px;
    z-index: 100000000;
    position: absolute;
}
.editor-object-controls-layer-text > div.editor-object-controls-layer-text-group{
    display: inline-block;
}

.editor-object-controls-layer-text > button{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    width: 40px; /* Set a square width */
    height: 40px; /* Set a square height */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px; /* Icon size */
}
.editor-object-controls-layer-text > select.font-picker{
    width:100%;
    height:30px;
    border:none;
    border-radius: 5px;
    background-size: 10px 10px;
    margin-bottom: 5px;
    background-color: #fff;
    outline: none;
}
.editor-object-controls-layer-text > select.font-size-picker{
    width:60px;
    height:30px;
    border:none;
    border-radius: 5px;
    background-size: 10px 10px;
    margin-bottom: 5px;
    background-color: #fff;
    outline: none;
    display: inline;
}

.editor-object-controls-layer-text  div.color-picker {
    /* Bg */
    width:18px;
    height:18px;
    /* bg layout */
    background: #212529;
    border-radius: 10px;
    display:block;

}



.editor-object-controls-layer-text > div.editor-object-controls-layer-text-group > button{
    display: inline;
    align-items: center;
    justify-content: center;
    margin: 1px;
    width: 20px; /* Set a square width */
    height: 20px; /* Set a square height */
    background: #E7EBFB;
    border: none;

    cursor: pointer;
    font-size: 18px; /* Icon size */
}

.editor-header-topmenu-productdetail{
    width:350px;
    height:70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.editor-header-topmenu-logo{
    width:100px;
    height:70px;
    text-align: center;
    vertical-align: middle;


}
.editor-header-topmenu-logo > h1{
    padding-top: 10px;
    font-family: "Calibri";
    vertical-align: middle;

}
.editor-header-topmenu-productdetailicon {
    width: 50px;
    height: 50px;
    left:30px;
    top:50%;
    background: rgba(63, 78, 94, 0.1);
    box-shadow: 0px 0px 15px -1px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    pointer-events: all;
    text-align: center;
    justify-content: center;
}

.editor-header-topmenu-productdetailicon > div  {
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: url('/img/icons/calendar.svg') no-repeat 55% 55% ;
    background-size: 60%;
}
.editor-header-topmenu-productdetailtext{
    padding-top:20px;
    padding-left:20px;
}









.page-editor-layer {
    position: relative;
    overflow: hidden;
}

.page-background-layer {
    position: absolute;


    box-shadow: 0 0 10px 4px #737171;
    background-size: cover;
    overflow: hidden;
}

.resizable {
    position: absolute;
    outline: 1px solid transparent;
    cursor: move;

}
.editor-object-text {
    outline: 2px dashed black;
    cursor: move;
    overflow-x: hidden;
    overflow-y: hidden;
    resize:none;
}
.editor-object-text2 {
    cursor: move;
    overflow-x: hidden;
    overflow-y: hidden;
    resize:none;

}
.editor-object-text-active {
    outline: 3px solid blue;
    cursor: move;
    resize:none;
}
.editor-object-image {
    position: absolute;
    cursor: move;
    background-color: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.editor-object-image-active {
    position: absolute;
    cursor: move;
    background-color: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: 3px solid blue;
}
.editor-object-image > div.image-upload {
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: url('/img/icons/upload-icon.svg') no-repeat 55% 65% ;
    background-size: 100%;
}
.editor-object-image-active > div.image-upload {
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: url('/img/icons/upload-icon.svg') no-repeat 55% 65% ;
    background-size: 100%;
}
.editor-object-image > input.upload {
    display:none
}
.editor-object-image-active > input.upload {
    display:none
}
.image-loaded {
    display:none;
}
div.sidebar-images-header{
    width:100%;
    height:50px;
}
div.image-upload2 {
    width: 200px;
    height: 50px;
    cursor: pointer;
    background: url('/img/icons/upload-icon2.svg') no-repeat 55% 65% ;
    background-size: 100%;
}
 input.upload2 {
    display:none
}


canvas {
    display: block;
    cursor: grab;
}
textarea {
    display: block;
    resize: none;
    background: 0 0;
    padding: 0 !important;
    border: 0 !important;
    margin: 0;
    overflow: hidden;
    outline:0;
    white-space: pre-wrap;
    position: absolute;
    user-select: none;
    transform-origin: top left;
    font-weight: 400;
    word-spacing: normal;
    letter-spacing: 1px;
    caret-color: black;

}
.editor-object-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.editor-object-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    width: 40px; /* Set a square width */
    height: 40px; /* Set a square height */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px; /* Icon size */
}

.editor-object-controls button:hover {
    background-color: #0056b3;
}

.editor-object-controls input[type="file"] {
    margin: 5px;
}

.editor-object-controls button i, .editor-object-controls div i {
    pointer-events: none; /* This prevents click events from targeting the icon instead of the button */
}
.editor-object-controls{
    display:none;
}

.controls-active{
    display:block;
}


.rotate-icon {
    position: absolute;
    top: -31px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    cursor: pointer;
    background-image: url('/img/icons/rotate-icon.svg'); /* Use the correct path to your SVG icon */
    background-size: cover; /* Ensures the SVG fits the dimensions of the element */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
}
.rotate-icon:active {
    cursor: grabbing;
}



.resize-handle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid white;
    background: #074EE8;
    position: absolute;
    right: -8px;
    bottom: -8px;
    cursor: se-resize;
    z-index: 10;
}
.resize-handle-x {
    width: 24px;
    height: 8px;
    border-radius: 5px;
    border: 1px solid white;
    background: #074EE8;
    position: absolute;
    right: calc(50% - 12px);
    bottom: -6px;
    cursor: s-resize;
    z-index: 10;
}
.resize-handle-y {
    height: 24px;
    width: 8px;
    border-radius: 5px;
    border: 1px solid white;
    background: #074EE8;
    position: absolute;
    right: -6px;
    bottom: calc(50% - 12px);
    cursor: w-resize;
    z-index: 10;
}


.controls-side-top{
    height: 16px;
    pointer-events:all;
    cursor: move;
    position: absolute;
    top: -8px;
    left: -8px;
    width: calc(100% + 16px)
}
.controls-side-bottom{
    height: 16px;
    pointer-events:all;
    cursor: move;
    position: absolute;
    bottom: -8px;
    left: -8px;
    width: calc(100% + 16px)
}
.controls-side-left{
    width: 16px;
    pointer-events:all;
    cursor: move;
    position: absolute;
    top: -8px;
    left: -8px;
    height: calc(100% + 16px)
}
.controls-side-right{
    width: 16px;
    pointer-events:all;
    cursor: move;
    position: absolute;
    top: -8px;
    right: -8px;
    height: calc(100% + 16px)
}



.page-controls-layer {
    display: block;
    position:absolute;


    overflow:visible;

}


.editor-object-controls-layer {
    display: block;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    position:absolute;
    z-index: 10000000;


}
.editor-object-controls-layer > button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    width: 40px; /* Set a square width */
    height: 40px; /* Set a square height */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px; /* Icon size */

}

.editor-object-controls-layer button:hover {
    background-color: #0056b3;
}

.editor-object-controls-layer input[type="file"] {
    margin: 5px;
}

.editor-object-controls-layer button i, .editor-object-controls div i {
    pointer-events: none; /* This prevents click events from targeting the icon instead of the button */
}

.editor-object-controls-layer{
    display:block;
}


/* Option to control for textarea */
.custom-select {
    position: relative;
    width: 220px;
    user-select: none;
    margin-bottom:5px;
}
.selected {
    padding: 2px;
    border-radius: 5px;
    cursor: pointer;
    background: #fff;
}
.options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-top: none;
    background: white;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    border-radius: 5px;
}
.option {
    padding: 0px 2px 2px 5px;
    cursor: pointer;
}

.option:hover {
    background-color: #f0f0f0;
}

/* Loading Dialog Container */
.loading-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Loading Dialog Content Box */
.loading-dialog-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
}

/* Circular Loader Animation */
.circular-loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* Loading Message Text */
.loading-message {
    margin: 0;
    font-weight: 500;
}


.color-picker-container {
    position: relative;
    display: inline-block;
}

.color-picker-button {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 4px;

    background: white;
    cursor: pointer;
    border-radius: 3px;
}

.color-picker-button:hover {
    background: #f0f0f0;
}

.color-preview {
    width: 16px;
    height: 16px;

    border-radius: 16px;
}

.color-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 4px;
    width: 110px;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.color-option {
    width: 22px;
    height: 22px;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid transparent;
}

.color-option:hover {
    border-color: #333;
    transform: scale(1.1);
}

.rgb-input-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 4px;
    border-top: 1px solid #eee;
}

.rgb-input-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rgb-input-container label {
    font-size: 12px;
    color: #666;
    min-width: 20px;
}

.rgb-input {
    flex: 1;
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}

.rgb-apply-btn {
    padding: 3px 6px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    width: 100%;
    margin-top: 2px;
}

.rgb-apply-btn:hover {
    background: #005a87;
}

/* Animation for the spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}