form {
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.img-area img {
    margin: 20px auto;
    display: block;
    transition: linear 0.2s;
}

.img-area {
    max-height: 1000px;
    max-width: 100vw;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 500px;
}

.crop-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(23, 23, 23, 0.712);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.crop-area .btn-crop {
    position: absolute;
    top: 10px;
    left: 10px;
}

.crop-area .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.crop-area div {
    background-color: none;
}

.cropper-container {
    transform: scale(0.85);
}

img {
    display: block;
    max-width: 100%;
}

.wrapper {
    z-index: 10;
    background-color: #fff;
    width: 100%;
    height: 100vh;
}

.button-control,
.filter-section {
    background-color: #fff;
}

.cropper-modal,
.cropper-bg {
    background: none !important;
}

.filter-section button:hover>span {
    color: #4A98F7;

}

.hide {
    display: none;
}


.toolbar-item button {
    text-align: center;
    vertical-align: middle;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.toolbar-item button:hover>* {
    color: #4A98F7;
}

.accordion-button {
    position: relative;
}

.border {
    background: #ddd;
    height: 50px;
    width: 1px;
}

.accordion-button>.after {
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 0 15px 15px 0;
    background-color: #FF3CAC;
    background-image: linear-gradient(101deg, #FF3CAC 0%, #784BA0 50%, #2B86C5 100%);

    height: 3px;

}

.invalid {
    border: 1px solid var(--bs-form-invalid-border-color) !important;
}

.center {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

form-control {
    transition: all .2s;
}

.shake {
    animation: shake 0.5s;
}

.accordion {
    width: 100%;
}

.drawing-area-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .9);
    z-index: -1;
}

.drawing-area {
    display: flex;
    width: 100%;
    gap: 10px;
    padding: 10px;
    max-width: 1050px;
}

section {
    background: #fff;
    border-radius: 7px;
}

.tools-board {
    width: 210px;
    padding: 15px 22px 0;
    user-select: none;
}

.tools-board .row {
    margin-bottom: 20px;
}

.row .options {
    list-style: none;
    margin: 10px 0 0 5px;
}

.row .options .option {
    display: flex;
    cursor: pointer;
    align-items: center;
    margin-bottom: 10px;
}

.option:is(:hover, .active) img {
    filter: invert(17%) sepia(90%) saturate(3000%) hue-rotate(900deg) brightness(100%) contrast(100%);
}

.option :where(span, label) {
    color: #5A6168;
    cursor: pointer;
    padding-left: 10px;
}


.option #fill-color {
    cursor: pointer;
    height: 14px;
    width: 14px;
}

#fill-color:checked~label {
    color: #4A98F7;
}

.option #size-slider {
    width: 100%;
    height: 5px;
    margin-top: 10px;
}

.colors .options {
    display: flex;
    justify-content: space-between;
}

.colors .option {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.colors .option:nth-child(1) {
    background-color: #fff;
    border: 1px solid #bfbfbf;
}

.colors .option:nth-child(2) {
    background-color: #000;
}

.colors .option:nth-child(3) {
    background-color: #E02020;
}

.colors .option:nth-child(4) {
    background-color: #6DD400;
}

.colors .option:nth-child(5) {
    background-color: #4A98F7;
}

.colors .option.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 12px;
    width: 12px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.rotate-90 {
    transform: rotate(90deg);
}

.material-symbols-outlined {
    padding: 0;
}

.colors .option:first-child.selected::before {
    border-color: #ccc;
}

.option #color-picker {
    opacity: 0;
    cursor: pointer;
}

.buttons button {
    width: 100%;
    color: #fff;
    border: none;
    outline: none;
    padding: 11px 0;
    font-size: 0.9rem;
    margin-bottom: 13px;
    background: none;
    border-radius: 4px;
    cursor: pointer;
}

.clear {
    clear: both;

}

.buttons .clear-canvas {
    color: #6C757D;
    border: 1px solid #6C757D;
    transition: all 0.3s ease;
}

.clear-canvas:hover {
    color: #fff;
    background: #6C757D;
}

.buttons .save-img {
    background: #4A98F7;
    border: 1px solid #4A98F7;
}

.drawing-board {
    flex: 1;
    overflow: hidden;
}

.drawing-board canvas {
    width: 100%;
    height: 100%;
}

.drawing-area {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 10px solid #000;

}

.tool-bar {
    box-sizing: border-box;
    width: 100%;
    padding: 20px;
    background-color: #aaa;
    margin: 0 !important;
    box-shadow: 100px rgba(0, 0, 0, 1);
}

#tools {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-top: 1px solid #ddd;
    background-color: #aaa;

}

.tools {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 20px;

}

.tool,
.sub-tool {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    box-shadow: .1rem .1rem 0 rgba(0, 0, 0, 0.25);
    background-color: rgba(242, 242, 242, 0.98);
    padding: 1px;
    cursor: pointer;
}

.tool img,
.sub-tool img {
    overflow: hidden;
    width: 40px !important;
    color: #f4f4f4;
}

.sub-tool img {
    padding: 5px;
}

.color-picker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 50px !important;
    min-height: 50px !important;
    border-radius: 50%;
    border: none;
    background-color: #fff;
    cursor: pointer;
}

.color-picker::-moz-color-swatch {
    border-radius: 50%;
    border: none;
}

.color-picker::-webkit-color-swatch {
    border-radius: 50%;
    border: none;
}

.active {
    box-shadow: 0 0 0 2px #4285f4;
}

.isWriting {
    cursor: text;
}

.hide {
    display: none !important;
}

.tools-detail {
    border-left: 1px solid #ddd;
}

.shape-tool label {
    margin: 0 !important;
    cursor: pointer;
}


#carouselExampleDark {
    transform: scale(1);
}

.template-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.offcanvas.offcanvas-bottom {
    height: 45vh !important;
}

.innerImage {
    cursor: pointer;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }

}

@media screen and (max-width: 600px) {
    .justify-content-end {
        justify-content: start !important;
    }

    .tool,
    .sub-tool {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 35px !important;
        max-height: 35px !important;
        width: 35px;
        height: 35px;
        min-width: 35px !important;
        min-height: 35px !important;
        border-radius: 50%;
        box-shadow: .1rem .1rem 0 rgba(0, 0, 0, 0.25);
        background-color: rgba(242, 242, 242, 0.98);
        padding: 1px;
        cursor: pointer;
    }

    .color-picker {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 50%;
        border: none;
        background-color: #fff;
        cursor: pointer;
    }
}

@media screen and (max-width: 600px) {
    .justify-content-end {
        justify-content: start !important;
    }

    .tool,
    .sub-tool {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 35px !important;
        max-height: 35px !important;
        width: 35px;
        height: 35px;
        min-width: 35px !important;
        min-height: 35px !important;
        border-radius: 50%;
        box-shadow: .1rem .1rem 0 rgba(0, 0, 0, 0.25);
        background-color: rgba(242, 242, 242, 0.98);
        padding: 1px;
        cursor: pointer;
    }

    .color-picker {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 50%;
        border: none;
        background-color: #fff;
        cursor: pointer;
    }

    .tool-bar {
        padding: 10px 0 10px 0;
    }

    .tools {
        display: flex;
        justify-content: left;
        align-items: center;
        gap: 7px;

    }
}