.onbody {
    background: #faf8ef;
    font-family: Arial;
    text-align: center;
    display: flex;
    height: 700px;
}

.game {
    width: fit-content;
    margin: 0 auto;
}

.board {
    --board-size: 520px;
    width: var(--board-size);
    height: var(--board-size);
    display: grid;
    grid-template-columns: repeat(var(--size), 1fr);
    grid-template-rows: repeat(var(--size), 1fr);
    gap: 10px;
    background: #bbada0;
    border: 4px solid #8f7a66;
    border-radius: 10px;
    box-sizing: border-box;
    margin-top: 10px;
}


.cell {
    background: #cdc1b4;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    font-weight: bold;
    color: #776e65;
}

.top {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    background: #faf8ef;
    margin-top: 10px;
}

.score {
    background: #bbada0;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

.top a {
    background: #bbada0;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    height: 37px;
    text-decoration: none;
}

button {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
}


.sidebar {
    width: 18%;
}


/* Khung quảng cáo */
.ad-box {
    background: white;
    border: 1px solid #ddd;
    min-height: 250px;
    margin-bottom: 20px;
    padding: 15px;
    text-align: center;
}


.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup.hidden {
    display: none;
}

.popup-content {
    width: min(90%, 320px);
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.popup-content h2 {
    margin-bottom: 15px;
}

.popup-content p {
    margin-bottom: 20px;
    font-size: 20px;
}

.popup-content button {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #f59563;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

/* ===========================
   CONFETTI
=========================== */

.confetti {
    position: fixed;
    width: 10px;
    height: 14px;
    top: -20px;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {

    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(1080deg);
        opacity: 0;
    }
}


/* ------------------------------------ */
.articles {
    /* width: 60%; */
    margin: 60px auto;
    padding-left: 18%;
    padding-right: 18%;
}

.articles p {
    font-size: 20px;
}

.articles h2 {
    color: red;
}