@import 'common.css';

header select {
    margin-left: 3em;
    min-width: 10em;
}

h2 {
    margin-bottom: 1ex;
}

.GraphemeList {
    display: flex;
    align-items: start;
    justify-content: space-around;
    margin-bottom: 1.5em;
}

.TagEditor {
    border-collapse: collapse;
}

.TagEditor td {
    padding: 0.3ex 0.5ex;
    width: 100%;
}

.TagEditor tr.first th, .TagEditor tr.first td {
    border-top: 1px solid #ccc;
    padding-top: 0.6ex;
}

.TagEditor tr.last th, .TagEditor tr.last td {
    padding-bottom: 0.6ex;
}

.TagEditor th {
    padding-right: 1ex;
    text-align: right;
}

.TagEditor th:first-child {
    text-align: left;
    padding-right: 2ex;
    font-size: 1.2em;
}

.TagEditor textarea,
.TagEditor input[type=text] {
    font-family: monospace;
    width: 100%;
}

.TagEditor .flag {
    font-size: 150%;
    margin-right: 1em;
}

.TagEditor input[type=checkbox] {
    height: auto;
}

.GraphemeList div:not(:first-child) {
    flex: 1;
    display: inline-block;
}

.GraphemeList table {
    width: 100%;
    border-collapse: collapse;
}

.GraphemeList td {
    padding: 2px;
}

.GraphemeList tbody th {
    text-align: right;
    padding-right: 1em;
}

.AnnotationHeader {
    margin-top: 0.5em;
}

.ModeSelect {
    font-size: 1rem;
    font-weight: normal;
    margin-left: 2em;
}

.ModeSelect input {
    margin: 0 0.5em 0 1em;
}

.GraphemeEntry.editing { background-color: #aaf; }
.GraphemeEntry.related { background-color: #FFD5A9; }

.GraphemeEntry td:nth-child(1),
.GraphemeEntry td:nth-last-child(1) {
    width: 0;
}

.GraphemeEntry td:first-child{
    padding-left: 2vw;
}

.GraphemeEntry td {
    white-space: nowrap;
}

.GraphemeEntry input[type="text"] { width: 100%; }

.Annotation {
    display: inline-block;
    position: sticky;
    top: 10px;
    border: 1px solid black;
    overflow: hidden;
}

.Annotation img {
    max-width: 50vw;
    max-height: 40vw;
}

.BBox {
    display: block;
    position: absolute;
    border: 2px solid black;
}

.BBox.dim {
    border: 1px dashed black;
}

.Edge {
    position: absolute;
}

.Edge line {
    stroke-width: 2px;
}
.Edge.dim line {
    stroke-width: 1px;
    stroke-dasharray: 3px;
}

pre {
    margin: 2em 0;
    padding: 1ex 0;
    border-top: 1px solid gray;
    color: gray;
}
