@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
}

.clr {
    clear: both;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eee;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    transition: .1s ease;
    min-height: 100vh;
}

h1 {
    text-align: center;
    margin: 30px;
}

canvas {
    display: flex;
    margin: 0 auto;
    background: #fff;
    border: 2px solid rebeccapurple;
}

.toolbox {
    display: flex;
    margin: 0 auto;
    width: 804px;
    background: rebeccapurple;
    padding: 1rem;
}

.toolbox > * {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: #fff;
    font-size: 2rem;
    border: none;
    padding: 0 .25rem;
    margin: 0 .25rem;
    transition: .3s ease;
}

.toolbox > *:hover {
    background: #e0d5d5;
}

#color {
    padding: 2px;
}

#clear {
    margin-left: auto;
}