body {
    margin: 0;
    background-color: white;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    margin-left: auto;
    margin-right: auto;
}

.memory-1,
.memory-2,
.memory-3,
.memory-4,
.memory-5 {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4 / 3;
    z-index: 1;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.memory-2 {
    z-index: 2;
}

.memory-3 {
    z-index: 3;
}

.memory-4 {
    z-index: 4;
}

.memory-5 {
    z-index: 5;
}

.memory-fixed {
    position: fixed;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
}

.background {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 40px);
    max-width: 560px;
    height: 100vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}

.loading,
.error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    color: #666;
}

.error {
    display: none;
    color: #999;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: rgb(20, 20, 21);
    }

    .loading,
    .error {
        color: #888;
    }
}