/* Make background slightly darker so canvas is visible as white */
.bg-paint-me {
    background: rgb(255, 255, 255);
    overflow-x: hidden;
}

#paintme-button{
    background: #ffffff;
    width:fit-content;
    width:fit-content;
    background: #ffffff;
    border: 1px solid #ffffff;
    position: absolute;
    z-index: 2147483647;
    bottom: 20px;
    right: 20px;
    border-radius: 100px;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 0 4px #00000027;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}
#paintme.show{
    display:flex;
}
/* #paintme-button:active{
    border: 1px solid #0a70cf;
    background: #046ed1;
}
#paintme-button:active{
    border: 1px solid #0f71cc;
    background: #016dd1;
} */
#paintme-button img{
    margin-top: 2px;
    margin-left: 2px;
    width: 36px;
    height: 36px;
}
#paintme > *,
#paintme button {
    font-family: 'DM Sans', sans-serif;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
#paintme{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999999999;
}

/* Center the canvas */
#canvas {
    background: rgba(255, 255, 255, 0);
    padding: 0;
    margin: auto;
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width:100%;
    height: 100%;
    z-index: 2147483620;
    transition:  background .2s ease-in-out;
}

#canvas.transparent {
    background: rgba(255, 255, 255, 0);
    transition:  background .2s ease-in-out;
}   
#canvas.white {
    background: #ffffff;
    transition:  background .2s ease-in-out;
}
#canvas.squared {
    background: #ffffff;
    background-image: url('../images/grid-pattern.png');
    background-size: 200px 200px;
    background-repeat: repeat;
    transition:  background .2s ease-in-out;
}
#canvas.lined {
    background: #ffffff;
    background-image: url('../images/lined.png');
    background-size: 600px 600px;
    background-repeat: repeat;
    transition:  background .1s ease-in-out;
}

#bg-modal .modal-body .group-options{
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;   
    gap: 20px;
}

#bg-modal .modal-body .button-card-option{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    width: 100%;
    height: 60px;
    display: flex;
    cursor: pointer;
}
#bg-modal .modal-body #opt1 {
    background-color: white;
}
#bg-modal .modal-body #opt2 {
    background-color: white;
}
#bg-modal .modal-body #opt3 {
    background: white url('../images/grid-pattern.png');
    background-size: 150px;
    background-position: center;
    background-repeat: repeat;
}
#bg-modal .modal-body #opt4 {
    background: white url('../images/lined.png');
    background-size: 200px;
    background-position: center;
    background-repeat: repeat;
}

/** CSS SET UP */

.navbar-paintme{
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    width: fit-content;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(252, 252, 252);
    /* background: #ffffff; */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    height: 70px;
}
.container-fluid{
    display: flex;
    padding-top: 10px;
}
.nav-paintme {
    display: flex;
    padding: 0 10px;
    list-style: none;
}
.nav-paintme .nav-item-paintme{
    border-radius: 100px;
    border: 1px solid rgb(245, 245, 245);
    min-width: 50px;
    height: 50px;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all .5s ease-in-out;
}
.nav-paintme .nav-item-paintme:hover{
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
    background: #cccccc;
    transition: all .5s ease-in-out;
}


.nav-paintme .nav-item-paintme a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: background .4s ease-in-out;    
    border-radius: 100%;
}
.nav-paintme .nav-item-paintme a.active {
    background: #096bff;
    transition: background .4s ease-in-out;
}
.navzpaintme .nav-item-paintme.eraser{
    cursor: url('../icons/cursor-eraser.png'), auto;
}
.nav-paintme .nav-item-paintme a.active img{
    filter: invert(2);
}
.nav-paintme .nav-item-paintme 
a #color-selector{
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 100px;
    overflow: hidden;
} 

.nav-paintme .nav-item-paintme img{
    width: 22px;
    height: 22px;
}



/** MODAL */
.modal{
    position: absolute;
    z-index: 2147483637;
    background: #fff;
    color: #333;
    width: 500px;
    height: auto;
    /* top: 100px; */
    left: 50%;
    transform: translate(-50%, -400px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.048);
    transition: transform .5s ease-in-out;
}
.modal.show{
    transform: translate(-50%, 80px);
    transition: transform .5s ease-in-out;
}
.modal-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    height: 40px;
    border-bottom: 1px solid rgb(216, 216, 216);
}
.modal-header button{
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}
.modal-header img{
    width: 30px;
    height: 30px;
}
.modal-body{
    padding: 20px 0;
}
.modal-body .table{
    width: 100%;
    height: 100px;
}
.modal-body .table .increase,
.modal-body .table .decrease{
    cursor: pointer;
}
.modal-body .table .value-data{
    width: 60px;
}
.modal-body .table .center{
    text-align: center;
}
.modal-footer .btn{
    padding: 10px 30px;
    border: none;
    background: #f8f8f8;
    color: #333;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
}
.modal-footer .confirm{
    background: #0077ff;
    color: #fff;
    margin-left: 8px;
}


/* Responsive */

@media screen and (max-width: 1024px){
    .navbar-paintme{
        width: 100%;
        padding: 0 8px;
        top: 0;
    }
    .container-fluid{
        width: 100%;
        overflow-x: auto;
        border-radius: 0;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .container-fluid::-webkit-scrollbar{
        height: 5px;
        background: #f6f6f6;
    }
    .container-fluid::-webkit-scrollbar-thumb{
        border-radius: 20px;
        background: rgb(109, 109, 109);
    }
}

@media screen and (max-width: 590px){
    .modal{
        width: 85%;
    }
/*  */}