/* ------------------------------------------------------------------- F O N T S */

@font-face {
    font-family: 'Garamond Premier Pro';
    src: url('/css/fonts/subset-GaramondPremrPro.woff2') format('woff2');*/
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Garamond Premier Pro';
    src: url('/css/fonts/subset-GaramondPremrPro-Smbd.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Garamond Premier Pro';
    src: url('/css/fonts/subset-GaramondPremrPro-It.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Garamond Premier Pro';
    src: url('/css/fonts/subset-GaramondPremrPro-SmbdIt.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Neutra Title';
    src: url('/css/fonts/neutradisplay.woff2') format('woff2');
}

@font-face {
    font-family: 'Neutra Caption';
    src: url('/css/fonts/subset-NeutraText-BookAlt.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Neutra Caption';
    src: url('/css/fonts/subset-NeutraText-BookItalicAlt.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Neutra Caption';
    src: url('/css/fonts/subset-NeutraText-DemiAlt.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Neutra Caption';
    src: url('/css/fonts/subset-NeutraText-DemiItalicAlt.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Typewriter';
    src: url('/css/fonts/f25_daisywheel-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* ------------------------------------------------------------------- F O N T S */

/* --------------------------------------------------------------------- M A I N */

html, body {
  width: 100%;
  height: 100%;
	padding: 0;
	margin: 0;
  font-size: 16px;
  letter-spacing: 0.1em;
  touch-action: none;
  /* image-rendering: pixelated;
  /* this should not be universal, only for the tiny images */
  -webkit-tap-highlight-color: transparent;
}

#backdrop {
  position: fixed;
  top:0px;
  left:0px;
  background-image: url('../img/bgr/bokeh.jpg');
  z-index:1;
  cursor:move;
  overscroll-behavior-x: contain;
}

#board {
  position: fixed;
  top:0px;
  left:0px;
  z-index:1;
  cursor:move;
  overscroll-behavior-x: contain;
/*  transition: transform 50ms ease-in-out; */
}

#posts {
  position: absolute;
  display: inline-block;
}

#pw {
  position: fixed;
  width: 100%;
  top: 50%;
  letter-spacing: 10px;
  outline: 0;
  font-size: 200%;
  background-color: inherit;
  text-align: center;
  color : transparent;
  text-shadow : 0 0 0 #333333;
  border: 0px solid #000;
  outline: 0;
  padding-left: 8px;
}

dialog {
  border: none !important;
  border-radius: 3px;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 32px;
  max-width: 900px;
}

input[type=password] {
  padding: 8px 8px;
  margin: 8px 0;
  display: inline-block;
  border: 0px solid #ccc;
  border-bottom: 0px solid #ccc;
  box-sizing: border-box;
  text-align: center;
  font-size: 2em;
}

input::-ms-reveal,
input::-ms-clear {
  display: none;
}


input:focus {
  outline: none;
}


svg {
  width: 1800px;
  height: 1350px;
  touch-action: none;
}

.selected {
  outline: thick double #32a1ce;
}



#panel {
  position: fixed;
  top: 16px;
  right: 16px;
  max-width: 400px;
  padding: 1em;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  opacity: 0.95;
  z-index: 999999;
}

.control-row {
  display: grid;
  grid-template-columns: 50px 1fr 50px 1fr;
  gap: 0.5em;
  margin-bottom: 1em;
}

.control-row:last-child {
  grid-template-columns: 80px 1fr;
}

#panel label {
  font-weight: 600;
  color: #333;
  align-self: center;
  font-size: 0.8em;
}

#panel input, #panel select {
  padding: 0.4em;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 0.8em;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
}

.core-controls {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 0;
}

.core-controls:not(.collapsed) {
  max-height: 500px; /* adjust as needed */
}

.collapse-toggle {
  margin: 0.5em 0;
  background: none;
  border: none;
  font-weight: bold;
  font-size: 0.8em;
  cursor: pointer;
  color: #444;
}



/* --------------------------------------------------------------------- M A I N */

/* --------------------------------------------------------------------- E D I T */

.layer { /* ------ this should be the new posts_div, that allows positioning around 0, and eventually to have several layers that can be turned off and on */
  position: absolute;
  left: 0vw;
  top: 0vh;
  transform: translate(50vw 50vh);
}

#status {
  border-radius: 5px;
  color: #fff;
  background: rgba(0,0,0,0.8);
  margin: 0;
  padding: 10px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  font-family: Courier;
  font-size: 1em;
  opacity:1;
  width: 256px;
}

#status_prompts{
    list-style: none;
}

.prompt-container .prompt{
    width: 100%;
    opacity: 0;
    transition: all 0.6s ease-out;
    color: white;
}
.prompt-container .prompt.show{
    opacity: 1;
}


input[type='file'] {
  display: none;
}

textarea {
  height: 100%;
  width: 100%;
  font-family: Courier;
  resize: none;
  outline: none;
  border: none;
  background: #111;
  color: #fdfdfd;
}

#console_bar {
  position: fixed;
  padding: 10px;
  background: black;
  color:#f7f7f7;
  display: table;
  table-layout: fixed;
  width: 100%;
  bottom: 0px;
  z-index:9999999999999999999999;
}

.console_item {
  /* float:left; */
  font-family: courier;
  display: table-cell;
  vertical-align: middle;
}

/* --------------------------------------------------------------------- E D I T */

/* --------------------------------------------------------------------- T A G S */

article h1 {
  font-family: 'Neutra Title', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 2em;
  margin:0;
  padding-top: 32px;
  letter-spacing: 0.1em;
  text-align: center;
}

h2 {
  font-family: 'Neutra Caption', Helvetica, Arial, sans-serif;
  font-weight: 100;
  font-size: 1em;
  margin: 0;
  letter-spacing: 0.1em;
  text-align: center;
}

h3 {
  font-family: 'Typewriter', Courier, sans-serif;
  font-weight: 100;
  font-size: 1.2em;
  margin: 0;
  letter-spacing: 0.05em;
  text-align: center;
}

p {
  font-family: 'Garamond Premier Pro', Helvetica, Arial, sans-serif;
  text-align: justify;
}

/*
img {
  position: relative;
  display: block;
}
*/

.tile {
  display: inline-block;
  position: absolute;
  pointer-events: none;
}

article {
  outline: none;
  padding-left: 64px;
  background-color: #fcf9f9;
  padding-right: 64px;
  filter: blur(0.25px);
}

iframe {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  display: inline-block;
  width: 100%;
  height: inherit;
}

canvas {
    position: absolute;
    top:0px;
    left:0px;
    opacity: 0.9;
    border: 0px solid white;
    pointer-events:none;
}

/* --------------------------------------------------------------------- T A G S */

/* ----------------------------------------------------------------- D I A L O G */

.dialog {
  border-radius: 5px;
  color: #fff;
  background: rgba(0,0,0,0.8);
  margin: 0;
  padding: 10px;
  position: fixed;
  top: 20px;
  right: 400px;
  z-index: 999999;
  font-family: Courier;
  font-size: 1em;
  opacity:0;
  width: 256px;
  transform: translate(-50%, -50%);
}

.dialog input {
  background: transparent;
  padding: 4px;
  text-align: center;
  border: none;
  border-bottom: 1px solid grey;
  padding-top: 12px;
  outline: none;
}

.dialog img {
  position: relative;
  width: 1em; height: 1em;
  border-radius: 50%; /*magic to turn square into circle*/
  border: 1px solid #000;
  margin-top: 16px;
  margin-bottom: 0px;
  padding: 8px;
  left: calc(50% - 0.5em); 
}

/* ----------------------------------------------------------------- D I A L O G */

/* --------------------------------------------------------------------- P O S T */

.shade:before, .shade:after {
  z-index: -1;
  position: absolute;
  content: "";
  bottom: 15px;
  left: 10px;
  width: 50%;
  top: 90%;
  max-width: 300px;
  background: #777;
  box-shadow: 0 15px 10px #777;
  transform: rotate(-3deg);
  display: block;
}

.shade:after {
  transform: rotate(3deg);
  right: 10px;
  left: auto;
}

.post {
  display: inline-block;
  position: absolute;
  cursor: pointer;
  /*transform: translate(-50%,-50%);*/
  background-size: 100% 100%;
  border: 8px solid #fcfcfc;
  box-shadow: 0 0px 10px rgba(0,0,0,0.1);
}

.post img {
  vertical-align: middle; /* or top or bottom */
  position: absolute;
  opacity: 0;
}

.frameless {
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
  border:0px solid #fcfcfc;
  background:#fcfcfc;
}

.shadowless {
  border:0px solid #fcfcfc;
  background:#fcfcfc;
}

.darken .content img{
  background-color: #fcfcfc;
  mix-blend-mode: darken;
}

.opaque {
  box-shadow: 0 0px 10px rgba(0,0,0,0.035)
}

.transparent {
  border: 0px;
  box-shadow: 0px 0px 0px rgba(0,0,0,0);  
}

.transparent:hover {
}    

.endpaper {
  box-shadow: 0px 0px 50px rgba(0,0,0,0.1);  
}

.paper {
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.content {
  position: relative;
  outline: none;
  transform-origin: 0 0;
  height:100%;
  user-select: none;
}

.book {
  overflow: visible;
}

.diorama img {
  top: 0px;
  left: 0px;
  position: absolute;
  opacity: 0.95;
}

.diorama {
  background: #cccccc;
  box-shadow: inset 0 0 100px 100px #f7f7f7;
}

/* --------------------------------------------------------------------- P O S T */

@keyframes tape-spin {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.sound_tex {
    top:64px;
    left:64px;
    width: 128px;
    height: 128px;
    border-radius: 64px 64px 64px 64px;
    position: absolute;
    animation: tape-spin 0.5s linear 0s infinite;
    animation-play-state: paused;
    box-shadow: 0px 0px 0px 6px black, 0px 0px 10px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease-out;
}

.tape-acc {
    transition: all 0.5s ease-out;
}
.tape-play {
    animation: tape-spin 8s linear 0s infinite reverse;
    width: 128px;
    height: 128px;
    background-image: url("https://base.earth/tape.svg");
    border-color: black;
    border-style: solid;
    border-width: 0px 0px 0px 0px;
    border-radius: 100%;
    position: relative;
    animation-play-state: paused;
}

.play_button_overlay {
  content: '';
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  background: url('https://base.earth/img/controls/play.svg');
  background-repeat: no-repeat;
  background-size: 256px 256px;
  opacity: 90%;
  top: calc(50% - 128px);
  left: calc(50% - 128px);
  right: 0;
  bottom: 0;
  pointer-events: none;
}

/* ------------------------------------------- T R A N S F O R M   H A N D L E S */

.handle {
  position: absolute;
  z-index: 9999;
  display: block;
  pointer-events: auto;
  width: 32px;
  height: 32px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right bottom;
}

.handle.top        { left: 50%; top: 0; transform: translateX(-50%) rotate(180deg); cursor: ns-resize; background-image: url('https://base.earth/crop_handle.svg'); }
.handle.bottom     { left: 50%; bottom: 0; transform: translateX(-50%); cursor: ns-resize; background-image: url('https://base.earth/crop_handle.svg'); }
.handle.left       { left: 0; top: 50%; transform: translateY(-50%) rotate(90deg); cursor: ew-resize; background-image: url('https://base.earth/crop_handle.svg'); }
.handle.right      { right: 0; top: 50%; transform: translateY(-50%) rotate(-90deg); cursor: ew-resize; background-image: url('https://base.earth/crop_handle.svg'); }

.handle.top-left     { left: 0; top: 0; transform: rotate(180deg); cursor: nwse-resize; background-image: url('https://base.earth/resize_handle.svg'); }
.handle.top-right    { right: 0; top: 0; transform: rotate(-90deg); cursor: nesw-resize; background-image: url('https://base.earth/resize_handle.svg'); }
.handle.bottom-left  { left: 0; bottom: 0; transform: rotate(90deg); cursor: nesw-resize; background-image: url('https://base.earth/resize_handle.svg'); }
.handle.bottom-right { right: 0; bottom: 0; cursor: nwse-resize; background-image: url('https://base.earth/resize_handle.svg'); }

.handle.rotater {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  mix-blend-mode: difference;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

/* ------------------------------------------- T R A N S F O R M   H A N D L E S */

/* ------------------------------------------------------------------- F R A M E */

.frame_scope {
  position: absolute;
  z-index: 9999;
  pointer-events: none;
  border: 1px dashed rgba(0,0,0,0.5);  
}

.active_frame {
  box-shadow: 0 0 0 20000px rgba(0, 0, 0, .5); 
}

.frame_target { /* bulls eye circle */
  position: absolute;
  left: 47%;
  top: 47%;
  width: 6%;
  height: 6%;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  z-index: 99999;
  pointer-events: auto;
}

/* ------------------------------------------------------------------- F R A M E */

/*#console {
  padding: 10px;
  background: black;
  color:#f7f7f7;
  display: table;
  table-layout: fixed;
  width: 100dvh;
  bottom: 0px;
  z-index:9999999999999999999999999999;
}*/

.upload_progress {
  top: 0;
  height: 100%;
  right: 0;
  width: 27%;
  display: block;
  position: absolute;
  background: rgba(255,255,255,0.75);
  z-index: 999999;
}

.loading {
  /*background-image:url('https://96.30.15.44/~alee/alexhlee.net/img/ajax-loader.gif');*/
  background-repeat: no-repeat;
  background-position: center center;
}

/*
.controls {
  position:relative;
  margin-top: -48px;
  height: 32px;
  -webkit-box-shadow: 0px 0px 10px #777;
  -box-shadow: 0px 0px 10px #777;
  -moz-box-shadow: 0px 0px 10px #777;
  box-shadow: #777 0px 0px 10px;
  border:8px solid #fff;
  background:#fff;
  z-index:10000;
}
*/

/* FRA JS FIDDLE 

#container {
    display: table;
    width: 250px;
    background: #f3f3f3;
    margin: 0:
}

#container > div {
    display: table-cell;
    white-space: nowrap;
    margin: 0;
}

.right {
    text-align: right;
}

img {
  padding: 4px;
  width: 4vh;
  height: 4vh;
  margin: 4px;
  margin-bottom: 0;
  margin-right: 0px;
}

img:hover {
  filter: invert(1);
  background: #555;
}

/* FRA JS FIDDLE */

#buttons {
  display: table;
  margin: 0;
  position: absolute;
  bottom: -35px;
  left: 0px;
  height: 35px;
  width: 100%;
  background: #f8f8f8;
  opacity: 0.95;
  color: #777;
  box-shadow: inset 0px 8px 8px -4px rgba(0,0,0,0.25);
}

#r_buttons, #l_buttons {
  display: table-cell;
  white-space: nowrap;
  margin: 0;
}

#r_buttons {
  text-align: right;
  z-index:999999999999999999999999;
}

.edit_btn {
  display: inline;
  padding: 4px;
  width: 15px;
  height: 15px;
  margin: 4px;
  margin-bottom: 0;
  margin-right: 0px;
  cursor: pointer;
}

.edit_btn:hover {
  filter: invert(1);
  background: #555;
}

.ui_button {
  display: inline;
  padding: 4px;
  width: 15px;
  height: 15px;
  margin: 4px;
  margin-bottom: 0;
  margin-right: 0px;
  cursor: pointer;
}

.ui_button:hover {
  filter: invert(1);
  background: #555;
}

.button {
  position: relative;
  display: inline-block;
  float: left;
  width: 15px;
  height: 15px;
/*  border-radius: 50%; /*magic to turn square into circle*/
/*  border: 2px solid #000; */
  border: 0px solid #000; */
  margin: 0;
  padding: 10px;
}

.invisible {
  opacity: 0.75;
}

#context_menu {
  display: none;
  position: fixed;
  width: 300px;
  height: 300px;
  padding: 0;
  border: dashed 0px;
  border-radius: 50%;
  background: rgba(255,255,255,0);
  z-index: 999999;
}

.context_menu_button {
  font-size: 48px;
  position: absolute;
  left: calc(50% - 60px);
  top: calc(50% - 60px);
  width: 40px;
  height: 40px;
  padding: 40px;
  border-radius: 50%; /*magic to turn square into circle*/
  border: 2px solid #000;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.5);
}

.material-icons.md-48 { font-size: 48px; }

.overlay {
  width: 50px;
  height: 50px;
  border-radius: 50%; /*magic to turn square into circle*/
  border: 2px solid #000;
  background: rgba(255,255,255,0.3);
  margin: 0;
  padding: 20px;
  position: fixed;
  bottom: 50px;
  left: calc(50% - 45px);
  z-index: 999999;
}

.overlay:active {
  background: rgba(255,255,255,1);
  box-shadow: 0 0 0 8px #fff;
}

.context_menu_center {
  position: absolute;
  left: calc(50% - 60px);
  top: calc(50% - 60px);
  width: 40px;
  height: 40px;
  padding: 40px;
  border-radius: 50%; /*magic to turn square into circle*/
}

.context_menu_button:hover {
  box-shadow: 0 0 0 4px rgba(255,255,255,1);
}

.deg0 { transform: rotate(-115deg) translate(150px) rotate(115deg); }
.deg50 { transform: rotate(-65deg) translate(150px) rotate(65deg); }
.deg100 { transform: rotate(-15deg) translate(150px) rotate(15deg); }
.deg150 { transform: rotate(-165deg) translate(150px) rotate(165deg); }
.deg200 { transform: rotate(-215deg) translate(150px) rotate(215deg); }
.deg250 { transform: rotate(-265deg) translate(150px) rotate(265deg); }

#delete_btn {
  top: 0;
}

#commit_btn {
  bottom: 0;
}

.pen {
    opacity: 0.5;
}

.act {
    opacity: 1;
}

.activeCanvas {
    cursor:url(https://96.30.15.44/~alee/alexhlee.net/img/ui/canvas-cursor.png) 0 0,default;
    pointer-events:auto;
}

.textcursor {
  cursor: default;
}