@font-face {
  font-family: 'code';
  src: url('../static/JetBrainsMono-Medium.woff2') format('woff2');
}

body {
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: #d4d4d4;
}

div#canvas canvas {
}

div#canvas {
  flex-grow: 1;
  display: flex;
  background-color: #919191;
}


.speed {
  display: flex;
  align-items: center;
  padding-top: 8px;
}

.main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.section-canvas-editor {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.section-info {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-grow: 1;
  overflow: scroll;
  background-color: #e9e9e9;
}

.editor-panel {
  flex-grow: 1;
  width: 100%;
  padding: 10px;
}

.colors-panel {
  min-width: 400px;
  height: 100%;
  padding: 10px;
}

.table-panel {
  width: 100%;
  padding: 10px;
  border: 0;
  width: 100%;
}

textarea {
  font-size: x-large;
}

button {
  min-width: 110px;
  display: inline-flex;
  text-align: center;
  align-content: center;
  justify-content: center;
  user-select: none;
}

.tooltip {
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 1, 1);
  display: inline-block;
  color: blue;
  padding: 5px;
}

.show-tooltip {
  opacity: 1;
}


.code {
  font-family: "code";
}


button {
 cursor: pointer; 
}

.pointer {
 cursor: pointer; 
}

button:active {
  transform: translateY(2);
}


.examples {
}

a {
  text-decoration: none;
  color: blue;
}

.examples a {
  display: inline-block;
  padding: 5px;
  text-decoration: none;
  width: 1em;
  height: 1em;
  text-align: center;
}

.examples a:hover {
  background-color: #2196F3;
  border-radius: 100%;
  color: white;
}

.repository-link {
  width: 1.5em;
  display: inline-block;
}

.repository-link:hover {
  fill: #2196F3;
}



.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  width: 100%;
  flex-direction: column;
}

.center-layout {
  display: flex;
  flex-grow: 1;
  min-height: 0;
}

.link {
  text-decoration: none;
  color: #77f;
}

.footer {
  padding: 5px;
  text-align: center;
}

.layout-editor {
}


.panel-de-la-pantalla {
  width: 512px;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
}


.split {
  display: flex;
  flex-direction: row;
}

.gutter {
  background-repeat: no-repeat;
  background-position: 50%;
}

.gutter:hover {
  background-color: #0083ff;
}

.gutter.gutter-horizontal {
  background-image: url('../static/img/horizontal-gutter.png');
  cursor: col-resize;
}

.gutter.gutter-vertical {
  background-image: url('../static/img/vertical-gutter.png');
  cursor: row-resize;
  min-height: 10px;
}

.code-panel {
  flex-grow: 1;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
}

.code-area {
  flex: 1 1 auto;
  margin-top: 0;
  height: 100%;
  position: relative;
  background-color: black;
}

.header {
  padding: 5px;
}

#editor {
  width: 100%;
  height: calc(100%);
  border: 1px solid gray;
}

#editor-asistente {
  height: 50px;
}

#config {
  display: inline-block;
}

.no-user-select {
  user-select: none;
}

#mensaje-de-error {
  position: absolute;
  color: white;
  background-color: red;
  padding: 10px;
  right: 10px;
  top: 10px;
  z-index: 999;
  line-height: 1.5;
  min-width: 350px;
}

#error #detalle {
  padding-top: 10px;
}

#error button {
  position: absolute;
  right: 10px;
  top: 10px;
  min-width: 25px;
  line-height: 1.5;
  user-select: none;
}

.dn {
  display: none !important;
}

.ace_editor {
  font-family: code !important;
}

.ace_autocomplete pre {
  background-color: gray;
  padding: 0.5em;
}

.imagen-ejemplo {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  width: 128px;
  height: 128px;
  display: block;
  padding: 1em;
}

.ace_tooltip {
  white-space: normal !important;
}

.barra-de-botones {
  height: 30px;
}

.botones-de-control {
  padding-top: 8px;
}

.retro-manual {
  overflow: always;
}

retro-manual {
  margin-top: 10px;
  display: flex;
  flex-grow: 1;
  background-color: white;
  border: 1px solid gray;
}

iframe {
  width: 100%;
  border: 0;
}

doc-tooltip {
  height: 10em;
  box-shadow: 1px 1px 5px 2px;
  margin: 5px;
}

retro-pantalla {
  display: flex;
}

.logo {
  width: 248px;
  height: 28px;
  display: inline-block;
  background-image: url("../static/img/logo-header.png");
  cursor: pointer;
}


.expandir-flex {
  flex-grow: 1;
}

.header-1 {
  display: flex;
  
}

.icono {
  display: inline-block;
  width: 20px;
  height: 20px;
  padding-right: 4px;
  line-height: 1.5;
  padding-top: 1px;
}

::backdrop {
  background-image: linear-gradient(
    45deg,
    magenta,
    rebeccapurple,
    dodgerblue,
    green
  );
  opacity: 0.75;
  z-index: 999;
}


dialog {
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

.texto {
  max-width: 520px;
}

div#canvas-pixelart {
  width: 256px;
  height: 256px;
  background-image: url("../static/img/transparente.png");
  background-repeat: repeat;
  background-color: #bbbbbb;
}

.contenedor-editor-pixelart {
  padding: 1em;
}

.editor-de-pixelart-consejo {
  width: 26em;
  padding-bottom: 5px;
  line-height: 1.5;
}

.flex {
  display: flex;
}

.color {
  width: 32px;
  height: 32px;
  display: inline-block;
  text-align: center;
  line-height: 2.4;
  font-size: small;
  cursor: pointer;
}

#retro-pixelart-colores {
  margin-left: 5px;
  display: grid;
  grid-gap: 2px;
  grid-template-columns: repeat(4, 32px);
  background-color: black;
  border: 2px solid black;
}

.dialogo-publicar-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em;
}

  .link-copiar {
    position: relative;
  }

  .tooltip {
    position: absolute;
    top: 10px;
    left: 60px;
    background-color: antiquewhite;
  }

.pa {
  padding: 5px;
}

.overlay {
  position: fixed;
  background-color: gray;
  opacity: 0.9;
  left: 0;
  right: 0;
  z-index: 44444;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.overlay svg {
  margin-right: 0.5em;
}

.overlay .texto {
  color: white;
}

.overlay-texto {
  display: flex;
  align-items: center;
}

.barras-de-progreso {
  color: white;
  padding-top: 3em;
  opacity: 0.75;
}

.textura {
  image-rendering: pixelated;
}

.contenedor-canvas-textura {
  position: relative;
}

.cursor-canvas-textura {
  outline: 2px solid #5e59ff;
  width: 8px;
  height: 8px;
  top: 0px;
  left: 0px;
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.dialogo-publicar-contenido-cargando {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em;
}

.color:hover {
  transform: scale(1.2);
  outline: 2px solid black;
}

button#abrir-editor {
  width: 200px;
}

button#abrir-ejemplos {
  margin-left: 5px;
  width: 200px;
}

button#abrir-comentarios {
  margin-left: 5px;
  width: 200px;
}

#contenido-de-ejemplos {
  width: 600px;
}

.contenedor-de-grilla-de-ejemplos {
  gap: 5px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding: 5px;
  border: 2px solid black;
}

.contenido-dialogo-de-configuracion {
  padding-top: 20px;
  padding-bottom: 20px;
}

.contenedor-de-comentarios {
  width: 720px;
  padding: 1em;
}

.contenedor-de-comentarios iframe {
  border: 1px solid gray;
  margin-bottom: 15px;
}


/* Desactiva la marca para indiciar donde
 * se abren o cierran los paréntesis.
 */
.ace_editor .ace_marker-layer .ace_bracket { display: none }

@media (max-width: 700px) {
  .ocultar-en-mobile {
    display: none;
  }

  button {
    min-width: 50px;
    user-select: none;
  }

  .icono {
    padding-right: 0px;
  }

  button#abrir-editor, button#abrir-ejemplos, button#abrir-comentarios {
    width: 50px;
  }
}

.cuadro-de-textura {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

#retro-cuadros-de-textura-pixelart img {
  outline: 1px solid red;
}

#retro-cuadros-de-textura-pixelart {
  border: 2px solid black;
  position: relative;
  margin-top: 5px;
  margin-bottom: 5px;
}

#cursor-de-textura {
  position: absolute;
  width: 32px;
  height: 32px;
  background-color: rgba(100, 100, 200, 0.25);
  z-index: 9999;
  pointer-events: none;
}

#cursor-de-cuadro {
  position: absolute;
  width: 32px;
  height: 32px;
  outline: 2px solid rgba(0, 0, 0, 0.5);
  z-index: 9999;
  pointer-events: none;
}

#textura {
  width: 512px;
  image-rendering: pixelated;
}

#cursor-de-textura {
}

.contenedor-de-ejemplos {
  display: flex;
  flex-direction: column;
  padding: 1em;
}


#gameCanvas {
  background-color: #898787;
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
}

.canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #bbbbbb;
}

form {
  margin: 0;
}


canvas:focus {
  outline: 2px solid #673ab7;
}

#imagen-del-juego-publicado {
  background-color: #898787;
}

button#retro-acerca-de {
  margin-left: 5px;
}

span.widget.stack-message {
  background-color: gray;
  border-radius: 3px;
  display: inline-block;
  margin-left: 2em;
  opacity: 0.5;
  padding-left: 6px;
  padding-right: 6px;
  pointer-events: auto;
}
