* {
    box-sizing: border-box;
}

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

body {
    background-color: #000;
    background-image: radial-gradient(#1a1818 5%, transparent 50%);
    background-size: 5px 5px;
    background-attachment: fixed;
    font-family: "Oswald", sans-serif;
    color: #fff;
}

/* =========================
   GENERAL
========================= */

a {
    color: #d6080d;
}

a:hover {
    color: #d6080d;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
.content p,
.menu a,
.title-footer,
.title-head {
    color: #fff;
}

h1 {
    font-size: 1.7rem;
    line-height: 1;
    margin: 0 0 30px;
    text-align: center;
}

h2,
h3 {
    font-size: 1.5rem;
    margin: 30px 0 10px;
    text-align: center;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 5px;
}

.space {
    width: 100%;
    height: 150px;
}

.container2 {
    width: 65%;
    margin: auto;
}

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

.head {
    width: 100%;
    padding: 5px;
    background: #000;
    border: 1px solid black;
    border-top: 5px solid #d6080d;
    border-bottom: 5px solid #d6080d;
    border-radius: 8px;
    margin-bottom: 20px;
}

.logo {
    display: block;
    width: 550px;
    height: 180px;
    margin: auto;
    background: url("/IMG-LIVE-DRAW-HK-LOTTO.png") center / 100% 100% no-repeat;
}

/* =========================
   MENU
========================= */

.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
    background: #d6080d;
    border: 1px solid #d6080d;
    margin-bottom: 20px;
    border-radius: 8px;
}

.menu a {
    display: inline-block;
    padding: 10px 20px;
    margin: 0;
    font-size: 18px;
    text-decoration: none;
    border-radius: 8px;
}

.menu a:hover {
    color: #000;
}

/* =========================
   CONTENT
========================= */

.content {
    margin-bottom: 20px;
    padding: 10px;
    background: black;
    border: 1px solid black;
    border-radius: 8px;
}

.content p {
    font-family: Poppins, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.8;
    text-align: justify;
}

.title-head {
    font-size: 24px;
}

.title-footer {
    font-size: 22px;
}

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

.banner1 {
    display: block;
    text-align: center;
}

.banner1 img {
    display: inline-block;
    width: 49.5%;
    padding: 1px;
}

.banner {
    text-align: center;
}

.banner img {
    display: block;
    width: 100%;
    margin: 0;
}

.headerbanner {
    text-align: center;
}

.headerbanner img {
    display: inline-block;
    width: 728px;
    padding: 2px;
}

.banner-top img {
    width: 728px;
}

/* =========================
   FLOATING BANNER
========================= */

.banner-float {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    z-index: 9999;
}

.banner-float img {
    width: 100%;
}

.floating-top,
.floating-bottom {
    position: fixed;
    left: 0;
    width: 100%;
    height: auto;
    padding: 0;
    background: transparent;
    text-align: center;
    z-index: 1001;
}

.floating-top {
    top: 0;
}

.floating-bottom {
    bottom: 0;
}

.floating-top img,
.floating-bottom img {
    width: 33%;
    padding: 1px;
    box-sizing: border-box;
}

.floating-top img {
    height: 100px;
}

.floating-bottom img {
    height: 90px;
}

/* =========================
   POPUP
========================= */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 0.5s;
    visibility: visible;
    opacity: 1;
    z-index: 9999;
}

.overlay:target {
    visibility: hidden;
    opacity: 0;
}

.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    padding: 2px;
    border-radius: 5px;
    transform: translate(-50%, -50%);
}

.popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
    position: absolute;
    right: 5px;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.popup .close:hover {
    color: #06d85f;
}

.popup .content {
    max-height: 30%;
    margin-top: 30px;
    overflow: auto;
}

/* =========================
   RESULT TABLE
========================= */

.result {
    width: 100%;
    text-align: center;
}

.result td {
    padding: 2px 4px;
    font-size: 15px;
    color: #fff;
    border: 1px solid #d6080d;
}

.headresult {
    color: #000;
    text-align: center;
    background: #bb0707;
    font-weight: 700;
}

.KeluaranHeader,
.table,
table {
    border-collapse: collapse;
}

.table {
    width: 100%;
    margin: 1px auto;
}

.TableKeluaran {
    width: 100%;
    margin: auto;
    text-align: center;
    border: 1px solid #ddd;
    border-spacing: 0;
}

.KeluaranHeader {
    color: #fff;
    font-size: 16px;
    padding: 10px 0;
    border: 1px solid #ddd;
    background: linear-gradient(
        135deg,
        #951a1d,
        #fff 50%,
        #951a1d 51%,
        #fff 100%
    );
}

td.KeluaranBody {
    border: 1px solid #ddd;
}

td.Keluaran_Banner_Body {
    display: none;
}

th.data-hk-lotto {
    background: #9c1512;
}

.hk-table {
    width: 98%;
}

.lassres,
.lassres table {
    width: 100%;
}

.entry-ld-container .entry-ld-table .entry-ld-brand {
    width: 100%;
    background-color: #000;
    border: 1px solid #ddd;
}

.comment-content td,
.comment-content th,
.entry-content td,
.entry-content th {
    padding: 4px 10px;
}

table {
    width: 100%;
}

/* =========================
   LINK
========================= */

.out-link {
    list-style-type: square;
    margin: 0 35px;
    color: #fff;
}

.out-link a {
    color: #fff;
    text-decoration: none;
}

/* =========================
   RELATED KEYWORDS
========================= */

.related-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.related-keywords span {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f1f1f1;
    color: #333;
    border-radius: 20px;
    font-size: 13px;
    cursor: default;
    transition: 0.3s;
}

.related-keywords span:hover {
    background-color: red;
    color: #fff;
    transform: scale(1.05);
}

/* =========================
   UPDATE BOX
========================= */

.update-box {
    padding: 15px;
    margin: 20px 0;
    background: #f5f5f5;
    border-left: 4px solid #ddd;
    border-radius: 0 5px 5px 0;
}

/* =========================
   FAQ
========================= */

.faq-container {
    max-width: 700px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.faq-item {
    margin-bottom: 10px;
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid red;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    position: relative;
    padding: 15px 20px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.faq-question:hover {
    background: red;
    color: #fff;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.3s;
}

.faq-answer p {
    margin: 0;
    padding: 15px 0;
    color: #333;
    line-height: 1.5;
}

/* =========================
   FOOTER
========================= */

footer {
    padding: 10px;
    color: #000;
    font-size: 14px;
    text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media screen and (max-width: 1200px) {
    .KeluaranBody {
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    .container2 {
        width: 100%;
    }

    .headerbanner img,
    .paitotable {
        width: 100%;
    }

    .floating-top img,
    .floating-bottom img {
        width: 96%;
        height: 43px;
        padding: 1px;
    }

    .logo {
        width: 280px;
        height: 80px;
        margin: auto;
    }

    .popup {
        width: 85%;
    }
}

@media screen and (max-width: 550px) {
    .logo {
        width: 250px;
        height: 80px;
        margin: auto;
    }

    .banner1 img {
        display: inline-block;
        width: 100%;
    }
}