/*body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
}*/
div.color-panel {
    display: grid;
    grid-auto-rows: 0fr;
    transition: grid-template-rows 0.5s !important;
}

.color-panel-content {
    overflow: hidden;
}

.color-panel.is-opened {
    grid-auto-rows: 1fr;
}

.color-display-wrapper {
    display: grid;
    grid-template-columns: 6fr 1fr;
    margin-bottom: 10px;
}

.color-display {
    color: transparent;
    user-select: none;
    border-radius: 3px;
    border: 1px solid #aaa;
    transition: border-color .3s;
}

button.color-display-toggle {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0 3px 3px 0;
    position: relative;
    z-index: 2;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

    button.color-display-toggle:hover {
        background-color: #f9f9f9;
    }

    button.color-display-toggle > i {
        transition: transform 0.3s ease-in-out;
        cursor: pointer;
    }

        button.color-display-toggle > i.is-open {
            transform: rotate(180deg);
        }

.colors {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.color-control-panel {
    margin-top: 10px;
}

button.regular-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: box-shadow 125ms ease-out;
    position: relative;
    z-index: 2;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
}

button.color-ctrl.reset,
button.color-ctrl.edit,
button.color-ctrl.save {
    width: 20px;
    height: 20px;
    color: #ccc;
    flex-shrink: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    background-color: transparent;
    transition: box-shadow 125ms ease-out;
    position: relative;
    z-index: 2;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
}

    button.color-ctrl.reset:hover,
    button.color-ctrl.edit:hover,
    button.color-ctrl.save:hover {
        color: black;
    }

button.regular-color.is-selected {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.custom-color-picker {
    height: 20px;
    width: 20px;
    cursor: pointer;
    visibility: hidden;
}


.panel-dismiss {
    width: 100%;
}

.panel-dismiss-wrapper {
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.grp-handler-cp-c {
  margin-left: -20px;
}


.toolbar {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 38%;
    top: 42%;
    margin-top: 20px;
    position: absolute;
}

.toolbar .main-buttons {
    display: grid;
    grid-auto-columns: 70px;
    grid-auto-flow: column;
    gap: 20px;
}

.toolbar button {
    margin: 0 auto;
    width: 175px;
    margin-bottom: 20px;
    padding: 10px;
}

    .toolbar button {
        border: 1px solid #fc601d !important;
        border-radius: 5px;
        outline: none;
        background-color: white;
        font-size: 12px;
    }
    .toolbar .toolbar-button-title {
        align-self: center;
        margin-left: 10px;
        color: #FC601D;
        font-size: 13px;
    }
    .toolbar .toolbar-button-icon {
        font-size: 24px;
        color: #fc601d;
    }

    .toolbar button.active,
    .toolbar button:hover {
        border-color: #999;
        box-shadow: -1px 1px 1px rgba(0,0,0,.2);
        cursor: pointer;
    }

.toolbar button img,
.toolbar button svg {
    width: 25px;
    height: 25px;
}

.main-panel {
/*  height: calc(100% - 54px);*/
  display: flex;
  position: relative;
}

.floating-zoom-level-container {
  position: absolute;
  z-index: 10000;
  background: white;
  padding: 10px 20px;
  bottom: 0;
  right: 0;
  border: 1px solid #ccc;
}

.canvas-holder {
  margin: auto;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  background-color: transparent;
}

.canvas-container {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAHUlEQVQ4jWNgYGAQIYAJglEDhoUBg9+FowbQ2gAARjwKARjtnN8AAAAASUVORK5CYII=");
  background-size: 30px 30px;
  border: 1px solid #ccc;
  margin: auto;
}

.toolpanel {
  background-color: #f9f9f9;
  width: 300px;
  top: 0;
  left: 0;
  height: 100%;
  border: 1px solid #ddd;
  transition: all .4s;
  box-sizing: border-box;
  text-align: left;
  font-size: 13px;
  color: #777;
  display: none;
  position: absolute;
    z-index: 1;
}

.toolpanel.closed {
  left: -300px;
}

.toolpanel.visible {
  display: initial;
}

.toolpanel .content {
  padding: 20px;
  position: relative;
/*  height: -webkit-fill-available;
  height: -ms-fill-available;
  height: fill-available;
  height: -moz-fill-available;*/
}

.toolpanel .title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  padding-bottom: 10px;
  width: 100%;
  border-bottom: 1px solid #ddd;
  color: #333;
  text-transform: uppercase;
}

.toolpanel .content .hide-show-handler {
  position: absolute;
  top: calc(50% - 40px);
  right: -42px;
  width: 40px;
  height: 80px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  cursor: pointer;

  background-image: url('/Content/Extensions/fabric/lib/caret-left.svg');
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center center;

  display: none;
}

.toolpanel.closed .content .hide-show-handler {
  background-image: url('/lib/caret-right.svg');
}

.spectrum.with-add-on {
  width: 40px;
}

#shapes-panel .button {
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
  padding: 0;
  width: 32px;
  height: 32px;
  display: inline-block;
  margin: 9px;
}

#background-panel .canvas-size-setting input {
  width: 60px;
  background-color: #fff;
  border-radius: 6px;
  border: 2px solid #e4e4e4;
  padding: 4px 10px;
  line-height: 18px;
  font-size: 13px;
}

#select-panel .text-section .style button,
#select-panel .alignment-section button,
#select-panel .object-options button,
#background-panel .background-image-section .background-image button {
  padding: 0;
  width: 32px;
  height: 32px;
  background-color: #fff;
  border: 1px solid #ddd;
  text-align: center;
  outline: none;
}

#select-panel .text-section .style button:hover,
#select-panel .alignment-section button:hover,
#select-panel .object-options button:hover,
#background-panel .background-image-section .background-image button:hover {
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

#select-panel button svg {
  opacity: .7;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

#select-panel .text-section .style,
#select-panel .text-section .family,
#select-panel .text-section .sizes,
#select-panel .text-section .align {
  margin-bottom: 20px;
}

/*#select-panel .text-section .color {
    margin-bottom: 20px;
}*/

#select-panel .text-section .sizes input {
  width: 50px;
}

.toolpanel#select-panel .text-section,
.toolpanel#select-panel .effect-section {
  display: none;
}

.toolpanel#select-panel.type-group .border-section {
  display: none;
}

.toolpanel#select-panel.type-group .fill-section {
  display: none;
}

.toolpanel#select-panel.type-textbox .text-section {
  display: block;
}

.toolpanel#select-panel.type-textbox .fill-section {
  display: none;
}

.toolpanel#select-panel.type-image .effect-section {
  display: block;
}

.toolpanel#select-panel.type-image .fill-section {
  display: none;
}

.custom-modal-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #3333;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-modal-content {
  background: white;
  width: max-content;
  padding: 20px;
}

.custom-modal-content .button-download {
  border: 1px solid #ccc;
  padding: 10px;
  cursor: pointer;
  margin: 5px;
  border-radius: 3px;
}

.custom-modal-content .button-download:hover {
  background: #ccc;
  transition: 0.3s;
}

.toolpanel .input-container {
  display: flex;
  align-items: center;
  padding-top: 5px;
  padding-bottom: 5px;
  flex-wrap: wrap;
  width: 100%;
}

.toolpanel .input-container label {
  width: 100%;
  font-weight: 500;
  font-size: 14px;
}

.toolpanel .input-container select {
  width: 100%;
  height: 29px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;

}

.toolpanel .input-container .sp-replacer {
  width: 100%;
}

.toolpanel .input-container .custom-number-input {
  background: #ebebeb;
  display: flex;
  align-items: center;
  padding: 1px;
  height: 30px;
  background-color: #e4e4e4;
  border-radius: 6px;
  text-align: center;
}

.toolpanel .input-container .custom-number-input button {
  width: 36px !important;
  height: 30px !important;
  background-color: #fff;
  background-clip: padding-box;
  border-radius: 6px;
  color: #333;
  border: 1px solid transparent;
  font-size: 16px;
  cursor: pointer;
  outline: none;
}

.toolpanel .input-container .custom-number-input input {
  height: 30px !important;
  width: 30px !important;
  background: transparent !important;
  border: none;
  outline: none;
  text-align: center;
}

.toolpanel .input-container .custom-number-input input::-webkit-outer-spin-button,
.toolpanel .input-container .custom-number-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.toolpanel .input-container .custom-number-input input[type=number] {
  -moz-appearance: textfield;
}

.shapes-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-container .tabs {
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
}

.tab-container .tabs .tab-label {
  font-size: 14px;
  cursor: pointer;
}

.tab-container .tabs .tab-label.active {
  color: black
}

.gradient-orientation-container {
  padding-top: 40px;
}

.drag-drop-input {
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
  border: 2px dashed #ccc;
  border-radius: 6px;
  text-align: center;
  padding: 120px;
}

.drag-drop-input.dragging {
  border-color: #4368a9;
}

#tip-container {
  padding: 10px;
  text-align: center;
  touch-action: none;
  cursor: default;
  color: #888;
}