#credits-cutscene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0);
    display: flex;
    z-index: 1000;
    opacity: 0;
    
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

#cutscene-items-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#cutscene-items-container p {
    color: white;
    font-family: 'Mago', sans-serif;
    font-size: 32px;
}

#cutscene-items-container h1, #cutscene-items-container h2 {
    color: white;
    font-family: 'OldePixel', sans-serif;
    font-size: 24px;
    margin: 0;
    border-bottom: 4px solid white;
    margin-top: 64px;
}

#cutscene-items-container.scroll_animation {
    animation: scroll-animation 87s linear forwards; /*87s*/
}

@keyframes scroll-animation {
    to {
        transform: translateY(-350vh);
    }
}

#cutscene-credits-sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    transform: translateY(150vh);
}

.credits-section {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

#credits-cutscene .credits-section p {
    margin-top: 16px;
}

.credits-section p:first-child {
    text-align: right;
}

.credits-section p:last-child {
    text-align: left;
}

#cutscene-skip-button {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

#cutscene-skip-button p {
    color: #747474;
    font-family: 'Mago', sans-serif;
    font-size: 32px;
    cursor: pointer;
    z-index: 1001;
    opacity: 1;
}

#credits-cutscene img {
    position: absolute;
}

#cutscene-logo-full {
    opacity: 0;
    transition: opacity 5s ease-in-out;
}

#cutscene-logo-just-heart {
    opacity: 0;
    transform: translateX(-85px) translateY(-15px);
    transition: opacity 2s ease-in-out,
                transform 3s ease-in-out;
}

#final-goodbye-credits {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: inherit;
    margin-top: 700vh;
}

#final-just-heart-logo {
    transform: translateX(-85px) translateY(-50px);
    opacity: 0;
    transition: opacity 0.25s ease-in-out,
                transform 1.5s ease-in-out;
}

#cutscene-player-character {
    position: absolute;
    width: 64px;
    height: 64px;
    background-image: url(../GameResources/TSBM/Cutscene/player_spritesheet.png);
    background-size: cover;
    background-position: -256px 0;
    image-rendering: pixelated;
    transform: translateX(-60vw) translateY(-48px);
    opacity: 1;
}

#cutscene-player-character.right-walk {
    animation: player-walk-cycle-right 1s steps(4) infinite,
                player-walk-right 5s linear;
}

#cutscene-player-character.up-walk {
    animation: player-walk-cycle-up 1s steps(4) infinite,
                player-walk-up 9s linear;
}

@keyframes player-walk-right {
    from { transform: translateX(-60vw) translateY(-48px); }
    to   { transform: translateX(-20px) translateY(-48px); }
}

@keyframes player-walk-up {
    from { transform: translateX(-20px) translateY(-48px); }
    to   { transform: translateX(-20px) translateY(-100vh); }
}

@keyframes player-walk-cycle-right {
    from { background-position: 0 0; }
    to   { background-position: -256px 0; }
}

@keyframes player-walk-cycle-up {
    from { background-position: -320px 0; }
    to   { background-position: -576px 0; }
}

#cutscene-luna-character {
    position: absolute;
    width: 42px;
    height: 42px;
    background-image: url(../GameResources/TSBM/Cutscene/luna_spritesheet.png);
    background-size: cover;
    background-position: -168px 0;
    image-rendering: pixelated;
    transform: translateX(60vw) translateY(-40px);
    opacity: 1;
}

#cutscene-luna-character.left-walk {
    animation: luna-walk-cycle-left 1s steps(4) infinite,
                luna-walk-left 5s linear;
}

#cutscene-luna-character.up-walk {
    animation: luna-walk-cycle-up 1s steps(4) infinite,
                luna-walk-up 9s linear;
}

@keyframes luna-walk-left {
    from { transform: translateX(60vw) translateY(-40px); }
    to   { transform: translateX(20px) translateY(-40px); }
}

@keyframes luna-walk-cycle-left {
    from { background-position: 0 0; }
    to   { background-position: -168px 0; }
}

@keyframes luna-walk-cycle-up {
    from { background-position: -210px 0; }
    to   { background-position: -378px 0; }
}

@keyframes luna-walk-up {
    from { transform: translateX(20px) translateY(-40px); }
    to   { transform: translateX(20px) translateY(-100vh); }
}