﻿/*This code will make the fabric js canvas responsive
*/
/*.lower-canvas {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

    .upper-canvas {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
}

    .canvas-container {
    width: auto !important;
    height: auto !important;
}*/


#feature-tab-column {
    /*height: 92vh;*/
}

#middle-column {
    overflow-y: scroll;
    overflow-x: hidden;
    min-width: 20%;
}

#font-picker {

}


    #font-picker ul {
        padding: 0px;
        margin: 0px;
    }

        #font-picker ul li {
            list-style: none;
            padding: 3px;
            margin: 1px;
            cursor: pointer;
            border: 1px solid #FFF;
        }

.selectable-font:hover {
    background-color: #EEE;
    border: 1px solid #AAA;
}

.selected-font {
    background-color: #EEE;
    border: 1px solid #AAA;
    padding: 2px !important;
}

.selected-color {
    border: 1px dotted #000 !important;
}


.text-room-basic {
    color: #fcd94e;
}

.feature-tab-button {
    height: auto;
    width: 100%;
    background-color: white;
    color: gray;
    margin-bottom: 10px;
    display: grid;
    align-items: center;
}

    .feature-tab-button.active-feature {

        color: #073763;
        border:dashed;
    }

.canvas-preset-button {
   
}

    .canvas-preset-button.active-canvas-preset {
        color: #073763;
        border: dashed;
    }

.right-click-menu {
    width: 250px;
    position: absolute;
    background-color: #F2F4F8;
    box-shadow: 0 .5rem 1.2rem rgba(0,0,0,.25);
    border-radius:8px;
    padding-left:8px;
    font-size:.87em;
}

/* ---- Caption Text Context Menu ---- */

.caption-context-menu {
    position: absolute;
    z-index: 1060;
    min-width: 200px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    padding: 4px 0;
    font-size: 0.9em;
}

.caption-context-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    color: #333;
    user-select: none;
}

    .caption-context-menu-item:hover {
        background-color: #f0f0f0;
    }

.caption-context-menu-icon {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    color: #666;
}

.caption-context-menu-shortcut {
    margin-left: auto;
    font-size: 0.8em;
    color: #999;
}

/* ---- Copied Toast ---- */

.caption-copied-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 0.9em;
    z-index: 2000;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .caption-copied-toast.show {
        opacity: 1;
    }


/*#color-picker
{
    background: #FAFAFA;
    background-image: -webkit-gradient(linear, left top, left bottom, from(white), to(#F6F6F6));
    width: 180px;
    padding: 10px 5px 5px 10px;
    border: 1px solid #666;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    margin-top:20px;
}*/

#color-picker ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

    #color-picker ul li {
        float: left;
        margin: 0 2px 5px 0;
        display: block;
        width: 18px;
        height: 18px;
        outline: 0;
        border: 1px solid #AAA;
        cursor: pointer;
    }

#color-picker-more-colors-modal {
    position: absolute;
    top: 240px;
    left: 14px;
    /*border:1px solid #333;
    border-radius:4px;*/
    /*background-color:#FFF;
    padding:10px;*/
    /*box-shadow: 2px 2px 10px #ccc;*/
    display: none;
}


    #color-picker-more-colors-modal ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

        #color-picker-more-colors-modal ul li {
            float: left;
            margin: 0 5px 5px 0;
            display: block;
            width: 13px;
            height: 13px;
            outline: 0;
            border: 1px solid #AAA;
            cursor: pointer;
        }




.button {
    background-color: #FAFAFA;
    background-image: -webkit-gradient(linear, left top, left bottom, from(white), to(#F0F0F0));
    padding: 3px;
    border: 1px solid #666;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    width: 60px;
}


.button-pressed {
    background-color: #FAFAFA;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#F0F0F0), to(#F0F0F0));
    padding: 3px;
    border: 1px solid #C00 !important;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    color: #000 !important;
}



.red-button {
    background-color: #bf4443;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#ffafae), to(#991716));
    padding: 4px;
    border: 1px solid #900;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    color: #FFF;
    font-size: .9em;
}




.blue-button {
    background-color: #336699;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#6594c4), to(#336699));
    padding: 4px;
    border: 1px solid #009;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    color: #FFF;
}

/* captions */

#caption-less-image-div {
    display: inline-block;
    /*border: 1px solid red;*/
}

#caption-less-image {
}


#caption-clone {
    display: none;
    z-index: 300;
}


/*
   Any changes to padding or border width needs variables updated in code:
cr-editor-captions.ts newCaptionTextBoxTopOffset = padding + border
cr-editor-captions.ts newCaptionTextBoxLeftOffset = padding + border
*/
.caption-div {
    display: inline-block;
    border: 1px dotted #666;
    cursor: move;
    line-height: 100%;
    padding: 13px 17px;
    white-space: nowrap;
    z-index: 300;
    box-sizing: content-box !important;
}

    .caption-div .caption-icon {
        display: none;
    }

    .caption-div:hover {
        border: 1px solid red;
    }

.caption-div-preview {
    border: 1px dashed transparent;
}


    .caption-div-preview div {
        display: none;
    }



    .caption-div-preview .ui-resizable-handle {
        background-image: none;
    }



.caption-p {
    padding: 0;
    margin: 0 6px;
    outline: none;
    cursor: auto;
    line-height: 1.0;
}

.cr-loading {
    position: absolute;
    /* Firefox */
    top: -moz-calc(50% -20px);
    /* WebKit */
    top: -webkit-calc(50% -20px);
    /* Opera */
    top: -o-calc(50% -20px);
    /* Standard */
    top: calc(50% - 18px);
    /* Firefox */
    left: -moz-calc(50% -20px);
    /* WebKit */
    left: -webkit-calc(50% -20px);
    /* Opera */
    left: -o-calc(50% -20px);
    /* Standard */
    left: calc(50% - 18px);
}

.cr-loading-container {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #FFF;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.center {
    position: absolute;
    top: 50%;
}


/*
.rotate-handle
{
    background: transparent url('/editor/rotate.png') no-repeat center center;
}

.drag-handle
{
    background: transparent url('/editor/drag.png') no-repeat center center;
}
 
 
.delete-handle
{
    background: transparent url('/editor/delete.png') no-repeat center center;
}


 
/*.ui-resizable-se
{
    background: transparent url('/editor/resize.png') no-repeat center center;
    width:23px;
    height:24px;
    right: -12px;
    bottom: -12px;
}*/

.ui-icon-gripsmall-diagonal-se {
    background-position: center center;
}

*/

.ui-icon {
    margin-top: initial;
}

/* -----CALLOUT --------*/

#callout-box {
    width: 300px;
    height: 200px;
    display: none;
    position: absolute;
}

.callout {
    position: relative;
    margin: 18px 0;
    padding: 18px 20px;
    background-color: #FFF;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0px 0px 5px rgba(50, 50, 50, 0.75);
    -moz-box-shadow: 0px 0px 5px rgba(50, 50, 50, 0.75);
    box-shadow: 0px 0px 5px rgba(50, 50, 50, 0.75);
}


    .callout .notch {
        position: absolute;
        top: 200px;
        left: -10px;
        margin: 0;
        border-top: 10px solid transparent;
        border-left: 0;
        border-right: 10px solid #FFF;
        border-bottom: 10px solid transparent;
        /* TOP
    border-top: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #eef4f9;
    */

        padding: 0;
        width: 0;
        height: 0;
        /*IE6*/
        font-size: 0;
        line-height: 0;
        _border-right-color: pink;
        _border-left-color: pink;
        _filter: chroma(color=pink);
    }


.notch {
    border-top: 10px solid transparent;
    border-left: 0;
    border-right: 10px solid #000;
    border-bottom: 10px solid transparent;
    /* TOP
    border-top: 10px solid #000;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 0;
    */
    /*IE6*/
    _border-right-color: pink;
    _border-left-color: pink;
    _filter: chroma(color=pink);
}

.border-callout {
    border: 1px solid #777;
    padding: 17px 19px;
}

    .border-callout .border-notch {
        border-right-color: #777;
        left: -11px;
    }

#callout-message {
    width: 100%;
}


.ui-autocomplete li a {
    font-size: 12px;
}




.ui-autocomplete {
    width: 66px;
    max-height: 200px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
}
/* IE 6 doesn't support max-height
   * we use height instead, but this forces the menu to always be this tall
   */
* html .ui-autocomplete {
    height: 100px;
}

/* #334 — custom pan scrollbars (shown only when zoomed in past fit) */
#page-container {
    position: relative;
}

.cr-scrollbar {
    position: absolute;
    display: none;
    z-index: 50;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
}

.cr-scrollbar-h {
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 10px;
}

.cr-scrollbar-v {
    top: 0;
    right: 2px;
    width: 10px;
    height: 100%;
}

.cr-scrollbar-thumb {
    position: absolute;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    cursor: pointer;
    /* prevent the browser from scrolling/zooming the page while dragging on touch */
    touch-action: none;
}

.cr-scrollbar-h .cr-scrollbar-thumb {
    top: 0;
    left: 0;
    height: 100%;
}

.cr-scrollbar-v .cr-scrollbar-thumb {
    top: 0;
    left: 0;
    width: 100%;
}

.cr-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.55);
}
