
* {
    margin: 0px;
    scrollbar-width: thin;
}

:root {
    --main-bg-color: #F6F2EF;
    --main-nav-color: #000000;
    --main-button-color: #fe6159; /* #fe6159 */
    --progress-bar-preview: #ffb0ac82;
    --table-color: #7b464647;
    --row-border-color: #555555;
    --border-highlight-color: #919191;
    --sentence-highlight: #FFD13B;
    --sentence-playback: #a1e4ff;
    --row-selected: #fff0c0;
    --row-special: #C8F9AD;
    --has-comment: #35fc03;
    --word-highlight: #ffeea1;
    --highlight-bars: #c70000;
    --toggle-highlight: #00a7dd;
    --gold-character: rgba(0, 255, 0, 0.5);
    --aligned-character: rgba(255, 0, 0, 0.5);
}

/* adding 1px offset to icons, dunno why font-awesome icons are off by that when centering but IIWII */
.shifted-pixel {
    transform: translateY(1px);
}


body {
    background-color: var(--main-bg-color);
    font-family: 'Univers';
    height: 100%;
}

button {
    border: none;
    background: none;
}

input:disabled {
    background-color: white;
}

select {
    border-radius: 0;
}

.button-bar {
    margin: 0;
}

.button-bar button {
    margin: 0px 5px;
}

.button-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
}

.modal-90w {
    width: 60vw;
    max-width: 60vw;
    height: 90%;
    background-color: var(--main-bg-color);
}

.modal-body {
    background-color: var(--main-bg-color);
}

.modal-content {
    height: 90%;
}

.aim-box {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    /*height: 75%;*/
    /*flex-direction: row;*/
}

.aim-box-content {
    height: 95%;
    padding: 0;
    /*width: 100%;*/
    /*display: flex;*/
    /*flex-grow: 2;*/
    /*flex-direction: column;*/
    /*min-height: calc(100vh - 200px);*/
}

.aim-checkbox {
    display: grid;
    box-sizing: border-box;
    grid-gap: 0.5em;
    color: var(--color);
    /* background-color: white; */
}

.aim-checkbox__control {
    display: inline-grid;
    width: 1.2em;
    height: 1.2em;
    /* border: 1px solid var(--row-border-color); */
}

.aim-checkbox__control:hover {
    border: 1px solid var(--border-highlight-color);
}

.aim-checkbox-container {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.aim-checkbox-container:hover .aim-checkbox__control {
    border: 1px solid var(--border-highlight-color);
}

.aim-checkbox__control svg {
    transition: transform 0.1s ease-in 25ms;
    transform-origin: bottom left;
}

.checkmark-visible {
    transform: scale(1);
}

.checkmark-hidden {
    transform: scale(0);
}

.checkmark-semi-visible {
    transform: scale(1);
    opacity: 0.5;
}

.dropdown-container {
    position: relative;
}

.dropdown-button {
    border: 1px solid var(--row-border-color);
    background-color: white;
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    z-index: 2;
    border: 1px solid var(--row-border-color);
    background-color: white;
    padding: 0 2px;
    width: 100%;
}

.aim-half-box {
    flex: 1;
}

.audio-elements-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.audio-info-container {
    display: flex;
    flex-direction: row;
    padding-left: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
}

.audio-options-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 1.5rem;
    right: 0;
    z-index: 5;
    border-radius: 2px;
    background-color: var(--row-border-color);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(85,85,85,1);
    -moz-box-shadow: 0px 0px 5px 0px rgba(85,85,85,1);
    box-shadow: 0px 0px 5px 0px rgba(85,85,85,1);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: var(--main-bg-color);
    padding: 0.5rem;
}

.audio-option-row {
    display: flex;
    flex-direction: row;
    padding: 2px 0;
    width: 100%;
}

.audio-option-cell {
    display: flex;
    flex-direction: row;
    padding: 0 5px;
    white-space: nowrap;
}

.audio-player-container {
    display: flex;
    width: 100%;
    max-width: 60vw;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(#00000059, #00000000);
    height: 2rem;
    padding: 0 0.4rem;
}

.audio-player-element {
    display: flex;
    padding: 0 3px;
}

.audio-player-toggle {
    display: flex;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.audio-player-toggle > div:hover {
    background-color: #dadada;
    -webkit-transition: background-color .3s;
    transition: background-color .3s;
}

.audio-progress-container {
    position: relative;
    height: 5px;
    width: 100%;
    max-width: 60vw;
}

.audio-progress-element {
    position: absolute;
    height: 100%;
    width: 100%;
    bottom: 0;
}

.audio-progress-background {
    background-color: var(--main-nav-color);
    z-index: 0;
}

.audio-progress-preview {
    background-color: var(--progress-bar-preview);
    z-index: 2;
}

.audio-progress-bar {
    background-color: var(--main-button-color);
    z-index: 1;
}
.audio-progress-clickarea {
    z-index: 3;
    height: calc(100% + 14px);
    /*transform: translateY(7px);*/
}

.fade-in-out {
    transition: opacity .25s ease-in-out;
    -moz-transition: opacity .25s ease-in-out;
    -webkit-transition: opacity .25s ease-in-out;
}

input[type=range][orient=vertical]
{
    writing-mode: bt-lr; /* IE */
    -webkit-appearance: slider-vertical; /* Chromium */
    width: 8px;
    height: 175px;
    padding: 0 5px;
}

.rowgroup {
    font-family: "Karla", Sans-serif;
}

.defect-text-area {
    position: relative;
    display: flex;
    margin-left: 30px;
    height: 100%;
    width: 100%;
}

.defect-page {
    background-color: darkgrey;
    width: max-content;
}

.flex-float-right {
    margin-left: auto;
}

.image-background {
    background-color: darkgrey;
    width: max-content;
    float: left;
}

.image-content {
    position: relative;
    width: 100%;
    /*height: 95%;*/
}

.defect-inner-page {
    background-color: white;
    height: 100%;
    margin-top: 50;
    font-family: "Karla", Sans-serif;
}

.vertical-line {
    height: 75%;
    width: 1;
    background-color: grey;
}

.flex-item {
    display: flex;
    flex: 1;
}

.image-container {
    /*position: relative;*/
    /*margin-left: 30px;*/
    /*height: 100%;*/
}

.flex-row {
    display: flex;
    justify-content: space-between;
}

.flex-end {
    display: flex;
    justify-content: end;
}

.highlighted-sentence {
    background-color: var(--sentence-highlight);
}

.selected-row, .selected-row input {
    background-color: var(--row-selected) !important;
}

.special-row, .special-row input {
    background-color: var(--row-special) !important;
}

.highlighted-row, .highlighted-row input{
    background-color: var(--sentence-highlight) !important;
}

.has-comment, .has-comment>div>input {
    background-color: var(--has-comment) !important;
}

.highlighted-word {
    background-color: var(--word-highlight) !important;
}

.highlighted-playback {
    border-left: 10px solid var(--highlight-bars);
    border-right: 10px solid var(--highlight-bars);
    margin: 0 -10px;
}

.gold-character {
    background-color: var(--gold-character);
}

.aligned-character {
    background-color: var(--aligned-character);
}

.tr:hover > * {
    border-color: var(--border-highlight-color);
}

.tr:hover * > .aim-checkbox__control{
    border: 1px solid var(--border-highlight-color);
}


.aim-button-group {
    display: flex;
}

.aim-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--main-button-color);
    color: white;
    padding: 10px 20px 10px 20px;
    height: 3rem;
    border: none;
    white-space: nowrap;
    justify-content: center;
    flex: 1;
    flex-basis: auto;
}

.aim-button-disabled {
    display: inline-flex;
    align-items: center;
    background-color: var(--main-button-color);
    color: white;
    padding: 10px 20px 10px 20px;
    height: 32px;
    border: none;
    white-space: nowrap;
    justify-content: center;
    flex: 1;
    flex-basis: auto;
    opacity: 0.5;
}

.aim-toggle-active {
    background-color: var(--toggle-highlight) !important;
}

.aim-toggle-disabled {
    background-color: gray !important;
}


.aim-button-disabled {
    pointer-events: none;
}

.aim-button-a {
    text-decoration: none;
    color: white;
}

.aim-button-a:link {
    text-decoration: none;
    color: white;
}

.aim-button-a:hover {
    text-decoration: none;
    color: white;
}

.aim-button:hover {
    background-color: var(--main-nav-color);
}

.aim-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100%;
    width: 75px;
    position: fixed;
    z-index: 1;
    top: 0;
    background-color: var(--main-nav-color);
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
    font-size: 1.0em;
}

.hover-color:hover {
    color: #6495ED;
}

.aim-menu-divider {
    margin-bottom: 30%;
}

.aim-menu-icon {
    display: flex !important;
    justify-content: center;
    color: inherit;
    margin-bottom: 4px;
}

.aim-menu-item {
    display: flex;
    flex-direction: column;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    margin-bottom: 32px;
}

.aim-menu-item:hover {
    color: var(--main-button-color);
}

.aim-menu-items {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aim-menu-text {
    text-align: center;
    font-size: 10px;
}

.aim-menu-toggle {
    display: flex;
    justify-content: center;
    width: 20%;
    position: relative;
    cursor: pointer;
}

.aim-modal-content {
    width: inherit;
    display: flex;
    justify-content: center;
}

.aim-table {
    background-color: var(--table-color);
    width: 100%;
}

.aim-table-clickable tr:hover {
    background-color: rgb(194, 194, 194);
}

.aim-table-container {
    width: 100%;
    border-bottom: 1px solid darkgray;
}

.aim-table-container > table {
    padding-right: 5px;
}

.aim-table-title {
    display: block;
    font-size: 1.3em;
    margin-top: 50px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.aim-table-input-field {
    width: 100%;
    height: 100%;
    border: none;
}

.button-column {
    display: inline-flex;
    flex-direction: column;
}

.button-sidebar {
    display: flex;
    align-items: end;
    margin-left: 50px;
}

.clickable-text {
    color: var(--main-button-color);
}

.column-button {
    display: inline-flex;
    margin: 5 0 5 0;
}

.col-5, col-6, col-7 {

    padding: 0;
}

.content {
    height: 100%;

}

.custom-row-tooltip {
    pointer-events: none;
    position: absolute;
    box-sizing: border-box;
    width: calc(100% - 55px);
    left: 55px;
    top: 100%;
    background-color: rgb(255, 252, 215);
    color: black;
    border: 1px solid var(--row-border-color);
    z-index: 22;
}

.custom-audio-tooltip {
    pointer-events: none;
    position: absolute;
    box-sizing: border-box;
    background-color: white;
    color: black;
    top: -3rem;
    width: max-content;
    border: 1px solid var(--row-border-color);
    z-index: 22;
    padding: 0 5px;
}

.file-drop-zone {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    border: dashed black 1px;
    width: 100%;
    max-width: 600px;
    height: 100%;
    max-height: 400px;
    background-color: white;
}

.float-right {
    float: right;
}

.filter-container {
    display: flex;
    padding-right: 17px;
}

.filter-dropdown {
    margin-left: 5px;
    height: 1.7em;
}



.foreign-page-content {
    flex-grow: 1;
    width: 100%;
    min-height: calc(100vh - 500px);
}

.header-icon-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px 5px;
}

.justify-left {
    justify-content: left !important;
    padding-left: 2px !important;
}

.icon-highlight:hover {
    color: var(--border-highlight-color);
    /* -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: lightcyan; */
}

.icon-inputfield {
    display: flex;
}

.lit-up-icon {
    color:rgb(0, 0, 0);
}
.lit-up-icon:hover {
    color:rgb(107, 107, 107);
}

.thead {
    margin-bottom: 3px;
}

.thead input {
    max-width: 150px;
    height: 22px;
}

.image-controls {
    position: relative;
    flex-direction: column;
    justify-content: end;
    float: right;
    width: 62px;
    /* height: 100vh; */
}

.last-saved {
    position: relative;
    left: 50%;
}

.login_container {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.login-table {
    text-align: right;
}

.main-container {
    padding: 5 5 5 90;
}

.mouseover-timestamp {
    position: fixed;
    font-family: 'Arial', Arial, sans-serif;
    font-size: 14px;
    padding: 2px 5px;
    transform: translateX(-50%);
    color: white;
    background-color: rgb(71, 71, 71);
    /*
    text-shadow: -1px 1px 0 #000,
                  1px 1px 0 #000,
                  1px -1px 0 #000,
                 -1px -1px 0 #000;;
                 */
}

.mt10 {
    margin-top: 10px;
}

.navbar-container {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    z-index: 2;
    background-color: var(--main-nav-color);
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.order-navbar {
    display: flex;
}

.order-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0 5px;
    text-decoration: none;
    color: var(--border-highlight-color);
    cursor: pointer;
}
.order-nav-item:hover {
    color: var(--main-button-color);
}

.order-nav-current {
    color: var(--main-nav-color);
}

.order-nav-divider {
    box-sizing: border-box;
    border-left: 1px solid var(--row-border-color);
    width: 1px;
}

.order-title-bar {
    display: flex;
    border-bottom: 1px solid var(--row-border-color);
    margin-bottom: 2px;
    padding: 0 5px;
}

.padded-table-cell {
    padding-right: 00px;
}

.page-button-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.page-button {
    color: black;
}

.page-button:hover {
    color: var(--main-button-color);
}

.page-color {
    background-color: rgb(255, 0, 0);
}

.page-controls i{
    color: inherit;
}

.page-controls {
    display: flex;
    flex-direction: row;
    background-color: white;
    padding: 3px;
}

.page-control-input {
    position: absolute;
    width: 62px;
    text-align: center;
    opacity: 0;
    margin-top: -3px;
    z-index: 2;
}

.page-control-input:focus {
    opacity: 1;
}

.page-controls-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    right: 0px;
    bottom: 0px;
    height: 95vh;
    padding-top: 90px;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.page-indicator {
    position: relative;
    min-width: 53px;
}
.page-indicator::before {
    content : "";
    position: absolute;
    left    : 5px;
    bottom  : 0;
    height  : 1px;
    width   : 52;
    border-bottom: 2px solid black;
}

.page-label {
    display: flex;
    color: black;
    padding: 5px 5px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-numbering {
    display: flex;
    width: 100%;
    justify-content: center;
}

.centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.manual-row-end {
    height: calc(100%);
    width: 1px;
    border-right: 1px solid var(--row-border-color);
    box-sizing: border-box;
}

.highlighted-and-picked-row, .highlighted-and-picked-row input {
    background-color: rgb(214, 188, 58) !important;
}

.selected-and-picked-row, .selected-and-picked-row input {
    background-color: rgb(221, 209, 150) !important;
}

.picked-row, .picked-row input {
    background-color: rgb(203, 229, 255) !important;
}

.simple-button {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    background-color: white;
    color: black;
    border: 1px solid var(--row-border-color);
    padding: 0 0.5rem;
    margin-right: 2rem;
    white-space: nowrap;
    justify-content: center;
    flex: 1;
    flex-basis: auto;
}
.simple-button:hover {
    background-color: var(--main-button-color) !important;
}

.small-button {
    height: 36px;
}

.small-text {
    font-size: small;
}

.fa-disabled {
    opacity: 0.6;
}

table:last-child {
    width: 100%;
    font-size: 1em;
}

table a {
    text-decoration: none;
    color: inherit;
}

table a:link {
    text-decoration: none;
    font-weight: bold;
    /*color: white;*/
}

table a:hover {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

td {
    padding: 5px 2px;
    width: 25%;
}

tr {
    height: 16px;
}

th {
    font-weight: normal;
    user-select: none;
    white-space: nowrap;
    width: 25%;
}

table.frontpage-table td:first-child {
    padding-left: 20px;
}

table.frontpage-table th:first-child {
    padding-left: 20px;
}

thead {
    border-bottom: 1px solid var(--row-border-color);
}

tbody {
    font-family: "Karla", Sans-serif;
}

.table-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.table-info-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: smaller;
    white-space: nowrap;
}

.table-searchbar {
    max-width: 80%;
}

.column {
    height: 100%;
    padding: 0;
}

.tablecell-no-background {
    border: none;
    background-color: var(--main-bg-color);
}

.td {
    flex-direction: column;
    justify-content: center;
    word-break: break-word;
    border: 1px solid var(--row-border-color);
    border-width: 1px 0;
}

.tbody .td {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    word-break: break-word;
    border: 1px solid var(--row-border-color);
    border-width: 1px 0;
    box-sizing: border-box;
}



.tbody > :first-child {
    overflow-y: scroll !important;
}

.th {
    padding-right: 0px;
}

.index {
    padding: 0 23px;
}

.tr {
    background-color: white;
    margin:5px 0 0 0;
    user-select: none;
}

.tr > :nth-child(1) {
    border-color: var(--main-bg-color);
    background-color: var(--main-bg-color) !important;

}

.tr > :nth-child(2) {
    border-left-width: 1px;
}

.thead > :nth-child(1) {
    /* padding-left: 5px; */
    text-align: center;
}

.tr > :last-child {
    border-right-width: 1px;
}

.title {
    margin: 5 0 5 0;
    font-size: 1.5rem;
}

.tooltip-container {
    position: relative;
}

.tooltip-box {
    position: absolute;
    width: 370px;
    background: var(--row-border-color);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    bottom: 0px;
    left: -390px;
    display: none;
}

.tooltip-box.visible {
    display: block;
}

.selection-table {
    border-collapse: separate;
    border-spacing: 0 5px;
}

.vertical-center {
    display: flex;
    align-items: center;
}

.wide-context-button {
    position: absolute;
    left: -7.5rem;
    top: -0.45rem;
    background-color: white;
    border: 1px solid var(--row-border-color);
    width: max-content;
    padding: 2px;
    z-index: 22;
    cursor: default;
}

.wide-context-button:hover {
    background-color: var(--main-button-color);
}


.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*  SPINNER */

.spinner-parent {
    margin: auto;
    text-align: center;
}

.lds-spinner {
    vertical-align: middle;
    color: official;
    display: block;
    position: relative;
    width: 80px;
    height: 80px;
    margin: auto;
}

.lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3px;
    left: 37px;
    width: 6px;
    height: 18px;
    border-radius: 20%;
    background: #000000;
}
.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}
@keyframes lds-spinner {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes tilt-shaking {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0eg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* Modified toggle input from https://www.w3schools.com/howto/howto_css_switch.asp */
/* The switch - the box around the slider */
.WC3switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 24px;
  }

  /* Hide default HTML checkbox */
  .WC3switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  /* The slider */
  .WC3slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--main-button-color); /* OLD: #2196F3 */
    -webkit-transition: .1s;
    transition: .1s;
  }

  .WC3slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .1s;
    transition: .1s;
  }

  input:checked + .WC3slider {
    background-color: var(--main-button-color);
  }

  input:focus + .WC3slider {
    box-shadow: 0 0 1px var(--main-button-color);
  }

  input:checked + .WC3slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }



