/* 
 * CHECKBOX (Share Icon) 
 */
input[type="checkbox"].share { display: none; }

input[type="checkbox"].share + label {
  position: absolute;
  display: block;
  margin:10pt;
  width:24pt; height:24pt;
}

input[type="checkbox"].share + label:before, 
input[type="checkbox"].share + label:after {
  content:'';
  position:absolute;  
  top:0; right:0;
  width:100%; height:100%;
  transition: opacity 0.33s ease-in 0s;
  background-size: cover;
  background-position: center;
}

input[type="checkbox"].share + label:before {
  background-image: url(share-icon.svg); 
  opacity: 1;
}

input[type="checkbox"].share + label:after {
  background-image: url(times-solid.svg); 
  opacity: 0;
}

input[type="checkbox"].share:checked + label:before {
  opacity: 0;
}

input[type="checkbox"].share:checked + label:after {
  opacity: 1;
}


/*
 * EXPAND MENU 
 */
.expand-menu {
  box-sizing: border-box;
  position:fixed;
  bottom:0; right:0;
  width:auto; height:auto;
  overflow:hidden;
  max-height:100vh;
  max-width:100vw;
  min-height:40pt;
  min-width:40pt;
  padding:10pt;
  font: 14pt 'Open Sans', Arial, sans-serif;
  color:white;
}

.expand-menu form textarea + label{
  font-size:0.75em;
}

input[type="checkbox"].expand ~ form {
  box-sizing: border-box;
  width:auto; 
  height:auto;
  max-height:calc(100vh - 20pt);
  max-width:calc(100vw - 20pt);
  min-height:42pt;
  min-width:42pt;
  padding:10pt; margin:0;
  overflow-y:auto;
  overflow-x:hidden;
  background:rgba(0,0,0,0.8);
  border-radius:10pt;
  box-shadow:0pt 2pt 5pt rgba(0,0,0,0.66);
  color:white;
  font-size:0em;
  transition:font-size 0.33s ease-in-out 0.33s,
               padding 0.33s ease-in-out 0.33s;
}

input[type="checkbox"].expand:checked ~ form {
  font-size:1em;
  padding:10pt;
  transition:font-size 0.33s ease-in-out 0s,
               padding 0.33s ease-in-out 0s;
  
}

input[type="checkbox"].expand ~ form * {
  opacity:0;
  transition:opacity 0.33s ease-in-out 0s;
}

input[type="checkbox"].expand:checked ~ form * {
  opacity:1;
  transition:opacity 0.33s ease-in-out 0.66s;
}



/*
 * UTF8 FORM UI
 */
.utf8 {
    color:#aaa;
    font:'Open Sans', Arial, sans-serif;
}
.utf8 h1,
.utf8 h2,
.utf8 h3,
.utf8 h4,
.utf8 h5{
  margin:0;
  color:white;
}

a, a:active{
  color:#676ae6;
  text-decoration:none;
}

a:hover {
  color:#676ae6;
    text-decoration:underline;

}


form.utf8 label {
  position:relative;
  display:inline-block;
}



input.utf8::placeholder {
    color:transparent;
    white-space: nowrap;
    transition:color 0.25s; 
}

input.utf8:focus::placeholder{
    color:#aaa; 
}






input.utf8:focus, 
input.utf8:invalid,
textarea.utf8:focus, 
textarea.utf8:invalid,
select.utf8:focus, 
select.utf8:invalid{
  outline: none;
  box-shadow:none;

}




input[type="checkbox"].utf8 { display: none;}

input[type="checkbox"].utf8  ~ label {color:#aaa;}

input[type="checkbox"].utf8 ~ label:before{ content:'\2610\FE0E'; font-size:1.5em; color:#fff;}

input[type="checkbox"].utf8:checked ~ label:before{ content:'\2611\FE0E';}

textarea.utf8 {
  position:relative;
  display:block;
  box-sizing: border-box;
  border-radius:0.5em;
  height:6.35em; 
  width:100%;
  background:rgba(255,255,255,0.125);
  padding:1em; margin:0.25em 0em 0em 0em;
  font-size:0.75em;
  overflow:auto;
  line-height: 1.6em;
  font-family: Courier, monospace;
  outline: none;
  box-shadow:none;
  border:none;
  resize: none; 
  word-break: break-all;

  -webkit-touch-callout: none; 
    -webkit-user-select: none; 
     -khtml-user-select: none; 
       -moz-user-select: none; 
        -ms-user-select: none; 
            user-select: none; 
  cursor:copy;
}




input[type="text"],
input[type="number"],
select.utf8 {
  width:4em; height:1em;
  margin-top:1.5em;
  padding:0.25em;
  background:transparent;
  font-size:1em;
  border-style:solid;
  border-color:transparent; 
  border-left-color:white;
  border-bottom-color:#999;
  border-width:0em 0em 0.01em 0.1em; 

  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;

}



select.utf8 {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: transparent;
  border-radius:0;
  height:auto; width:auto;
}



input[type="text"].utf8 + label,
input[type="number"].utf8 + label,
select.utf8 + label {
  position:absolute;
  display:block;
  bottom:0.2em; left:0.5em;
  pointer-events:none;
  transform-origin:left top;
  transition:transform 0.33s ease-in-out 0s !important;
}

select.utf8 + label {

  bottom:0.5em; left:0.5em;

}

input[type="text"].utf8:focus + label,
input[type="text"].utf8:not(:placeholder-shown) + label,
input[type="number"].utf8:focus + label,
input[type="number"].utf8:not(:placeholder-shown) + label,

label.utf8 > input[type="text"]:focus + label,
select.utf8:focus + label,
select.utf8:valid + label {
  transform:translate(-0.5em, -1.2em) scale(0.75) ;
}




.utf8.show-hide-select { font-size:0; }
select.utf8[data-value='0'] ~ .utf8.show-hide-select[data-value='0'] { font-size:1em;}
select.utf8[data-value='1'] ~ .utf8.show-hide-select[data-value='1'] { font-size:1em;}
select.utf8[data-value='2'] ~ .utf8.show-hide-select[data-value='2'] { font-size:1em;}






input[type="checkbox"].expand ~ form * {
  opacity:0;
  transition:opacity 0.33s ease-in-out 0s;
}

input[type="checkbox"].expand:checked ~ form * {
  opacity:1;
  transition:opacity 0.33s ease-in-out 0.66s;
}




/*
 *
 */
.click-to-copy {cursor:copy; margin-bottom:1.5em; }

.click-to-copy textarea{height:7.2em; }

.click-to-copy label{pointer-events:none; margin:0.5em 0em; float: right;}

.click-to-copy label::before { content:'Copy Tag \2750\FE0E'; }
.click-to-copy:hover textarea { box-shadow: 0em 0em 0.2em #6f0 inset; }

.click-to-copy label::after {
  font-size: 0.75em;
  right: 0;
  top: -9.25em;
  content: 'Click to Copy';
  width: 100pt;
  height: 20pt;
  position: absolute;
  text-align: right;
}

.click-to-copy:hover label::after { content:'Click to Copy'; }

.click-to-copy:focus label::after { content:'Copied to Clipboard';}
.click-to-copy:focus { outline: none; }


.ssk, .ssk-ish {
  font-size: inherit !important; 

  margin-top: 0em !important;

  margin: 0.2em 0.2em !important;
  padding: 0.2em !important;
  background-color: #757575;
  display: inline-block;
  line-height: 1px;
  padding: 7px;
  text-align: center;
  text-decoration: none;

}

.ssk-holder {
  display:block;
  position: relative;
  width:100%; height:auto;
  text-align: center;
  overflow-x:auto;
  font-size: 1.5em;
  line-height: 1em;
  padding:0.5em 0em;
      white-space: nowrap;

} 


.ssk-ish.ssk-ish-embed:hover{ background-color:#5b5b5b}

.ssk:before, .ssk .glyphicon, .ssk .fa {
  font-size: inherit !important; 
}

label.ssk-ish-ico{ position:relative; height:auto; margin:1em 0.25em;}
label.ssk-ish-ico > .ssk + label{ 
  transform: translateX(-50%);
  left: 50%; top:100%;
  display: block;
  position: absolute !important;
  font-size: 0.5em;
 }

.ssk-ish-embed:before{
  content:'';
  position:relative;
  display:inline-block;
  font-size: inherit !important; 
  width:1em; height:1em;
  background-image: url(../ui/embed-icon.svg);
  background-size: cover;
  background-position: center;
  vertical-align: middle;

}



.popup {
  position:fixed;
  width:100vw; height:100vh;
  box-shadow:0vmin 0vmin 100vmin rgba(0,0,0,0.5) inset;
  display: flex;
  justify-content: center;
  align-items: center;
    opacity:0;
  visibility:hidden;
}

.popup > form {
  position:absolute;
  width:auto;
  height: auto;
  margin-bottom:2em;

  background:black;
  border-radius: 1em;
  box-sizing: border-box;



}

.popup > form > .con {
  position:relative;
  width:auto; height:auto;
  box-sizing: border-box;
  padding:2em;
  max-width:calc(100vw - 16pt);
  max-height:calc(80vh - 16pt);

  overflow-y:auto;
  overflow-x:none;
}


.popup[data-view="show"] {
  animation: show-popup-bg 0.5s ease-in-out forwards;
}

.popup[data-view="hide"] {
  animation: hide-popup-bg 0.5s ease-in-out forwards;
}

.popup[data-view="show"] form {
  animation: show-popup 0.5s ease-in-out forwards;
}

.popup[data-view="hide"] form {
  animation: hide-popup 0.5s ease-in-out forwards;
}


@keyframes show-popup {
  from {transform:scale(0.9);}
  to   {transform:scale(1.0);}
}

@keyframes hide-popup {
  from {transform:scale(1.0);}
  to   {transform:scale(0.9);}
}

@keyframes show-popup-bg {
  from {opacity:0; visibility:hidden;}
  to   {opacity:1; visibility:visible;}
}

@keyframes hide-popup-bg {
  from {opacity:1; visibility:visible;}
  to   {opacity:0; visibility:hidden;}
}

.box {
  width:100%;
  height:100%;
}

.row {
  position: relative;
  margin:0; padding:0;
  width:100%;
  height:auto;
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.row > .col {
  position:relative;
  width:100%; height:auto;
  margin:0; padding:4pt;
  flex-grow:1;
  flex-basis:200pt;
  display: flex;
  align-items: flex-end;
  justify-content: left;

}

form button.close {
  position:absolute;

  display: block;
  margin:0.5em; padding:0;
  width:24pt; height:24pt; 
  top:0pt; left:0pt;
  background-color:transparent;
  border:none;
  background-image:url(../ui/times-solid.svg);
}

/*
 * UI STYLES
 */
.content_popout {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  background: black;
  visibility: hidden;
  pointer-events: none;
  transform-origin: center;
  z-index: 99999999999999;
}

.content_popout button {
  position: absolute;
  background-color: transparent;
  border: none;
  width: 32pt;
  height: 32pt;
  margin: 0;
  padding: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: all;
}

.content_popout button[name='close'] {
  top: 5pt;
  right: 5pt;
  background-image: url(../ui/times-solid.svg);
}

.zoom_hud {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  color: white;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transition: opacity 0.5s, visibility 0.5s;
  transition: opacity 0.5s, visibility 0.5s;
  font-family: Helvetica, sans-serif;
  background-color: rgba(75, 80, 109, 0.75);
}

.zoom_hud button {
  position: absolute;
  background-color: transparent;
  border: none;
  width: 32pt;
  height: 32pt;
  margin: 0;
  padding: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: all;
}

.zoom_hud button[name='close'] {
  top: 5pt;
  right: 5pt;
  background-image: url(../ui/times-solid.svg);
}

.zoom_hud button[name='back'] {

  background-image: url(../ui/angle-left-solid.svg);
}

.zoom_hud button[name='next'] {
 
  background-image: url(../ui/angle-right-solid.svg);
}

.zoom_hud *[name='back-next'] {
  position: absolute;
  width: 100vmin;
  height: 100vmin;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transform-style: preserve-3d;
  perspective: 500px;
}

.show_hud {
  opacity: 1;
  visibility: visible;
}

.zoom_hud #mini-scene3d {
  position: absolute;
  top: 40pt;
  right: 100vmin;
}

/* Horizontal */
@media (min-aspect-ratio: 82/100) {

  .zoom_hud *[name='back-next'] button[name='back'] {
    right: 92vmin;
    font-size: 80pt;
  }

  .zoom_hud *[name='back-next'] button[name='next'] {
    left: 92vmin;
    font-size: 80pt;
  }

  .zoom_hud #simple-cube {
    --height: 6vw;
    --width: 5vw;
    left: calc((var(--width) * 0.5) + 16pt);
    top: calc((var(--height) * 0.5) + 16pt);
  }

  .zoom_hud img {
    position: absolute;
    width: calc(48vw - 38vmin);
    max-height: 40vh;
    object-fit: contain;
    opacity: .35;
    transform-style: preserve-3d;
    transform-origin: center;
  }

  .zoom_hud img[name='top-logo'] {
    top: 13vh;
    left: 90vmin;
    transform: scale(0.6) rotateY(-40deg);
  }

  .zoom_hud img[name='bottom-logo'] {
    bottom: 13vh;
    right: 90vmin;
    transform: scale(0.6) rotateY(40deg);
  }
}

/* Virtical */
@media (max-aspect-ratio: 82/100) {

  .zoom_hud *[name='back-next'] button[name='back'] {
    bottom: calc(-32pt - 2vmin);
    right: 82vmin;
  }

  .zoom_hud *[name='back-next'] button[name='next'] {
    bottom: calc(-32pt - 2vmin);
    left: 82vmin;
  }

  .zoom_hud #simple-cube {
    --height: min(30vw, 5vh);
    --width: calc(var(--height) * 0.83);
    left: 50%;
    top: calc(52% + 50vw + (var(--height) * 0.5))
  }

  .zoom_hud img {
    --size: 12vmin;
    position: absolute;
    width: var(--size);
    object-fit: contain;
    opacity: .35;
    transform-style: preserve-3d;
    transform-origin: center;
    bottom: calc(49% + 50vmin);
  }

  .zoom_hud img[name='top-logo'] {
    right: 12vmin;
    transform: scale(0.7) rotateY(-40deg);
  }

  .zoom_hud img[name='bottom-logo'] {
    left: 12vmin;
    transform: scale(0.7) rotateY(40deg);
  }
}

.no-access-message {
  display: flex;
  flex-direction: column;
  font-size: 2em;
}

