*{
    box-sizing: border-box;
}
html,body{
    margin: 0;
}
.textBox,
.cropper{
    position: absolute;
    padding: 2px;
    min-height: 10px;
}
.textBox:focus{
    border: 1px solid blue;
}
.cropper{
    width: 100px;
    height: 100px;
    padding: 5px;
    display: none;
    border: 2px dotted dodgerblue;
}
.cropper.active{
    display: inline-flex;
}
.options:has(#pencil){
    /* width: 150px; */
}
.option span{
    display: none;
}
.croppedCanvas{
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    box-shadow: 1px 1px 20px 1px rgba(0, 0, 0, 0.509);
    border-radius: 6px;
}
.free-drawing-flex {
    /* display: flex; */
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #e3dede;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.free-drawing {
    display: flex;
    flex-direction: column;
    width: 100%;
    width: 100%;
    background: white;
    gap: 0;
}
.col.free-drawing{
    gap:0
}
.tools-board {
    width: 100%;
    background: #bfdcf4;
    padding: 5px;
    display: flex;
    /* box-shadow: 1px 1px 2px 1px grey; */
} 
.free-drawing .options {
    list-style: none;
    height: fit-content;
    padding: 5px;
    display: none;
    flex-direction: row;
    gap: 1px;
    margin: 0;
    background: rgb(29, 28, 28);
    z-index: 100;
}  
.free-drawing .options *, 
.free-drawing label{
    color: #9d9d9d;
}
.free-drawing .options.active{
    display: flex;
}
.free-drawing .options .option {
    cursor: pointer;
    align-items: center;
    float: left;
}
.free-drawing .options:has(#rectangle) .option{
    padding: 6px;
}
.free-drawing .options .option:not(.colors .option) {
    padding: 8px;
}
.canvas-tool-bar .buttons{
    display: flex;
}
.free-drawing .option:is(:hover, .active) img {
    filter: grayscale(20%);
}
.free-drawing .option :where(span, label) {
    color: black;
    cursor: pointer;
    padding-left: 10px;
}

.free-drawing .option:is(:hover, .active) :where(span, label) {
    color: #f4130b;
}

.free-drawing .option #fill-color {
    height: 14px;
    cursor: pointer;
    width: 14px;
}

.free-drawing #fill-color:checked~label {
    color: #e93e2b;
}

.free-drawing .option #stroke_width {
    width: 100%;
    height: 5px;
    margin-top: 10px;
}

.free-drawing .colors .options {
    justify-content: space-between;
}

.free-drawing .colors .option {
    height: 20px;
    width: 20px;
    border-radius: 30%;
    margin: 3px 6px;
    position: relative;
}

.free-drawing .colors .option:nth-child(1) {
    background: #fff;
    border: 1px solid #bfbfbf;
}
.free-drawing .colors .option:nth-child(2) {
    background: black;
}
.free-drawing .colors .option:nth-child(3) {
    background: #ef4415;
}
.free-drawing .colors .option:nth-child(4) {
    background: green;
}
.free-drawing .colors .option:nth-child(5) {
    background: #c1f40a;
}

.free-drawing .colors .option.selected::before {
    position: absolute;
    content: "";
    height: 12px;
    top: 50%;
    left: 50%;
    width: 12px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.free-drawing .colors .option:first-child.selected::before {
    border-color: #ccc;
}
.free-drawing .option input[type="color"] {
    opacity: 0;
    cursor: pointer;
}
.free-drawing .options button {
    color: #151515;
    border: none;
    outline: none;
    font-size: 0.9rem;
    padding: 3px 12px;
    background: none;
    border-radius: 5px;
    cursor: pointer;
    appearance: none;
    margin: 0;
}
.free-drawing .buttons{
    color: black;
    transition: all 0.2s ease;
    font-size: 13px;
}

.free-drawing button:hover {
    color: #fff;
    background: #6c757d;
}

.free-drawing .buttons .save-img {
    background: white;
    color: black;
}
.free-drawing .drawing-board {
    flex: 1;
}
.free-drawing .drawing-board canvas {
    width: 100%;
    height: 590px;
    border-radius: 10px;
    padding: 0;
} 
.tools-board label{
    padding: 5px 10px;
}
.tools-board label:hover{
    background: white;
    color: dodgerblue;
}