* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  font-size: 15px;
  background: #E0FFFF;
  font: 300 17px/22px "Lato", "Open Sans", "Verdana";
  color: #5353c6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

header {
  height: 50px;
  background-color: #6c9393;
  width: 100vw;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  height: 50px;
  color: white;
  line-height: 50px;
}

.stretch {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

header div {
  height: 50px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 20px;
  line-height: 50px;
}

.logo {
  background-color: #d0d0d0;
  height: 50px;
  width: 80px;
  margin: 0;
  overflow: hidden;
  line-height: 50px;
}

.logo img {
  height: 40px;
  width: auto;
  margin-top: 4px;
  padding-left: 17px
}

div.txt {
  padding-left: 12px;
  font-size: 24px;
  overflow: hidden;
}

header a {
  text-decoration: none;
}

p.navigate {
  color: #f2f2f2;
  font-size: 20px;
  line-height: 50px;
  padding: 0 12px 0 0;  /*top | right | bottom | left */
  margin: 0;
}

p.navigate:hover {
  color: #5353c6;
}

.page {
  margin-top: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.content {
  max-width: 500px;
}

.mini-button {
  color:#5353c6;
  font-size : 12px;
  border-radius: 5px;
}

.hr {
  max-width: 50%;
  margin: 0 auto;
}

.hide {
  display: none;
}

.show {
  display: block;
}

footer {
  bottom: 0;
  padding-top: 50px;
  padding-bottom: 20px;
  text-align: center;
}

.tool-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  margin-top: 5px;
}

.tool-button {
  height: 32px;
  width: 32px;
  background-color: #d0d0d0;
  border-radius: 5px;
  line-height: 32px;
}

.tool-button:hover {
  border: 1px solid  #5e9a9a;
}

.tool-button img {
  margin: 6px;
}

.tool-button img:hover {
  margin: 5px;
}

.tool-button.active {
  border: 1px solid red; /* #5353c6 */
}

.tool-button.active img {
  margin: 5px;
}

.tool-button #mirror {
  margin: 3px;
}

.tool-button #mirror:hover {
  margin: 2px;
}

.tool-button.active #mirror {
  margin: 2px;
}

.dialog {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(108,147,147,0.4);
}

.dialog-content {
  background-color: #d0d0d0;;
  max-width: 200px;
  margin: 30px auto;
  border-radius: 5px;
  border: 1px solid rgba(108,147,147,0.4);
  text-align: center;
}

.dialog-content p {
  margin-top: 8px;
  margin-bottom: 8px;
}

.dialog-color-content {
  max-width: 330px;
  margin: 5px auto;
}

.pencil {
  max-width: 130px;
}

.color-square {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background-color: green;
  margin: 6px;
}

.tool-button .color-square:hover {
  margin: 5px;
}

.color-table {
  margin: 0 auto;
}

.color-table td {
  width: 26px;
  height: 26px;
}

.button {
  color: #5353c6;
  font-size: 15px;
  min-width: 50px;
  border-radius: 5px;
  border: 1px solid #5e9a9a;
  -webkit-appearance: none;
}

.button:hover {
  background-color: #f2d2f3;
}

.plus-minus-button {
  min-width: 15px;
}

@media ( max-width: 440px ) {
  header div a {
    display: none; 
  }
}

.canvas-group {
  position: relative;
  margin-top: 5px;
  margin-bottom: 5px;
  max-width: 500px;
  max-height: 500px;
  width: 100vw;
  height: 100vw;
}

.canvas-guide, .canvas-sketch {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 500px;
  max-height: 500px;
  width: 100vw;
  height: 100vw;
}

.canvas-sketch {
  border: 1px solid gray;
  cursor: crosshair;
}

.gallery {
  text-align: center;
}