@charset "utf-8";

:root {
    --pc-gold: #ecaa20;
    --pc-purple: #66186d;
    --pc-deep-purple: #1d022e;
    --pc-link-purple: purple;
    --pc-light-pink: #ffd2ff;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    min-width: 245px;
    max-width: 100%;
    min-height: 100%;
    overflow-x: clip;
    font-family: Papyrus, myPapyrus, fantasy;
    color: var(--pc-gold);
    background: var(--pc-deep-purple);
}

body {
    position: relative;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    background: var(--pc-deep-purple);
}

img {
    max-width: 100%;
}

p {
    display: block;
    margin: 1em 0;
}

p::first-letter {
    font-family: Papyrus, myPapyrus, fantasy;
    font-size: 200%;
}

a {
    text-decoration: none;
}

#siteWrap,
.siteWrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

#siteBodyWrap {
    position: relative;
    width: min(100%, 1040px);
    min-width: 245px;
    margin: 0 auto;
    padding: 0 20px;
}

#siteBodyWrap img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    position: relative;
    z-index: 2;
    height: 200px;
    padding: 10px;
}

header .per_minute_header {
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: Papyrus, myPapyrus, fantasy;
    font-size: 2em;
    font-weight: bold;
}

header .per_minute_header h2 {
    margin: 0;
}

header .per_minute_header a {
    color: var(--pc-gold);
}

header .logo_wrap {
    position: absolute;
    z-index: 1;
    top: 0;
    left: -50px;
    right: -50px;
    display: flex;
    justify-content: space-between;
    max-height: 340px;
    margin: auto;
    overflow: hidden;
    pointer-events: none;
}

header .logo_wrap .flames_img {
    width: auto;
    height: 100%;
}

/* Shared decorative heading */
.h1_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: center;
}

.h1_wrap > div {
    flex: 1 1 auto;
    min-width: 0;
}

.h1_wrap h1,
.h1_wrap .h1_header {
    margin-bottom: 0;
    text-align: center;
}

.h1_wrap .goldbar_wrap .goldbar_img {
    width: 100%;
}

.lotus_img {
    flex: 0 0 auto;
}

.goldbar_wrap {
    text-align: center;
}

.goldbar_wrap.half img {
    width: 60%;
    margin: auto;
}

.message {
    margin: -20px 10px 0;
    padding-top: 0;
    font-family: Papyrus, myPapyrus, fantasy;
    font-size: 1.5em;
    font-weight: bold;
    text-align: justify;
    text-indent: 10%;
}

.message h1,
.message h2,
.message h3 {
    text-indent: 0;
}

/* Decorative side columns. Height follows #siteBodyWrap; JavaScript sizing is not required. */
#columns_overlay {
    position: absolute;
    z-index: 1;
    top: 60px;
    bottom: 0;
    left: 50%;
    display: flex;
    justify-content: space-between;
    width: 100vw;
    margin: 0;
    transform: translateX(-50%);
    pointer-events: none;
}

#columns_overlay .columns_wrap {
    width: 160px;
    height: 100%;
}

#columns_overlay img.columns_img {
    width: 160px;
    height: 100%;
    object-fit: fill;
}

/* Navigation */
.horizontal_nav,
.horizontal_navF {
    position: relative;
    z-index: 20;
    width: 100%;
    text-align: center;
}

.horizontal_nav {
    margin-top: 1px;
}

.horizontal_navF {
    margin-top: -5px;
}

.nav_link_group_container,
.nav_link_group_containerF {
    width: 100%;
    margin: auto;
}

.nav_link_group,
.nav_link_groupF {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav_link_group li,
.nav_link_groupF li {
    position: relative;
    min-width: 0;
    border: 6px double var(--pc-purple);
    border-radius: 30px;
    padding: 1px 3px 0;
    background: var(--pc-gold);
    font-family: Papyrus, myPapyrus, fantasy;
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    font-weight: bold;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
}

.nav_link_group li::after,
.nav_link_groupF li::after,
.navicon::after,
.naviconF::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -7px;
    width: 0;
    height: calc(100% + 8px);
    border-right: 4px solid var(--pc-gold);
    border-radius: 4px;
}

.nav_link_group li:hover,
.nav_link_groupF li:hover {
    background-color: rgba(51, 0, 153, 0.9);
}

.nav_link_group li:hover::after,
.nav_link_groupF li:hover::after {
    border-right-color: var(--pc-link-purple);
}

.nav_link_group li a,
.nav_link_groupF li a {
    display: block;
    width: 100%;
    padding: 4px 2px 3px;
    color: var(--pc-link-purple);
}

.nav_link_group li a:visited,
.nav_link_groupF li a:visited {
    color: var(--pc-link-purple);
}

.nav_link_group li:hover a,
.nav_link_groupF li:hover a {
    color: #fff;
}

.navicon,
.naviconF {
    display: none;
    position: relative;
    width: min(80%, 460px);
    margin: 0 auto;
    border: 6px double var(--pc-purple);
    border-radius: 30px;
    padding: 3px 12px 0;
    background: var(--pc-gold);
    color: var(--pc-purple);
    font-family: Papyrus, myPapyrus, fantasy;
    font-size: 2em;
    font-weight: bold;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
}


/* Shared public-site slider. Replaces the removed legacy vendor slider runtime. */
.pc_slider {
    position: relative;
    z-index: 90;
    width: min(100%, 901px);
    margin: 5px auto 0;
    overflow: hidden;
}

.pc_slider_viewport {
    width: 100%;
    aspect-ratio: 901 / 279;
    overflow: hidden;
}

.pc_slider_track {
    display: flex;
    width: 300%;
    height: 100%;
    transform: translateX(0);
    animation: pc-public-slider 24.9s ease-in-out infinite;
    will-change: transform;
}

.pc_slide {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.pc_slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes pc-public-slider {
    0%, 20.88% { transform: translateX(0); }
    33.33%, 54.22% { transform: translateX(-33.333333%); }
    66.67%, 99.99% { transform: translateX(-66.666667%); }
    100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .pc_slider_track { animation: none; }
}

/* Shared public-page media/content components. */
.image_item {
    position: relative;
    display: block;
    width: min(100%, 290px);
    margin: 1px auto 10px;
    text-align: center;
}

.image_item img { max-width: 100%; }
.iframewrapper { text-align: center; }

.banner_container {
    margin: 10px auto;
    padding-top: 1em;
    text-align: center;
}

.banner_container img {
    max-width: 100%;
    height: auto;
}

.h1_para { margin-top: 50px; }

/* Reader/gallery list shared by current public pages */
.columns,
ul.columns {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.columns > *,
ul.columns li {
    position: relative;
    display: flex;
    flex: 1 1 230px;
    justify-content: center;
    min-width: 230px;
}

/* Certified reader overlay */
.certified-wrapper {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
}

.certified-overlay {
    position: absolute;
    top: 20%;
    left: -1.2em;
    width: 47%;
    height: auto;
    transform: rotate(-26deg);
    animation: flickerAnimation 12s infinite;
}

.certified-overlay[role='button'] {
    cursor: pointer;
}

/* Book-now popup and shared iframe modal */
.popupIn,
.popupOut {
    position: fixed;
    left: 9px;
    bottom: 9px;
    z-index: 100000000;
    width: min(32%, 265px);
    min-width: 150px;
    height: auto;
    margin: 0;
    padding: 0;
    border: 5px double var(--pc-link-purple);
    background: yellow;
    line-height: 0;
}

.popupIn {
    display: block;
    animation: fadeIn 1.2s ease;
}

.popupOut {
    display: none;
}

.bookNowImg {
    display: block;
    width: 100%;
    height: auto;
}

.modal-div {
    position: fixed;
    z-index: 100000001;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(29, 2, 46, 0.74);
    text-align: center;
    animation: fadeIn 0.2s ease;
}

.modal-div[hidden] {
    display: none;
}

.modalContent {
    position: relative;
    display: block;
    width: min(900px, 94vw);
    height: min(86vh, 800px);
    margin: auto;
    overflow: hidden;
    border: 8px double pink;
    border-radius: 22px;
    background: #fff;
    color: #000;
    text-align: center;
}

.modal-div--image .modalContent {
    width: min(1000px, 94vw);
    height: auto;
    max-height: 90vh;
}

.modalContentBody {
    display: block;
    width: 100%;
    height: 100%;
}

.modal {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;
    background: #fff;
}

.closeButton {
    position: absolute;
    z-index: 5;
    top: 4px;
    right: 4px;
    width: 40px;
    height: 40px;
    max-width: 40px;
    border: 5px double var(--pc-link-purple);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

/* Footer */
footer {
    position: relative;
    width: 100%;
    color: var(--pc-gold);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.9em;
    text-align: center;
}

.footerShimmer {
    display: block;
    margin: 0.2em;
    font-size: 1em;
    font-weight: bold;
    line-height: 2em;
}

/* Responsive authority: desktop >1000px, tablet 681-1000px, mobile <=680px. */
@media (max-width: 1089px) {
    #columns_overlay {
        display: none;
    }
}

@media (max-width: 1000px) {
    #siteBodyWrap {
        width: 100%;
        padding-inline: clamp(10px, 3vw, 20px);
    }

    .nav_link_group,
    .nav_link_groupF {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 14px;
    }

    .nav_link_group li,
    .nav_link_groupF li {
        font-size: clamp(1.05rem, 2.8vw, 1.55rem);
    }

    .popupIn,
    .popupOut {
        width: min(40%, 265px);
    }
}

@media (max-width: 800px) {
    body {
        font-size: 12px;
    }

    header {
        height: 125px;
        padding: 0;
    }

    #siteBodyWrap header {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    #siteBodyWrap .logo_wrap {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 240px;
        margin-top: 10px;
    }

    #siteBodyWrap .flames_img {
        width: 120px;
        height: 370px;
        max-width: none;
    }

    .entrance_headline {
        font-size: 1.7em;
    }

    .lotus_img {
        width: 100px;
        height: 100px;
    }

    .popupIn,
    .popupOut {
        width: min(48%, 265px);
    }
}

@media (max-width: 680px) {
    header {
        height: auto;
        min-height: 120px;
        padding: 10px 0 0;
    }

    header h2 {
        font-size: 1.2em;
    }

    .horizontal_nav,
    .horizontal_navF {
        display: block;
        margin-top: 4px;
    }

    .navicon,
    .naviconF {
        display: block;
    }

    .nav_link_group_container,
    .nav_link_group_containerF {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.2s ease;
    }

    .horizontal_nav.is-open .nav_link_group_container,
    .horizontal_navF.is-open .nav_link_group_containerF {
        max-height: 700px;
        opacity: 1;
    }

    .nav_link_group,
    .nav_link_groupF {
        grid-template-columns: 1fr;
        gap: 4px;
        width: 100%;
        padding: 4px 0 10px;
    }

    .nav_link_group li,
    .nav_link_groupF li {
        width: min(80%, 460px);
        margin: 0 auto;
        font-size: 2em;
        line-height: 1;
        transform-origin: 50% 0;
        transform: perspective(60px) rotateX(-90deg);
        transition: transform 0.2s linear;
    }

    .horizontal_nav.is-open .nav_link_group li,
    .horizontal_navF.is-open .nav_link_groupF li {
        transform: perspective(350px) rotateX(0deg);
    }

    .nav_link_group li a,
    .nav_link_groupF li a {
        padding: 8px 10px;
        letter-spacing: 1px;
    }

    .lotus_img {
        width: 60px;
        height: 60px;
        margin-top: 20px;
    }

    .entrance_headline {
        font-size: 1.2em;
    }

    ul.columns li {
        width: 100%;
        min-width: 0;
    }

    .modal-div {
        padding: 8px;
    }

    .modalContent {
        width: 96vw;
        height: 90vh;
    }

    .popupIn,
    .popupOut {
        min-width: 130px;
    }

    #siteBodyWrap {
        margin-bottom: 90px;
    }
}

@keyframes flickerAnimation {
    0%, 100% { opacity: 1; }
    20%, 60% { opacity: 0.4; }
    40% { opacity: 0.8; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
