/* Release calendar */
.release-calendar-container {
    width: 100%;

    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.release-calendar-container .year-button {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.release-calendar-container .games-container::-webkit-scrollbar,
.release-calendar-container::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

.release-calendar-container .games-container::-webkit-scrollbar-track,
.release-calendar-container::-webkit-scrollbar-track {
    background: transparent;
}

.release-calendar-container .games-container::-webkit-scrollbar-thumb,
.release-calendar-container::-webkit-scrollbar-thumb {
    background: transparent;
}

.release-calendar-container .title {
    display: flex;
    flex-direction: column;
}

.release-calendar-container .title h3 {
    position: sticky;
    left: 0;
    top: 0;
    font-size: var(--font-size-articles-head);
    padding-bottom: 0;
}

.release-calendar-container .title span {
    font-size: calc(var(--font-size-articles-head) * 0.5);
    font-weight: bold;
    text-align: left;
    color: var(--color-font-on-separator);
}

.release-calendar-container .games-container {
    position: relative;
    width: 100%;
    scrollbar-width: none;
}

.release-calendar-container .games {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;

    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 0;

    -webkit-overflow-scrolling: touch;
}

.release-calendar-container .game {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 190px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.release-calendar-container .game .platform:empty {
    display: none;
}

.release-calendar-container .game a.image,
.release-calendar-container .game img {
    width: 190px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 5px;
}

.release-calendar-container .game a {
    display: flex;
    font-size: 1.1rem;
}

.release-calendar-container .game h2:hover {
    color: var(--color-font-hover);
}
.release-calendar-container .game h2:not(:empty) {
    background: none;
}

.release-calendar-container p {
    font-size: 0.9rem;
    padding-bottom: 1rem;
}


/* Loading */
.release-calendar-container .game a.image,
.release-calendar-container .game img,
.release-calendar-container .game h2,
.release-calendar-container .game p.date {
    background-color: var(--color-separator);
    background: linear-gradient(
            100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 60%
    ) var(--color-separator);
    background-size: 200% 100%;
    background-position-x: 180%;
    animation: 1s loading ease-in-out infinite;
}

@keyframes loading {
    to {
        background-position-x: -20%;
    }
}

.release-calendar-container .game a.image,
.release-calendar-container .game img {
    display: block;
    width: 190px;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 5px;
}

.release-calendar-container .game h2 {
    height: 3rem;
    border-radius: 5px;
    animation-delay: 0.05s;
}

.release-calendar-container .game p.date {
    height: 1rem;
    border-radius: 5px;
    animation-delay: 0.06s;
}
.release-calendar-container .game p.date:not(:empty) {
    background: none;
}
