* {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

body,
html {
    width: 100%;
    height: 100%;
}

body {
    cursor: url("./img/painter.png") 0 32, auto;
}

.canvas-list {
    position: relative;
}

.canvas-list>canvas {
    position: absolute;
    top: 0;
    left: 0;
}

/* ********************** */



.tools {
    position: relative;
    top: 0;
    left: 0;
    width: 450px;
    height: 90px;
    margin: 0 auto;
    user-select: none;
}

.scroll {
    overflow-y: hidden;
    overflow-x: scroll;
    white-space: nowrap;
}

.tools div {
    display: inline-block;
    margin: 15px 10px 0 10px;
    transition: all 0.5s ease;
}


.tools img {
    width: 50px;
    height: 50px;
    transition: all 0.5s ease;
}

.tool-options {
    position: fixed;
    top: 120px;
    left: 20px;
    user-select: none;
}

.tool-options .line-color>li {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin: 20px;
    transition: all 0.5s ease;
}

.line-color li:nth-child(1) {
    background-color: black;
}

.line-color li:nth-child(2) {
    background-color: lightblue;
}

.line-color li:nth-child(3) {
    background-color: lightsalmon;
}

.line-color li:nth-child(4) {
    background-color: lightcoral;
}

.line-color li:nth-child(5) {
    background-color: lightgreen;
}

.line-color li:nth-child(6) {
    background-color: lightgray;
}

.line-color li:nth-child(7) {
    background-color: lightpink;
}

.line-color li:nth-child(8) {
    background-color: yellow;
}

.line-color li:nth-child(9) {
    background-color: saddlebrown;
}

.line-color li:nth-child(10) {
    background-color: green;
}


.line-color .active,
.tools .active {
    transform: scale(1.3);
}

/* ********************** */

.tool-options .sizes {
    position: absolute;
    top: 0px;
    left: 60px;
    transition: all 1s;
}

.fade-out {
    transform-origin: left;
    transform: translate(-20px, 20px);
    opacity: 0;
}


.line-size>li {
    margin: 20px;
    border-radius: 50px;
    width: 40px;
    background-color: black;
    transition: all 0.5s ease;
}

.line-size li:nth-child(1) {
    height: 5px;
}

.line-size li:nth-child(2) {
    height: 7px;
}

.line-size li:nth-child(3) {
    height: 9px;
}

.line-size li:nth-child(4) {
    height: 11px;
}

.line-size .active {
    width: 60px;
}

#save img {
    transform: rotate(-35deg);
}

#save img:hover {
    transform: rotate(0deg);
}


#clear img:hover {
    transform: rotate(-45deg);
}

#erasers {
    display: none;
}

#erasers li {
    padding: 30px 0 30px 25px;
}

.line-size .lean {
    border-radius: 0;
    transform: skew(-25deg);
}



@media  screen and (max-width: 500px) {
    .tools {
        position: relative;
        top: 0;
        left: 0;
        width: 300px;
        height: 90px;
        margin: 0 auto;
        user-select: none;
        overflow-y: hidden;
        overflow-x: scroll;
        white-space: nowrap;
    }
}