* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    box-sizing: border-box;
}

h1, h2, h3 {
    word-wrap: break-word;
}

h1 {
    font-size: var(--z-40px);
}

h2 {
    font-size: var(--z-32px);
}

h3 {
    font-size: var(--z-24px);
}

span {
    font-size: var(--z-16px);
}

body {
    background-color: #c5c5c5;
}

footer {
    display: flex;
    justify-content: space-between;
    padding: var(--z-20px) var(--z-40px);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

header {
    display: flex;
    justify-content: space-between;
    padding: var(--z-20px) var(--z-40px);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

img {
    width: 70%;
    margin: 20px auto;
}

.row {
    display: flex;
    margin: 10px auto;
    align-items: center;
    gap: 10px;
    width: 70%;

    img {
        width: 100%;
    }
}

pages {
    display: flex;
    flex-direction: column;
    gap: var(--z-10px);
    padding: var(--z-10px);
    align-items: center;
    filter: drop-shadow(0px var(--z-5px) var(--z-5px) rgba(0, 0, 0, 0.25));

    page {
        aspect-ratio: 1 / 1.4142;
        width: min(100vw, 800px);
        max-height: calc(min(100vw, 800px) * 1.4142);
        background-color: #fff;
        position: relative;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: var(--z-20px) var(--z-40px);
        padding-top: var(--header-height);
        padding-bottom: var(--footer-height);

        &.z-overflowing {
            outline: 2px solid red;

            &::after {
                content: "Overflowing";
                color: red;
                position: absolute;
                padding: 10px;
                top: 0;
                left: 0;
                width: 100%;
                text-align: center;
                background-color: rgba(0, 0, 0, 0.2);
            }
        }
    }
}

.contents {
    .header {
        display: flex;
        align-items: center;
        gap: 20px;
        color: #000;
        text-decoration: none;

        .header-title {
            white-space: nowrap;
        }

        .separator {
            width: 100%;
            height: 0px;
            border-bottom: 1px dashed #000;
        }
    }
}