/*
 * Styles du module de dessin
 */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  min-height: 100%;
}
body {
  overflow: hidden;
}
canvas {
  border: 1px solid;
}
.options {
  position: absolute;
  top: 0;
  width: 48px;
  -webkit-transform: scale(0.75, 0.75);
  -moz-transform: scale(0.75, 0.75);
  -o-transform: scale(0.75, 0.75);
  -ms-transform: scale(0.75, 0.75);
  transform: scale(0.75, 0.75);
}
.options.mobile {
  left: 0;
}
.options:not(.mobile) {
  right: 0;
}
.options li {
  text-align: center;
  line-height: 30px;
  list-style-type: none;
}
.options a,
.options button {
  display: block;
  width: 48px;
  height: 48px;
  border: none;
  background-color: #1a1a1a;
}
[data-size]:not(.active) {
  background-color: rgba(26,26,26,0.3) !important;
}
[data-size] em {
  display: none;
}
[data-size]:before {
  content: '';
  display: block;
  background: #fff;
  -webkit-border-radius: 100%;
  border-radius: 100%;
}
[data-size].active {
  background: #1a1a1a;
}
[data-size].active:before {
  background-color: #ff852f;
}
[data-size="36"]:before {
  width: 36px;
  height: 36px;
  margin: 6px;
}
[data-size="12"]:before {
  width: 12px;
  height: 12px;
  margin: 18px;
}
[data-size="4"]:before {
  width: 4px;
  height: 4px;
  margin: 22px;
}
#delete,
#save {
  margin-top: 1px;
}
#delete:hover,
#save:hover {
  background-color: #ff852f;
}
#delete {
  margin-top: 1px;
}
#save,
#save img {
  margin-top: 12px;
}
.option-name {
  display: none;
  background: #1a1a1a;
  font-family: 'Open Sans';
  font-size: 10px;
  text-transform: uppercase;
  color: #fff;
}
.option-name:not(:first-child) {
  margin-top: 6px;
}
.alert-rotate {
  display: none;
  color: #fff;
  font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  font-size: 21px;
}
@media screen and (min-width: 420px) {
  .option-name {
    display: block;
  }
}
@media screen and (min-width: 768px) {
  .options {
    -webkit-transform: scale(1, 1);
    -moz-transform: scale(1, 1);
    -o-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    transform: scale(1, 1);
  }
}
@media only screen and (max-device-width: 768px) {
  body {
    background-color: #000;
  }
}
@media only screen and (max-device-width: 768px) and (orientation: portrait) {
  body {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
  }
  .alert-rotate {
    position: absolute;
    display: table;
    vertical-align: middle;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: block;
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
  }
  .alert-rotate span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
  }
}
