* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Rubik";
    user-select: none;
}

.wrap {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header {
    height: 10vh;
    width: 100%;
    position: fixed;
    background-color: #8a8a8aff;
    top: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.settingDiv {
    width: 25%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 0 20px;
}

.settingBtn {
    height: 80%;
    aspect-ratio: 1/1;
    background-color: #646464;
    border-radius: 10%;
    transition: 0.15s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
}

.settingBtn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.settingBtn:active {
    transform: scale(0.8);
    filter: brightness(0.8);
}


.toolBtnDiv {
    width: auto;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.currentColorDiv {
    width: 25%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
}

.currentColor {
    height: 80%;
    aspect-ratio: 1/1;
    background-color: #646464;
    border-radius: 10%;
    transition: 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    margin: 0 20px;
}

.lineWidth {
    height: 80%;
    aspect-ratio: 3/1;
    background-color: #646464;
    border-radius: 3%;
    transition: 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lineWidthDisplay {
    width: 80%;
    height: 10px;
    background-color: #fff;
    border-radius: 3px;
}

.currentColorDisplay {
    width: 80%;
    aspect-ratio: 1/1;
    border: 3px solid #fff;
    background-color: #b9b9b9ff;
    border-radius: 50%;
}

.toolSelectButton {
    height: 80%;
    aspect-ratio: 1/1;
    background-color: #646464;
    border-radius: 10%;
    transition: 0.15s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    margin: 0 10px;
}

.toolSelectButton.selected {
    height: 80%;
    aspect-ratio: 1/1;
    background-color: #646464;
    border-radius: 10%;
    transition: 0.15s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    margin: 0 10px;
    border: 6px solid #fff;
}

.settingsDiv {
    position: fixed;
    width: 30%;
    aspect-ratio: 1/1.3;
    background-color: rgba(136, 136, 136, 0.7);
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    top: 50%;
    left: 50%;
    z-index: 6;
    border: 5px solid #666;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.canvasStyleDiv {
    width: 100%;
    height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 40px;
    color: #fff;
    font-weight: 600;

    p {
        margin-bottom: 10px;
    }
}

.lineWidthDiv {
    width: 100%;
    height: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 45px;
    color: #fff;
    font-weight: 600;
    margin: 20px 0;
}

.toolSelectButton:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.toolSelectButton:active {
    transform: scale(0.8);
    filter: brightness(0.8);
}

.savedMenu {
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: #727272;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 200px;
    opacity: 0;
    color: #fff;
    font-weight: 600;
    transition: 0.5s;
}

.colorMenu {
    height: 15%;
    aspect-ratio: 1/1;
    background-color: #8a8a8aff;
    border-radius: 10px;
    position: fixed;
    left: 2%;
    bottom: 2%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    color: #fff;
    transition: 0.5s;
    cursor: pointer;
    overflow: hidden;
}

.menuClickFalse {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.menuClickTrue {
    width: 100%;
    height: 100%;
    position: absolute;
    left: -100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.colorSelectDiv {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.colorSelectBtn {
    width: 12%;
    aspect-ratio: 1/1;
    border-radius: 10%;
    border: #fff solid 3px;
    cursor: pointer;
    transition: 0.25s;
}

.colorSelectBtn:hover {
    transform: scale(1.15);
    filter: brightness(1.15) drop-shadow(#fff 0 0 10px);
}

#red {
    background-color: #ff5555;
}

#cyan {
    background-color: #55ebff;
}

#green {
    background-color: #55ff7f;
}

#yellow {
    background-color: #ffe055;
}

#blue {
    background-color: #3b56f1;
}

#customColorSelect {
    height: 65%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background-color: transparent;
}

#customColorSelect::-webkit-color-swatch,
#customColorSelectCanvas::-webkit-color-swatch {
    border-radius: 8%;
    border: none;
    border: #fff solid 3px;
    background: linear-gradient(to right, rgb(240, 85, 85), rgb(253, 177, 36), rgb(255, 225, 54), rgb(128, 255, 128), rgb(53, 53, 250), rgb(160, 41, 245), rgb(255, 153, 255));
}

#customColorSelect::-moz-color-swatch,
#customColorSelectCanvas::-moz-color-swatch {
    border-radius: 8%;
    border: none;
    border: #fff solid 3px;
}

#customColorSelectCanvas {
    height: 30%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background-color: transparent;
}

#canvas {
    width: 100%;
    height: 100vh;
    background-color: #e6e6e6;
    cursor: grab;
}

#widthInp {
    -webkit-appearance: none;
    appearance: none;
    width: 70%;
    background: transparent;
    margin: 10px 0;
}

#widthInp:focus {
    outline: none;
}

#widthInp::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    background: #c7c6c6;
    cursor: pointer;
    border-radius: 50%;
    margin-top: -8px;
    transition: 0.2s;
}

#widthInp::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    filter: brightness(1.25);
}

#widthInp::-webkit-slider-thumb:active {
    transform: scale(0.9);
    filter: brightness(0.9);
}

#widthInp::-webkit-slider-runnable-track {
    width: 50%;
    height: 6px;
    cursor: pointer;
    background: #444;
    border-radius: 2px;
}

#widthInp::-moz-range-thumb {
    height: 20px;
    width: 20px;
    background: #c7c6c6;
    cursor: pointer;
    border-radius: 50%;
}

#widthInp::-moz-range-track {
    width: 50%;
    height: 6px;
    cursor: pointer;
    background: #444;
    border-radius: 2px;
}