body{
    margin: 0;
}
.viewer {
    margin: 0;
    position: relative;
    width: 100%;
    height: 100%;
}
.viewer-zoom {
    margin: 0;
    position: relative;
    width: 100%;
    height: 100%;
}
.pages_container {
    position: relative;
    margin: 0;
    height: 100%;
    display: flex;
    overflow-x: scroll;
    flex-direction: row-reverse;
}
.spread {
    display: flex;
    flex-direction: row-reverse;
}

.page {
    margin: 0;
    height: 100%;
    width: auto; 
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.page img {
    margin: 0;
    height: 100%;
    width: auto; 
    object-fit: contain;
}

.page-right {
    justify-content: flex-start;
}

.page-left {
    justify-content: flex-end;
}

.handler {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    visibility: hidden;
    pointer-events: none;
}
.handler-next {
    height: 100%;
    width: 20%;
    filter: drop-shadow(0px -5px 10px #acacac);
    pointer-events: auto;
}

.handler-space {
    height: 100%;
    width: 60%;
}

.handler-prev {
    height: 100%;
    width: 20%;
    filter: drop-shadow(0px -5px 10px #acacac);
    pointer-events: auto;
}

.zoom {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
    height: 30px;
    width: 100%;
}
.zoom-out {
    position: absolute;
    top: 0%;
    display: flex;
    width: 100%;
    height: 100%;
    background-color: #808080;
    justify-content: center;
    align-items: center;
    transform: translate(0, -100%);
    visibility: hidden;
    color: white;
    font-size: 20;
    font-weight: bold;
}
.zoom-in {
    position: absolute;
    top: 0%;
    display: flex;
    width: 100%;
    height: 100%;
    background-color: #303030;
    justify-content: center;
    align-items: center;
    transform: translate(0, -100%);
    color: white;
    font-size: 20;
    font-weight: bold;
}

.space-pc {
    margin: 0;
    height: 100%;
    min-width: 50vw;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.endcard {
    margin: 0;
    height: 100%;
    width: 50vw;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.endcard p{
    color: white;
    font-weight: bold;
}
.control {
    padding-top: 3vh;
    width: 100%;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}
.hint{
    font-size: 15;
}
.back{
    font-size: 20;
    font-weight: bold;
}
.size_selector{
    visibility: hidden;
    background-color: aqua;
}

.triangle-right {
    position: absolute;
    width: 50;
    height: 50;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    bottom: 0;
    right: 0;
    background: #3c3c3c;
    transform: scale(0);
    transform-origin: bottom right;
}

.triangle-left {
    position: absolute;
    width: 50;
    height: 50;
    clip-path: polygon(0% 0, 100% 100%, 0 100%);
    bottom: 0;
    left: 0;
    background: #3c3c3c;
    transform: scale(0);
    transform-origin: bottom left;
}

.triangle-right-white {
    position: absolute;
    width: 50;
    height: 50;
    clip-path: polygon(0% 0, 100% 0%, 0 100%);
    bottom: 0;
    right: 0;
    background: white;
    transform: scale(0);
    transform-origin: bottom right;
}

.triangle-left-white {
    position: absolute;
    width: 50;
    height: 50;
    clip-path: polygon(0% 0, 100% 0%, 100% 100%);
    bottom: 0;
    left: 0;
    background: white;
    transform: scale(0);
    transform-origin: bottom left;
}

.handler-next:hover .triangle-left {
    transform: scale(1);
    transition: all 0.5s;
}

.handler-prev:hover .triangle-right {
    transform: scale(1);
    transition: all 0.5s;
}

.handler-next:hover .triangle-left-white {
    transform: scale(1);
    transition: all 0.5s;
}

.handler-prev:hover .triangle-right-white {
    transform: scale(1);
    transition: all 0.5s;
}


.zoom:hover .zoom-in {
    transform: translate(0, 0);
    transition: all 0.5s;
}

.zoom:hover .zoom-out {
    transform: translate(0, 0);
    transition: all 0.5s;
}

#omiyage {
    margin: 0;
    height: auto;
    width:  150px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 10px;
}

#omiyage img {
    height: 50px;
    width: auto; 
    object-fit: contain;
}

.omiyage .text {
    color: #000;
    font-weight: bold;
    font-size: 12px;
}

#reward {
    display: none;
}

@media (max-width: 600px) {
    .page {
        width: 100vw;
        min-width: 100vw;
        justify-content: flex-end;
    }
    .page img {
        height: 100%;
        min-width: 100vw;
        object-fit: contain;
    }
    .space-pc {
        display: none;
    }
    .endcard {
        height: 100%;
        width: 100vw;
    }
    .size_selector{
        visibility: visible;
    }
}