:root {
    --lirec-color: #1f2747;
    --green-lirec: #00B960;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #000;
    background-color: #fff;
    width: 100%;
    height: 100%;
}

button:focus {
    outline: 0 !important; /* get rid of the blue for buttons */
}

p {
    font-size: 14pt;
}

html {
    height: 100%;
}

samp {
    font-size: 1.3em;
}

a {
    color: #000;
    background-color: #fff;
}

sup a {
    text-decoration: none;
}

hr {
    margin-left: 90px;
    height: 1px;
    color: #000;
    background-color: #000;
    border: none;
}

.rotate {
    transform: rotate(-90deg);
    filter: progid:dximagetransform.microsoft.basicimage(rotation=3); /* Internet Explorer */
    position: relative;
    top: 10px;
}

.score {
    font-size: 72px;
    font-weight: bold;
    text-align: center;
    user-select: none;
}

#result-export {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    user-select: none;
    color: var(--lirec-color);
    border-width: 0;
    padding-bottom: 8px;
    padding-top: 8px;
}

#result-export:hover {
    cursor: pointer;
    color: var(--green-lirec);
}

.ruleButton {
    display: inline-block;
    align-self: center;
    color: white;
    background: red;
    border-radius: 5px;
    border: 1px solid red;
    cursor: pointer;
    margin: 2px;
}

#content {
    position: relative;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: auto;
}

#page {
    width: 80%;
    aspect-ratio: 0.70710678118; /* 1/sqrt(2) */
    background: #fff;
    margin: 2rem 10% !important; /* Some shitty js code is setting a margin and I have been unable to find it */
    border-radius: 3px;
    padding: 5rem;
}

header {
    width: 100%;
    z-index: 1;
    position: fixed;
    background-color: white;
}

#sidePanelBar, #logoLirecContainer, #toolbarPanelContinuation {
    width: 10rem;
    height: 100%;
    background-color: var(--lirec-color);
}

#logoLirecContainer {
    height: calc(100% + 2px); /* +2px in order to cover the bottom border of the parent element */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}

#logoLirec {
    max-width: 100%;
    max-height: 100%;
    flex-grow: 0;
    flex-shrink: 0;
}

main {
    padding-top: 8rem; /* Same as header height */
    display: flex;
    flex-direction: row;
}

.nav {
    /* bootstrap class extend */
    font-weight: 600;
    line-height: 1.3;
    margin-left: 5px;
    margin-right: 5px;
    -webkit-user-select: none;
    /* Safari 3.1+ */
    -moz-user-select: none;
    /* Firefox 2+ */
    user-select: none;
}

.nav p {
    font-size: 12pt;
}

a.nav-link {
    padding: 5px;
    height: 100%;
    background-color: transparent;
    color: #777;
}

a.nav-link:hover {
    color: black;
}

a.nav-link.active {
    color: black !important;
    /* #0056b3 blue */
}

a.nav-link p {
    margin: 0;
}

a.nav-link p span {
    font-weight: 400;
}

li.nav-item {
    display: block;
}

/* images dialog */
.modal-images {
    overflow-x: auto;
    white-space: nowrap;
}

.web-img {
    border: 2px solid #fff;
    width: 100px;
}

.web-img:hover {
    border: 2px solid #4b4;
    /* #bbb; */
    border-radius: 8px;
}

.custom-file-input~.custom-file-label::after {
    visibility: hidden;
}

/*  divers */
#lexique3-connection {
    display: none;
    background-color: #f6f6f6;
}

/* loaderB32 */
.loader {
    position: fixed;
    z-index: 1100;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    margin-left: -50px;
}

/* Mobile view */

@media (max-width: 800px) {
    #page {
        width: calc(100% - .5rem + 10px - 80px); /* 100% - page margin + js offset - block cmd width */
        margin: .5rem 0 .5rem .5rem !important;
        padding: 2rem;
    }
}
