html, body {
 margin: 0;
 padding: 0;
 font-family: Helvetica, sans-serif;
 font-size: 15px;
}

h1{
  font-size: 22px;
  text-align: center;
  margin-top: 20px;
}

h2{
  font-size: 18px;
}
.page{
  width: 60%;
  margin: auto;
}


#canvasimg{
  display: none;
}
#can{
  border:2px solid;
  margin: 20px auto;
}

input[type=submit]{
  background-color: #1A8DFF;
  border: none;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 15px;
}

input[type=submit]:hover{
  opacity: 0.8;
}

input[type=text]{
  margin-top: 20px;
  border: 1px solid #ccc;
  padding: 5px;
  text-decoration: none;
  border-radius: 3px;
  font-size: 18px;
  height: 40px;
  box-sizing: border-box;
  width: 100%;
}

input[type=text]:hover{
  opacity: 0.8;
}

#text{
  width: 100%;
  display: block;
}

#draw{
  width: 100%;
  display: none;
}

.box_head{
  margin-top: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pad_switch{
  align-items: center;
  display: flex;
}

.box_head h2{
  font-size: 20px;
  line-height: 40px;
}

.pad_switch>span{
  margin: 10px;
  font-size: 18px;
  line-height: 40px;
}

.invert_switch{
  line-height: 40px;
  font-weight: bold;
}
.invert_switch_normal{
  margin-left: 10px;
  display: inline-block;
  width: 100px;
}
.invert_switch_invert{
  display: none;
  margin-left: 10px;
  width: 100px;
}

.gomme{
  margin-left: 10px;
  padding-right: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 40px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2B2B2B;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 32px;
  width: 32px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #F3E500;
}

input:focus + .slider {
  box-shadow: 0 0 1px #F3E500;
}

input:checked + .slider:before {
  transform: translateX(30px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.params{
  width: 100%;
}

.params p label{
  width: 100px;
  display: inline-block;
}

.params p input{
  height: 25px;
  padding: 3px 5px 3px 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  width: 35px;
  text-align: right;
}

.boxes{
  display: flex;
}
.box{
  border: 3px dotted #000;
  width: 60px;
  height: 60px;
  margin: 10px;
  text-align: center;
  line-height: 60px;
  cursor: pointer;
  border-radius: 15px;
  font-weight: bold;
  background-color: #F3E500;
  user-select:none;
}
.box:hover{
  opacity: 0.6;
}

@media (max-width:800px)  {
 .page{
   width: 97%;
 }
}
