:root {
    --color-text: rgba(255, 255, 255, 0.87);
    --color-bg: #f8f8f8cd;
    --color-delete: #e74c3c;
    --color-tooltip: #af8b9a;
    --color-squircle: #5c839c;
    --color-accent: #3f4b4d;
    --color-button: #fff;
    --color-pill: #ffffff;
    --gap-size: 12px;
    --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.43, 0.09, 0.38, 2.56);

    /*** PARAMÉTRAGE BLUEBERRY HILLS ***/
    --policeprincipale:
        /*'Euphoria Script', cursive; */
        "titreh1";
    --policesecondaire: 'Questrial', sans-serif;
    --policetertiaire: 'Abril Fatface', serif;
    --policeautre: 'Montserrat', sans-serif;
    --soustitre: 'soustitre';

    --h1: 35px;
    --h2: 20px;
    --h3: 13px;
    --textsize: 13px;

    --couleurprincipale: #b5927c
        /*607d8e*/
    ;
    --couleursecondaire: #789b9a
        /*950a10*/
    ;
    --couleurtertiaire: #64647c;
    --couleurquaternaire: #404359;
    --couleurautre: #788f6f;
    --couleurbis: #639995;
    --couleurter: #c8bcbc;
    --couleurquat: #bbabab;
    --couleurquin: #74768a;

    --couleurfond1: #e7e7e6;
    --couleurfond2: #a49a99;

    --whiteblack: #f0f0f0;

    --combattants: #76554C;
    --tyrans: #635E58;
    --dieux: #756659;
    --victimes: #695975;
    --autruches: #684B75;
    --insouciants: #514752;
}

/* Animation Keyframes */
@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-moz-keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-ms-keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-o-keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    color: #707070;
    background-color: var(--color-bg);
    font-family: 'Open Sans', helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-animation: fadein 1.5s;
    -moz-animation: fadein 1.5s;
    -o-animation: fadein 1.5s;
    animation: fadein 1.5s;
}

body * {
    word-wrap: break-word !important;
    -moz-hyphens: auto !important;
    hyphens: auto !important;
}


a {
    text-decoration: none;
    color: var(--color-squircle);
    font-size: 12px;
}

#sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 175px;
    overflow: auto;
    margin-right: 5px;
    z-index: 999 !important;
    background: var(--couleurfond1);
    border-left: 1px solid var(--couleurfond2);
}

#sidelinks {
    margin-top: 50vh;
    transform: translateY(-50%);
}

#header {
    margin: 50px 25%;
    max-width: 500px;
    text-align: center;
}

#title {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1;
    color: var(--couleurquaternaire);
}

.subtitle {
    margin-top: 5px;
    font-size: 11px;
    color: #74768a90;
}

.box_horizontale {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: center;
}

.box {
    width: 30%;
}

.box ul {
    display: flex;
    list-style-type: none;
    flex-basis: max-content;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 5px;
    background: var(--couleurfond1);
    margin: 2;
}

a.selected {
    font-weight: 700;
    color: #000000;
}

.box .choix {
    display: block;
    border: 1px solid rgba(231, 231, 231);
    padding: 2px;
    background-color: white;
    flex-grow: 1;
}

.box .title {
    width: 100%;
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 5px;
}

.tous {
    width: 100% !important;
    display: inline-block;
}


#container {
    margin: 50px 12.5%;
    max-width: 1000px;
}

/** boîte personnage **/
.bot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding: 5px;
    margin: 5px;
    border: 3px solid;
    border-color: rgba(255, 255, 255, 0.4);
    width: calc(33% - 30px);
}

.bot img {
    width: 100px;
    height: 120px;
    object-fit: cover;
}

.image-container {
    position: relative;
}

.overlay {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    opacity: 0;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.867);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.image-container:hover .overlay {
    opacity: 1;
}

.avatar {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px;
    text-align: center;
}

.info-container {
    width: 55%;
    margin: 10px;
}

.doublon {
    height: 25px;
    text-align: center;
    overflow: hidden;

}

.doublon::-webkit-scrollbar {
    display: none;
    width: 0px;
}

.condition {
    margin-top: 5px;
    max-height: 40px;
    overflow: auto;
    font-size: 10px;
    text-align: justify !important;
}

.chrono {
    margin-top: 15px;
    height: 60px;
    overflow: auto;
    font-size: 12px;
    text-align: justify;
}

.lien {
    margin-top: 15px;
    height: 40px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.univers {
    text-align: center;
    font-size: 11.5px;
    font-weight: bold;
    margin-top: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.586);
    margin-bottom: 5px;
}

.condition strong,
.chronologie strong,
.doublon {
    font-size: 10px;
    text-transform: uppercase;
}

.type,
.lien-scenario,
.feat {
    font-size: 12px;
    margin-bottom: 5px;
    text-align: center;
}

.nom {
    background-color: #82749d;
    color: #e8e5f0;
    padding: 2px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 10px;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    height: 10px;
}

.pris .image-container img,
.pris {
    border: 5px solid var(--color-tooltip);
}

.pris .info-container .nom {
    background-color: var(--color-tooltip) !important;
}


.legende {
    font-family: Oswald;
    font-size: 15px;
    width: 40%;
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.legende>div {
    margin: 5px;
}

.pris lk,
.scenario lk {
    color: var(--color-tooltip)
}


.scenario .image-container img,
.scenario {
    border: 5px solid var(--couleurautre);
}

.scenario .info-container .nom {
    background-color: var(--couleurautre) !important;
}

.filtre_quatre a {
    display: block;
    text-align: center;
    padding-bottom: 2px;
    border: 1px solid rgba(231, 231, 231, 0.1);
    padding: 2px;
    margin: 3px;
    margin-top: 5px;
}

.filtre_quatre .title {
    text-align: center;
    font-size: 13px;
    font-weight: bold;
}

.filtre_quatre ul {
    margin-left: -35px;
}