canvas {
  position: absolute;
  top: 0;
  left: 0; }

.fit-me-button {
  white-space: nowrap; }

#scratch {
  margin: auto; }

img {
  -ms-interpolation-mode: bicubic; }

.panel {
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  width: 100%; }

.max-cont {
  width: 90%;
  height: 95%;
  margin: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center; }

#scratch {
  position: relative;
  display: inline-block;
  font-size: 0; }

#scratch img {
  max-width: 100%;
  max-height: 100%;
  -webkit-box-shadow: 2px 5px 5px 3px rgba(0, 0, 0, 0.32);
          box-shadow: 2px 5px 5px 3px rgba(0, 0, 0, 0.32); }

#scratch canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  cursor: pointer;
  will-change: transform;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  -ms-touch-action: none;
  -webkit-touch-action: none;
  -moz-touch-action: none;
  touch-action: none;
  -webkit-transition: opacity 500ms ease-out 0ms, height 0ms linear 500ms;
  -o-transition: opacity 500ms ease-out 0ms, height 0ms linear 500ms;
  transition: opacity 500ms ease-out 0ms, height 0ms linear 500ms; }

#scratch {
  max-height: 100% !important;
  max-width: 100% !important; }

#scratch.revealed canvas {
  opacity: 0;
  height: 0; }

.popup-information {
  height: auto; }
  .popup-information .popup-title {
    max-height: 100%; }
  .popup-information .popup-desc {
    margin-top: 1%; }

.pulse-anim {
  -webkit-animation: pulse .5s ease-in-out;
          animation: pulse .5s ease-in-out; }

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1); }
  60% {
    -webkit-transform: scale(1.04);
            transform: scale(1.04); }
  80% {
    -webkit-transform: scale(0.94);
            transform: scale(0.94); }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1); } }

@keyframes pulse {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1); }
  60% {
    -webkit-transform: scale(1.04);
            transform: scale(1.04); }
  80% {
    -webkit-transform: scale(0.94);
            transform: scale(0.94); }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1); } }

.brush-size {
  z-index: 10;
  padding: 1rem;
  left: 1rem;
  top: 1rem;
  position: absolute;
  width: auto;
  height: auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  justify-content: center;
  -ms-flex-line-pack: center;
      align-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-shadow: 6px 10px 9px -9px rgba(0, 0, 0, 0.75);
          box-shadow: 6px 10px 9px -9px rgba(0, 0, 0, 0.75); }

.brush-dot {
  border: 4px dotted black;
  width: 90px;
  height: 90px;
  background-color: red;
  border-radius: 45px;
  margin: 2%; }

.brush-dot:hover {
  -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1);
  cursor: pointer; }

.brush-small {
  width: 50px;
  height: 50px; }

.brush-medium {
  width: 60px;
  height: 60px; }

.brush-large {
  width: 80px;
  height: 80px; }

.size-title {
  margin: 0.5rem auto;
  text-align: center; }

.brush-inactive {
  opacity: 0.6; }

.brush-active {
  opacity: 1; }

.panel-hidden {
  pointer-events: none;
  opacity: 0.2; }
