:root {
    --background: #fff;
    --background-2: #f0f0f0;
    --background-3: #d8d8d8;
    --background-3-hover: #cecece;
    --background-4: #aaaaaa;
    --text: #000;
    --text-2: #4d4d4d;
    --text-3: #868686;
    --white: #fff;
    --grey: #b0b0b0;
    --black: #000;
    --releasing: #5be420;
    --notyet-releasing: #f29633;
    --transparent: rgba(72, 72, 72, 0.15);
    --border-radius: 1em;
    --scrollbar-radius: 8px;
    --fonts-monospace: "Ubuntu Mono", Consolas, Menlo, Monaco, "Lucida Console, Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #000;
        --background-2: #181818;
        --background-3: #2b2b2b;
        --background-3-hover: #3b3b3b;
        --background-4: #606060;
        --text: #fff;
        --text-2: #b0b0b0;
        --text-3: #696969;
        --transparent: rgba(255, 255, 255, 0.15);
        color-scheme: dark;
    }
}

::-webkit-scrollbar {
    width: 15px;
    background: var(--background-2);
    z-index: 5;
}

::-webkit-scrollbar:vertical {
    border-radius: 0 calc(var(--scrollbar-radius) - 1px) calc(var(--scrollbar-radius) - 1px) 0;
}

::-webkit-scrollbar:horizontal {
    border-radius: 0 0 calc(var(--scrollbar-radius) - 1px) calc(var(--scrollbar-radius) - 1px);
}

::-webkit-scrollbar-thumb {
    background-color: var(--background-3);
    border-radius: var(--scrollbar-radius);
    border: 4px solid var(--background-2);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--background-4);
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-color: var(--background-3-hover) var(--background-2);
    }
}

::selection {
    background: var(--app-accent-dark);
}

html {
    -webkit-text-size-adjust: 100%;
}

* {
    font-family: 'Jost Variable', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-rendering: optimizeLegibility;
}

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

body {
    background-color: var(--background-2);
    color: var(--text);
    overflow: hidden;
    margin: 0;
}

body.noscroll {
    overflow: hidden;
}

h1 {}

.container[data-section="dashboard"] h2 {
    font-size: 2rem;
    font-weight: 500;
    margin: 0;
}

pre {
    padding: 0.2em 0.4em;
    font-size: .8em;
    margin: 0;
    overflow-x: auto;
    border-radius: 6px;
    font-family: var(--fonts-monospace);
    background-color: var(--background-2);
}

.elements-wrapper {
    display: flex;
    /*! flex-direction: column; */
    justify-content: center;
    /* align-items: center; */
    padding: 0 10px;
    gap: 10px;
    /*! width: 300px; */
    /*! height: 450px; */
    /*! background: black; */
    /*! border-radius: 15px; */
    /*! flex: none; */
    /*! order: 0; */
    /*! flex-grow: 0; */
    flex-wrap: wrap;
    /*! align-content: center; */
}

.upper {
    display: flex;
    /* flex-direction: column; */
    /* justify-content: center; */
    align-items: center;
    /* padding: 0px; */
    gap: .3em;
}

.dates {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    padding: 0px;
    /* font-size: .8em; */
    /* width: 100%; */
    justify-content: space-between;
}

.elements-wrapper:not(#current) .dates:has(> :last-child:nth-child(1)) {
    justify-content: center;
}

.elements-wrapper .start-date {
    color: var(--grey);
}

.elements-wrapper#current .start-date .rewatched {
    top: .2em;
    position: relative;
}

.elements-wrapper#watched:not(.watched-movies-wrapper) .element .informations:not(.top) .more {
    display: none;
}

.elements-wrapper#watched:not(.watched-movies-wrapper) .element:hover .informations:not(.top) .more {
    display: revert;
}

.informations>.episodes-info {
    font-size: .8em;
    margin-top: -.5em;
    text-align: center;
}

.more {
    font-size: .8em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 .4em;
    align-self: stretch;
    background: #17171752;
    border-radius: var(--border-radius);
    backdrop-filter: blur(3px);
    outline: 1px solid var(--tAccentColor, #4848488a);
}

.more:has(> :last-child:nth-child(1)) {
    justify-content: center;
}

.more:empty {
    display: none !important;
}

.rating {
    overflow: clip;
    /* padding: 1em 1em 50% 50%; */
    top: 0;
    right: 0;
    /* border-radius: calc(var(--border-radius) + .1rem); */
    /* position: absolute; */
    font-size: .8em;
    display: flex;
    /* flex: none; */
    gap: 1px;
    margin-right: .2em;
}

svg {
    fill: currentColor;
    height: 1em;
}

.elements-wrapper .element.releasing::before,
.item .releasing::before,
.image.releasing::before {
    content: "";
    border-radius: 50%;
    background: var(--releasing);
    /* box-shadow: 0 0 5px rgba(100, 236, 43, 0.8); */
    z-index: 2;
    height: 1em;
    width: 1em;
    top: -0.4em;
    position: absolute;
    left: -0.4em;
    animation: pulse 2s infinite;
}

.item .releasing::before {
    height: .75em;
    width: .75em;
    top: -0.2em;
    left: -0.2em;
}

.image.releasing::before {
    height: 1.5em;
    width: 1.5em;
    top: -0.7em;
    left: -0.7em;
}

.releasing.notyet::before {
    background: var(--notyet-releasing) !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
}

@keyframes pulse-dark {
    0% {
        box-shadow: 0 0 0 0px rgba(255, 255, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

@media (prefers-color-scheme: dark) {
    .elements-wrapper .element.releasing::before,
    .item .releasing::before,
    .image.releasing::before {
        animation: pulse-dark 2s infinite;
    }
}

input {
    accent-color: var(--app-accent-dark);
}

label {
    user-select: none;
    margin-left: 3px;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--background-2);
}

.loader-container.hidden {
    display: none;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--background-3);
    border-bottom-color: var(--app-accent);
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1em;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#nojs {
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    color: #856404;
    margin: 1rem;
    border-radius: 4px;
}

#nojs a {
    font-weight: 500;
}

#nojs a:hover {
    text-decoration: underline;
}

h3>.series-info {
    font-size: 1em;
}

.elements-wrapper.elements-manga .element {
    --border-radius: .8em;
    height: calc(var(--element-width) * 1.425);
}

.elements-wrapper.elements-planned .element.releasing.notyet {
    opacity: .35;
    transition: all .2s ease-in-out;
}

.elements-wrapper.elements-planned .element.releasing.notyet:hover {
    opacity: 1;
}