* {
    box-sizing: border-box;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #39465a;
    font-size: 14px;
}
.site-header {
    height: 105px;

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

    border-top: 7px solid #4b2929;

    background: #fff;
}


.logo {
    font-size: 42px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -2px;
}


.logo-blue {
    color: #2162a5;
}


.logo-red {
    color: #ed293e;
}


.logo-ball {
    display: inline-flex;

    width: 46px;
    height: 46px;

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

    border-radius: 50%;

    background: #f3a400;

    color: #fff;

    font-size: 24px;
}
.main-nav {
    height: 52px;

    display: flex;
    align-items: center;

    background: #ed2849;
}


.nav-container {
    width: 1180px;
    max-width: calc(100% - 30px);

    margin: auto;

    display: flex;
    justify-content: center;
}


.nav-container a {
    padding: 18px 12px;

    color: #fff;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}


.nav-container a:hover {
    background: rgba(0, 0, 0, .08);
}

.page-container {
    width: 1180px;
    max-width: calc(100% - 30px);

    margin: 22px auto 120px;

    display: grid;

    grid-template-columns:
        minmax(0, 780px)
        380px;

    gap: 20px;
}


.main-column {
    min-width: 0;
}

.lottery-statistics {
    width: 100%;
}


.lottery-statistics table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;

    background: #fff;
}


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

    padding: 8px 6px;

    border: 1px solid #ddd;

    text-align: center;

    font-weight: 700;
}


.lottery-statistics th {
    background: #f2f2f2;

    color: #333;
}


.latest-title {
    height: 45px !important;

    background: #fff;

    color: #39465a;

    font-size: 15px;
}


.prize-name {
    width: 37%;

    font-size: 15px;
}


.red-number,
#resultG1,
#resultG1History,
#resultG7_1,
#resultG7_2,
#resultG7_3,
#resultG7_4,
#resultG7_1History,
#resultG7_2History,
#resultG7_3History,
#resultG7_4History {
    color: #f0443e !important;
}

.stats-section {
    margin-top: 55px;

    border: 1px solid #ddd;

    box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
}


.stats-tabs {
    display: flex;
    justify-content: center;

    height: 48px;

    border-bottom: 1px solid #ddd;
}


.stats-tabs button {
    padding: 0 20px;

    border: 0;

    background: transparent;

    font-weight: 700;

    cursor: pointer;
}


.stats-title {
    padding: 13px;

    background: #f5f5f5;

    text-align: center;

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

    border-bottom: 1px solid #ddd;
}


.stats-table {
    width: 100%;

    border-collapse: collapse;
}


.stats-table th,
.stats-table td {
    padding: 10px;

    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;

    text-align: left;

    font-size: 12px;
}


.stats-table th {
    background: #f4f4f4;
}

.history-section {
    margin-top: 45px;
}


.history-toolbar {
    min-height: 52px;

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

    padding: 7px 8px 7px 14px;

    border: 1px solid #d4d9df;
    border-bottom: 0;

    background: #f6f8fa;
}


.history-toolbar > strong {
    font-size: 14px;
}


.history-date {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}


.history-date span {
    color: #777;

    font-size: 12px;
}


#datePickerHistory {
    width: 190px;
    height: 38px;

    padding: 6px 10px;

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

    background: #edf3fa;

    color: #68768a;

    font-size: 15px;

    outline: none;
}

.sidebar-box {
    margin-bottom: 20px;

    padding: 10px;

    background: #fff;

    box-shadow: 0 1px 12px rgba(0, 0, 0, .10);
}


.sidebar-title {
    padding: 11px;

    background: #ef2949;

    color: #fff;

    text-align: center;

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


.sidebar-box ul {
    margin: 15px 0 5px;

    padding: 0;

    list-style: none;
}


.sidebar-box li {
    position: relative;

    margin: 11px 0;

    padding-left: 18px;

    color: #777;
}


.sidebar-box li::before {
    content: "";

    position: absolute;

    left: 0;
    top: 5px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: red;
}

.power-box {
    margin-top: 15px;

    padding: 0 10px 20px;

    border: 1px solid #ddd;

    text-align: center;

    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}


.power-title {
    margin: 0 -10px 20px;

    padding: 11px;

    background: #cf4b22;

    color: #fff;

    font-weight: 700;
}


.power-balls {
    display: flex;

    justify-content: center;

    gap: 8px;

    margin: 15px 0;
}


.power-balls span {
    width: 39px;
    height: 39px;

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

    border-radius: 50%;

    background: #d85524;

    color: #fff;

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


.power-box small {
    display: block;

    margin-top: 12px;

    color: #444;
}


.power-box > strong {
    display: block;

    margin-top: 7px;

    color: #cf4b22;

    font-size: 27px;
}


.power-box > strong.small-jackpot {
    font-size: 25px;
}

.mini-calendar {
    width: 320px;

    margin: 135px auto 0;

    background: #fff;

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

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

    overflow: hidden;
}


.calendar-header {
    height: 46px;

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

    padding: 0 12px;

    border-bottom: 1px solid #ddd;
}


.calendar-header button {
    border: 0;

    background: none;

    color: #555;

    font-weight: 700;

    cursor: pointer;
}


.calendar-week,
.calendar-days {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    text-align: center;
}


.calendar-week {
    padding: 10px 7px 4px;

    color: #777;

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


.calendar-days {
    gap: 3px;

    padding: 5px 8px 12px;
}


.calendar-day {
    height: 28px;

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

    background: #f6f6f6;

    color: #555;

    font-size: 12px;

    cursor: pointer;

    border-radius: 2px;
}


.calendar-day:hover {
    background: #e2eaf3;
}


.calendar-day.selected {
    background: #397dbd;

    color: #fff !important;

    font-weight: 700;
}


.calendar-day.sunday {
    color: #ef5252;
}


.calendar-day.future {
    opacity: .35;

    pointer-events: none;
}
.loading {
    display: inline-block;

    width: 18px;
    height: 18px;

    border: 3px solid #ddd;
    border-top-color: #ed2849;

    border-radius: 50%;

    animation: spin .8s linear infinite;
}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}
footer {
    background: #0875c9;

    color: #fff;

    padding: 28px 0;
}


.footer-inner {
    width: 1180px;
    max-width: calc(100% - 30px);

    margin: auto;

    line-height: 1.7;
}


.footer-inner p {
    margin-bottom: 0;

    font-size: 13px;
}

@media (max-width: 900px) {

    .page-container {
        grid-template-columns: 1fr;
    }


    .right-column {
        display: none;
    }


    .logo {
        font-size: 32px;
    }

}
@media (max-width: 600px) {

    .site-header {
        height: 75px;
    }


    .logo {
        font-size: 25px;
    }


    .logo-ball {
        width: 34px;
        height: 34px;

        font-size: 17px;
    }


    .main-nav {
        overflow-x: auto;
    }


    .nav-container {
        width: max-content;
        max-width: none;

        justify-content: flex-start;
    }


    .nav-container a {
        padding: 18px 10px;

        font-size: 12px;
    }


    .page-container {
        max-width: calc(100% - 14px);

        margin-top: 10px;
    }


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

        padding: 5px 2px;

        font-size: 12px;
    }


    .prize-name {
        width: 34%;
    }


    .stats-section {
        margin-top: 25px;
    }


    .stats-table th,
    .stats-table td {
        padding: 7px 4px;

        font-size: 10px;
    }


    .history-section {
        margin-top: 25px;
    }


    .history-toolbar {
        min-height: 45px;

        padding: 5px;
    }


    .history-toolbar > strong {
        font-size: 11px;
    }


    .history-date span {
        display: none;
    }


    #datePickerHistory {
        width: 145px;
        height: 34px;

        font-size: 12px;
    }

}