body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

#drawing-canvas {
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: block;
    touch-action: none;
}

#controls {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.control-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
    height: 36px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

#clear-canvas {
    background-color: #dc3545;
}

#clear-canvas:hover {
    background-color: #c82333;
}

#export-canvas {
    background-color: #28a745;
}

#export-canvas:hover {
    background-color: #218838;
}

.control-button:hover {
    background-color: #0056b3;
}

.control-group {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-family: sans-serif;
    font-size: 14px;
    height: 36px;
    box-sizing: border-box;
}

#color-picker {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: none;
}

#brush-size {
    cursor: pointer;
    width: 100px;
}

#brush-size-value {
    min-width: 20px;
    font-weight: bold;
}
