@font-face { 
    font-family: rmfamily;
    src: local("Latin Modern"), url('/NewCM10-Book.otf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: rmfamily;
    src: local("Latin Modern"), url('../../NewCM10-Bold.otf');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: rmfamily;
    src: local("Latin Modern"), url('../../NewCM10-BookItalic.otf');
    font-weight: normal;
    font-style: italic;
}

@font-face { 
    font-family: rmfamily;
    src: local("Latin Modern"), url('../../NewCM10-BoldItalic.otf');
    font-weight: bold;
    font-style: italic;
}

body {
    font-family: "rmfamily";
    font-size: 12pt;
    color-scheme: normal;
    background-color: #fffffc;
    text-align: justify;
}

pre {
    text-align: left !important;
}

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

a:not(.plain-anchor) {
    color: #f43753;
    font-weight: bold;
}

.note-overlay {
    position: fixed;
    width: 100vw;
    height: 100%;
    z-index: 800;
    color: none;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0px;
    overflow-y: hidden;
    overflow-x: visible;
    pointer-events: none;
}

.note-overlay:popover-open {
    display: flex;
    align-items: end;
    justify-content: center;
}

.note-wrapper {
    position: absolute;
    padding: 1ch;
    max-height: 15em;
    min-height: 5em;
    width: min(80ch, 96vw);
    color: black;
    background: white;
    bottom: 0px;
    overflow-x: visible;
    overflow-y: scroll;
    pointer-events: visible; 
}

