@import "vars.css";

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    color: var(--blackColor) !important;
    background-color: #ECECEC !important;
}


#viewer {
    background-color: #ECECEC;
}

section {
    touch-action: none;
    box-sizing: border-box;
}

body {
    padding-top: 56px;
    font-family: 'Inter', sans-serif !important;
}

.nav {
    display: flex;
    justify-content: flex-end;
    padding: 4px;
    background-color: #0078D4;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
}

.nav button, .nav label {
    padding: 8px;
    background: #0078D4;
    color: var(--whiteColor);
    margin: 4px;
    border: none;
    border-radius: 4px;
}

.nav button:hover, .nav label:hover {
    background: #1976D2;
    cursor: pointer;
}

input[type="file"] {
    /*display: none;*/
}

.controls {
    position: fixed;
    top: 120px;
    box-shadow: 0 0 29px 0 rgba(68, 88, 144, 0.12);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 999;
}

.controls button {
    background: var(--whiteColor);
    padding: 8px;
    border: 1px solid #F5F5F5;
    border-radius: 0px 8px 8px 0px;
    color: var(--blackColor);
}

.controls button:hover, .controls button:active, .controls button:focus, .controls button:visited {
    cursor: pointer;
    border: 1px solid #F5F5F5;
    background: var(--whiteColor);
    color: var(--blackColor);
    box-shadow: none;
}

#empty-message-container {
    /*margin-top: 200px;*/
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#empty-message-container h1 {
    text-align: center;
}

/*.freeTextAnnotation {*/
/*    background: green;*/
/*}*/

.pdfViewer .page {
    border: none;
    margin: 10px auto;
    box-shadow: 0 0 29px 0 rgba(68, 88, 144, 0.12);
}

#annotation-layer {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.2;
    line-height: 1.0;
}

.navContainer {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
}

#annotation-layer > section {
    color: transparent;
    position: absolute;
    white-space: pre;
    cursor: text;
    transform-origin: 0% 0%;
}

#annotation-layer > .linkAnnotation > a {
    position: absolute;
    font-size: 1em;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#upload-button {
    width: 150px;
    display: block;
    margin: 20px auto;
}

#file-to-upload {
    display: none;
}

#pdf-main-container {
    width: 100%;
    margin: 20px auto;
}

#pdf-loader {
    display: none;
    text-align: center;
    color: #999999;
    font-size: 13px;
    line-height: 100px;
    height: 100px;
}

#pdf-contents {
    display: none;
}

#pdf-meta {
    overflow: hidden;
    margin: 0 0 20px 0;
}

#pdf-buttons {
    float: left;
}

#page-count-container {
    float: right;
}

#pdf-current-page {
    display: inline;
}

#pdf-total-pages {
    display: inline;
}

#pdf-canvas {
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

#page-loader {
    height: 100px;
    line-height: 100px;
    text-align: center;
    display: none;
    color: #999999;
    font-size: 13px;
}

.ic-resize-handle-n {
    top: -3px;
    left: 50%;
    transform: translate(-50%, 0%);
}


.ic-resize-handle-nw {
    top: -3px;
    right: -3px;
}

.ic-resize-handle-ne {
    top: -3px;
    left: -3px;
}

.ic-resize-handle-w {
    top: 50%;
    right: -3px;
    transform: translate(0%, -50%);
}

.ic-resize-handle-e {
    top: 50%;
    left: -3px;
    transform: translate(0%, -50%);
}

.ic-resize-handle-sw {
    bottom: -3px;
    right: -3px;
}

.ic-resize-handle-se {
    bottom: -3px;
    left: -3px;
}

.ic-resize-handle-s {
    bottom: -3px;
    left: 50%;
    transform: translate(-50%, 0%);
}

.ic-resize-handle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--whiteColor);
    z-index: 999;
    border: 1px solid #0288D1;
    border-radius: 50%;
}

.custom-file-upload {
    margin-bottom: 0;
}

.selected {
    border: 1px solid #0288D1;
}

.pdf-title {
    border-left: 1px solid var(--whiteColor);
    padding-left: 16px;
    color: var(--whiteColor);
    overflow: hidden;
    max-width: 50ch;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.directory {
    padding: 4px 8px;
}

.directory input[type="radio"] {
    margin: 4px;
    vertical-align: middle;
}

.directory label {
    margin: 0;
    padding-left: 8px;
    vertical-align: middle;
}

/***    left menu ****/

/***********************  TOP Bar ********************/

.dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#dropdown-menu {
    width: inherit;
    height: 35px;
    margin-left: 8px;
    background: #fafafa;
    color: #6d7fcc;
    border-color: #6d7fcc;
    border-radius: 8px;
    cursor: pointer;
}

#interact-annotation-page {
    margin-bottom: 8px;
}

.apply-button-container {
    margin: 12px;
    display: flex;
    align-items: left;
}

.apply-button {
    background: #fafafa;
    color: #6d7fcc;
    border: 1.5px solid #6d7fcc;
    border-radius: 20px;
    padding: 6px 24px;
    /*width: 100%;*/
    cursor: pointer;
}

.apply-button:hover {
    background: #6d7fcc;
    color: var(--whiteColor);
    border: 2px solid #6d7fcc;
    border-radius: 20px;
    padding: 6px 24px;
}

.apply-button:last-child {
}

#sidebar-toggle {
    display: none;
}

#sidebar.active {
    display: none !important;
}

.annotation-number-circle {
    background: #0288D1;
    width: 30px;
    height: 30px;
    color: var(--whiteColor);
    border-radius: 50%;
    display: flex; /* or inline-flex */
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none;
}

.popover-hover:hover {
    background-color: #e6f6ff;
    border-radius: 10px;
}

.apply-suggestion-button-container {
    display: flex;
    flex-direction: column;
    margin: 6px;
}

/* modal styles */
.modal-content {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 319px !important;
    pointer-events: auto;
    background-color: var(--whiteColor);
    background-clip: padding-box;
    border: none;
    border-radius: 8px;
    outline: 0;
}

.btn-primary {
    background-color: var(--blueColor) !important;
    color: var(--whiteColor);
}

.btn:hover {
    background-color: #0076FC !important;
    border-color: transparent !important;
}

.btn-border {
    border-color: var(--blueColor);
    border-radius: 4px;
    margin-left: 24px;
    margin-top: 24px;
}

#access-url {
    color: var(--blueColor)
}

#language-changer {
    margin-left: 6px;
    margin-right: 6px;
    border-radius: 5px;
    padding: 5px;
    border: none;
    background: var(--whiteColor);
}


.btn {
    font-family: Inter, 'sans-serif' !important;
}

.specimen-annotation {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    font-size: 8px;
    background-color: rgba(51, 51, 255, 0.4);
}

#dotted-rectangle {
    z-index: 9999999999 !important;
    position: absolute;
    border: 1px dashed black;
    display: none;
}

#label-header-save-btn .btn-light:focus {
    color: white !important;
}

#submit-btn {
    opacity: 0.5;
    cursor: not-allowed;
}