@import "assets/css/excon.css";

/* Conteneur d'affichage pour les schémas interactifs */
.diagram-container {
  width: 100%;
  height: 550px;
  border: 1px solid var(--table-border-color, #ccc);
  border-radius: 6px;
  margin: 1.5rem 0;
  overflow: hidden;
  background-color: var(--bg);
}

.diagram-container object {
  width: 100%;
  height: 100%;
}

/* Inversion de couleurs pour les thèmes sombres (Option 2) */
.coal .diagram-container,
.navy .diagram-container,
.ayu .diagram-container {
  filter: invert(0.9) hue-rotate(180deg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Excon-Variable', sans-serif;
    font-weight: 900;
}

h1.menu-title {
    color: #dc7228;
    margin-bottom: 10px;
    font-weight: 900;
}

.sidebar-scrollbox::before {
    content: "";
    display: block;
    height: 100px;
    background: url("./assets/logo/svg/color/logo-mascot-stare.svg") no-repeat center;
    background-size: contain;
    margin: 10px 0;
}


blockquote.caroot-stare {
    position: relative;
    padding-left: 80px;
    border-left: 4px solid #f97316;
    min-height: 60px;
    padding-top: 10px;
    padding-bottom: 10px;
}

blockquote.caroot-stare::after {
    content: "";
    position: absolute;
    left: 10px;
    width: 60px;
    height: 60px;
    background-image: url('./assets/logo/svg/color/stare.svg');
    background-size: contain;
    background-repeat: no-repeat;
    bottom: 0;
}

/* Styling for the Caroot blockquote */
blockquote.caroot {
    position: relative;
    padding-left: 80px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-left: 4px solid #169af9;
    min-height: 60px;
}

blockquote.caroot:after {
    content: "";
    position: absolute;
    left: 20px;
    width: 60px;
    height: 80px;
    background-image: url('./assets/logo/svg/color/mascot.svg');
    background-size: contain;
    background-repeat: no-repeat;
    bottom: 0;
}

.human-written {
    position: relative;
    margin: 1.5em 0 1.5em;
    padding: 2.4em 1.2em 0.2em;
    border: 1px dashed #dc7228;
    border-left: 4px solid #dc7228;
    border-radius: 4px;
}

.human-written h2, .human-written h3, .human-written h4, .human-written h5, .human-written h6 {
    margin-block-start: 0em;
}

.human-written::before {
    content: "\270D  Human-written";
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.2em 0.8em;
    font-family: 'Excon-Variable', sans-serif;
    font-size: 0.8em;
    font-weight: 700;
    color: #fff;
    background-color: #c2410c;
    border-bottom-left-radius: 4px;
}

.human-written[data-by]::before {
    content: "\270D  Written by " attr(data-by);
}

.part-title {
    font-family: 'Excon-Bold', sans-serif;
}

.easter-egg-book {
    font-family: "Georgia", "Garamond", "Times New Roman", serif;
    font-size: 1.05em;
    line-height: 1.6;
    color: #2b2b2b;
    text-align: justify;
    background-color: #fdfbf7;
    padding: 2.5em 3em;
    margin: 2em auto;
    max-width: 550px;
    border: 1px solid #eaeaea;
    border-radius: 2px;
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.05);
}


.easter-egg-book p {
    margin: 0 !important;
    text-indent: 1.5em;
}

.easter-egg-book p:first-of-type,
.easter-egg-book p.no-indent {
    text-indent: 0;
}

.easter-egg-book .scene-break {
    text-align: center;
    text-indent: 0;
    margin: 1.5em 0 !important;
    letter-spacing: 0.5em;
}

.easter-egg-book .tbc {
    text-align: right;
    font-style: italic;
    text-indent: 0;
    margin-top: 2em !important;
}

@media (prefers-color-scheme: dark) {
    html:not(.light) .easter-egg-book {
        background-color: #1e1e1e;
        color: #d4d4d4;
        border-color: #333;
        box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.3);
    }
}