@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --primary-color: #9aabff;
    --primary-text-color: #5E81FF;


    --light-grey: #dddddd;
    --surface1: oklch(100% 0 0);
    --surface2: #F2F2F2;
    --surface3: #E5E6E6;

    --red: #E02967;
    --red-light: #ffdcdc;

    --green: #71DE49;
    --green-light: #d9f7f6;

    --blue: #1073EA;
    --blue-light: #aec0f3;

    --orange: #ffe69c;
    --orange-opac: #ffe69c80;

    --purple: #E1ABE6;
    --purple-opac: #de91ff80;
}

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    font-family: Helvetica, sans-serif;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

html, body {
    height: 100%;
    overflow: clip;
}


.box {
    background-color: white;
    padding: 8%;
    width: 95%;
    margin-left: 2.5%;
    height: 90%;
    font-size: small;
    box-shadow: rgb(0 0 0 / 9%) 0 6px 3px;
}

.box-details {
    background-color: white;
    line-height: 1.5;
    padding: 8%;
    width: 95%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: normal;
    box-shadow: rgba(0, 0, 0, 0.13) 0 7px 5px;
    max-width: 1200px;
    margin: auto;
}

.user-claim {
    font-style: italic;
}

.paper-in-canvas {
    background-color: white;
    border-radius: 1000px;
    width: 95%;
    margin-left: 2.5%;
    height: 90%;
    font-size: small;
    box-shadow: rgb(0 0 0 / 9%) 0 4px 2px;
    cursor: pointer;
}

.paper-in-canvas:hover {
    border: 2px solid var(--blue);
}

.citation-paper-tooltip {
    font-size: x-small;
    max-width: 200px;
    padding: 8px;
    box-shadow: rgb(0 0 0 / 9%) 0 6px 3px;
}

.citation-paper-tooltip > div > p {
    margin-bottom: 8px;
}

.snippet-preview > span:nth-child(2) {
    font-weight: bold;
}

.corpus-background {
    /*background-color: #0F1115;*/
    background-color: white;
}

.corpus-selected {
    fill: #ffae4a;
}

.corpus-selected-2 {
    fill: #87ff4b;
}

.corpus-viewed {
    fill: #3f4685;
}

.corpus-default {
    fill: #1B1F27;
}

.context-box {
    background-color: white;
    font-size: small;
    box-shadow: rgb(0 0 0 / 9%) 0 6px 3px;
    user-select: none;
}

.canvas-tag {
    background-color: var(--blue);
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 4px;
}

.canvas-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.canvas-tags-container > button {
    font-size: 8px;
    min-height: 8px;
    height: 11px;
    width: 11px;
    pointer-events: all;
}

.canvas-box-with-tags > .canvas-tags-container {
    max-height: 12px;
    overflow: hidden;
    /*opacity: 0;*/
    transition: all 0.2s ease-in-out;
}

.canvas-box-with-tags:hover > .canvas-tags-container {
    max-height: 40px;
    opacity: 1;
}

.claim-edit-canvas-button {
    position: absolute;
    right: 5px;
    top: 0;
}

.claim-edit-canvas-button-container > button {
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.claim-edit-canvas-button-container:hover > button {
    opacity: 1;
}
