* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #fff;
    color: #283c54;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

a {
    text-decoration: none;
}

.site-width {
    width: calc(100% - 40px);
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================
   HEADER
========================= */

.site-header {
    background: #fff;
}

.header-inner {
    height: 82px;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-circle {
    width: 48px;
    height: 48px;
    border: 7px solid #0879b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #0879b8;
    font-size: 16px;
    font-weight: 900;

    position: relative;
}

.logo-circle::after {
    content: "";
    width: 11px;
    height: 26px;

    background: #f16c42;

    position: absolute;
    right: -10px;
    bottom: -17px;

    transform: rotate(-40deg);
    border-radius: 5px;
}

.logo-text {
    margin-left: 11px;
    display: flex;
    flex-direction: column;
    line-height: .95;
    font-style: italic;
    font-weight: 900;
}

.logo-text strong {
    color: #f05a3c;
    font-size: 25px;
}

.logo-text span {
    color: #0876b7;
    font-size: 23px;
}


/* =========================
   NAV
========================= */

.main-nav {
    background: #078ee4;
}

.nav-inner {
    min-height: 47px;

    display: flex;
    align-items: center;

    gap: 24px;

    overflow-x: auto;
}

.nav-inner a {
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================
   LAYOUT
========================= */

.page-layout {
    display: grid;

    grid-template-columns:
        minmax(360px, 390px)
        minmax(400px, 450px)
        minmax(230px, 270px);

    gap: 20px;

    align-items: start;

    margin-top: 20px;
}

.left-column,
.center-column,
.right-column {
    min-width: 0;
}


/* =========================
   LOTTERY TABLE
========================= */

.result-card {
    background: #fff;
    border: 1px solid #ddd;
}

.result-heading {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    text-align: center;

    font-weight: 700;

    border-bottom: 1px solid #ddd;
}

.lottery-statistics {
    width: 100%;
}

.lottery-statistics table {
    width: 100%;

    table-layout: fixed;

    border-collapse: collapse;

    background: #fff;
}

.lottery-statistics th,
.lottery-statistics td {
    height: 43px;

    padding: 7px 4px;

    border: 1px solid #ddd;

    text-align: center;
    vertical-align: middle;

    font-weight: 700;
}

.lottery-statistics th {
    background: #f2f2f2;
    color: #333;
}

.lottery-statistics th:first-child,
.lottery-statistics td:first-child {
    width: 48%;
}

#resultG1,
#resultG7_1,
#resultG7_2,
#resultG7_3,
#resultG7_4,
#resultG1History,
#resultG7_1History,
#resultG7_2History,
#resultG7_3History,
#resultG7_4History {
    color: #f44336;
}

#resultDB,
#resultDBHistory {
    color: #333;
}


/* =========================
   LOADING
========================= */

.loading {
    display: inline-block;

    width: 20px;
    height: 20px;

    border: 3px solid #ccc;
    border-top-color: #3498db;

    border-radius: 50%;

    vertical-align: middle;

    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================
   PREDICTION
========================= */

.prediction-box {
    margin-top: 48px;

    background: #fff;

    box-shadow:
        0 2px 12px
        rgba(0, 0, 0, .09);
}

.box-title {
    padding: 13px 11px;

    background: #0792e8;

    color: #fff;

    font-size: 16px;
    font-weight: 700;
}

.number-list {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    padding: 15px;
}

.number-list span {
    min-width: 51px;

    padding: 8px 5px;

    background: #fff;

    border: 1px solid #eee;
    border-radius: 4px;

    color: red;

    font-weight: 700;

    text-align: center;

    text-decoration: underline;
}


/* =========================
   HISTORY
========================= */

.history-area {
    margin-top: 20px;

    background: #fff;

    box-shadow:
        0 2px 12px
        rgba(0, 0, 0, .07);
}

#datePickerHistory {
    width: 310px;
    max-width: 100%;

    height: 41px;

    padding: 8px 11px;

    border: 1px solid #ccd5dd;
    border-radius: 5px;

    background: #f4f8fc;

    color: #53677e;

    font-size: 15px;

    display: block;

    margin-bottom: 14px;
}


/* =========================
   CENTER ARTICLE
========================= */

.article-main-title {
    margin: 0 0 22px;

    color: #008cea;

    font-size: 17px;
    line-height: 1.35;
}

.article-box {
    padding: 0 12px 17px;

    border: 1px solid #999;

    color: #666;
}

.article-box-title {
    padding: 13px 5px;

    color: #333;

    font-weight: 700;

    text-align: center;
}

.article-box ol {
    padding-left: 25px;
}

.article-box ol ol {
    padding-left: 20px;
}

.article-box li {
    margin: 8px 0;

    line-height: 1.4;
}

.article-box a {
    color: #0074d9;

    text-decoration: underline;
}


/* =========================
   FREQUENCY
========================= */

.frequency-box {
    margin-top: 20px;
}

.frequency-title {
    padding: 7px;

    background: #fff2b4;

    color: #111;

    text-align: center;

    font-size: 12px;
    font-weight: 700;
}

.frequency-box table {
    width: 100%;

    table-layout: fixed;

    border-collapse: collapse;

    font-size: 11px;
}

.frequency-box th,
.frequency-box td {
    height: 48px;

    border: 1px solid #bdbdbd;

    text-align: center;
    vertical-align: middle;
}

.frequency-box th {
    width: 43px;

    background: #d8edf5;

    color: #111;
}

.frequency-box td {
    background: #e5e5e5;
}

.frequency-box .hot {
    background: #fff;

    color: red;

    font-size: 13px;
    font-weight: 700;
}

.frequency-box small {
    display: block;

    margin-top: 3px;

    color: #222;

    font-size: 9px;
    font-style: italic;
}


/* =========================
   RIGHT BANNER
========================= */

.ad-banner {
    height: 665px;

    overflow: hidden;

    position: relative;

    background:
        linear-gradient(
            160deg,
            #ffe800 0%,
            #fff6b1 48%,
            #ff7800 76%,
            #ff0505 100%
        );

    text-align: center;
}

.map-art {
    height: 370px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.map-dots {
    color: #ee2737;

    font-size: 30px;
    font-weight: 900;

    transform: rotate(10deg);

    opacity: .9;
}

.map-pin {
    width: 105px;
    height: 105px;

    margin: -25px auto 20px;

    border: 10px solid #b46c00;
    border-radius: 50% 50% 50% 10px;

    background: #fff;

    color: #d68800;

    font-size: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: rotate(-45deg);
}

.map-pin::first-letter {
    transform: rotate(45deg);
}

.ad-banner strong {
    display: block;

    padding: 0 10px;

    color: #fff;

    font-size: 30px;
    line-height: 1.2;

    text-shadow:
        1px 2px 3px
        rgba(0, 0, 0, .2);
}


/* =========================
   PROVINCE
========================= */

.province-box {
    margin-top: 20px;

    background: #fff;

    box-shadow:
        0 2px 12px
        rgba(0, 0, 0, .08);
}

.province-title {
    padding: 13px;

    background: #0792e8;

    color: #fff;

    font-size: 16px;
    font-weight: 700;
}

.province-list {
    padding: 5px 0;
}

.province-list a {
    position: relative;

    display: block;

    padding: 14px 12px 14px 31px;

    color: #123e75;
}

.province-list a::before {
    content: "";

    position: absolute;

    left: 14px;
    top: 50%;

    width: 6px;
    height: 6px;

    margin-top: -3px;

    background: #ff9f1a;

    border-radius: 50%;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .page-layout {
        grid-template-columns:
            minmax(350px, 1fr)
            minmax(350px, 1fr);
    }

    .right-column {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 20px;
    }

    .ad-banner {
        height: 450px;
    }

    .province-box {
        margin-top: 0;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .site-width {
        width: 100%;
    }

    .header-inner {
        height: 70px;
        padding: 0 12px;
    }

    .logo-text strong {
        font-size: 21px;
    }

    .logo-text span {
        font-size: 19px;
    }

    .nav-inner {
        padding: 0 12px;

        gap: 20px;
    }

    .page-layout {
        display: block;

        margin-top: 10px;

        padding: 0 7px;
    }

    .center-column,
    .right-column {
        display: none;
    }

    .result-heading {
        font-size: 12px;
    }

    .lottery-statistics th,
    .lottery-statistics td {
        height: 42px;

        padding: 5px 2px;

        font-size: 12px;
    }

    .lottery-statistics th:first-child,
    .lottery-statistics td:first-child {
        width: 39%;
    }

    .prediction-box {
        margin-top: 25px;
    }

    #datePickerHistory {
        width: 100%;
    }

}