body {
    margin: 0;
    overflow: hidden;
    height: 100vh;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    background: white;
}

#circle {
    width: 30px;
    height: 30px;
    background-color: #007bff;
    border-radius: 50%;
    position: absolute;
    touch-action: none;
    pointer-events: auto;
    user-select: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease;
}

.buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.buttons button {
    padding: 10px 20px;
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.buttons button:hover {
    background-color: #007bff;
    color: white;
}

.buttons button:active {
    transform: scale(0.95);
}

.toolbar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.color-palette {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-dot:hover::before {
    border-color: rgba(0, 0, 0, 0.2);
}

.color-dot.active::before {
    border-color: #000;
}

.color-dot:hover,
.color-dot:active {
    transform: scale(1.1);
}

#clearBtn {
    border-color: #dc3545;
}

#clearBtn:hover {
    background-color: #dc3545;
    color: white;
}
