:root {
    --primary-red: #B71F26;
    --sidebar-width: 280px;
    --sidebar-width-tablet: 95px;
    --max-website-width: 1920px;

    /* Font Sizes */
    --font-size-base: 1rem; /* 16px */
    --font-size-xsmall: 0.625rem; /* 10px */
    --font-size-small: 0.75rem; /* 12px */
    --font-size-xmedium: 0.8rem; /* 13px */
    --font-size-medium: 0.875rem; /* 14px */
    --font-size-large: 1.125rem; /* 18px */
    --font-size-xlarge: 1.25rem; /* 20px */
    --font-size-xxlarge: 1.5rem; /* 24px */
    --font-size-xxxlarge: 1.625rem; /* 26px */
    --font-size-xxxxlarge: 1.75rem; /* 28px */
    --font-size-xxxxxlarge: 2rem; /* 32px */
    --font-size-6xlarge: 3.5rem; /* 56px */
}

img {
  -webkit-touch-callout: none; /* Prevents callout (copy/save) on long press */
  -webkit-user-select: none;   /* Prevents text/image selection */
  user-select: none;
  touch-action: none;          /* Disables double-tap and hold gestures */
}

@media (max-width: 767px) {
    :root {
        /* Mobile Font Sizes */
        --font-size-base: 0.875rem; /* 14px (原本 16px) */
        --font-size-xsmall: 0.5625rem; /* 9px (原本 10px) */
        --font-size-small: 0.625rem; /* 10px (原本 12px) */
        --font-size-xmedium: 0.6875rem; /* 11px (原本 13px) */
        --font-size-medium: 0.75rem; /* 12px (原本 14px) */
        --font-size-large: 1rem; /* 16px (原本 18px) */
        --font-size-xlarge: 1.125rem; /* 18px (原本 20px) */
        --font-size-xxlarge: 1.25rem; /* 20px (原本 24px) */
        --font-size-xxxlarge: 1.375rem; /* 22px (原本 26px) */
        --font-size-xxxxlarge: 1.5rem; /* 24px (原本 28px) */
        --font-size-xxxxxlarge: 1.75rem; /* 28px (原本 32px) */
        --font-size-6xlarge: 2.5rem; /* 40px (原本 56px) */
    }
}
body {
    /* display: flex; */
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    background-color: #D8D8D8;
    margin: 0;
    padding: 0;
    font-size: var(--font-size-base);
}
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
@media (max-width: 767px) {
    body {
        font-size: var(--font-size-medium);
    }
}
a {
    transition: all 0.3s ease;
    text-decoration: none;
}
a:hover:not(.disabled) {
    /* text-decoration: underline */
}
.container-wrapper {
    display: flex;
    width: 100%;
    max-width: var(--max-website-width);
    position: relative;
    min-height: 100vh;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    background-color: #F9F9F9;
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
@media (max-width: 767px) {
    .main-content {
        width: 100%;
        margin-top: 140px;
        padding-bottom: 80px;
        min-height: calc(100vh - 140px);
    }
    .no-announcement .main-content {
        margin-top: 100px;
    }
}


/* Main Section Styles */
.main-section {
    margin-top: -70px;
    z-index: 10;
    width: 90%;
    margin-left: auto;
    margin-right: 0;
}

.main-section > div:last-child {
    padding-right: 0px;
}

@media (max-width: 1280px) {
    .main-section > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .main-section > div {
        padding-right: 0px;
    }
}

.section-title {
    color: #9D6439;
    font-size: var(--font-size-xxlarge);
    /* text-transform: uppercase; */
    font-weight: normal;
}

@media (max-width: 767px) {
    .section-title {
        font-size: var(--font-size-xlarge);
    }
}

.section-title a {
    text-decoration: none;
}

.main-copyright {
    display: block;
    font-size: var(--font-size-small);
    padding: 25px;   
}

.main-copyright a {
    color: #000;
    text-decoration: none;
}

.main-copyright a:hover:not(.disabled) {
    /* text-decoration: underline */
}

@media (max-width: 1024px) {
    .main-copyright {
        display: block;
        padding-left: 60px;
    }
}
@media (max-width: 767px) {
    .main-copyright {
        padding-left: 25px;
    }
}

.display-none {
    display: none;
}

.text-no-wrap {
    white-space: nowrap;
}

/* Loader */
.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid #0000;
    border-right-color: #B71F26;
    position: relative;
    animation: rotatation 1s infinite linear;
}
.loader:before,
.loader:after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: inherit;
    animation: inherit;
    animation-duration: 2s;
}
.loader:after {
    animation-duration: 4s;
}
@keyframes rotatation {
    100% {transform: rotate(1turn)}
}
.loader-block {
    position: fixed; z-index: 10000; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(183,168,127,0.8);
    pointer-events: auto;
}
.loader-block-popup {
    z-index: 10010;
}
.loader-popup {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: transparent; 
    padding: 40px;
    text-align: center;
    max-height: 95vh;
    overflow-y: auto;
}
/* Loader */

/* Tablet view */
@media (min-width: 768px) and (max-width: 1024px) {
    .main-section {
        margin-left: 30px;
    }
    .main-section > div {
        padding-left: 0px;
    }
}

/* Auto-added mobile full-width */
@media (max-width: 767px) {
    .main-section {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .main-section > div {
        padding-left: 0px;
    }
}

.wb {
    word-break: break-all;
}

.ow {
    overflow-wrap: anywhere;
}

.cancel-btn {
    background-color: rgba(0, 0, 0, 0);
    color: #8B8B8B;
    border: none;
}

.sp-message-overlay {
    position: fixed;
    z-index: 10101;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(183, 168, 127, 0.8);
}
.sp-msg-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 40px;
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
    text-align: center;
    max-height: 95vh;
    overflow-y: auto;
}
.sp-msg-desc {
    font-size: var(--font-size-large);
}