@import url("simple.css");

:root {
    --highlight-bg: #c1e1ff;
}

body > header {
    text-align: left;
}

body > header p {
    text-align: left;
    margin: 0 1em;
    color: var(--text-light);
}

body > header p strong {
    color: var(--text);
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #212121;
    --accent-bg: #2b2b2b;
    --text: #dcdcdc;
    --text-light: #ababab;
    --highlight-bg: #484101;
    --accent: #3388ff;
    --accent-hover: #66aaff;
    --accent-text: var(--bg);
    --code: #f06292;
    --preformatted: #ccc;
    --disabled: #111;
  }
  /* Add a bit of transparency so light media isn't so glaring in dark mode */
  img,
  video {
    opacity: 0.8;
  }
}

main {
    margin-left: 1em;
    margin-right: 1em;
}

body {
    grid-template-columns: 1fr 95% 1fr;
}

table {
    min-width: 100%;
}

tr.selected {
    background-color: var(--highlight-bg);
}

figcaption {
    text-align: left;
}

.numeric {
    text-align: right;
    font-family: monospace;
}



/* Web component debug  */
:where(:-webkit-any(*[class*="component"], *[id*="component"])) {
    border: 1px dotted #fdd;
    display: block;
    padding: 10px;
    position: relative
}

:where(:-webkit-any(*[class*="component"], *[id*="component"]))::before {
    background: black;
    border: 1px dotted #fdd;
    position: absolute;
    top: -15px;
    left: 5px;
    color: #fdd;
    padding: 0 5px;
    font-size: 12px;
}

.warning {
    color: #d80;
    margin: 12px;
}

fruits-component[class*="component"]::before { content: "fruits-component" }
data-form[class*="component"]::before { content: "data-form" }

@view-transition {
  navigation: auto;
}
