:root {
    --primary-color: rgb(92, 92, 92);
    --primary-font-color: #000;
    --input-display-font-color: #8E8E8E;
    --input-font-color: #171717;
    --font-size: 16px;

    font-size: 16px; /* root font size*/
}
/* ----------------------------------------------------------------------------------------------------------------------------------------------------------
 * CUSTOM SCAFFOLDING
 * ---------------------------------------------------------------------------------------------------------------------------------------------------------- */
.full-width {width: 100%}
.half-width {width: 50%}
/* ----------------------------------------------------------------------------------------------------------------------------------------------------------
 * CUSTOM FONT
 * ---------------------------------------------------------------------------------------------------------------------------------------------------------- */
@font-face {
    font-family: "Myriad Pro Bold";
    src: url('../fonts/Myriad_Pro_Bold.ttf');
}
@font-face {
    font-family: "Myriad Pro Semibold";
    src: url('../fonts/Myriad_Pro_Semibold.otf');
}
@font-face {
    font-family: "Myriad Pro Regular";
    src: url('../fonts/Myriad_Pro_Regular.ttf');
}
@font-face {
    font-family: "Neutra Text TF Demi";
    src: url('../fonts/Neutra_Text_TF_Demi.otf');
}

/* ----------------------------------------------------------------------------------------------------------------------------------------------------------
 * BROWSER MOD
 * ---------------------------------------------------------------------------------------------------------------------------------------------------------- */
th:focus,
textarea:focus,
input:focus,
a:active,
button:active,
a:focus,
button:focus {
    border: none;
    outline: 0;
}
/* Change the white to any color */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 999px #FFF inset !important;
    -webkit-text-fill-color: var(--input-font-color) !important;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
/* ----------------------------------------------------------------------------------------------------------------------------------------------------------
 * BOOTSTRAP MOD
 * ---------------------------------------------------------------------------------------------------------------------------------------------------------- */
.container {
    margin: 0 auto;
    position: relative;
}
.well {
    position: relative;
}
/* ----------------------------------------------------------------------------------------------------------------------------------------------------------
 * ZBOX MOD
 * ---------------------------------------------------------------------------------------------------------------------------------------------------------- */
.zbox {
    height: 0 !important;
    width: 0 !important;
}
.zbox .main_slot {
    
}
.zbox .overlay {
    display: none !important;
}
/* ----------------------------------------------------------------------------------------------------------------------------------------------------------
 * SCROLLBAR
 * ---------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* width */
::-webkit-scrollbar {
    border-radius: 10px;
    height: 10px;
    width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
    background: transparent; 
}
/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
    /*border-radius: 10px;*/
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* ----------------------------------------------------------------------------------------------------------------------------------------------------------
 * LAYOUT
 * ---------------------------------------------------------------------------------------------------------------------------------------------------------- */
html {
    -webkit-font-smoothing: antialiased !important;
}
html * {
        -webkit-font-smoothing: antialiased !important;
}
body {
    background: transparent no-repeat;
    background-color: transparent;
    color: var(--primary-font-color);
    font-family: "Myriad Pro Regular";
    min-width: 320px;
}


body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrolling */
    height: 100%; /* Full viewport height */
    width: 100%; /* Full viewport width */
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (orientation: portrait) {
    body {
        min-height: 427px;
        min-width: 320px;
    }
}

/* Default container styling */
.site_container {
    width: 100vw; /* Full viewport width by default */
    height: 100vh; /* Full viewport height by default */
    box-sizing: border-box;
    overflow: hidden;
    /*display: flex;
    align-items: center;
    justify-content: center;*/
}
.not_supported {
    background-color: rgba(0, 0, 0, .5);
    display: none;
    height: 100svh;
    width: 100svw;
}

/* force_portrait-specific styles */
body.force_portrait .site_container {
    aspect-ratio: 3 / 4; /* Maintain 3:4 aspect ratio */
    height: 100vh; /* Max height is the full viewport height */
    width: unset; /* Remove any width property set on force_portrait, letting aspect-ratio take over */
}

@media (max-width: 319px) {
    body, html {
        /*overflow: unset;
        overflow-x: scroll;*/
        min-height: auto;
        min-width: auto;
    }
}
@media (max-height: 426px) {
    body, html {
        /*overflow: unset;
        overflow-y: scroll;*/
        min-height: auto;
        min-width: auto;
    }
}
@media (orientation: portrait) and (max-width: 319px) {
    body, html {
        /*overflow: unset;
        overflow-x: scroll;*/
    }
    .site_container, #ftr_Footer {
        display: none;
    }
    .not_supported {
        display: block
    }
}
@media (orientation: landscape) and (max-height: 426px) {
    body, html {
        /*overflow: unset;
        overflow-y: scroll;*/
    }
    .site_container, #ftr_Footer {
        display: none;
    }
    .not_supported {
        display: block
    }
}
#div_PageLoader {
    background: rgba(255, 255, 255, 0.95);
    display: none;
    border-radius: 20px;
    left: 50%;
    padding: 0 40px;
    position: fixed;
    transform: translate(-50%, -50%);
    top: 40%;
    z-index: 1;
}
body.page_fadein .site_container{
    opacity: 1;
}
body.page_fadeout .site_container{
    opacity: 0;
}
body.page_fadeout #div_PageLoader {
    display: block;
}
    html.float_bottom_footer,
    html.float_bottom_footer body {
        height: 100%;
    }
    html.float_bottom_footer body #ftr_Footer {
        bottom: 0;
        left: 0;
        margin-left: auto;
        margin-right: auto;
        position: absolute;
        right: 0;
    }
/*.scroll_wrapper {max-height: 100vh;}*/
.site_container {
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    transition:opacity 0.5s ease-in-out;
}
a {
    color: #005DA5;
}
a:link,
a:hover,
a:active,
a:focus,
a:visited {
    text-decoration: none !important;
}
a:hover {
    
}
button {
    
}
p {
    margin-bottom: 10px;
}
#div_App {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 1024px;
    transform-origin: top left;
    transform: var(--app-scale-ratio);
}
#div_AppContent {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 1024px;
    width: 100%;
}
#ftr_Footer {
    background: var(--primary-color);
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    color: #FFF;
    font-size: 0.8rem;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    width: 100%;
}
#ftr_Footer.mobile {
    transition: transform 0.3s ease-in-out;
}
    #ftr_Footer .footer_preview {
        display: none;
    }
    #ftr_Footer .footer_container {
        color: #FFF;
        display: flex;
        justify-content: space-between;
        margin: 0 auto;
        max-width: 1290px;
        padding: 20px;
        position: relative;
        width: 100%;
    }
        #ftr_Footer .footer_left {
            flex: 1;
            font-size: 0.8rem;
            text-align: left;
        }
        #ftr_Footer .footer_right {
            align-items: center;
            display: flex;
        }
        #ftr_Footer .footer_social_buttons {
            display: flex;
        }
            #ftr_Footer .footer_social_buttons a {
                background: transparent url('../images/sprite_social_button.png') no-repeat 0 0;
                display: flex;
                height: 33px;
                margin-left: 17px;
                width: 33px;
            }
            #ftr_Footer .footer_social_buttons a:first-child {
                margin-left: 0;
            }
            #ftr_Footer .footer_social_buttons a.wechat {
                background-position: -33px 0;
            }
            #ftr_Footer .footer_social_buttons a.twitter {
                background-position: -66px 0;
            }
            #ftr_Footer .footer_social_buttons a.youtube {
                background-position: -99px 0;
            }
            #ftr_Footer .footer_social_buttons a.instagram {
                background-position: -132px 0;
            }
            #ftr_Footer .footer_social_buttons a.website {
                background-position: -165px 0;
            }
    /* Update the footer preview button to toggle */
    #ftr_Footer .read_more_btn {
        background-color: transparent;
        border: none;
        color: #FFF;
        cursor: pointer;
        display: flex;
        align-items: center;
    }
    /* Update the expanded state text */
    #ftr_Footer.expanded .read_more_btn {
        content: "Close";
    }

    /* Update just the down arrow icon */
    #ftr_Footer .read_more_btn::after {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-left: 5px;
        mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M1,3 L4,6 L7,3" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
        -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M1,3 L4,6 L7,3" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
        background-color: currentColor;
    }
    #ftr_Footer.expanded .read_more_btn::after {
        mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><line x1="0.5" y1="0.5" x2="7.5" y2="7.5" stroke="currentColor" stroke-width="1" stroke-linecap="round"/><line x1="7.5" y1="0.5" x2="0.5" y2="7.5" stroke="currentColor" stroke-width="1" stroke-linecap="round"/></svg>') no-repeat center;
        -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><line x1="0.5" y1="0.5" x2="7.5" y2="7.5" stroke="currentColor" stroke-width="1" stroke-linecap="round"/><line x1="7.5" y1="0.5" x2="0.5" y2="7.5" stroke="currentColor" stroke-width="1" stroke-linecap="round"/></svg>') no-repeat center;
        background-color: currentColor;
    }

    #div_Copyright {
        margin-top: 10px;
    }
.scrollbar-macosx > .scroll-element.scroll-y .scroll-bar {
    left: -3vh;
    min-height: 10px;
    width: 2vh;
}
#div_TnCContent,
#div_PrivacyPolicyContent {
    display: none;
}
/* -----------------------------------------------------------------------
 * Form
 * ----------------------------------------------------------------------- */
.form_label {
    color: #5D5C5C;
    font-family: "Myriad Pro Semibold";
    font-size: 30px;
    margin-bottom: 10px;
    margin-left: 20px;
}
.input_wrapper {
    position: relative;
}
.input_dropdown,
.input_option,
.input_option_small,
.input_textbox {
    background-color: #FFF;
    border-radius: 1.3rem;
    color: var(--input-display-font-color);
    cursor: pointer;
    padding: 0 20px;
    position: relative;
    width: 100%;
}
.input_dropdown_list {
    background: #FFF;
    border-radius: 0.5rem;
    box-shadow: 0px 2px 7px rgb(0 0 0 / 15%);
    cursor: pointer;
    display: none;
    list-style: none;
    margin: 0 auto;
    margin-top: -27px;
    width: calc(100% - 1.3rem);
}
.input_dropdown_list::-webkit-scrollbar-thumb {
    border-radius: 10px;
}
.input_dropdown_list.expanded {
    display: block;
}
.input_dropdown_list.floating {
    left: 50%;
    max-height: 500px;
    position: absolute;
    overflow-y: scroll;
    transform: translateX(-50%);
    z-index: 1;
}
.input_dropdown_list ul {
    list-style: none;
    padding: 12px 15px;
}
.input_dropdown_list li {
    position: relative;
    padding: 6px 0;
}
.input_dropdown_list li:first-child {
    padding-top: 0;
}
.input_dropdown_list li:last-child {
    padding-bottom: 0;
}
.input_dropdown_list li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    height: 1px;
    background-color: #E7E7E7; /* Border color */
}
.input_dropdown_list li:first-child::before,
.input_dropdown_list li.first-child::before {
    display: none;
    width: 0;
    height: 0;
    background-color: none;
}
.input_dropdown_list li span,
.input_dropdown_list li:first-child span,
.input_dropdown_list ul > li > span {
    border-radius: 3rem;
    color: #BCBEC0;
    display: block;
    font-family: "Myriad Pro Regular";
    font-size: 1.625rem;
    padding: 10px 25px;
}
.input_dropdown_list li:last-child span {
    border-bottom: 0;
}
.input_dropdown_list li span:hover {
    background: var(--input-display-font-color);
    color: #FFF;
}
.input_dropdown_list li span.no_hover:hover {
    background-color: transparent;
}
.input_dropdown span.text,
.input_option span.text,
.input_option_small span.text,
.input_textbox span.text,
.input_textbox input[type=textbox],
.input_textbox input[type=number],
.input_textbox input[type=password]  {
    background: transparent;
    border: 0;
    color: var(--input-font-color);
    font-size: 1.625rem;
    height: 5rem;
    line-height: 5rem;
    width: 100%;
}
.input_dropdown span.text {
    color: var(--input-display-font-color);
}
.input_dropdown span.text.selected {
    color: var(--input-font-color);
}
.input_checkbox .checkbox {
    background: transparent url('../images/checkbox_sprite.png') no-repeat 0 0;
    display: block;
    height: 25px;
    position: absolute;
    left: 12px;
    top: 4px;
    width: 29px;
}
.input_checkbox .checkbox.checked {
    background-position: 0 -25px;
}
.input_checkbox .text {
    color: var(--input-display-font-color);
    cursor: default;
    display:block;
    font-size: 1.25rem;
    margin-left: 3.625rem;
}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--input-display-font-color);
    opacity: 1; /* Firefox */
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--input-display-font-color);
}
::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--input-display-font-color);
}
.input_textbox {
    cursor: default;
}
.input_checkbox {
    position: relative;
    width: 100%;
}
.input_option_small {
    padding: 0;
}
/* -----------------------------------------------------------------------
 * Speech Bubble
 * ----------------------------------------------------------------------- */
span.speech_bubble {
    background-color: #FFF;
    border-radius: 5px;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, .3), 0 0.0625rem 0.125rem rgba(0, 0, 0, .2);
    bottom: -33px;
    font-size: 14px;
    left: 10px;
    padding: 5px 5px 5px 32px;
    position: absolute;
    white-space: nowrap;
    z-index: 2147483647;
}
span.speech_bubble::before {
    border: .5rem solid transparent;
    border-bottom-color: #FFF;
    border-top: none;
    bottom: 99%;
    content: '';
    height: 0;
    left: 17px;
    position: absolute;
    width: 0;
    filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, .1));
}
span.speech_bubble.error {
    background: #FFF url('../images/icon-error.png') no-repeat 9px 9px;
    background-size: 14px;
    color: #FF0000;
    display: none;
}
/* -----------------------------------------------------------------------
 * zbox msgbox error
 * ----------------------------------------------------------------------- */
.zbox_msgbox_container {
    align-items: center;
    display: flex;
    justify-content: center; /* center of flex-direction*/
    flex-direction: column;
    height: 500px;
}
    .zbox_msgbox_title,
    .zbox_msgbox_message {
        display: flex;
    }
    .zbox_msgbox_title {
        font-family: "Myriad Pro Bold";
        font-size: 60px;
    }
    .zbox_msgbox_message {
        font-size: 32px;
    }
/* -----------------------------------------------------------------------
 * zbox prize
 * ----------------------------------------------------------------------- */
.zbox_prize_container {
    /*height: 343px;*/
    height: 440px;
    margin-bottom: 70px;
    margin-top: 44px;
    position: relative;
    width: 801px;
}
    .zbox_prize_submission {
        display: flex;
        justify-content: center;
        font-size: 30px;
        line-height: 1.2em;
    }
    .zbox_prize_submission_detail {
        bottom: 32px;
        position: absolute;
        text-align: center;
    }

.zbox_footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;;
}
    .zbox_share_container,
    .zbox_tnc_container {
        align-items: flex-end;
        display: flex;
        flex-direction: row;
    }
        .zbox_share_title,
        .zbox_share_buttons {
            display: flex;
        }
        .zbox_share_title {
            font-size: 19.45px;
            text-align: center;
        }
        .zbox_share_buttons {
            margin-left: 13px;
        }
            a.zbox_share_button {
                background: transparent url('../images/sprite_popup_social_button.png') no-repeat 0 0;
                display: flex;
                margin-left: 13px;
                height: 52px;
                width: 52px;
            }
            a.zbox_share_button.facebook{
                margin-left: 0;
            }
            a.zbox_share_button.wechat {
                background-position: -52px 0;
            }
    .zbox_tnc_container a {
        color: #000;
        font-size: 11px;
    }

@media (max-width: 768px) {
    #ftr_Footer {
        bottom: 0;
        position: fixed;
        left: 0;
        transform: translateY(calc(100% - 40px));
        z-index: 10
    }
    
    #ftr_Footer.collapsed {
        transform: translateY(calc(100% - 40px));
    }
    
    #ftr_Footer.expanded {
        transform: translateY(0);
    }
    
    #ftr_Footer .footer_preview {
        align-items: center;
        box-sizing: border-box;
        cursor: pointer;
        display: flex;
        height: 40px;
        justify-content: space-between;
        padding: 10px 20px;
    }
    
    #ftr_Footer .footer_container {
        flex-direction: column;
    }
    
    #ftr_Footer.expanded .footer_container {
        display: flex; /* Show when expanded */
    }
    
    #ftr_Footer .footer_right {
        justify-content: center;
        margin-top: 15px;
        width: 100%;
    }
    #ftr_Footer .footer_social_button {
        margin: 0 5px;
    }
}