:root {
    --color-primary: #3498db;
    --bg-color: #f6efdc;
}

.red {
    color: orangered;
}

/* ------------- LOGO ----------------------- */
.header-v2__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.header-v2__logo svg {
    display: inline-block;
}

/* --- ANIMATION --- */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinning-cog {
    /* Animation: name duration timing-function iteration-count */
    animation: spin 10s linear infinite;
    /* Ensures the cog spins around its true center */
    transform-origin: center;
}

main a {
    text-decoration: none;
}
main a:not(.btn):hover {
    color: hsla(var(--color-primary-h), var(--color-primary-s), var(--color-primary-l), 1);
}

ul.innerpage-menu {
    list-style: none;
}
ul.innerpage-menu li {
    margin-right: 2em;
}

/* upload photos for reptile */
#progressContainer {
    margin-top: 20px;
    height: 10px;
    background-color: #f2f2f2;
    border-radius: 5px;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    background-color: #007bff;
    width: 0;
    transition: width 0.3s ease-in-out;
}

.hidden {
    display: none !important;
}

#message {
    margin-top: 10px;
    text-align: center;
}

.box-suppr-photo {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------- representation tree --- */
.tree {
    --spacing: 1.5rem;
    --radius: 10px;
}

.tree li {
    display: block;
    position: relative;
    padding-left: calc(2 * var(--spacing) - var(--radius) - 2px);
    margin-top: 8px;
}

.tree ul {
    margin-left: calc(var(--radius) - var(--spacing));
    padding-left: 0;
}

.tree ul li {
    border-left: 2px solid #ddd;
}

.tree ul li:last-child {
    border-color: transparent;
}

.tree ul li::before {
    content: '';
    display: block;
    position: absolute;
    top: calc(var(--spacing) / -2);
    left: -2px;
    width: calc(var(--spacing) + 2px);
    height: calc(var(--spacing) + 1px);
    border: solid #ddd;
    border-width: 0 0 2px 2px;
}

.tree summary {
    display: block;
    cursor: pointer;
}

.tree summary::marker,
.tree summary::-webkit-details-marker {
    display: none;
}

.tree summary:focus {
    outline: none;
}

.tree summary:focus-visible {
    outline: 1px dotted #000;
}

.tree li::after,
.tree summary::before {
    content: '';
    display: block;
    position: absolute;
    top: calc(var(--spacing) / 2 - var(--radius));
    left: calc(var(--spacing) - var(--radius) - 1px);
    width: calc(2 * var(--radius));
    height: calc(2 * var(--radius));
    border-radius: 50%;
    background: #ddd;
}

.tree summary::before {
    z-index: 1;
    background: #696 url('/media/svg/expand-collapse.svg') 0 0;
}

.tree details[open] > summary::before {
    background-position: calc(-2 * var(--radius)) 0;
}

.tree span {
    display: inline-block;
    margin-left: 7px;
    line-height: 1em;
}

/* ------------------------- datatable --- */
.datatable td, .dt-layout-row {
    font-size: .9em;
}