body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: Arial, sans-serif;
}

.menu-bar {
    background: #333;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-around;
}

button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

canvas {
    flex: 1;
    border: 1px solid #000;
    touch-action: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: auto; /* Remove fixed width */
    max-width: 500px; /* Set max width */
    border-radius: 8px; /* Rounded corners for aesthetic */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.swatch {
    width: 30px;
    height: 30px;
    border: 1px solid #000;
    cursor: pointer;
}

.swatch.selected {
    border: 2px solid #fff;
}

.thickness-options {
    display: flex;
    gap: 10px; /* Space between the icons */
    margin: 10px 0; /* Margin above and below */
}

.thickness-options input[type="radio"] {
    display: none; /* Hide the radio buttons */
}

.thickness-options label {
    cursor: pointer; /* Change cursor to pointer for better UX */
}

.thickness-options label:hover {
    opacity: 0.7; /* Slight opacity change on hover for feedback */
}

.thickness-options label.selected svg circle {
    
    stroke: red; /* Change this to your desired border color */
    stroke-width: 1; /* Adjust this value for border thickness */
}

.swatch.selected {
    border: 2px solid blue; /* Add a blue border around the selected color swatch */
}
