.textLayer span {
    position: absolute;

}

html, body, #app {
    width: 100%;
    height: 100%;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

button.annotation-button {
    border-radius: 8px;
    cursor: pointer;
    height: 30px;
    margin: 3px;
    padding: 3px;
    display: inline-block;
    border: none;
}

.textinput {
    border-radius: 8px;
    height: 30px;
    margin: 3px;
    padding: 3px;
    display: inline-block;
}

.textLayer {
  --user-unit:1;
  --total-scale-factor:calc(var(--scale-factor) * var(--user-unit));
  --scale-round-x:1px;
  --scale-round-y:1px;
}

.textLayer :is(span,br) {
    color:transparent;
    position:absolute;
    white-space:pre;
    cursor:text;
    transform-origin:0% 0%;
}

.textLayer span[role="img"] {
    -webkit-user-select:none;
       -moz-user-select:none;
            user-select:none;
    cursor:default;
}

.textLayer ::selection{
    background:rgba(0 0 255 / 0.25);
    background:color-mix(in srgb, AccentColor, transparent 75%);
  }

.textLayer br::-moz-selection{
    background:transparent;
  }

.textLayer br::selection{
    background:transparent;
  }

.section-toolbar     { grid-area: 1 / 1 / 2 / 3; }
.section-main        { grid-area: 2 / 1 / 4 / 2;     overflow: auto;}
.section-sidebarmenu { grid-area: 2 / 2 / 3 / 3; }
.section-sidebar     { grid-area: 3 / 2 / 4 / 3;     overflow: auto;}

body {
    margin: 0;
    background: #f7f9fc;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
}

.toolbar {
    background-color: '#F4F4F6';
}

.toolbar-inner {
    padding-left: 10em;
    padding-top: 0.25em;
    width: 100%;
    height: 100%;
    background-color: white;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.07);
}

/*
    const buttonStyle = {
        width: '40px',
        height: '40px',
        margin: '5px',
        // backgroundColor: '#E0E0E0',
        */

.landing {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100vh;
}
.landing header {
    padding: 1.5rem 2rem;
    font-weight: 700;
    font-size: 1.5rem;
    border-bottom: 1px solid #ddd;
    background: white;
    text-align: center;
    position: relative;
    z-index: 10;
}
.landing main {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem 6rem;
    text-align: center;
    z-index: 10;
    width: 900px;
    margin: 0 auto;
    max-width: 100%;
}
/*
.landing main::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    max-width: 100vw;
    max-height: 100vh;
    background: url('/screenshot.png') no-repeat center center;
    background-size: contain;
    transform: translate(-50%, -50%) rotate(-8deg);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}
*/
.landing h1 {
    font-size: 3rem;
    margin-bottom: 0.3em;
}
.landing p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    position: relative;
    z-index: 10;
    color: #444;
}
.landing .filelist {
    max-width: 100%;
    width: 720px;
}

.landing .filelist button {
    background-color: #0a74da !important;
    color: white;
}

ul.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem 2rem;
    max-width: 800px;
    padding: 0;
    margin: 0 0 3rem;
    margin-top: 7em;
    list-style: none;
    position: relative;
    z-index: 10;
}
ul.features li {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.07);
    padding: 1.3rem 1.5rem 1.3rem 3.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0a74da;
    position: relative;
    text-align: left;
    transition: box-shadow 0.3s ease;
}
ul.features li:hover {
    box-shadow: 0 8px 18px rgb(0 0 0 / 0.12);
}
ul.features li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #0a74da;
    font-weight: bold;
    user-select: none;
}
.landing .btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 10;
}
.landing button {
    cursor: pointer;
    border: none;
    padding: 1em 2.5em;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 700;
    box-shadow: 0 4px 12px rgb(10 116 218 / 0.25);
}
.landing button.upload {
    background-color: #0a74da;
    color: white;
}
.landing button.upload:hover {
    background-color: #055ab5;
    box-shadow: 0 6px 18px rgb(5 90 181 / 0.4);
}
.landing button.demo {
    background-color: white;
    color: #0a74da;
    border: 2px solid #0a74da;
    box-shadow: none;
}
.landing button.demo:hover {
    background-color: #0a74da;
    color: white;
    box-shadow: 0 6px 18px rgb(10 116 218 / 0.35);
}
.landing footer {
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #ddd;
    background: white;
    position: relative;
    z-index: 10;
}
@media (max-width: 480px) {
    .landing h1 {
        font-size: 2.2rem;
    }
    .landing p {
        font-size: 1rem;
        max-width: 100%;
    }
    ul.features {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 100%;
    }
    ul.features li {
        padding-left: 2.8rem;
        font-size: 1rem;
    }
    .landing button {
        width: 100%;
        padding: 1em;
        font-size: 1rem;
    }
    .landing .btn-group {
        flex-direction: column;
        gap: 1rem;
    }
}

@keyframes spin {
    from { transform: rotate(0deg);
} to {
    transform: rotate(360deg);
} }
