html {
    font-size: 9px;
}
.container {
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
}
.bgLayer {
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: none;
    background: #000;
    opacity: 0.5;
    z-index: 9;
}
.main {
    width: 100vw;
    height: 100vh;
    background: url("../img/main_bg.jpg") no-repeat;
    background-size: cover;
    position: relative;
}
 h1 {
    font-family: 'Caveat', cursive;
    color: darkslategray;
    text-align: center;
    font-size: 87px;
    margin: 0;
}
.saveWindow {
    width: 30vw;
    height: 70vh;
    top: -999px;
    left: 33%;
    position: absolute;
    display: block;
    background: lightyellow;
    border-radius: 10%;
    z-index: 10;
    transform: translateZ(0);
    transition-duration: 1s;
}
.saveWindow h2 {
    padding: 1rem;
    font-size: 3rem;
    text-align: center;
}
.saveWindow .text {
    width: 50%;
    height: 5%;
    display: block;
    margin: 0 auto;
    font-size: initial;
}
.saveWindow .save {
    display: block;
    margin: 0 auto;
    margin-top: 8%;
    width: 15rem;
    height: 4rem;
    font-size: 2rem;
}
.cross {
    font-size: 3rem;
    position: absolute;
    right: 5%;
    top: 3%;
    cursor: pointer;
}
.cross:hover {
    transform: scale(1.3) translateZ(0) rotate(180deg);
    transition-duration: 0.5s;
    color: red;
}
#Home {
    position: absolute;
    width: 8rem;
    left: 1%;
    cursor: pointer;
    z-index: 16;
}
#Home:hover {
    transform: scale(1.2) rotate(360deg) translateZ(0);
    transition-duration: 0.5s;
}
#IPage {
    margin-top: 2%;
}
#Canvas {
    transform: translateZ(0);
}
.mainMenu {
    margin-top: 5%;
    font-family: 'Caveat', cursive;
    text-align: center;
}
.mainMenu span {
    display: inline-block;
    transition: transform 0.5s;
    font-size: 57px;
}
.mainMenu span:hover {
    transform: scale(1.2);
    cursor: pointer;
}
#ball1,#ball2{
    position: absolute;
    width: 200px;
    z-index: 1;
}
#ball1 {
    top: 10%;
    left: 10%;
}
#ball2 {
    bottom: 10%;
    right: 10%;
}
.canvas {
    position: relative;
    top: 20%;
    width: 60vw;
    height: 60vh;
    margin: 0 20% 0 17%;
    z-index: 5;
    background-color: white;
}

.canv {
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid black;
    width: 60vw;
    height: 60vh;
    margin: 0 auto;
}
.canv1 {
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid black;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}
.rightPanel .selected {
    background:  url(../img/tb_72.png) dimgray;
    border-radius: 15%;
}
.bottomPanel .selected {
    background:  url(../img/all-brushes-min.png) dimgray;
    background-size: cover;
    border-radius: 15%;
}
.rightPanel {
    position: absolute;
    height: 60vh;
    right: -74px;
    border: 1px solid black;
    background-color: beige;
    z-index: 4;
}
.rightPanel>div {
    width: 72px;
    height: 72px;
    background: url("../img/tb_72.png");
}
.rightPanel>div:hover {
    background:  url(../img/tb_72.png) dimgray;
    border-radius: 15%;
}
.canvas .rightPanel .range {
    background: none;
    display: flex;
}
.canvas .rightPanel .range:hover {
    background: dimgray;
}
.rangeItem {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: greenyellow;
    margin: auto;
    text-align: center;
    line-height: 5.3rem;
    font-size: 3rem;
    font-weight: bold;
}
.range input  {
    display: none;
    position: absolute;
    top: 238px;
    right: 15px;
    width: 150px;
    transform: rotate(270deg);
}
#hider {
    position: absolute;
    top: -9999px;
    left: -9999px;
}
#hider:checked + .box  {
    display: inline-block;
}
.rightPanel .brushElem,
.rightPanel .brushElem:hover,
.rightPanel .brushElem:active {
    background-position: 70px -83px;
}
.rightPanel .coloring,
.rightPanel .coloring:hover,
.rightPanel .coloring:active {
    background-position: 66px -7px;
}
.rightPanel .clean,
.rightPanel .clean:hover,
.rightPanel .clean:active {
    background-position: 68px -219px;
}
.rightPanel .prevStep,
.rightPanel .prevStep:hover,
.rightPanel .prevStep:active {
    background-position: 70px -361px;
}
.rightPanel .nextStep,
.rightPanel .nextStep:hover,
.rightPanel .nextStep:active {
    background-position: 70px -433px;
}
.rightPanel .save,
.rightPanel .save:hover,
.rightPanel .save:active {
    background-position:  70px -718px;
}
.bottomPanel {
    display: flex;
    flex-wrap: wrap;
    width: calc(60vw + 72px);
    position: absolute;
    bottom: -118px;
    border: 1px solid black;
    height: 13rem;
    background: beige;
    overflow-y: auto;
    align-content: flex-start;
    z-index: 4;
}
.bottomPanel div {
    width: 5rem;
    height: 5rem;
    /* border: 1px solid black; */
    background: url("../img/all-brushes-min.png");
    background-size: cover;
}
.bottomPanel div:hover {
    background:  url(../img/all-brushes-min.png) dimgray;
    background-size: cover;
    border-radius: 15%;
}
.slider {
    position: relative;
    overflow: hidden;
    width: 60vw;
    height: 60vh;
    margin: 0 auto;
    background-color: white;
    z-index: 5;
}
.slider__wrapper {
    display: flex;
    transition: transform 0.6s ease;
    height: 100%;
}
.slider__item {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
}
.slider__control {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: #fff;
    text-align: center;
    opacity: 0.5;
    height: 50px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .5);
}
.slider__control:hover,
.slider__control:focus {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: .9;
}
.slider__control_left {
    left: 0;
}
.slider__control_right {
    right: 0;
}
.slider__control::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
}
.slider__control_left::before {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}
.slider__control_right::before {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}
.slider__item>img {
    line-height: 250px;
    font-size: 100px;
    text-align: center;
    max-width: 100%;
    margin: auto;
    display: block;
}