﻿html {
    font-size: 1.4vh;
}

body {
    font-size: 1rem;
    counter-reset: elsewhere-num;
}

label {
    user-select: none;
}

p {
    margin: 0;
    padding: 0;
}

#ConfrontTable {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 1rem;
    height: 90vh;
}

    #ConfrontTable div {
        flex-shrink: 0;
        flex-grow: 0;
    }

.tdImg {
    box-sizing: border-box;
    text-align: right;
    height: 100%;
    width: 75vh;
    overflow: hidden;
    margin-right: 1rem;
    position: relative;
    cursor: grab;
}

    .tdImg img {
        height: 100%;
        object-fit: contain;
        position: absolute;
        top: 0;
        left: 0;
        user-select: none;
    }

.tdMs {
    position: relative;
    line-height: 2.35em;
    margin: 0;
    padding: 5em 0.3em;
    width: 50em;
    height: 100%;
    /*font-family: "Oooh Baby", cursive;*/
    font-weight: 400;
    font-style: normal;
    background-color: rgba(217,217,217,0.5);
    box-sizing: border-box;
    overflow: visible;
}

    .tdMs span {
        position: relative;
        z-index: 1;
        text-indent: 0 !important;
    }

.tdMsMargin {
    width: 9em;
    height: 100%;
    /*font-family: "Oooh Baby", cursive;*/
    font-weight: 400;
    font-style: normal;
    background-color: rgba(217,217,217,0.5);
    position: relative;
    border-right-color: palevioletred;
    border-right-width: 1px;
    border-right-style: solid;
    z-index: 1;
}

.line-separator {
    line-height: 0;
    width: 59em;
    height: 1px;
    background-color: lightgray;
    transform: translateY(-0.7em) translateX(-9.4em);
    z-index: -1;
    position: relative;
}

.line-number {
    top: -1em;
}

.tdMsMarginBloc {
    position: absolute;
    right: 0.3em;
    line-height: 1.5em;
}

.margin-line1 {
    bottom: 89%;
}

.margin-line3 {
    bottom: 81.6%;
}

.margin-line7 {
    bottom: 66.5%;
}

.margin-line15 {
    bottom: 36.2%;
}

.tdMsBloc {
    position: absolute;
    line-height: 1em;
}

.top-right {
    right: 0.5em;
    top: 0.5em;
}

.top-center {
    left: 22em;
    top: 3em;
}

.tdEd {
    position: relative;
    vertical-align: middle;
    text-align: justify;
    display: none;
    width: 40em;
    box-sizing: border-box;
    padding-left: 3vw;
}

.indent {
    text-indent: 1em;
}

.subsituteGroup {
    display: inline-block;
    text-indent: 0;
    position: relative;
}

.strike-through {
    text-decoration: line-through;
}

.double-strike-through {
    text-decoration: line-through;
    text-decoration-style: double;
}

.del {
    /*color: grey;*/
}

.addcontainer {
    position: absolute !important;
    font-size: 0.8em;
    text-indent: 0;
    overflow: visible;
    display: inline-block;
}

    .addcontainer .addcontainer {
        font-size: 1em;
    }

.overwritten::before {
}

.overwritten::after {
    content: "/";
}

.overwritten + .addcontainer {
    position: relative !important;
    font-size: 1em;
}

.above {
    transform: translateY(-1em) translateX(-50%);
}

    .above.left {
        transform: translateY(-1em) translateX(-150%);
    }

    .above.right {
        transform: translateY(-1em);
    }

    .above.sub {
        transform: translateY(-0.5em) translateX(-150%);
    }

    .above.sup {
        transform: translateY(-1.6em) translateX(-150%);
    }

.below {
    transform: translateY(2.5em) translateX(-50%);
}

.withwavyline .add {
    border-right-width: 1px;
    border-right-style: solid;
    border-bottom-right-radius: 0.8em;
    border-color: grey;
    padding-right: 0.3em;
}

.withwavyline.left .add {
    border-right: none;
    border-bottom-right-radius: 0;
    border-left-width: 1px;
    border-left-style: solid;
    border-bottom-left-radius: 0.8em;
    padding-right: 0;
    padding-left: 0.3em;
}

.subsituteGroup > .above, .subsituteGroup > .below {
    left: 0;
    white-space: nowrap;
}

.subsituteGroup > .above {
    transform: translateY(-1.2em);
}

    .subsituteGroup > .above.sub {
        transform: translateY(-0.6em)
    }

    .subsituteGroup > .above.sup {
        transform: translateY(-1.6em)
    }

.withwavyline.above {
    transform: translateY(-1.2em) translateX(0.4em);
}

    .withwavyline.above.left {
        transform: translateY(-1.2em) translateX(-140%);
    }

    .withwavyline.above.sup {
        transform: translateY(-1.4em) translateX(0.4em);
    }

.subsituteGroup .below {
    transform: translateY(2.5em);
}

.wavyline {
    position: absolute !important;
    top: 1.7em;
    left: -0.6em;
    border-top-width: 1px;
    border-top-style: solid;
    border-left-width: 1px;
    border-left-style: solid;
    border-top-left-radius: 0.8em;
    border-color: grey;
    width: 100%;
    height: 1.2em;
}

.left .wavyline {
    left: 0.6em;
    border-left: none;
    border-right-width: 1px;
    border-right-style: solid;
    border-top-left-radius: 0;
    border-top-right-radius: 0.8em;
}

.ShowEdited .inEdition1 {
    background-color: lightgreen;
}

.ShowEdited .inEdition1Elsewhere {
    color: green;
    counter-increment: elsewhere-num;
}

    .ShowEdited .inEdition1Elsewhere::before {
        content: '\2192\00A0';
    }

    .ShowEdited .inEdition1Elsewhere::after {
        content: '(' counter(elsewhere-num) ')';
        font-size: 0.8em;
        vertical-align: super;
        line-height: 0;
    }

.onlyInEdition {
    display: none;
    color: green;
    position: absolute !important;
    transform: translateY(-1em);
}

    .onlyInEdition.below {
        transform: translateY(0.7em);
    }

.ShowEdited .onlyInEdition {
    display: inline-block !important;
}

.underline {
    text-decoration: underline;
    text-decoration-color: black !important;
    z-index: 10;
    position: relative;
}

.italic {
    font-style: italic;
}

.titreEdition {
    text-align: center;
    padding-bottom: 1em;
}

.switched {
    border-width: 1px;
    border-style: solid;
    border-color: black;
    padding: 0 0.1em;
}

.switchedBottom {
    border-top: none;
}

.switchedTop {
    border-bottom: none;
}

.switched + .switched {
    border-left: none;
}

#zoomcontrols {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    grid-gap: 1vw;
}

.notecall {
    display: none;
    color: lightcoral;
    cursor: pointer;
    font-size: 1.6em;
}

.ShowNotes .notecall {
    display: inline !important;
}

.NoteContainer {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    max-width: 60%;
    background-color: white;
    padding: 0.5em;
    z-index: 20;
    border-style: solid;
    border-color: gray;
    border-width: 1px;
    box-shadow: rgba(0,0,0,0.4) 1px 1px;
    line-height: 1em;
}
