:root {
  --canvas-color:white;
  --panel-color:rgb(196, 240, 240);
  --navbar-color:#192A51;
  --text-color:#E2C044;
}
* {
  margin: 0;
  padding: 0;
}
body {
  height: 100vh;
  width: 100vw;
}
.navbar{
  box-sizing: border-box;
  height: 10vh;
  width: 100%;
  padding-left: 10px;
  display: flex;
  align-items: center;
  background-color: var(--navbar-color);
  opacity: 0.9;
  justify-content: space-between;
  transition: all 0.4s;
}
p{
  margin-left: 40px;
  font-size: 32px;
  font-family: cursive;
  color:var(--text-color);
}
.controlpannel {
  position: absolute;
  display: flex;
  margin-top: 10px;
  /* top: 25vh;
  left: 2vw; */
  /* height: 50vh;
    width: 6vw; */
  /* box-shadow: 0px 0px 15px black; */
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  background-color: var(--panel-color);
  z-index: 100;
  transition: all 0.4s;

}
button {
  /* position: relative; */
  margin: 10px;
  padding-top: 5px;
  /* padding: 10px 10px; */
  height: 40px;
  top: 10px;
  left: 10px;
  text-align: center;
  width: 5vw;
  border: none;
  border-radius: 15px;
  /* box-shadow: 0px 0px 15px royalblue; */
  background: beige;
 /* #8787e6 */
  color: black;
  cursor: pointer;
  font: 2px "consolas";
  transition: transfom 100px ease;
  font-size: 100%;
  z-index: 2;
  
}

/* .penWidth {
    position: relative; //
    padding: 10px 10px;
    height: 40px;
    width: 4VW;
    top: 10px; //
    left: 10px;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 64px;
    border: none;
    border-radius: 15px;
    box-shadow: 0px 0px 15px royalblue;
    background: #8787e6;
    font: 2px'consolas';
    font-size: 100%;
}   */

#pen-width {
  /* display:none; */
  text-align: center;
  width: 60px;
  cursor: pointer;
  z-index: 2;
}

#canvas {
  position: relative;
  box-sizing: border-box;
  /* border: 2px solid red; */
  background-color: var(--canvas-color);
  /* z-index: -1; */
  /* cursor:crosshair; */
}
button:active {
  transform: scale(0.95);
}
/* color */
.colors {
  /* position: absolute;
  top: 400px; */
  display: flex;
  align-items: center;
  margin: 10px;
  box-shadow: 0px 0px 15px royalblue;
  background: #8787e6;
  border-radius: 15px;
  flex-direction: column;
}
.color-picker {
  margin: 5px 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.color-selecter {
  margin: 0.5rem 0;
}
input[type="color"] {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
input[type="color"]::-webkit-color-swatch {
  border: none;
}
/* color end */



.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: 40px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
  
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.clicked{
  border: 2px solid black;
}