@-webkit-keyframes highlights {
     0% {color: #000;}
    20% {color: #D0D0CE;}
    40% {color: #ffcc00;}
    60% {color: #E1F0E5;}
    80% {color: #f72122;}
   100% {color: #000;}

}

@keyframes highlights {
     0% {color: #000;}
    20% {color: #D0D0CE;}
    40% {color: #ffcc00;}
    60% {color: #E1F0E5;}
    80% {color: #f72122;}
   100% {color: #000;}

}


@-webkit-keyframes hideSaved {
     0% {opacity: 1;}
  100% {opacity: 0;}
}

@-webkit-keyframes hideSaved {
     0% {opacity: 1;}
  100% {opacity: 0;}
}

html {
  font-size: 28px;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  color: #000;
  font-size: 28px;
  line-height: 1em;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI",
"Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;

}

::-webkit-scrollbar {
    display: none;
}

::-scrollbar {
    display: none;
}


a {
  color: #000;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  text-decoration: none;
}

a:hover {
  color: #f72122;
}

a:active {
  color: #f72122;
  opacity: 0.8;
}





.link {
  cursor: pointer;
  color: #000;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;

}

.link:hover {
  -webkit-animation: none;
  animation: none;
  color: #f72122;

}

.link:active {
  opacity: 0.8;
}


.layer {
  background: none;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
}

.page {
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
}

#mirror {
  background: none;
  width: 100%;
  height: 100%;
  z-index: -3;
  position: absolute;
  top: 0;
  left: 0;
}

#resultImage {
  z-index: -2;
  background: none;

}

#tempImage {
  display: none;
  z-index: -1;
  background: none;
  border: none;
  outline: none;
}

#stage {
  z-index: 0!important;
  cursor: text;
  cursor: auto;
  background: none;
  border: none;
  outline: none;
}

#bckg {
  position: fixed;
  top: 0;
  background: none;
  z-index: -3;
  background-color: #eee;
  background-image: url('https://pazhytak.com/toolkit/draaawio/assets/images/transparent.png');
}


.ui {
  z-index: 3;
  pointer-events: auto;
}



.colour {
  line-height: 1em;
  padding: 0;
  vertical-align: middle;
  margin: 5px;
  padding: 0.5em;
  padding-bottom: 0.5em;
  border-radius: 4px;
  cursor: auto;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  min-width: 1em;
  min-height: 1em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.25em;
  position: relative;

}

#palette-wrapper {
  width: 100%;
  min-height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow-y: scroll;
  pointer-events: none;
}


#palette {
 -webkit-transition: background-color 0.2s;
 transition: background-color 0.2s;

 background-color: RGBA(0,0,0,0.04);
 float: right;
 display: flex;
 flex-direction: column;
 justify-content: flex-start;
 pointer-events: auto;
 z-index: 3;
 padding: 5px;
}


.palette-item {
  font-size: 1.25rem;
  vertical-align: middle;
  border-radius: 2rem;
  border-radius: 4px;
  padding-bottom: 0.4rem;

  float: right;
  display: flex;
  justify-content: flex-end;
  text-align: center;
  /*transform: rotate(90deg);
  transform-origin: bottom left;*/


}

.arrow {
  cursor: default;
  /*position: absolute;
  vertical-align: middle;
  padding: 0.5em;
  padding-bottom: 0.4em;*/
  pointer-events: none;
}



#file {
  top: 0;
  left: 0;
  position: fixed;
  margin: 5px;
  z-index: 1;
}




.clickable {
  cursor: pointer;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
  -webkit-transition: box-shadow 0.2s;
  transition: box-shadow 0.2s;
}

.clickable:hover {
  background-color: rgba(255,255,255,0.5);
  box-shadow: 0px 0px 2px 2px rgba(0,0,0,0.06);
}

.clickable:active {
  background-color: rgba(0,0,0,0.05);

}

.special {
  display: block;
  float: left;
  text-decoration: none;
  color: #000;
}


.unselectable {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.active {
  background-color: rgba(255,255,255,0.95);
  box-shadow: 0px 0px 5px 5px rgba(0,0,0,0.04);
  cursor: default;
}

#palette .active {
  background-color: rgba(255,255,255,1);
}

.popup-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;

  z-index: 1000;
  background-color: rgba(0,0,255,0.8);
  display: none;
}

.popup {
  width: 40%;
  /*height: 5.3em;*/
  margin: auto;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0px 0px 8px 8px rgba(0,0,0,0.04);
  padding: 2rem;
  text-align: center;
}

#anykey-popup-container {
  display: flex;
  background-color: rgba(0,0,0,0.2);
}

#anykey-popup-container div.popup {
  /*height: 6.5em;*/
}

#sure-popup-container {
  display: none;
  background-color: rgba(0,0,0,0.2);
}

#sure-popup-container div.popup {
  /*height: 4.5em;*/
}

#saved-popup-container {
  display: none;
  background-color: rgba(255,255,255,0.15);
  -webkit-animation: opacity 1s hideSaved;
  animation: opacity 1s hideSaved;
}

#saved-popup-container div.popup {
  background: rgba(255,255,255,0.5);

}

#macOS-popup-container {

  background-color: rgba(0,0,0,0.8);
}


.close {
  margin-top: 1em;
  display: inline-block;
}



#print {
  position: fixed;
  left: 0;
  bottom: 0;
  margin: 5px;
}




.right-popup-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  position: fixed;
  z-index: 1000;
  background-color: RGBA(0,0,255,0.8);
  display: none;
}

.right-popup-btn {
  width: calc(60% - 2em);
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;

}

.right-popup-btn span {
  text-align: center;
  display: block;
  margin: auto;
}

.right-popup {
  width: 40%;
  height: 100%;
  overflow-y: scroll;
  background-color: #fff;
  box-shadow: 0px 0px 8px 8px rgba(0,0,0,0.04);
  text-align: center;
}

.widget-header {
}

.preview-container {

  margin: 0.5em 0.5em 1em 0.5em;
}



.merch38 {
  margin: 1em auto;
  margin-top: -1em;
  position: relative;
  color: #000;

}

.right-popup p {
  padding: 1em;
  margin: 0 auto;
  position: relative;
}

#print-popup-container {
  display: none;
  background-color: RGBA(252,238,33,0.9);

}



#new-image {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  position: fixed;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}

#image-image {
  min-width: 100%;
  min-height: 100%;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;

}

#cur-image {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}

#btn-undo {
  width: 1rem;
  height: 1rem;
  line-height: 1rem;
  border-radius: 2rem;
  background-image: url('https://pazhytak.com/toolkit/draaawio/assets/images/undo.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px;

}

#palette-list-container {
 position: fixed;
 overflow-x: scroll;
 -webkit-overflow-scrolling: touch;

 top: calc(2rem + 12px);

 max-width: 100%;
 overflow-x: scroll;
 z-index: 2;


}

#palette-list {
  font-size: 1rem;
  white-space: nowrap;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.palette-list-item {
  vertical-align: middle;
  padding: 0.5rem;
  margin: 5px;
  text-align: center;
  border-radius: 4px;
  text-align: center;
  min-width: 1rem;
  min-height: 1rem;
  position: relative;
}

.inactive-palette {
  display: none;
}

#paletteui {
  position: relative;

}

#cur {
  pointer-events: none;
  line-height: 0px;
  position: absolute;
  z-index: 2;
  padding: 0;
  text-align: center;
  background-position: top left;
  margin: 0;
  padding-top: 7px;

  display: flex;
  justify-content: center;
  flex-direction: column;
  background-repeat: no-repeat;
}

.unselectable {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


#logo {
  text-decoration: underline;
  color: #000;
  background-color: #fff;
  box-shadow: 0px 0px 2px 2px rgba(0,0,0,0.06);
  display: inline-block;
  transition: color 0.2s;
  text-decoration: none;
}

#logo:hover {
  color: red;
}

#file-handle {
  float: left;
}

.va {
  vertical-align: 6%;
}

#ui-wrapper {
  pointer-events: none;
  position: fixed;
  top: 0;
}

#wall {
  z-index: -4;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

#high {
  z-index: -5;
  position: fixed;
  top: 0;
  background-color: none;

}

#highFinished {
  z-index: -6;
  position: fixed;
  top: 0;
  background-color: none;

}


.underlined {
  text-decoration: underline;
}

.overlined {
  text-decoration: overline;
}

.striked {
  text-decoration: line-through;
}

#logo {
  /*text-decoration: underline;*/
}


#print-preview {
  width: calc(100% - 2px);
  position: static;
  background-color: #fff;
  border: 1px solid #000;
}

#snap-preview {
  width: calc(100% - 2px);
  position: static;
  background-color: #fff;
  border: 1px solid #000;
}


#btn-download {
  background-color: RGBA(252,238,33,1);
  transition: color 0.2s;
  text-decoration: none;
  box-shadow: 0px 0px 4px 4px rgba(0,0,0,0.04);
  color: #000;
}

#btn-download:hover {
  color: red!important;
  box-shadow: 0px 0px 4px 4px rgba(252,238,33,0.1)!important;
}
