/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Wrapper */

.mobile-nav .nav-icon a {
    position: relative;
    display: block;
    float: right;
    padding: 5px 16px;
    line-height: 1.125em;
    cursor: pointer;
    text-decoration: none;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background: #fde1d0;
    border-bottom: 5px solid #cc8b61;
    display: flex;
    flex-wrap: nowrap;
    color: #763e19;
    font-weight: bold;
}
.off-canvas-left .mfp-content, .off-canvas-right .mfp-content{
	background-color: #fde1d0;
}
.off-canvas .nav-vertical>li>a{
	color: #4f2407;
	font-size: 16px;
	padding: 8px;
}
.nav-sidebar.nav-vertical>li+li {
    border-top: 1px solid #4b130917;
}
.mobile-nav .nav-icon a .menu-title{
	display:block !important
}
body {
    font-size: 14px;
}
.page-wrapper{
	padding-top: 10px;
	padding-bottom: 10px;
}
html.bg-fill {
    background-attachment: unset !important;
    background-repeat: repeat-x !important;
    background-position: top center;
    background-size: auto !important;
}
#main, #wrapper {
    background-color: #ffffff00;
    position: relative;
}
main#main{
	background-color: #fff;
	border-radius: 10px;
	margin-top: 15px;
	margin-bottom: 30px;
}
#content > .row ,.page-wrapper > .row{
    max-width: 100% !important;
}
/* Header */
#masthead .container {
	max-width: 100%;
}
.header-bottom{
	    border-radius: 10px;
}

#wide-nav ul.header-bottom-nav.nav-left li {
    padding: 0 15px;
    height: 51px;
    line-height: 51px;
}
#wide-nav ul.header-bottom-nav.nav-left li:hover {
    background: #4f2407;
    cursor: pointer;
}
#wide-nav ul.header-bottom-nav.nav-left li a {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}
#wide-nav ul.header-bottom-nav.nav-left li:hover  a{
	color: #fff;
}

/* Footer */
.box-blog-post .box-text{
	padding-bottom: 0px;
}
footer {
    text-align: center;
    margin-bottom: 20px;
    color: #edd5c5;
}
footer a {
    color: #d1ad94;
    font-weight: bold;
}
/* Sidebar */
.menu-sidebar {
    background-image: url(img/box_menu_top.png), url(img/box_menu_foot.png);
    background-position: top center, bottom center;
    background-repeat: no-repeat, no-repeat;
    padding-top: 38px;
    padding-bottom: 30px;
    background-size: contain;
}
.menu-sidebar ul li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.menu-sidebar ul {
	background: url(img/box_menu_bg.png);
	list-style-image: url(img/bal.png);
	padding-top: 10px;
	padding-left: 40px;
	line-height: 22px;
	padding-bottom: 4px;
	padding-right: 10px;
	background-size: contain;
	margin-bottom: 0px;
}
A:active {
    color: #763e19;
    text-decoration: none;
}
A:hover {
    color: #763e19;
    text-decoration: underline;
    cursor: pointer;
}
.box_publicites2 {
    padding: 6px;
    padding-bottom: 15px;
}
.box_publicites2 h3 {
    color: #8b4513;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
}
.faq-item {
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0c9b0;
}
.faq-question {
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f9f1e8 0%, #f0e4d4 100%);
    border: 1px solid #e0c9b0;
    color: #8b4513;
    font-weight: 600;
    transition: all 0.3s ease;
    list-style: none;
}
.faq-answer {
    display: none;
    padding: 6px 10px;
    background: linear-gradient(135deg, #faf6f0 0%, #f4ebe0 100%);
    border-top: 1px solid #e0c9b0;
    color: #6b4423;
    line-height: 1.6;
}
.faq-answer p {
    margin: 0;
    color: #5d4037;
}
.faq-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    line-height: 1;
    flex: none;
}
.faq-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    line-height: 1;
    flex: none;
}
.faq-icon::before {
    content: "+";
    font-size: 16px;
    font-weight: bold;
    display: block;
    line-height: 1;
}
.faq-item[open] .faq-question {
    background: linear-gradient(135deg, #f0e4d4 0%, #e8d5c4 100%);
    border-bottom: none;
}
.faq-item[open] .faq-answer {
    display: block;
    animation: slideDown 0.3s ease;
}
.faq-item[open] .faq-icon {
    background: rgba(139, 69, 19, 0.2);
    color: #8b4513;
}
.faq-item[open] .faq-icon::before {
    content: "−";
}
.box_publicites_bg {
    background: linear-gradient(135deg, #f4e6d8 0%, #e8d5c4 100%);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.box_jeux.custom-post {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.box_jeux.custom-post .game-container {
    position: relative;
    height: 166px;
    overflow: hidden;
}
.box_jeux.custom-post .rating-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}
.box_jeux.custom-post .stars {
    display: flex;
    gap: 1px;
}
.box_jeux.custom-post .star.full {
    color: #ffd700;
}
.box_jeux.custom-post .rating-text {
    font-weight: bold;
    white-space: nowrap;
}
.box_jeux.custom-post .box_jeux_img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.box_jeux.custom-post .title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 10px 10px;
    z-index: 2;
}
.box_jeux.custom-post .title-overlay a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}

.box_jeux.custom-post:hover .box_jeux_img {
    transform: scale(1.05);
}
.box_jeux.custom-post:hover .rating-overlay {
    background: rgba(0, 0, 0, 0.9);
}
.box_jeux.custom-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#secondary aside{
	margin-bottom: 12px;
	background-color: #fceade;
	box-sizing: content-box;
	padding: 6px;
	background: linear-gradient(135deg, #f4e6d8 0%, #e8d5c4 100%);
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	margin-bottom: 6px;
}
#secondary aside#text-2 .widget-title {
    color: #8b4513;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 15px;
    text-align: center;
    font-size: 18px;
    display: block;
}
#secondary aside#text-2 .widget-title:before{
	--fa-family: var(--fa-family-classic);
	content: "\e561";
	--fa-family: var(--fa-family-classic);
	--fa-style: 900;
	--_fa-family: var(--fa-family, var(--fa-style-family, "Font Awesome 7 Free"));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: var(--fa-display, inline-block);
    font-family: var(--_fa-family);
    font-feature-settings: normal;
    font-style: normal;
    font-synthesis: none;
    font-variant: normal;
    font-weight: var(--fa-style, 900);
    line-height: 1;
    text-align: center;
    text-rendering: auto;
    width: var(--fa-width, 1.25em);
    margin-right: 10px;
}
.widget .is-divider{
	display: none;
}


/* category */

.category .box_jeux_bg {
    background-color: #fceade;
    margin-bottom: 12px;
    padding-bottom: 12px;
    width: 100%;
    background: linear-gradient(135deg, #f4e6d8 0%, #e8d5c4 100%);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
}
.box-blog-post .is-divider{
	display: none;
}
h5.post-title {
    font-weight: 700;
    padding-left: 1px;
    padding-top: 4px;
    color: #4f2407;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
h5.post-title a:hover {
    text-decoration: underline;
    color: #daa525;
}
h5.post-title a:active {
    text-decoration: none;
    color: #daa525;
}
.from_the_blog_excerpt  {
    overflow: hidden;
    text-overflow: ellipsis;
    height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nav-pagination>li>a, .nav-pagination>li>span {
    background-color: #fff;
    border: 1px solid;
    border-radius: 0px;
    display: block;
    font-size: 1.1em;
    font-weight: normal;
    height: 24px;
    line-height: 20px;
    min-width: 2.25em;
    padding: 0px;
    text-align: center;
    transition: all .3s;
    vertical-align: top;
    width: auto;
}
ul.links li {
    display: inline-block;
    margin: 0 2px;
}
h1.page-title{
	margin-top: 10px;
	margin-bottom: 30px;
}

/* Single */
.sub_box_jeu_bg {
    margin-top: 6px;
    margin-left: 6px;
    margin-right: 6px;
}
.custom-table {
    padding: 12px;
}
.sub_jeu_explix_bg {
    margin-left: 6px;
    margin-right: 6px;
}

h1.sub_jeu_explix_title {
    margin-bottom: 12px;
}
.game-controls {
    right: 10px;
    bottom: 10px;
    z-index: 4;
    display: flex;
    gap: 8px;
    position: relative;
    justify-content: flex-end;
}
.game-controls button {
    padding: 6px 14px;
    font-size: 14px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    background: #333;
    color: #fff;
    margin: 0 4px;
}
.box_de_base {
    border: 1px solid #f0cfb6;
    background-color: #fceade;
    margin-bottom: 12px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}
.sub_jeu_explix_text1 {
    width: 98px;
    margin-bottom: 6px;
    font-weight: 700;
    color: #4f2407;
    float: left;
}
.custom-table table tr {
    display: flex;
    align-items: center;
    border: 1px solid #000;
    padding: 6px;
}
table {
    border-collapse: separate;
    text-indent: initial;
    border-spacing: 2px;
}
td{
	 color: #763e19;
}
#comments{
	display: none;
}
.custom-table table tr + tr {
    border-top: none;
}
.entry-content {
    padding-bottom: 0px;
    padding-top: 0px;
}

.game-wrapper {
	position: relative;
	width: 100%;
	max-width: 960px;
	background: #000;
	margin: 0 auto;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.game-wrapper iframe {
	width: 100%;
	height: 480px;               /* chiều cao mặc định (PC) */
	border: 0;
	display: block;
	transition: height 0.3s ease;
}

/* Phóng to trong trang (PC, không fullscreen) */
.game-wrapper iframe.expanded {
	height: 720px;
}

/* Thanh nút bên dưới khi ở chế độ thường (PC) */
.game-controls {
	text-align: right;
	padding: 8px;
	background: transparent;
}
.game-controls button {
	padding: 6px 14px;
	font-size: 14px;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	background: #333;
	color: #fff;
	margin: 0 4px;
}

.btn-exit { display: none; }
.is-fullscreen .btn-exit { display: inline-block; }
.is-fullscreen .btn-open { display: none; }

/* Ẩn nút Phóng to khi fullscreen */
.css-fullscreen .btn-zoom { display: none !important; }

/* ======= Khi fullscreen ======= */
.is-fullscreen {
	width: 100vw;
	height: 100vh;
}
.is-fullscreen iframe {
	height: 100% !important;     /* ép iframe full màn hình */
}
.is-fullscreen .game-controls {
	position: absolute;
	right: 0; bottom: 12px;
	background: transparent;
	pointer-events: none;
}
.is-fullscreen .game-controls button {
	pointer-events: auto;
	background: rgba(0,0,0,0.5);
	backdrop-filter: blur(4px);
}

/* ======= MOBILE OVERLAY (PLAY) ======= */
.mobile-gate {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 4;
	padding: 24px;
}
.mobile-gate button {
	padding: 14px 28px;
	font-size: 18px;
	border: 0;
	border-radius: 10px;
	background: #e5e5e5;
	color: #000;
	font-weight: 700;
	letter-spacing: 0.5px;
	cursor: pointer;
}
.mobile-gate button:active { transform: scale(0.98); }

/* Chỉ hiện màn che trên thiết bị cảm ứng (mobile/tablet) */
@media (hover: none) and (pointer: coarse) {
	.mobile-gate { display: flex; }
}

/* Khi fullscreen hoặc sau khi bấm PLAY thì ẩn gate */
.is-fullscreen .mobile-gate,
.mobile-gate.gate-hidden { display: none !important; }

/* Mobile: giữ tỉ lệ 16:9 theo chiều rộng */
@media (max-width: 768px) {
	.game-wrapper iframe { height: 56.25vw; }
}

.game-wrapper { position: relative; }
.mobile-gate {
	position: absolute;
	inset: 0;
	display: none;               /* default: ẩn trên màn lớn */
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.7);
	z-index: 5;
}
.mobile-gate.gate-hidden { display: none !important; }

.btn-mobile-play {
	font: inherit;
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.game-controls {
	/* position: absolute; */
	right: 10px;
	bottom: 10px;
	z-index: 4;
	display: flex
		;
	gap: 8px;
	position: relative;
}

.css-fullscreen .game-controls {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 4;
	display: flex;
	gap: 8px;
}
/* ≤ 600px: bắt buộc overlay và ẩn controls */
@media (max-width: 600px) {
	.mobile-gate { display: flex; }
}
/* Fullscreen bằng CSS */
#game-wrapper.css-fullscreen {
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100vw !important;
	height: 100vh !important;
	max-width: 100% !important;
	max-height: 100% !important;
	z-index: 9999;
	margin: 0 !important;
	padding: 0 !important;
	background: #000;
}

#game-wrapper.css-fullscreen iframe {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	border: none !important;
	display: block;
}
/* Zoom mode (chỉ PC, không fullscreen) */
#game-wrapper.zoomed {
	position: relative;
	width: 120% !important;   /* phóng to hơn 20% */
	height: 120% !important;
	left: -10%;               /* canh giữa lại */
	top: -10%;
	z-index: 100;
	background: #000;
}

#game-wrapper.zoomed iframe {
	width: 100% !important;
	height: 100% !important;
	border: none !important;
}

/* Desktop giữ nguyên */
.side-barcustom .custom-post {
	width: 100%;
}

/* Mobile: chia 2 cột */
@media (max-width: 768px) {
	.side-barcustom {
		display: flex;
		flex-wrap: wrap;
		gap: 10px; /* khoảng cách giữa các box */
	}

	.side-barcustom .custom-post {
		width: calc(50% - 10px); /* 2 cột, trừ khoảng cách */
	}

	.side-barcustom .custom-post .game-container img {
		width: 100%;
		height: 100%;
	}
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}