@charset "UTF-8";
/* Kakao invitation v2 base stylesheet. Copied as css/{code}.css per event, so it
   can be customised per event on the server without affecting others. */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* Swipe guide: shown on load, fades out (v1 used jQuery fadeToggle 1.4s) */
.swipe-guide {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    text-align: center;
    pointer-events: none;
    animation: guide-fade 1.4s ease-in 0.6s forwards;
}
.swipe-guide img { width: 40%; max-width: 220px; }
@keyframes guide-fade { to { opacity: 0; visibility: hidden; } }

.swiper-container { width: 100%; height: 100%; }

/* A slide = image scroll layer + (optional) button layer floating over it at the bottom of the
   screen. The button sits outside the scrolling element, so it never scrolls away and moves
   with the slide when swiping. */
.swiper-slide {
    position: relative;
    height: 100%;
    overflow: hidden;
    /* Image shorter than the screen: centred, with the space above/below filled by the
       average colour of its top/bottom edge (computed by the generator). */
    background: #fff;
    background: linear-gradient(to bottom, var(--bg-top, #fff) 50%, var(--bg-bottom, #fff) 50%);
    text-align: center;
}

.slideScroll {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
/* margin:auto centres in the free space (the whole screen; the button floats over it);
   a taller image gets 0 margin and scrolls */
.imgWrap { margin: auto 0; width: 100%; flex: 0 0 auto; }
.slideImg { display: block; width: 100%; height: auto; margin: 0 auto; }

/* Page with a button (.fit): the whole image is fitted into the area ABOVE the button, so the
   button never covers any of it, whatever the phone. --bar-h = button height (page script).
   - screen longer than the image: image spans the width; the bands above/below are filled with
     the image's top/bottom edge colour (split at the middle of the area above the button)
   - screen shorter than the image (.side-bands, set by the page script): image spans the
     height; a blurred, enlarged copy of the same image fills the sides */
.swiper-slide.fit {
    background: linear-gradient(to bottom,
        var(--bg-top, #fff) calc(50% - var(--bar-h, 0px) / 2),
        var(--bg-bottom, #fff) calc(50% - var(--bar-h, 0px) / 2));
}
.fit .slideScroll {
    position: relative;
    z-index: 1;
    height: calc(100% - var(--bar-h, 0px));
    overflow: hidden;
}
.fit .imgWrap { margin: 0; height: 100%; }
.fit .slideImg { width: 100%; height: 100%; object-fit: contain; }
.slideBlur {
    display: none;
    position: absolute;
    top: -8%;
    left: -8%;
    width: 116%;
    height: 116%;
    object-fit: cover;
    filter: blur(22px) brightness(0.85);
    pointer-events: none;
    will-change: transform; /* own layer: the blur is not repainted while swiping */
}
.fit.side-bands .slideBlur { display: block; }

/* Fitting would make the image too small (very tall image, phone turned sideways): full width
   and scroll as on image-only pages, with room at the end so the bottom clears the button. */
.fit.fit-scroll .slideScroll { height: 100%; overflow-y: auto; padding-bottom: var(--bar-h, 0px); }
.fit.fit-scroll .imgWrap { height: auto; margin: auto 0; }
.fit.fit-scroll .slideImg { height: auto; }

/* Reserve-type page: full-width button floating over the image at the bottom of the screen,
   so it stays visible in in-app browsers whose toolbars hide the lower part of the page */
.Btn-slide {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 9;
    display: block;
    width: 100%;
    cursor: pointer;
    background-color: #ebb527; /* button_ic_1.png colour, under the iPhone home bar */
    padding-bottom: env(safe-area-inset-bottom);
}
.Btn-slide img { display: block; width: 100%; }

/* Menu-type page: bar floating over the image at the bottom of the screen */
.icWrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    display: flex;
    justify-content: center;
    gap: 6%;
    padding: 15px 0 calc(15px + env(safe-area-inset-bottom));
    background-color: #59719b;
}
.icWrap .menu-item { display: block; width: 13%; max-width: 80px; cursor: pointer; }
.icWrap img { display: block; width: 100%; }

/* Button effect (per page, chosen in the tool): class on .Btn-slide / .icWrap.
   Only opacity/transform are animated so phones composite them cheaply. */

/* fx-shine: a diagonal band of light sweeps across the button, then pauses */
.fx-shine { overflow: hidden; }
.fx-shine::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 35%;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform: translateX(-150%) skewX(-25deg);
    animation: fx-shine 3s ease-in-out 1s infinite;
}
@keyframes fx-shine {
    0% { transform: translateX(-150%) skewX(-25deg); }
    40%, 100% { transform: translateX(380%) skewX(-25deg); }
}

@media (prefers-reduced-motion: reduce) {
    .fx-shine::after { animation: none; display: none; }
}

/* Tablet */
@media screen and (min-width: 700px) {
    .icWrap .menu-item { width: 10%; }
}

/* Desktop: keep the phone-like column */
@media screen and (min-width: 1100px) {
    .swiper-container { width: 30%; min-width: 420px; }
}
