/* * {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;

    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* cursor: none; */
/* margin: 0;
padding: 0;
} */

/* Force light mode no matter what the device theme is */
html {
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #f8eddd !important;
        color: #000 !important;
    }

    canvas,
    input,
    textarea,
    select,
    button {
        background-color: #fff !important;
        color: #000 !important;
    }
}


*/ .cursor.big {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    background-color: red;
    /* or whatever you want */
    transform: translate3d(-9999px, -9999px, 0);
    /* move it offscreen initially */
    z-index: 9999;
}


body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: #f0efec;
}


.hidden {
    display: none;
}

.select-actions {
    display: none;
}

.select-mode .select-actions {
    display: flex;
    gap: 5px;
}

button {
    padding: 4px 8px;
    cursor: pointer;
}

.color-palette {
    display: flex;
    gap: 5px;
}

.color-box {
    width: 24px;
    height: 24px;
    border: 1px solid #666;
    cursor: pointer;
}

#canvas-area {
    padding: 20px;
}

.big {
    width: 10px;
    height: 10px;
    background-color: purple;
    border-radius: 50%;
    z-index: 100;
    position: relative;
}

#toolbar {
    width: 100%;
    height: 100px;
    padding: 10px;
    position: relative;
    top: 0;
    background-color: rgb(94, 94, 94);
    overflow: auto;
    z-index: 1;
}

*/ #center {
    margin: auto;
    width: 410px;
    height: 50px;
    /* border: 3px solid #73AD21; */
    text-align: center;
}

.daColors {
    display: inline-block;
    /* border: 1px solid #73AD21; */
    height: 40px;
    padding-bottom: 30px;
    /* padding-left: 5px; */
    text-align: center;
}

.daColors2 {
    display: inline-block;
    /* border: 1px solid #73AD21; */
    height: 40px;
    padding-bottom: 30px;
    padding-right: 4px;
    text-align: center;
}

#mybutton {
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0;
}

#colorPick {
    visibility: hidden;
    width: 0;
    height: 0;
}

#width,
#height {
    position: relative;
    float: left;
    margin-left: 20px;
    margin-right: 20px;
    font-size: 20px;
    font-weight: 500;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: white;
    white-space: nowrap;
}

.btnHide {
    visibility: hidden;
    width: 0;
    height: 0;
    padding: 0px;
}

#threadColors {
    text-align: right;
    border: 3px solid black;
    margin: 3px;
}

#thread {
    text-align: right;
    border: 3px solid black;
    /* margin-top: 5px; */
    margin: 3px;
}

#drawdown {
    text-align: right;
    border: 3px solid black;
    z-index: 0;
    margin: 3px;
}

#tieup {
    width: 40px;
    height: 40px;
    text-align: left;
    border: 3px solid black;
    /* margin-top: 5px; */
    margin: 3px;
}

#tread {
    width: 40px;
    right: 0;
    text-align: left;
    border: 3px solid black;
    margin: 3px;
}

#treadColors {
    width: 40px;
    right: 0;
    text-align: left;
    border: 3px solid black;
    margin: 3px;
}

#wrapper {
    /* position: relative; */
    /* top: 10px; */
    /* margin: auto; */
    /* padding: 10px; */
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto auto;
    gap: 0;
    align-items: start;
    margin: 0 auto;
    /* <- this centers it horizontally */
}

#wrapper>div {
    /* border: 1px solid blue; */
    display: flex;
    align-items: start;
    justify-content: start;
}

canvas {
    display: block;
}

#reset {
    color: green;
    background-color: white;
}

#draftGallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    justify-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.draft-item:hover {
    transform: scale(1.02);
    transition: transform 0.2s;
}

.draft-item {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.2s;
}


.thumbnail {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 1px solid #ccc;
    margin-bottom: 0.5rem;
    image-rendering: pixelated;
}