:root {
    --theme-bg: linear-gradient(to bottom, #f79430, #e46925);
    --theme-bg-solid: #e46925;
    --theme-color: white;
    --theme-bg-hover: #5a1a02;
    --theme-color-hover: white;

    --theme-color-2: white;
    --theme-color-hover-2: #fbf4e5;
    --theme-color-text-2: black;
    --theme-color-text-hover-2: #e46925;
}

@font-face {
    font-family: 'KaiTiFont';
    src: url('/fonts/simkai.ttf') format('truetype');
}

.main-content-margin {
    margin: 2rem auto;
}

.bg-theme {
    background: var(--theme-bg) !important;
}

.bg-white-cover {
    background: rgba(255, 255, 255, 0.2);
}

.text-theme {
    color: var(--theme-color);
}

.text-bg-theme {
    color: var(--theme-bg-solid) !important;
}

.btn-theme {
    background: var(--theme-bg);
    color: var(--theme-color);
    font-weight: 600;
    transition: 0.25s;
}

.btn-theme:hover {
    background: var(--theme-bg-hover);
    color: var(--theme-color-hover);
    box-shadow: 0px 0px 10px 2px #f79430;
}

.btn-theme:disabled {
    background: var(--theme-bg-hover);
    color: var(--theme-color-hover);
    opacity: 0.6;
}

.btn-theme.active {
    background: black !important;
}

.btn-theme-reverse {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid white;
    color: var(--theme-color-hover);
    font-weight: 600;
    transition: 0.25s;
}

.btn-theme-reverse:hover {
    transform: scale(1.025);
    background: var(--theme-bg-hover);
    color: var(--theme-color);
    box-shadow: 0px 0px 10px 2px white;
}

.btn-theme-2 {
    background-color: var(--theme-color-2);
    color: var(--theme-color-text-2);
    font-weight: 600;
    transition: 0.25s;
}

.btn-theme-2:hover {
    background-color: var(--theme-color-hover-2);
    color: var(--theme-color-text-hover-2);
    border: 1px solid var(--theme-color-text-hover-2);
}

.btn-custom-1 {
    border-radius: 2em !important;
    width: 10em !important;
    font-size: 1.2em !important;
}

.cursor-pointer {
    cursor: pointer;
}

.image-glow {
    transition: 0.5s;
}

.image-glow:hover {
    filter: drop-shadow(0 0 5px yellow);
}

.vertical-text {
    /* font-size: 11px; */
    -webkit-writing-mode: vertical-rl;
    -moz-writing-mode: vertical-rl;
    -ms-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
}

.chinese-font-family {
    font-family: 'KaiTi', 'KaiTiFont', 'STKaiti', 'Kaiti SC', 'Kaiti TC', serif;
}

.qimen-life-analysis .responsive-image {
    width: 100px;
}

.max-width-image img {
    max-width: 100%;
}

.image-rotate {
    transform: rotate(-90deg);
}

.table-title-small {
    font-size: 0.8em;
    font-weight: 600;
}

.text-rounded-bg {
    background: var(--theme-bg);
    color: var(--theme-color);
    padding: 0.3rem;
    border-radius: 50%;
}

.fs-small {
    font-size: 0.65em;
}

.profile-container {
    aspect-ratio: 1/1;
}

.action-btn {
    max-height: 0;
    overflow: hidden;
    transition: 0.5s;
}

.action-btn .btn {
    font-size: 0.85em !important;
}

.profile-container:hover .action-btn {
    overflow: unset;
    max-height: 200px;
}

.custom-disabled-bg .select2-selection {
    background-color: #f3f4f6 !important; /* gray-100 color */
}

.w-60-percent {
    width: 60%;
}

@media (max-width: 768px) {
    .main-content-margin {
        margin: 4rem auto;
    }

    .qimen-life-analysis .responsive-image {
        width: 60px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .natal-chart-table {
        width: 180%;
    }
}

@page {
    /* size: A4 portrait; or landscape */
    /* size: 210mm 297mm; */
    /* margin: 3mm 6mm; */
    margin: 3mm;
}

@media print {
    body * {
        visibility: hidden;
    }

    body {
        width: 210mm;
        height: 297mm;
    }

    .print-only,
    .print-only * {
        visibility: visible;
    }

    /* printing view have 2 setup (un-comment @page[margin] and .print-only to test for IOS) */
    /* .print-only {
        position: absolute;
        top: 0;
        left: 0;
    } */

    .print-only {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }

    .page-break {
        page-break-before: always;
    }

    .print-my-1 {
        margin-top: 0.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    .print-my-2 {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .print-max-width {
        max-width: 100% !important;
    }

    .print-zoom-80 {
        zoom: 0.8;
    }

    .print-zoom-90 {
        zoom: 0.9;
    }

    .print-col-9 {
        flex: 0 0 auto !important;
        max-width: 75% !important;
    }

    .print-col-8 {
        flex: 0 0 auto !important;
        max-width: 66.666667% !important;
    }

    .print-col-7 {
        flex: 0 0 auto !important;
        max-width: 58.33333333% !important;
    }

    .print-col-6 {
        flex: 0 0 auto !important;
        max-width: 50% !important;
    }

    .print-col-5 {
        flex: 0 0 auto !important;
        max-width: 41.66666667% !important;
    }

    .print-col-4 {
        flex: 0 0 auto !important;
        max-width: 33.333333% !important;
    }

    .print-col-3 {
        flex: 0 0 auto !important;
        max-width: 25% !important;
    }

    .print-order-1 {
        order: 1;
    }

    .print-order-2 {
        order: 2;
    }

    .print-overflow-hidden {
        overflow: hidden !important;
    }

    .table-responsive {
        overflow: hidden !important;
    }
}
