﻿@import url('https://fonts.googleapis.com/css?family=Open+Sans:400|Noto+Sans+TC|Noto+Sans+SC');

@font-face {
    font-family: Beauty;
    src: url(/fonts/BEAUTYDEMO.TTF);
}

@font-face {
    font-family: Avenir Next;
    src: url(/fonts/AVENIRNEXTLTPRO-REGULAR_0.OTF);
}

/* Variables */
:root {
    --bgcolor: #F4FCFE;
    --darkblue: #063349;
    --lightblue: #C3E0E9;
    --lightblue-alt: #D6EFF7;
    --basicblue: #6FB1C6;
    --gold: #8d7b4d;
}

html, body {
    margin: 0;
    padding: 0;
    color: var(--darkblue);
    font-family: 'Avenir Next', 'Noto Sans TC', 'Noto Sans SC', 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    scroll-behavior: smooth;
}

body {
    background: var(--bgcolor);
    width: 100%;
}

/* General */
.text-xxs {
    font-size: .8em;
}

a:hover {
    color: var(--basicblue);
    text-decoration: none;
}

.hidden {
    display: none;
}

    .hidden .coupon {
        padding: 0;
        margin: 0;
    }

    .hidden p {
        max-width: 550px;
    }

#submit-confirm.fancybox-content {
    background: linear-gradient(to top right, var(--bgcolor), white);
}

.fancybox-content a {
    text-decoration: underline !important;
}

.spinner-wrap {
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, .5);
    position: fixed;
    top: 0;
    left: 0;
}

.spinner-border {
    position: fixed;
    top: 50%;
    left: 45%;
    width: 50px;
    height: 50px;
}

.content {
    width: 85%;
    margin: 50px auto 0 auto;
    min-height: 80vh;
}

    .content.index {
        margin-top: 600px;
    }

hr {
    background-image: linear-gradient(90deg, var(--lightblue), var(--bgcolor));
    border: 0;
    height: 1px;
}

a,
a.font-weight-bold {
    color: var(--darkblue);
}

img[data-id] {
    position: relative;
    display: inline-block;
    top: -33px;
    left: 78vw;
    height: 20px;
}

#selectLanguage {
    position: fixed;
    right: 0;
    top: 10px;
    min-width: 200px;
}

    #selectLanguage li.dropdown {
        text-align: right;
        width: 100%;
    }

    #selectLanguage div.dropdown-menu {
        margin-top: 6px;
    }

/*Login page*/
#login .btn,
#register .btn,
#activate .btn,
#forgot-password .btn,
#reset-password .btn {
    background: var(--darkblue);
    color: white;
}

/* Navbar (Top) */
.navbar {
    /*background: rgba(6,51,73,.5);*/
    background: var(--darkblue);
}

    .navbar.scrolled {
        background: var(--darkblue) !important;
    }

.navbar-brand img {
    width: 150px;
    margin: 0 20px;
    margin-bottom: 5px;
}

.nav-link {
    color: #FFF !important;
}

    .nav-link:hover,
    .navbar-nav .dropdown-item:hover {
        color: var(--lightblue) !important;
    }

    .nav-link:active,
    .navbar-nav .dropdown-item:active {
        color: #8bc3d4 !important;
    }

.navbar-nav .dropdown-menu {
    margin-top: 8px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    background: var(--darkblue);
    border: none;
    cursor: pointer !important;
}

.navbar-nav .nav-link span.d-none.d-lg-block.current {
    display: inline-block;
    position: absolute;
    bottom: 0;
    border: 10px solid transparent;
    border-bottom-color: var(--bgcolor);
}

.navbar-nav .dropdown-item:hover {
    background: none;
}

.navbar-nav .dropdown-item {
    color: #FFF;
}

/* Home page */
/* Carousel */
.banner.carousel {
    position: absolute;
    top: 0;
    z-index: -1;
}

.banner .carousel-indicators > li {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    margin: 0 15px;
}

.banner .carousel-item {
    width: 100%;
    /*height: 350px;*/
    height: 600px;
}

.banner > .carousel-inner > .carousel-item > img {
    width: 100%;
    margin-top: -10%;
}

/* Content */
.hero-wrapper {
    height: 570px;
}

    .hero-wrapper * {
        display: block;
        margin: auto;
    }

    .hero-wrapper #pp-logo {
        padding-bottom: 20px;
    }

    .hero-wrapper .diamond {
        width: 30px;
    }

    .hero-wrapper .arrow {
        width: 43px;
        padding-top: 20px;
    }

.index .hero-wrapper h2 {
    font-size: 53px;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 60px;
    font-family: "Beauty";
}

.hero-wrapper .scroll-button {
    font-size: 24px;
    color: #213a45;
}

.info-container {
    max-width: 950px;
    margin-bottom: 70px !important;
}

    .info-container img {
        width: 15px;
    }

    .info-container li {
        padding: 5px 0;
    }


/* Circle */
.circle-container {
    margin-bottom: 150px;
    font-size: 15px;
}

    .circle-container .row.col-12.col-md-3 {
        min-height: 300px !important;
    }

    .circle-container span {
        height: 180px;
        width: 180px;
        background-color: var(--bgcolor);
        border: 2px solid var(--lightblue-alt);
        border-radius: 50%;
        margin-bottom: 30px;
        display: inline-block;
    }

    .circle-container .text {
        min-height: 100px;
    }

        .circle-container .text a {
            text-decoration: underline !important;
        }

/* Table */
.index h2 {
    color: var(--gold);
    font-size: 18px;
}

.gold-hr {
    border: 1px solid var(--gold);
}

.gray-hr {
    border-top: 1px solid #DDD;
}

.info-container .row {
    align-items: center; /*Aligns vertically center */
}

    .info-container .row:not(.gold-hr):not(.gray-hr) {
        min-height: 45px;
    }

.info-container .dropdown-toggle {
    border: none !important;
    color: var(--darkblue);
}

    .info-container .dropdown-toggle[aria-expanded='true'] {
        background: var(--lightblue-alt);
    }

.info-container .dropdown-menu {
    font-size: 0.9em;
    background: var(--bgcolor);
    color: var(--darkblue);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

.info-container .dropdown-item:active {
    background: var(--lightblue-alt);
}

.mp-detail:not([data-val='0']),
.sp-detail:not([data-val='0']) {
    display: none;
}

/* Pooper tootltip */
.tooltip {
    margin-bottom: 5px !important;
}

.tooltip-inner {
    background-color: var(--darkblue);
}

.tooltip.bs-tooltip-right .arrow:before {
    border-right-color: var(--darkblue) !important;
}

.tooltip.bs-tooltip-left .arrow:before {
    border-left-color: var(--darkblue) !important;
}

.tooltip.bs-tooltip-bottom .arrow:before {
    border-bottom-color: var(--darkblue) !important;
}

.tooltip.bs-tooltip-top .arrow:before {
    border-top-color: var(--darkblue) !important;
}

/* Shop list page */
/* For clipboard use */
#clipboard,
#clipboard::selection {
    background: transparent;
    border: none;
    color: transparent;
    width: 1px;
    height: 1px;
}

#clipboardMsg {
    position: fixed;
    top: 50%;
    left: 50%;
    opacity: 0;
    z-index: 3;
}

    #clipboardMsg span {
        position: relative;
        left: -50%;
        padding: 5px 15px;
        background: var(--darkblue);
        color: #FFF;
    }

/* Navbar */
.nav.nav-pills .nav-link {
    color: var(--darkblue) !important;
}

    .nav.nav-pills .nav-link.active {
        background: rgba(6, 51,73, .1);
        /*background: transparent;*/
        font-weight: bold;
    }

    .nav.nav-pills .nav-link:hover:not(.active) {
        background: var(--lightblue-alt)
    }

.pictogram {
    width: 100px;
}

/* Btn for collapse */
.btn[aria-expanded]:not(:first-child) {
    border-top: 1px solid var(--lightblue);
}

.btn[aria-expanded=true] {
    font-weight: bold;
}

.btn[aria-expanded] img {
    max-width: 250px;
    margin: 20px 0;
}

/* Card */
.card {
    border: 0;
    background: transparent;
}

.card-subtitle {
    font-weight: bold;
    text-transform: uppercase;
    color: var(--darkblue) !important;
}

.card-text,
.card-link {
    font-size: 0.9em;
}

    .card-link,
    .card-link:hover {
        text-decoration: underline;
    }

/* Personal detail page */
#personal-detail label {
    margin: 14px 0 7px;
}

    #personal-detail label.info {
        margin: 0;
        text-align: right;
        padding-right: 10px;
    }

#personal-detail .btn {
    background: var(--darkblue);
    color: white;
    margin-top: 20px;
}

.form-control {
    border-color: var(--lightblue-alt);
    background: #FFF;
    -webkit-appearance: none;
}

    .form-control[disabled] {
        background: #FFF;
        border-color: #E3E3E3 !important;
        color: #AAA;
        -webkit-appearance: none;
    }

/* Rewards page */
/* Progress bar */
.progress {
    background: var(--lightblue);
    position: relative;
    top: 17px;
    height: 5px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--basicblue), var(--basicblue) 60%, var(--lightblue));
}

.progress-bullet {
    height: 80px;
}

    .progress-bullet div {
        list-style-type: none;
        /*width: 25%;*/ /* 4 bullets */
        width: 20%;
        width: 20%;
        float: left;
        font-size: 0.8em;
        position: relative;
        text-align: center;
        text-transform: uppercase;
        color: var(--darkblue);
    }

        .progress-bullet div:before {
            width: 30px;
            height: 30px;
            content: '';
            line-height: 30px;
            border: 2px solid var(--lightblue);
            display: block;
            margin: 0 auto 10px auto;
            border-radius: 50%;
            background-color: #FFF;
        }

        .progress-bullet div.active {
            color: var(--darkblue);
        }

            .progress-bullet div.active:before {
                border-color: var(--basicblue);
                background: var(--basicblue);
            }

#progress-wrap .info div {
    /* width: 20%; */ /* 4 Bullets */
    width: 15%;
    display: inline-block;
    transform: translateX(-5px) rotateZ(-45deg);
    position: relative;
    top: -10px;
    left: 18%;
    font-size: 0.7em;
}

/* Rewards details */
#reward-detail {
    padding: 15px;
    margin-bottom: 30px;
}

.tier-description {
    text-transform: lowercase;
}

    .tier-description:first-letter {
        text-transform: capitalize;
    }

/* Points Balance */
#pts-bal .col-12.col-md-3 .font-weight-bold,
#pts-bal .col-12.col-md-3 .font-weight-bold ~ div {
    font-size: 1.1em;
}

/* Coupon */
.coupon {
    margin: 10px;
    height: 170px;
    background: var(--lightblue);
}

    .coupon:before {
        content: '';
        position: absolute;
        top: 0;
        right: 60px;
        border-top: 170px solid var(--lightblue);
        border-right: 150px solid var(--lightblue-alt);
    }

    .coupon:after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        border-bottom: 170px solid var(--lightblue-alt);
        border-right: 60px solid var(--lightblue-alt);
    }

    .coupon.expired-used {
        background: #BBB;
        color: #000;
    }

        .coupon.expired-used:before {
            border-top: 170px solid #BBB;
            border-right: 150px solid #DDD;
        }

        .coupon.expired-used:after {
            border-bottom: 170px solid #DDD;
            border-right: 60px solid #DDD;
        }

    .coupon * {
        position: relative;
        z-index: 2;
    }

    .coupon .title {
        font-size: 1.2em;
    }

    .coupon .emp {
        font-size: 26pt;
        text-align: center;
        letter-spacing: .2ch;
        text-transform: uppercase;
    }

        .coupon .emp ~ span {
            position: absolute;
            right: 0;
            bottom: 20%;
        }

    .coupon .info {
        position: absolute;
        bottom: 0;
        left: 5px;
    }

.coupon-img .info {
    color: #FFF;
    position: absolute;
    bottom: 0;
    left: 20px;
}

.hidden-coupon .info {
    position: absolute;
    top: 50px;
    right: 50px;
    color: #FFF;
}

.coupon .invalid {
    top: 30%;
    right: 5%;
    position: absolute;
    width: 70px;
    height: 70px;
    background: #D95957;
    border: 3px solid #FFF;
    border-radius: 50%;
}

    .coupon .invalid:before {
        content: attr(invalid-detail);
        display: block;
        margin-top: 33%;
        text-align: center;
        color: #FFF;
        font-size: 0.9em;
    }
