@import url("grid.css");
@import url('https://cdn.staticdelivr.com/gfonts/css2?family=Fira+Code:wght@300..700&display=swap');

:root {
    --bg-2: #fafafa;	

    --background: #ffffff;
    --foreground: #171717;
    
    --accent: #4eee85;
    --radius: 5px;
    --font-size: 1rem;
    --line-height: 1.54em;
    --light-bg: var(--background);
    --border: #e0e0e0;
}

html {
    box-sizing: border-box;
}


*,
*:before,
*:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family:
	"Fira Code",
	Monaco,
	Consolas,
	"Ubuntu Mono",
	monospace;
    font-size: var(--font-size);
    font-weight: 400;
    line-height: var(--line-height);
    background-color: var(--background);
    color: var(--foreground);
    text-rendering: optimizeLegibility;
    font-variant-ligatures: contextual;
    -webkit-overflow-scrolling: touch;
    -webkit-text-size-adjust: 100%;
    margin: 0 auto;
    padding: 0;
}

.container { max-width: 800px; margin: 0 auto; overflow: hidden; }


h1 {
    font-size: calc(var(--font-size) * 1.15);
    letter-spacing: 0;
}

h2 {
    font-size: calc(var(--font-size) * 1.35);
    letter-spacing: 0;
}

h3 {
    font-size: calc(var(--font-size) * 1.15);
    letter-spacing: 0;
}

h4,
h5,
h6 {
    font-size: calc(var(--font-size) * 1);
    letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol,
figure, video,
table {
    margin: 25px 0;
}

a {  text-decoration: none; color: var(--foreground); }
a:visited { color: inherit; }

button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #333;
  background-color: white;
  color: #333;
  font-size: 0.875rem;
  font-weight: 1500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  font-family: inherit;
  margin: 0;
  text-decoration: none;
  text-align: center;
  appearance: none;
}

button.download, button.filled {
  background-color: black;
  color: white;
}

button.download::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid white;
  margin-left: 0.25rem;
}

button:hover {
  background: color-mix(in srgb, var(--accent) 15%, transparent); 
  border-color: #d0d0d0;
}
button.download:hover, button.filled:hover {
  color: color-mix(in srgb, var(--accent) 35%, white);
  background: black;
}
button:focus {
  outline: none;
  border-color: #a0a0a0;
}

.buttons { margin-top: 25px; }

button:focus-visible {
  outline: 2px solid #4f90f1;
  outline-offset: 1px;
}

button:disabled {
  background-color: #f0f0f0;
  color: #999;
  cursor: not-allowed;
  border-color: #e0e0e0;
}

/* button { */
/*     position: relative; */
/*     font: inherit; */
/*     font-weight: bold; */
/*     text-decoration: none; */
/*     text-align: center; */
/*     background: transparent; */
/*     color: var(--accent); */
/*     padding: 5px 18px; */
/*     border: 4px solid var(--accent); */
/*     border-radius: var(--radius); */
/*     transition: background 0.15s linear; */
/*     appearance: none; */
/*     cursor: pointer; */
/*     outline: none; */
/* } */

/* button:hover { */
/*     background: color-mix(in srgb, var(--accent) 15%, transparent); */
/* } */

/* button:focus-visible, */
/* a:focus-visible { */
/*     outline: 1px solid var(--accent); */
/*     outline-offset: 2px; */
/* } */

fieldset {
    margin: 1rem;	
    display: block;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.6);
    padding: calc(var(--line-height) * 0.75);
    margin-bottom: var(--line-height);
}


fieldset *:first-child{
    margin-top: 0;
}
fieldset > legend + * {
    margin-top: 0 !important;
}

fieldset input,
fieldset select,
fieldset textarea,
fieldset label,
fieldset button {
    margin-top: calc(var(--line-height) * 0.5);
    display: block;
    width: 100%;
}
fieldset legend {
    padding: 0 6px;
}

label {
    display: inline-block;
}

label input {
    margin-top: 0;
}

fieldset .checkbox label { width: auto; display: inline-block; }

input,
textarea,
select {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    font: inherit;
    appearance: none;

}

input[type="checkbox"] {
    width: 18px;
    heiht: 18px;
    display: inline-block;
}


input:focus-visible,
input:active,
textarea:focus-visible,
textarea:active,
select:focus-visible,
select:active {
    border-color: var(--foreground);
    outline: none;
    /* outline: 1px solid var(--accent); */
    /* outline-offset: 2px; */
}

input:active,
textarea:active,
select:active {
    box-shadow: none;
}

select {
    background-image: linear-gradient(
	45deg,
	transparent 50%,
	var(--foreground) 50%
    ),
		      linear-gradient(135deg, var(--foreground) 50%, transparent 50%);
    background-position: calc(100% - 20px), calc(100% - 15px);
    background-size:
	5px 5px,
	5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

select option {
    background: var(--background);
}

input[type="checkbox"],
input[type="radio"] {
    vertical-align: middle;
    padding: 10px;
    box-shadow: inset 0 0 0 3px var(--background);
}

input[type="radio"] {
    display: inline-block;
    width: 10px !important;
    height: 10px !important;
    border-radius: 20px;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: var(--accent);
}


figure img,
figure video {
    margin-bottom: 0;
}

figure figcaption {
    background: var(--accent);
    color: var(--background);
    text-align: center;
    font-size: 1em;
    font-weight: normal;
    margin-top: -8px;
    border-radius: 0 0 var(--radius) var(--radius);
}

ul,
ol {
    margin-left: 4ch;
    padding: 0;
}

ul ul,
ul ol,
ol ul,
ol ol {
    margin-top: 0;
}

li::marker {
    color: var(--foreground);
}

ul li,
ol li {
    position: relative;
}

code,
kbd {
    font-family:
	"Fira Code",
	"JetBrains Mono",
	Monaco,
	Consolas,
	Ubuntu Mono,
	monospace !important;
    font-feature-settings: normal;
    background: color-mix(in srgb, var(--foreground) 5%, transparent);
    color: color-mix(in srgb, var(--foreground) 5%, var(--accent));
    padding: 0 6px;
    margin: 0 2px;
    font-size: 0.95em;
}

code {
    border: 1px solid color-mix(in srgb, var(--foreground) 25%, transparent);
}

kbd {
    border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-left: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    border-bottom: 4px solid var(--accent);
    border-radius: 4px;
}

code code {
    background: transparent;
    padding: 0;
    margin: 0;
}

pre {
    tab-size: 4;
    background: color-mix(in srgb, var(--foreground) 5%, transparent) !important;
    color: color-mix(in srgb, var(--foreground) 5%, var(--accent));
    padding: 20px 10px;
    font-size: 0.95em !important;
    overflow: auto;
    border-radius: var(--radius);
    border: 1px solid color-mix(in srgb, var(--foreground) 25%, transparent);
}

pre code {
    background: none !important;
    margin: 0;
    padding: 0;
    font-size: inherit;
    border: none;
}

sup {
    line-height: 0;
}

abbr {
    position: relative;
    text-decoration-style: wavy;
    text-decoration-color: var(--accent);
    cursor: help;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.25em;
}

mark {
    background: color-mix(in srgb, var(--accent) 45%, transparent);
    color: var(--foreground);
}

blockquote {
    position: relative;
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    margin: 0;
    padding: 25px;
}

blockquote:before {
    content: ">";
    display: block;
    position: absolute;
    left: 0;
    color: var(--accent);
}

blockquote p:first-child {
    margin-top: 0;
}

blockquote p:last-child {
    margin-bottom: 0;
}

table {
    table-layout: auto;
    border-collapse: collapse;
}

table,
th,
td {
    border: 2px solid var(--foreground);
    padding: 10px;
}

th {
    border-style: solid;
    color: var(--foreground);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

hr {
    width: 100%;
    border: none;
    background: var(--accent);
    height: 2px;
}

/* Bold elements */

h1, h2, h3, h4, h5, h6,
b, strong,
th,
button {
    font-weight: 600;
}


#headline {
    display: flex;
    flex: 1;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 0.04em;
    font-size: 18px;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: calc(var(--font-size) * 0.2);
    text-transform: uppercase;
}

#headline::after {
    content: '';
    background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 2px, transparent 0, transparent 8px);
    display: block;
    width: 100%;
    margin-left: 20px;
    right: 10px;
}

section { border-top: 1px dashed color-mix(in srgb, var(--foreground) 20%, transparent);
	  margin-top: 25px; padding-top: 25px; }
section>h3:first-child { margin-top: 0; }
section>h2:first-child { margin-top: 0; }

.blocks { line-height: 15px; }
.block { flex: 1; display: inline-block; margin: 3px; background-color: var(--accent); width: 15px; height: 15px; }
.block.empty { background-color: transparent; border: 1px solid var(--accent); }
.block:first-child { margin-left: 0; }

.box {
  overflow: hidden;
  border: 1px solid var(--border);
  flex-grow: 0;
  border-radius: 0.375rem;

  img { width: 100%; height: 105px; overflow: hidden; object-fit: cover; }
  .content { padding: 0.75rem; }
  small { font-size: 12px; tline-height: 18px; }
  .one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; display: block; }
}

.boxbox {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 3rem;
}

.boxbox > .box {
  margin-top: 0;
}

.header {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--bg-2);
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.btns > button { margin: 0 5px }

/* .box { padding: 1.5rem; width: 100%; background-color: var(--light-bg);  display: block; } */
.box>*:first-child { margin-top: 0; }
.box>*:last-child { margin-bottom: 0; }



.narrow { max-width: 30rem; }
.spread { min-width: 30rem; }
.fill { width: 100%; }

.notif { color: var(--black); padding: 1rem; }

.blockz { display: flex; justify-content: space-between; }
.blockz>.block { flex: none; width: 15px !important; height: 15px; flex-shrink: 0; }


#preview { max-height: 800px; overflow-y: scroll;}



/** dagggggggggggg */

    .graph-container {
      position: relative;
      background: white;
      margin: 0 auto;
    }
    .node {
      overflow: hidden;
      border: 1px solid var(--border);
      flex-grow: 0;
      border-radius: 10px;
      padding: 0.4rem 0.5rem;
      width: 100%;
      background: white;
  
      font-size: 14px;
      line-height: 14px;

      position: absolute;
      display: flex;

      flex-direction: column;
      justify-content: space-between;
      transform: translate(-50%, -50%);
      align-items: center; 

box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
transition: box-shadow 0.2s ease;

.foot, .head { width: 100%; font-size: 9px; align-self: flex-start; display: flex; justify-content: space-between; }
       .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: bold; max-width: 100%; }
    }
    .node:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
    .edge {
      position: absolute;
      pointer-events: none;
    }
    .edge-line {
      stroke: black;
      stroke-width: 1;
      fill: none;
      /* marker-end: url(#arrowhead); */
    }

.mt { margin-top: 25px;  }

.button-bar { display: flex; gap: 1.0rem; }
