@font-face{
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: local(''), url('fonts/open-sans-v18-latin-300.woff2') format('woff2');
}

@font-face{
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: local(''), url('fonts/open-sans-v18-latin-600.woff2') format('woff2');
}

@font-face{
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: local(''), url('fonts/source-sans-pro-v14-latin-regular.woff2') format('woff2');
}

@font-face{
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  src: local(''), url('fonts/source-sans-pro-v14-latin-700.woff2') format('woff2');
}

*{
  border: 0;
  font: inherit;
  font-size: 100%;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section{
  display: block;
}
ol, ul{
  list-style: none;
}
blockquote, q{
  quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after{
  content: '';
  content: none;
}
table{
  border-collapse: collapse;
  border-spacing: 0;
}
body{
  background: transparent;
  font-family: 'Source Sans Pro', Helvetica, sans-serif;
  font-size: calc(9px + 0.8vmin);
  line-height: 1;
  margin: 0;
  padding: 0;
  touch-action: none;

  /*BACKGROUND*/
  --transparent-black:rgba(0,0,0,0.6);
  --shadow-background:rgba(0,0,0,0.2);
  --light-background:rgba(200,200,200,0.15);

  /*main colors*/
  --pink:#D80669;
  --red:#E40c2b;
  --blue:#058ED9;
  --green:#1FBA4D;
  --yellow:#E09D00;
  --black:#464239;
  --white: #fff;

  /*light colors*/
  --pink-light:#FB89BE;
  --red-light:#F8778B;
  --blue-light:#60C5FB;
  --green-light:#51E17C;
  --yellow-light:#FFC847;
  --black-light:#ACA79A;
  --transparent-white:rgba(255,255,255,0.7);


  /*SHADOW*/
  --shadow: 0 0 2px var(--transparent-black);
  --shadow-color: 0 0 2px var(--ui-color);

  /*GRADIENT*/
  --gradient:radial-gradient(ellipse at center, rgba(233,200,190,0.3), rgba(25,25,25,0.2));
  --n_icons: 36;
}

b{
  font-weight:700;
}

.off{
  display: none !important;
}

.disable{
  filter: grayscale(100%);
  cursor: not-allowed !important;
  opacity: 0.35 !important;
}


.show{
  opacity: 1;
  transition:  opacity 1.25s ease-out;
}

.hide{
  opacity: 0
}

.paintMode{ cursor:  url('../img/cursors/cursor2.png') 64 64, default; }
.paintMode.size1{ cursor:  url('../img/cursors/cursor1.png') 64 64, default; }
.paintMode.size2{ cursor:  url('../img/cursors/cursor2.png') 64 64, default; }
.paintMode.size3{ cursor:  url('../img/cursors/cursor3.png') 64 64, default; }
.paintMode.size4{ cursor:  url('../img/cursors/cursor4.png') 64 64, default; }



.draw {
  position:absolute; 
  z-index:10000; 
  pointer-events:none;
  width:100%;
  height:100%;
}

[contentEditable=true]{
  outline: 0px solid transparent;
  word-break: break-all;
}



/*-------------------PLAYER AND WRAPPERS --------------------------------*/

#main_content, #background_wrapper, #rendering_zone, #player {
  height: 100%;
  width: 100%;
  position: relative;
  background: transparent;
  padding: 0;
  margin: 0;
}
#background_wrapper, #rendering_zone, #player{overflow: hidden;}
#background_wrapper {
  position: absolute;
  background: var(--gradient);
  background-color: var(--main-color);
}
.player #background_wrapper {
	background:none; 
}

#background_wrapper.none{
  background:none;
}

#editor #background_wrapper.none{
  background-image: url('../img/transparent.png');
  background-repeat: repeat;
  background-size: 10px;
}


#player:after{
  animation: grain 8s steps(10) infinite;
  background-image: url('../img/grain.jpg');
  content: '';
  height: 300%;
  left: -50%;
  opacity: 0.047;
  position: fixed;
  top: -110%;
  width: 300%;
  pointer-events: none;
}

#screen_2{overflow: hidden}

@keyframes grain {
  0%, 100% { transform:translate(0, 0) }
  10% { transform:translate(-5%, -10%) }
  20% { transform:translate(-15%, 5%) }
  30% { transform:translate(7%, -25%) }
  40% { transform:translate(-5%, 25%) }
  50% { transform:translate(-15%, 10%) }
  60% { transform:translate(15%, 0%) }
  70% { transform:translate(0%, 15%) }
  80% { transform:translate(3%, 35%) }
  90% { transform:translate(-10%, 10%) }
}

#footer_waves{
  position: fixed;
  width: 100%;
  bottom: 0;
  opacity: 0.6;
  text-align: center;
}

#copyright{
  position: fixed;
  bottom: 35px;
  z-index: 3;
  left: 50%;
  color: white;
  transform: translateX(-50%);
  font-size: calc(8px + 1vmin);
  line-height: calc(12px + 1.5vmin);
}

#copyright span{
  white-space: nowrap;
}

#copyright a{
  color: white;
  text-decoration: none;
  border-bottom: 1px dotted;
}

#header { 
  position: fixed;
  top: 0;
  left: 0;
  font-weight: 600;
  color: white;
  padding: 0.5em;
  width: 100%;
  background: var(--transparent-black);
  box-shadow: var(--shadow);
  text-align: center;
 }

 #header a{
  color: white;
  text-decoration: none;
  transition: all 0.5s;
  opacity: 0.8;
  display: inline-block;
 }

#header a:hover{
  cursor: pointer;
  transform: translateY(-2px);
  opacity: 1;
}


 #header img{ 
  vertical-align: text-bottom; 
  margin: 0 0.33em; 
}

#admin #header a:nth-child(1){
  display: none;
}
#editor #header a:nth-child(2){
  display: none;
}

#header a:nth-child(3),#header a:nth-child(4){
  margin: auto;
  width: 20%;
}

 #header a:nth-child(5) {
  float:right;
  margin-right:2rem;
 }

 #header a:nth-child(1), #header a:nth-child(2) {
  float:left;
  margin-left:0.5rem;

 }

 #admin .wrapper{
display: block;
margin: auto;
width: 95%;
max-width: 1480px;
height: 80vh;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: var(--transparent-black);
border-radius: 4px;
z-index: 2;
color: white;
line-height: 1.33;
overflow: auto;
 }

 #admin #main {
   margin: 0;
   padding: 0;
   display: -webkit-flex;
   display: flex;
   -webkit-flex-flow: row;
   flex-flow: row;
}

#admin header,
#admin footer,
#admin article,
#admin nav,
#admin aside {
   margin: 4px;
   padding: 1em;
}
 
#admin article {
   background: rgba(0,0,0,0.4);
   -webkit-flex: 4 1 0;
           flex: 4 1 0;
   -webkit-order: 2;
           order: 2;
           margin-right:2em;
           border-radius:4px ;
}

#admin nav,
#admin aside {
   -webkit-flex: 1 6 0;
           flex: 1 6 0;
}
#admin nav {
   -webkit-order: 1;
           order: 1;
}

#admin aside {
   -webkit-order: 3;
           order: 3;
}
 
#admin header, #admin footer {
   display: block;
}

#admin header {
   font-family: 'Open Sans', Helvetica, sans-serif;
}

#admin header section{
  display: block;
  width: 50%;
  margin: auto;
}


#admin h1, #admin h2{
font-family: 'Open Sans', Helvetica, sans-serif;
font-size: calc(12px + 1vmin);
font-weight: 600;
grid-column: 1/-1;
line-height: calc(24px + 1vmin);
margin-bottom: 0.25em;
text-align: center;
}

#admin h1 { margin-top: 2em; }


#admin p {
text-align: center;
}

#production_links p{
  text-align: left;
}

#admin article iframe {
  width: 92%;
  margin: auto;
  height: 40vmin;
  background: black;
  margin: 1em;
  border: 1px solid var(--main-color);
}


#production_links a, #production_links a:visited  {
  color: var(--ui-color);
  text-decoration: none;
}

#production_links a:hover {
  text-decoration: underline;
}

 #zone {
  background: rgba(0,0,0,0.4);
   margin: 3vh auto 0 auto;
   width: 80%;
   height: 50%;
   border: 3px dashed var(--ui-color);
   text-align: center;
   color: var(--ui-color);
   z-index: 20;
   transition: all 0.3s ease-out;
   position: relative;
   padding:  1em;
   border-radius: 2em;
}

#zone.modify{
  background: none;
  border: none;
}

#zone.modify a{
  text-decoration: none;
  color: var(--transparent-white);
}

#zone.modify a:hover{
  color: var(--main-color);
}

#info {
pointer-events: all;
}

#zone.drag {
  background: var(--light-background);
  border-style: solid;
}


#zone.drag #info{
    filter: blur(2px);
    pointer-events: none;
}

 #zone .btnCompression .active {
   background: #EB6A5A;
   color: white;
}

 #zone .selectFile {
   height: calc(12px + 4vmin);
   margin: 1em auto;
   position: relative;
   width: 50vmin;
   border-radius: 2em;
   border:  2px solid transparent;
}

#zone .selectFile:hover, #upload_info input:hover {
  border-color: var(--main-color);
 }

 #zone label, #zone input {
   cursor: pointer;
   display: block;
   height: calc(12px + 4vmin);
   left: 0;
   position: absolute;
   top: 0;
   width: 100%;
   border-radius: 2em;
}
 #zone label {
   background: #fff;
   color: var(--main-color);
   display: inline-block;
   font-size: 1em;
   line-height: calc(12px + 4vmin);
   padding: 0;
   text-align: center;
   white-space: nowrap;
   text-transform: uppercase;
   font-weight: 400;
   box-shadow: var(--shadow);
}
 #zone input[type=file] {
   opacity: 0;
}

#upload_info {
  position: relative;
  margin: auto;
  display: block;
  width: 95vmin;
}
#upload_info input{
  width: 50vmin;
  height: calc(12px + 4vmin);
  padding: 0 2em;
  box-sizing: border-box;
  margin-top: 1em;
  color: var(--ui-color);
  border-bottom: 2px solid;
  outline: none;
  margin-left: auto;
  margin-right: auto;
  display: block;
  text-align: center;
  font-size: 1.2em;
  background: transparent;
  background-repeat: no-repeat;
  background-size: auto 0.9em;
  background-position: left center;
}

input#model_name {
background-image: url(../img/nameInput.svg);
}

input#model_group {
background-image: url(../img/groupInput.svg);
}

input#model_subgroup {
background-image: url(../img/subgroupInput.svg);
}

input#model_keywords {
background-image: url(../img/keywordsInput.svg);
}

#upload_info button{
  display: block;
  height: calc(12px + 4vmin);
  padding: 0 2em;
  float: none;
  margin: 2em auto;
  text-transform: uppercase;
}

#upload_info input::placeholder {
  color: var(--transparent-white);
  opacity: 1;
}



.execute_btn {
  display: inline-block;
  background:var(--main-color);
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  padding: 0.15em 0.5em;
  text-align: left;
  transition: all 0.3s;
  white-space: nowrap;
  font-size:calc(9px + 0.8vmin); 
  text-decoration: none;
  float: right;
  letter-spacing: 1px;
  margin-right: 5%;
  border:  1px solid transparent;

}

.execute_btn:hover {
box-shadow: 0px 3px 4px rgba(33,33,33,0.5);
border: 1px solid rgba(255,255,255,0.5);
  padding: 0.15em 0.6em;

}

.highlight {
  text-align: center;
  display: block;
}

.highlight .execute_btn{
  text-transform:uppercase ;
  float: none;
  padding: 0.5em 1em;
  margin-top: 2.5em;
}

#admin header a{
  text-decoration: none;
  color: var(--ui-color);
  transition: color 0.5s;
}

#admin header a:hover{
  color: var(--main-color);
}

#admin header img {
  display: block;
  border: 1px solid var(--transparent-white);
  margin: 2em auto -2em auto;
}

#admin p{
letter-spacing: 1px;
font-size: calc(9px + 0.8vmin);
margin-left: 1rem;
}

#admin nav ul{
display: flex;
flex-wrap: wrap;
flex-direction: row;
min-width: 20vw;
}
 #admin nav li{

margin: 0.33rem;

 }

#admin nav li a {
  display: inline-block;
  background:var(--main-color);
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  list-style-type: none;
  padding: 0.15rem 0.5rem 0 0.5rem;
  text-align: left;
  transition: all 0.3s;
  white-space: nowrap;
  min-width: 16vw;
  line-height: 1.5;
  font-size:calc(9px + 0.8vmin); 
  text-decoration: none;
  border:  1px solid transparent;
 }

 #admin nav li a.current {
transform: translatex(4px);
box-shadow: -3px 3px 4px rgba(0,0,0,0.5);
padding-right: 1.5em;
border:  1px solid var(--transparent-white);

}

 #admin nav li a.current:after {
  content: '';
    position: absolute;
    left:100%;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 0.5em solid transparent;
    border-bottom: 0.5em solid transparent;
    border-left: 0.5em solid white;
    clear: both;
    transform: translate(-200%, -50%);
  }



.keywords_wrapper{
  width: 51vmin;
  margin: auto;
  margin-bottom: auto;
  margin-bottom: 1em;
  text-align: center;
}

.keywords_wrapper > input {
    border: 0px;
    outline: none;
}

.keyword-item {
    margin: 0.5em;
    padding: 2px 24px 2px 8px;
    display: flex;
    background-color: var(--light-background);
    border-radius: 3px;
    position: relative;
    display: inline-block;
}

.keyword-item > .clear {
    position: absolute;
    right: 6px;
    top: -2px;
    display: inline-block;
    font-size: 12px;
    line-height: 12px;
    cursor: pointer;
    transition: all 0.5s;
    display: inline-block;
    color: var(--transparent-white);
}

.keyword-item > .clear:hover {
  color: white;
}


/* Too narrow to support two columns */
  @media all and (max-width: 980px) {
  
   #admin #main, #admin #page {
    -webkit-flex-flow: column;
            flex-flow: column;
}

#admin article {
  margin: 0 !important;
}

   #admin article, #admin nav, #admin aside {
    /* Return them to document order */
    -webkit-order: 0;
            order: 0;
   }

   #admin header, #admin footer, #admin article, #admin nav, #admin aside {
    margin: 0;
    padding: 0.3em;
  }
  
}

@media all and (min-width: 980px) {
#admin nav li.break {
  margin-top: 1rem;
  border-top:  1px dashed var(--main-color);
  padding-top: 1rem;
}
}


#password form {
display: inline-block;
padding: 2rem;
background: var(--transparent-black);
border-radius: 4px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 90vw;
height: max-content;
max-width: 480px;
text-align: center;
}


#password p {
font-size: 1rem;
letter-spacing: 2px;
color: var(--transparent-white);
padding: 0;
text-align: center;
}


#password input {
display: block;
width: 100%;
line-height: 1.5;
font-size: 1rem;
color: white;
background: var(--transparent-black);
border-radius: 1rem;
outline: none;
padding: 0.5rem 1rem;
box-sizing: border-box;
margin: 1rem auto;
text-align: left;
}

#password input:focus{
  border: 2px solid var(--main-color);
}
#password strong{
  padding: 0.25rem;
  color: var(--main-color);
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
}
#password input:active{
  border: 2px solid var(--transparent-white);
}
#password button{
  display: inline-block;
  background:var(--main-color);
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem 1rem;
  text-align: left;
  transition: all 0.3s;
  white-space: nowrap;
  font-size:1rem; 
  text-decoration: none;
  letter-spacing: 1px;
  margin: auto;
  border:  1px solid transparent;
}
#password button:hover {
box-shadow: 0px 3px 4px rgba(33,33,33,0.5);
border: 1px solid rgba(255,255,255,0.5);
padding: 0.5rem 1.1rem;
}
/*-------------------ATTRIBUTION CONTENT --------------------------------*/

#attribution{
font-size: calc(10px + 0.25vmin);
color: var(--ui-color);
text-align: right;
margin: 0.5rem;
box-sizing: border-box;
}

#attribution div{
font-family: 'Source Sans Pro', Helvetica, sans-serif; 
display: block !important;
}

#attribution div:first-line{
  font-size:1.5em;
}


#attribution div:first-child{
width: 32vmin;
border-bottom: 1px dotted;
padding-bottom: 0.5rem;
margin-left: 15vmin;
box-sizing: border-box;
}

#attribution span{
  display: block;
  width: 32vmin;
display: block;
box-sizing: border-box;
margin: 0.5rem 0 0.5rem 15vmin;
}

#attribution span:not(:empty){  
  padding-bottom: 0.6em;
}

#editor #attribution_edit[contenteditable=true]{
   color :var(--ui-color); 
   border: 1px dotted;
   padding: 0.5em;
  text-align: right;
  background: var(--transparent-black);
}

#editor #attribution_edit{
pointer-events: all;
}

#editor #attribution_edit[contenteditable=true]:empty:not(:focus):before{
  content: attr(data-placeholder);
  pointer-events: none;
  display: block; /* For Firefox */
  font-weight: 600;
letter-spacing: 1px;
}


/*------------------- EDITOR HOME MENU --------------------------------*/



#logo_title{
  color: var(--white);
  cursor: default;
  filter: drop-shadow(0 0 5px var(--shadow-background));
  font-family: 'Source Sans Pro', Helvetica, sans-serif;
  font-size: 10vmin;
  font-weight: 700;
  left: 50%;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-left: 0px;
  margin-top: 0px;
  margin: 0 0 1.5rem 0;
  position: absolute;
  text-transform: none;
  top: 0;
  transform: translate(-50%, -150%);
  white-space: nowrap;
}

#logo_title img{
  vertical-align:top;
  width:12vmin;
  margin-right: 1vmin;
}

#logo_title span{
  bottom: 0;
  font-size: 18%;
  letter-spacing: 0;
  position: absolute;
  right: 0;
}

#selection_menu{
  animation: moveTop ease-out 1s 0.5s forwards;
  height: auto;
  left: 50%;
  position: absolute;
  text-align: center;
  top: 45vmin;
  opacity: 0;
  z-index: 2;
  width: 70vmax;
  max-width: 95%;
  margin:auto;
  border-radius: 4px;
}

#selection_menu.open{
  top: 25vh;
}
#selection_menu.open #help{
  display: none;
}
@keyframes moveTop{
  0%{
    transform: translate(-50%, 10vmin);
    opacity: 0;
  }
  100%{
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

#navbar{
  background: var(--transparent-black);
  box-shadow: var(--shadow);
  display: inline;
  font-family: 'Open Sans';
  font-size: calc(5px + 1.25vmin);
  font-weight: 600;
  height: auto;
  justify-content: center;
  line-height: calc(24px + 3vmin);
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
  text-align: center;
  white-space: nowrap;
}

/*------------------- EDITOR NAVBAR --------------------------------*/


#navbar div{
box-sizing: border-box;
color: var(--ui-color);
display: inline-block;
max-width: 33vmin;
position: relative;
transition: all 0.5s;
vertical-align: middle;
width: 33%;
opacity: 0.45;
}

#navbar div.active{
color: var(--white);
opacity:1;
cursor: default;
}

#navbar div:not(.active):hover {
  cursor: pointer;
  transform: translateY(-0.2em);
  opacity:1;
}

#navbar div span{
    display: inline-block;
    vertical-align: middle;
}

#navbar div span:first-child{
  border-radius: 50%;
  display: inline-block;
    border: 0.13em solid ; 
    padding: 0 1px 1px 0;
    text-align: center;
    width: 1.2em;
    height: 1.2em;
    line-height: 1.13em;
    padding: 0;
    letter-spacing: 0.025em;
}

#navbar div.active span:first-child{
  background:var(--white);
  color: var(--transparent-black);
  border-color: var(--white);
}



#navbar div span:nth-child(2){
width: 23vmin;
margin: 0 3px;
}

#navbar div span:nth-child(3){
font-family: 'Open Sans';
font-size: calc(5px + 3vmin);
font-weight: 300; 
}



#select_wrapper{
  background: var(--transparent-black);
  border-radius: 0;
  color: var(--ui-color);
  cursor: pointer;
  box-shadow: var(--shadow);
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  border-radius: 2em;
  width: 70vmin;
  position: relative;
  margin: auto;
}
#select_wrapper select{
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: url('../img/cube.png') transparent no-repeat;
  background-position: 5vmin;
  background-size: 4vmin;
  border: 0;
  border-radius: 3px;
  color: var(--white);
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-size: 4vmin;
  font-weight: 300;
  margin: 0;
  padding: 2vmin 10vmin;
  pointer-events: none;
  text-indent: 0.01px;
  text-overflow: '';
  text-transform: uppercase;
  text-overflow: ellipsis;
}
#select_wrapper select option[disabled]:first-child{
  display: none;
}
#select_wrapper:after{
  content: '';
  position: absolute;
}
#select_wrapper:after{
  content: '\25BC';
  font-size: 3vmin;
  line-height: 0;
  margin-top: 4vmin;
  right: 4vmin;
}
#menu_display{
  background-color: var(--transparent-black);
  border-radius: 4px;
  padding: 1rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}


#menu_display li{
background: var(--gradient);
background-color:var(--main-color);
border-radius: 2px;
color: var(--transparent-white);
cursor: pointer;
font-size: calc(12px + 0.5vmin);
font-variant: all-petite-caps;
line-height: calc(14px + 0.5vmin);
list-style-type: none;
overflow: hidden;
padding: 0 0.5rem 0 0;
text-align: left;
transition: all 0.3s;
white-space: nowrap;
height: 64px;
margin-left: 0.5rem;
pointer-events: all;
line-height: 0.9em;
position: relative;
}


#menu_display ul{
  display: grid;
grid-gap: 0.5rem;
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
padding: 0.5rem 0;
width: 100%;
grid-column: 1/-1;
}

#menu_display li:hover:after{
  display: block;
  width: 100px;
  height:200px;
}

.preview{
      position:absolute;
      display:block;
      pointer-events:none;
      background-size:100%;
      box-shadow:2px 2px 5px rgba(0,0,0,0.5);
      background-color:var(--main-color);
      background-repeat: no-repeat;
      z-index: 3;
}


.model_item span{  
  transform: translateX(0);
  transition: transform 2.5s,width 0.5s, color 0.5s;
  transition-timing-function: cubic-bezier(0, 0, 0.33, 1.0);
  display: inline-block;
  pointer-events: none;
  width: calc(100% - 70px);
  text-overflow: ellipsis;
  overflow: hidden;
  margin-left: 0.5rem;
}

.model_item a{
display: none;
position: absolute;
bottom: 5px;
right: 5px;
background-image: url('../img/edit_icon.svg');
color: transparent;
width: 0.7em;
height: 0.7em;
background-color: transparent;
background-size: contain;
background-repeat: no-repeat;
background-position: 100% ;
cursor: pointer;
padding-right: 3.8em;
font-size: 0.7em;
vertical-align: middle;
line-height: 0.8em;
text-decoration: none;
transition: all 0.5s;
}

.model_item:hover a {
display: block;
}

.model_item a:hover {
color: var(--black);
height: 1em;
}

.model_item:hover span{
    transform: translateX(var(--scrollX));
    width: auto;
}

@keyframes defilement-rtl {
  0% {
    transform: translate3d(0,0,0);      /* position initiale à droite */
  }
  100% {
    transform: translate3d(-100%,0,0);  /* position finale à gauche */
  }
}

#menu_display li:hover{
  background: var(--white);
  color: black;
  letter-spacing: 1px;
  font-weight: 600;
}

#menu_display li span b{
color: var(--transparent-black);
font-size: 0.85em;
pointer-events: none;
font-weight: 400;
}

#menu_display li img{
  opacity: 1;
  transition: all 0.5s;
  background-color: rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
#menu_display li:hover img{
  opacity: 0.4;
  background-color: transparent;
}


#menu_display *{
  vertical-align: middle;
}
#menu_display h3{
  border-bottom: 1px dashed var(--main-color);
  background: url('../img/cube.png') transparent no-repeat;
  background-position-x: 0;
  background-position-y: 6px;
  background-size: calc(12px + 1vmin);
  color: var(--white);
  cursor: pointer;
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-size: calc(12px + 1vmin);
  font-weight: 600;
  grid-column: 1/-1;
  line-height: calc(24px + 1vmin);
  padding: 0 0 0 calc(32px + 1vmin);
  text-align: left;
  margin-bottom: 1rem;
  pointer-events: all;
  text-transform: capitalize;
}


.menu_group nav{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  color: var(--ui-color);
  font-size: 0.9em;
}


.menu_group article {
  padding: 0.7em;
  background: var(--light-background);
  margin-bottom: 1em;
}

.menu_group nav span{
  padding: 0.5em 1em;
  transition: color 0.5s;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}


.menu_group nav span.selected {
  color: white;
  border-bottom-color: white;
  text-transform: capitalize;
}

.menu_group nav span:hover:not(.selected) {
  color: var(--transparent-white);
  border-bottom: none;
}


.btn{
  background: none;
  border: 0.2rem solid white;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-size: 5vmin;
  font-weight: 600;
  letter-spacing: 3px;
  outline: none;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
#start_btn{
  border-radius: 2px;
  bottom: 0;
  cursor: pointer;
  left: 50%;
  position: absolute;
  transform: translate(-50%, 0);
}
.btn:hover{
  background: var(--white);
  color: var(--main-color);
  font-size: 1.25rem;
  font-size: 5.25vmin;
  outline: none;
  transition: 0.8s;
}
.btn:active{
  border: 0.3rem solid white;
  outline: none;
}
#help{
color:var(--transparent-black);
display: inline-block;
font-family: inherit;
font-size: calc(14px + 1vmin);
font-weight: 400;
line-height: calc(20px + 1.2vmin);
margin-top:5vmin;
text-decoration: none;
transition: all 0.5s;
}
#help:before{
content: '✐'; 
margin-left: -1em;
}
#help:hover{
border-bottom:1px dotted white;
color: var(--white);
transform: translateY(-0.25rem);
}

#share_links{
  background-color: var(--transparent-black);
  border-radius: 0.5rem;
  left: 50%;
  margin-top: 60px;
  max-width: 650px;
  padding: 2em 2em 2em 3em;
  position: absolute;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 76vmin;
  z-index: 1000;
  font-size: calc(10px + 0.33vmin);
}

#share_links hr {
border: 1px dashed var(--ui-color);
margin: 2em 0;
width: 98%;
}



.share_link{
  background-color: var(--transparent-white);
  color: var(--transparent-black);
}
.share_link.main{
  background-color: var(--ui-color);
  margin-bottom: 1em;
}

#link_bar form{ 
  background-color: var(--transparent-black);
  color: var(--ui-color);
  padding: 0.25rem 0 0.25rem 0.25rem;
  box-shadow: var(--shadow);
  border-radius: 5px;
  }
#link_bar form:hover{ 
  box-shadow: 0px 0px 1px var(--ui-color);
}

form.share_link{
  border: 0;
  border-radius: 5px;
  display: grid;
  width: 100%;
}



#link_display{
  text-align: center;
}

#link_display #warning{
      color: var(--yellow-light);
      padding: 0.5rem;
      font-weight:bold;
      letter-spacing: 1px;
}

#share_links strong{
color: white;
font-size: 1.5em;
display: block;
margin: 0 0 1em 0;
line-height: 2em;
border-bottom: 1px dotted;
letter-spacing: 2px;
}

#share_links img{
  width: 1.25em;
  vertical-align: text-bottom;
  margin-right: 0.5em;
}

#share_links small{
  color: white;
  font-size: 1em;
  display: inline-block;
  margin: 0.5em 0 0.2em 0;
}



.share_link input[type=text], .share_link input[type=url]{
  background-color: transparent;
  border: 0;
  color: inherit;
  font-size: .9em;
  grid-column: 1/100;
  grid-row: 1;
  overflow: hidden;
  padding: 0.4em;
  text-overflow: ellipsis;
  outline: none;
}
.share_link input:focus{
  border: 0;
}
.share_link input[type=button]{
  background-color: var(--transparent-black);
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--white);
  cursor: pointer;
  float: right;
  grid-column: 100;
  margin: 0.2em;
  padding: 0.2em;
  text-transform: uppercase;
  width: 3.8em;
  outline: none;
}
.share_link input[type=button]:hover{
  border: 1px solid var(--white);
}
.share_link input[type=button]:active{
  background: var(--transparent-white) !important;
}

#link_bar{
bottom: 2vmin;
display: block;
left: 50%;
position: absolute;
transform:translate(-50%);
width: 95vmin;
}

.checkbox_wrapper {
  display: block;
  position: relative;
  padding-left: 2.25em;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: var(--white);
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-size: 1.25em;
  font-variant: small-caps;
  font-weight: 600;
  margin: 0;
  letter-spacing: 1px;
  line-height: 1.5em;
  transition: all 0.5s;
}

/* Hide the browser's default checkbox */
.checkbox_wrapper input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox_wrapper input:checked ~ #context_data {
  display: block;
width: auto;
height: 1em;
background: var(--transparent-white);
opacity: 1;
cursor: text;
border-radius: 5px;
padding: 0.6em;
position: relative;
width: 100%;
margin-top: 0.85em;
margin-left: -2.7em;
font-size: .8em;
font-variant: initial;
}


/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 1.5em;
  width: 1.5em;
  background-color: var(--transparent-white);
  border-radius: 3px;
}

/* On mouse-over, add background-color */
.checkbox_wrapper:hover input ~ .checkmark {
  background-color: var(--ui-color);
}

/* When the checkbox is checked, add a blue background */
.checkbox_wrapper input:checked ~ .checkmark {
  background-color: var(--main-color);
}

.checkbox_wrapper input:checked + label {
   font-weight: bold;
  color: var(--ui-color);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox_wrapper input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox_wrapper .checkmark:after {
  left: 0.5em;
  top: 0.15em;
  width: 0.35em;
  height: 0.8em;
  border: solid white;
  border-width: 0 0.2em 0.2em 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

#carousel{
background: var(--transparent-black);
bottom: 0;
box-sizing: border-box;
display: block;
height: calc(36px + 3vmin);
left: 0;
line-height: calc(36px + 3vmin);
position: absolute;
text-align: center;
width: 100%;
z-index: 3;
font-size: calc(12px + 1vmin);
}
#carousel_list{
  background: var(--transparent-black);
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-weight: 600;
  left: 50%;
  list-style-type: decimal;
  margin: 0;
  padding: 0;
  padding: 7px 1em;
  position: absolute;
  text-align: left;
  transform: translate(-50%, -100%);
  border-radius: 0.25em 0.25em 0 0;
  box-sizing: border-box;
  max-width: 70vmin;
  list-style-position:inside
}
#carousel_list li{
  cursor: pointer;
  font-size: 0.75em;
  font-variant: all-small-caps;
  line-height: 1.4em;
  white-space: nowrap;
  transition: color 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
}

#carousel_list li[data-color = 'pink'] { color: var(--pink-light) }
#carousel_list li[data-color = 'green'] { color: var(--green-light)  }
#carousel_list li[data-color = 'blue'] { color: var(--blue-light) }
#carousel_list li[data-color = 'red'] { color: var(--red-light) }
#carousel_list li[data-color = 'yellow'] { color: var(--yellow-light) }
#carousel_list li[data-color = 'black'] { color: var(--black-light) }

#carousel li:hover{
  color: var(--white) !important;
}
#carousel_title{
  border-bottom: 1px dotted var(--white);
  border-top: 1px dotted var(--white);
  color: var(--white);
  cursor: pointer;
  display: inline;
  filter: drop-shadow(1px 1px 2px var(--transparent-black));
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-weight: 300;
  padding: 0.25em 1em;
  transition: all 0.3s ease;
  vertical-align: middle;
  position: relative;
}

#carousel_title:after{
  content: '';
  position: absolute;
  display : inline-block;
  top: -40%;
  left:  calc(50% - 0.5em);
 height : 0;
 width : 0;
 border-right : 0.5em solid transparent;
 border-bottom : 0.5em solid currentColor;
 border-left : 0.5em solid transparent;
  transition: all 0.3s ease;

}

#carousel_title:hover{
  color: var(--ui-color);
}

#carousel_title:hover:after{
  top: -45%;
}


#previous, #next{
  background: transparent;
  box-sizing: border-box;
  color: var(--white);
  cursor: pointer;
  display: inline-block;
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-size: var(--icon-size);
  font-weight: 600;
  height: 1em;
  line-height: 1em;
  padding: 0;
  vertical-align: middle;
  width: 1em;
  transition:  all 0.3s; 
  text-align: center;
}

#previous:hover, #next:hover{
  transform:scale(1.05);
  color: var(--ui-color);
}


/*-----------------PLAYER BUTONS--------------*/

#context_controls{
border: none;
bottom: 38px;
display: block;
height: max-content;
left: 50%;
line-height: 2rem;
text-align: center;
vertical-align: middle;
width: 65vmin;
transform: translate(-50%, -100%);
position: absolute;
z-index: 3;
pointer-events: none;
}

#context_controls button{
    background: var(--transparent-black);
    border-radius: 2px;
    border: 2px solid var(--transparent-white);;
    color: var(--transparent-white);
    cursor: pointer;
    filter: drop-shadow(1px 1px 4px var(--transparent-black));
    font-family: 'Open Sans';
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 2rem;
    padding: 0 1rem;
    text-transform: uppercase;
    transform: scale(1.0);
    transition: all 0.15s ease-in;
    pointer-events: all;
    margin: 0.8rem;
    filter: drop-shadow(0 0 1rem var(--main-color));
    border-radius: 0.8rem;
}

#context_controls button:hover{
  transform: scale(1.05);
  filter: blur(0);
  letter-spacing: 1.2px;
}

#title_controls {
top: calc(24px + 5vmin);
width: 50%;
height: max-content;
right: 0;
text-align: right;
padding-right: 2rem;
position: absolute;
}

#title_controls div:first-child {
  width: 50vmin;
  float: left
}

#title_controls span {
  color: white;
  font-size: calc(5px + 1.25vmin);
  line-height: 1;
  font-weight: 600;
  font-family: 'Open Sans';
  opacity: 0.85;
  filter: drop-shadow(0px 0px 3px var(--transparent-black));
}

#title_edit[contenteditable=true]:empty:not(:focus):before{
  content: attr(data-placeholder);
}

#title_edit[contenteditable=true]:empty:not(:focus):before{
  content: attr(data-placeholder);
}

#tool_controls , #player_controls {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  bottom:calc(38px + 4vmin);
  width: 50%;
  height: max-content;
  pointer-events: none;
}

#tool_controls{
right: 0;
}

#player_controls{
left: 0;
}

#tool_controls > div:first-child, #player_controls > div:first-child{ 
flex-flow: wrap-reverse;
width: 50vmin;
display: flex;
}

#tool_controls >div:first-child{
flex-direction: row-reverse;
}

#player_controls > div:first-child{
flex-direction: row;
float:right;
}

button.JS{
background-color: var(--main-color);
background-image: url(../img/icons.png);
background-repeat: no-repeat;
background-size: calc(calc(var(--n_icons) + 1) * 100%);
border-radius: 50%;
border: none;
box-shadow: var(--shadow),inset var(--shadow);
cursor: pointer;
height: 1em;
margin: 0.15em;
padding: 0;
transform: scale(1);
transition: transform 0.3s ease;
width: 1em;
font-size: var(--icon_size);
max-width: 3rem;
max-height: 3rem;
opacity: 0.9;
box-shadow: 0 0 1px 0px #000 inset, 0 0 1px 0px var(--main-color);
pointer-events: all;
}

#editor_controls button{
  position: absolute;
  transform: translate(-50%, -50%) scale(1);
  margin: 0;
}

#tool_controls button:hover:not(.disable), #player_controls button:hover:not(.disable){
  transform:scale(1.05) rotate(10deg);
  filter: drop-shadow(0 0 1px var(--ui-color));
}

#editor_controls button:hover:not(.disable){
    transform: translate(-50%, -50%) scale(1.05) rotate(10deg);
    filter: drop-shadow(0 0 1px var(--ui-color));
}

button#center {
  background-position-x: 0 ;
}
button#btn_rotate[value='0']{
  background-position-x: calc(100%/var(--n_icons));
}
button#btn_rotate[value='1']{
  background-position-x: calc(100%/var(--n_icons)*2);
}
button#btn_texture[value='0']{
  background-position-x: calc(100%/var(--n_icons)*3);
}
button#btn_texture[value='1']{
  background-position-x: calc(100%/var(--n_icons)*4) ;
}
button#btn_play[value='0']{
  background-position-x: calc(100%/var(--n_icons)*5);
}
button#btn_play[value='1']{
  background-position-x: calc(100%/var(--n_icons)*6);
}
button#btn_annotations[value='0']{
  background-position-x: calc(100%/var(--n_icons)*7);
}
button#btn_annotations[value='1']{
  background-position-x: calc(100%/var(--n_icons)*8);
}
button#btn_annotations[value='2']{
  background-position-x: calc(100%/var(--n_icons)*9);
}
button#btn_mask[value='1']{
  background-position: calc(100%/var(--n_icons)*10);
}
button#btn_mask[value='0']{
  background-position-x: calc(100%/var(--n_icons)*11);
}
button#btn_attribution{
  background-position-x:calc(100%/var(--n_icons)*13);
}
button#btn_screenshot{
  background-position-x:calc(100%/var(--n_icons)*14);
}
button#btn_stl{
  background-position-x:calc(100%/var(--n_icons)*15);
}
button#btn_background[value='0']{
  background-position-x:calc(100%/var(--n_icons)*16);
}
button#btn_background[value='1']{
  background-position-x:calc(100%/var(--n_icons)*17);
}
button#btn_lighting[value='0']{
  background-position-x:calc(100%/var(--n_icons)*19);
}
button#btn_lighting[value='1']{
  background-position-x:calc(100%/var(--n_icons)*18);
}
button#btn_paint[value='0']{
  background-position-x:calc(100%/var(--n_icons)*20);
}
button#btn_paint[value='1']{
  background-position-x:calc(100%/var(--n_icons)*21);
}
button#btn_ar{
  background-position-x:calc(100%/var(--n_icons)*22);
}
button#btn_pdf{
  background-position-x:calc(100%/var(--n_icons)*23);
}

#context_controls input{
    border-radius: 50%;
    width: calc(var(--icon_size) * 0.8);
    height: calc(var(--icon_size) * 0.8);
    margin: 0.1rem;
    display: inline-block;
    border: 2px solid #fff;
    transition: transform 0.3s ease;
    color: transparent;
    filter: drop-shadow(0 0 1rem var(--main-color));
    cursor: pointer;
    pointer-events: all;
    background-color: var(--main-color);
    background-size:calc(calc(var(--n_icons) + 1) * 100%);
    background-image: url('../img/icons.png');
}

#context_controls input:hover{  
  transform:scale(1.05) rotate(10deg);
  filter: drop-shadow(0 0 1px var(--ui-color));
}

#context_controls input.backgroundColor{
  background-position-x: calc(100%/var(--n_icons)*26) ;
  margin-left: calc(var(--icon_size)/9);
  margin-right: calc(var(--icon_size)/9);

}

#context_controls input.backgroundDisplay{
  display: block;
  margin: auto;
  margin-top: 0.5rem;
}

#context_controls input.texture{
  background-size: calc(19 * 100%);
  background-image: url('../img/textures.jpg');
}


input.backgroundDisplay[value='0'] { background-position-x: calc(100%/var(--n_icons)*27) }
input.backgroundDisplay[value='1'] { background-position-x: calc(100%/var(--n_icons)*28) }


#context_controls input.backgroundColor[value='0'] { background-color: var(--pink) }
#context_controls input.backgroundColor[value='1'] { background-color: var(--blue) }
#context_controls input.backgroundColor[value='2'] { background-color: var(--green) }
#context_controls input.backgroundColor[value='3'] { background-color: var(--red) }
#context_controls input.backgroundColor[value='4'] { background-color: var(--yellow) }
#context_controls input.backgroundColor[value='5'] { background-color: var(--black-light) }


input.texture[value='0']{background-position-x: 0 ;}
input.texture[value='1']{background-position-x: calc(100%/17) }
input.texture[value='2']{background-position-x: calc(100%/17*2) }
input.texture[value='3']{background-position-x: calc(100%/17*3) }
input.texture[value='4']{background-position-x: calc(100%/17*4) }
input.texture[value='5']{background-position-x: calc(100%/17*5) }
input.texture[value='6']{background-position-x: calc(100%/17*6) }
input.texture[value='7']{background-position-x: calc(100%/17*7) }
input.texture[value='8']{background-position-x: calc(100%/17*8) }
input.texture[value='9']{background-position-x: calc(100%/17*9) }
input.texture[value='10']{background-position-x: calc(100%/17*10) }
input.texture[value='11']{background-position-x: calc(100%/17*11) }
input.texture[value='12']{background-position-x: calc(100%/17*12) }
input.texture[value='13']{background-position-x: calc(100%/17*13) }
input.texture[value='14']{background-position-x: calc(100%/17*14) }
input.texture[value='15']{background-position-x: calc(100%/17*15) }
input.texture[value='16']{background-position-x: calc(100%/17*16) }

#context_controls input.arrow.up{ 
  background-position-x: calc(100%/var(--n_icons)*30);
  display:block;
  margin: auto; 
}
#context_controls input.arrow.down{  background-position-x: calc(100%/var(--n_icons)*32);
  display:block;
  margin: auto;  
} 
#context_controls input.arrow.right{ background-position-x: calc(100%/var(--n_icons)*31);margin-left: calc(var(--icon_size) / 2); }
#context_controls input.arrow.left{ background-position-x: calc(100%/var(--n_icons)*33);margin-right: calc(var(--icon_size) / 2); }

#context_controls input#btn_pause{ background-position-x: calc(100%/var(--n_icons)*29);margin-bottom: var(--icon_size); }
#context_controls input#btn_pause.activated{ background-position-x: calc(100%/var(--n_icons)*5); }

#context_controls input#btn_delete{ background-position-x: calc(100%/var(--n_icons)*34);margin-bottom: calc(var(--icon_size)/2); }
#context_controls input.btn_brush{   
  background-size: calc(4 * 100%);
  background-image: url('../img/cursors/brushes.png'); 
  margin-left: calc(var(--icon_size)/4);
}

#context_controls input.btn_brush.color{background: none;}  


#context_controls input.btn_brush.size1{ background-position-x: 0; }
#context_controls input.btn_brush.size2{ background-position-x: calc( 100% / 3) }
#context_controls input.btn_brush.size3{ background-position-x: calc( 100% / 3*2) }
#context_controls input.btn_brush.size4{ background-position-x: calc( 100% / 3*3) }


/*------------------------- Annotations -------------------------------------*/

.annotation { 
  position: absolute;
  width:0;
  height: 0;
  filter: drop-shadow(0.2em 0.2em 0.22em var(--transparent-black));
  opacity: 1;
  top: 0;
  left: 0;
  z-index: 1;
  transition: opacity 0.2s linear;
}


.undisplayed {
  display: none !important;
}


.annotation.displace{
  opacity: 0.7 !important;
  pointer-events: none !important;
}

.annotation.displace:after{
 content: 'click somewhere to displace';
font-size: 80%;
color: black;
width: 7em;
display: block;
position: absolute;
top: -3em;
background: white;
padding: 3px;
left: 1em;
}

.annotation.hidden{
  opacity: 0 !important;
  pointer-events: none !important;
}

.annotation.only_number {
  z-index: 0;
}

.annotation.only_number .content{
  opacity: 0 !important;
  pointer-events: none !important;
}


.annotation[data-color = 'pink'] { color: var(--pink-light); background: var(--pink-light) }
.annotation[data-color = 'green'] { color: var(--green-light); background: var(--green-light) }
.annotation[data-color = 'blue'] { color: var(--blue-light); background: var(--blue-light) }
.annotation[data-color = 'red'] { color: var(--red-light); background: var(--red-light) }
.annotation[data-color = 'yellow'] { color: var(--yellow-light); background: var(--yellow-light) }
.annotation[data-color = 'black'] { color: var(--black-light); background: var(--black-light) }


.annotation .content{
  position: relative;
  width: max-content;
  height: max-content;
  background: var(--transparent-black);
  border-radius: .33rem;
  display: block;
  font-family: 'Open Sans', Helvetica, sans-serif;
  line-height: 1;
  margin-right: calc(1rem + 0.5vmin);
  max-width: 30vmin;
  opacity: 1;
  padding: 0 calc(6px + 1vmin);
  position: absolute;
  transition: opacity 0.35s;
  white-space: nowrap;
  box-shadow: 0 0 1px 0px #000 inset, 0 0 1px 0px currentColor;
}

.annotation .title[contenteditable=true]:empty:not(:focus):before{
content: attr(data-content);
}

.annotation .title[contenteditable="true"]:hover:empty:not(:focus):before {
    cursor: text;
    letter-spacing: 1px;
}

.annotation .text[contenteditable=true]:empty:not(:focus):before{
content: attr(data-content);
margin: 0.25rem -0.25rem;
padding: 0 0.33rem;
position: relative;
display: flex;
border: 1px dotted;
border-radius: 2px;
width: min(14rem,29vmin);
height: 2rem;
justify-content: center;
align-items: center;
line-height: 1.33;
margin: auto;
flex-direction: column;
align-content: center;
padding: 0.5em;
font-size: 0.8em;
}

.annotation .text.drag[contenteditable="true"]:empty:not(:focus):before {
    color: var(--ui-color);
   border-style: solid;
   background: var(--light-background);
   padding: 0.5em;
}

.annotation .text[contenteditable="true"]:hover:empty:not(:focus):before {
    color: var(--ui-color);
    cursor: text;
}

.annotation .text img {
  width: 100%;

}
.annotation .title{
  color: inherit;
  box-sizing: border-box;
  display: inline-block;
  font-family: inherit;
  font-variant: small-caps;
  font-weight: 600;
  min-width: 5rem;
  vertical-align: middle;
  white-space: normal;
  width: 100%;
  line-height: 1;
  font-size:calc(7px + 1.1vmin);
  word-break: keep-all;
  margin-bottom: 0.2em;
}


.annotation .text{
  color: lightgrey;
  display: block;
  font-family: 'Source Sans Pro';
  font-size: calc(7px + 0.9vmin);
  font-weight: 400;
  line-height: 1;
  padding: 0.15em 0.25em 0.2em 0;
  white-space: pre-wrap;
  margin-top: -0.2em;
}
.annotation a{
  border-bottom: 1px dotted;
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
}


.annotation .number{
  background: inherit;
  border-radius: 50%;
  color: var(--transparent-black);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 600;
  height: 1rem;
  left: 0;
  line-height: 1rem;
  padding: 0;
  position: absolute;
  text-align: center;
  top: 0;
  transform: translate(-50%, -50%);
  width: 1rem;
}
.annotation .number:before{ content: attr(data-content); }


#closeShare{
  background: transparent;
border: none;
color: var(--transparent-white);
cursor: pointer;
display: block;
font-size: 1.5em;
font-weight: bold;
padding: 0.25em 0.5em;
position: absolute;
right: 0px;
top: 0px;
transition: all 0.5s;
}

#closeShare:hover{
  color: var(--white);
  font-size: 1.6em;
}

.annotation .content button{
position: absolute;
display: block;
color: inherit;
background: currentColor;
display: block;
width: 1.5em;
height: 1.5em;
border-radius: 100%;
background-image: url(../img/icons.png);
background-repeat: no-repeat;
background-size: calc(calc(var(--n_icons) + 1) * 100%);
filter: contrast(1.25);
box-shadow: 0 0 1px 0px #000 inset, 0 0 1px 0px currentColor;
cursor: pointer;
}
.annotation button.delete {
  top: -1.85em;
  right: -1em;
  background-position: calc(100%/var(--n_icons)*24) 0;
}

.annotation button.color {
  bottom: -1.85em;
  right: -1em;
  background-position: calc(100%/var(--n_icons)*26) 0;
}

.annotation button.move {
  top: calc(50% - 0.75em);
  right: -1.85em;
  background-position: calc(100%/var(--n_icons)*25) 0;
}

.annotation button:hover, share_links_close:hover{
  scale:1.1;
}

#loader{
  animation: loading 1.3s infinite linear;
  -webkit-animation: loading 1.3s infinite linear;
  border-radius: 50%;
  color: var(--transparent-black);
  font-size: 20px;
  font-size: 3vmin;
  height: 2vmin;
  left: 50%;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transform: translateZ(0);
  width: 2vmin;
}
#editor #loader,#admin #loader{
color:var(--white); 
}

#loader span{
  display: block;
  font-size: 2vmin;
  text-align: center;
}

#loader_text{
  transform: translate(-43%, -12%);
  width: 16vmin;
  margin-bottom: 6em;
}

.loader_warning{opacity: 0;}
#editor .loader_warning{opacity: 1;}

.loader_warning{
  font-style: italic;
  background:var(--transparent-black);
  transform: translateX(-50%);
  width: 70vmin;
  padding:0.25rem 0;
}

@-webkit-keyframes loading{
  0%,
   100%{
    box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
  }
  12.5%{
    box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }
  25%{
    box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }
  37.5%{
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }
  50%{
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }
  62.5%{
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
  }
  75%{
    box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
  }
  87.5%{
    box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
  }
}
@keyframes loading{
  0%,
   100%{
    box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0;
  }
  12.5%{
    box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }
  25%{
    box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em;
  }
  37.5%{
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }
  50%{
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em;
  }
  62.5%{
    box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em;
  }
  75%{
    box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;
  }
  87.5%{
    box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em;
  }
}