/* CSS Aprimorado com Foco em Responsividade e Design Moderno */

:root {
	--primary-color: #19232f;
	--secondary-color: #1F2F3D;
	--accent-color: #39495A;
	--text-color: #a9a9a9;
	--link-color: #C6C6C6;
	--highlight-color: #01FE32;
	--transition-speed: 0.3s;
}

strong {
	color: var(--text-color);
}

html, body {
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	scroll-behavior: smooth;
}

body {
	background: linear-gradient(rgba(25, 35, 47, 0.85), rgba(25, 35, 47, 0.95)),
	url(../styles/ua_styles/csgo_motd_bg.jpg) center center no-repeat;
	background-size: cover;
	background-attachment: fixed;
	background-color: var(--primary-color);
	color: var(--text-color);
	padding: 15px;
	box-sizing: border-box;
	font-family: Verdana, Arial, sans-serif;
	font-size: 10pt;
	line-height: 1.6;
}

tr, td, div, span {
	font-family: Verdana, Arial, sans-serif;
	font-size: 10pt;
}

/* Links com transição suave */
a {
	transition: color var(--transition-speed), text-decoration var(--transition-speed);
	text-decoration: none;
}

a:link, a:visited {
	color: var(--link-color);
}

a:active, a:hover, a:focus {
	color: var(--highlight-color);
	text-decoration: none;
}

ul {
	margin-left: 6px;
	padding-left: 6px;
}

li {
	margin-bottom: 10px
}

/* Imagens responsivas com efeito de transição */
img {
	text-align: center;
	vertical-align: middle;
	border: none;
	max-width: 100%;
	height: auto;
	transition: transform var(--transition-speed);
}

/* ===== BANNER E TÍTULO ===== */
div.title {
	text-align: center;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 15px 0;
	margin-bottom: 20px;
	position: relative;
}

/* Banner aprimorado */
img[src*="/title.png"], img[src*="/icons/title.png"], img[alt*="ILstatsX Community Edition"] {
	display: block;
	margin: 0 auto;
	max-width: 90%;
	border-radius: 6px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	transition: all var(--transition-speed);
}

/* Classes de texto */
.fSmall {
	font-family: Verdana, Arial, sans-serif;
	font-size: 9pt;
}

.fHeading {
	font-family: Verdana, Arial, sans-serif;
	font-size: 12pt;
	font-weight: bold;
	margin-bottom: 10px;
}

.fTitle {
	font-family: Arial, sans-serif;
	font-size: 16pt;
	font-weight: bold;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
	margin-bottom: 15px;
}

/* Fundos e tabelas */
.bg1 {
	background-color: var(--secondary-color);
	border-radius: 4px;
}

.bg2 {
	background-color: #283846;
	border-radius: 4px;
}

.data-table {
	border-style: solid;
	border-width: 0px;
	border-color: var(--accent-color);
	border-collapse: collapse;
	width: 100%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 20px;
}

.data-table td {
	border-style: solid;
	border-width: 1px;
	border-color: var(--accent-color);
	padding: 8px;
	text-align: left;
}

.data-table-head {
	background-color: var(--accent-color);
	color: var(--link-color);
	vertical-align: bottom;
	font-weight: bold;
	padding: 10px 8px;
}

/* Linhas de tabela com hover */
.game-table-row {
	background-color: white;
	transition: background-color var(--transition-speed);
}

.game-table-row:hover, .game-table-row-hover {
	background-color: #eaebeb;
}

.game-table-cell {
	color: black;
	vertical-align: middle;
	border-style: solid;
	border-width: 1px;
	border-color: var(--accent-color);
	padding: 8px;
}

.game-table-cell a {
	color: black;
}

/* Navegação */
.location {
	background-color: var(--accent-color);
	height: auto;
	min-height: 22px;
	border-radius: 4px;
	margin-bottom: 15px;
}

.location a:link {
	color: var(--link-color);
}

.location a:hover {
	color: var(--highlight-color);
}

.location ul {
	list-style-type: none;
	list-style-image: none;
	padding: auto;
	margin: 0;
	color: var(--accent-color);
}

.location li {
	margin-left: 5px;
	display: inline-block;
	padding: 2px 0;
}

.block {
	margin: 0 auto;
	padding: 10px 0;
	border-radius: 6px;
	overflow: hidden;
}

.subblock {
	margin: 0 auto;
	width: 95%;
	padding: 10px;
	background-color: rgba(31, 47, 61, 0.7);
	border-radius: 6px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Navbar aprimorada */
.navbar {
	list-style-type: none;
	list-style-image: none;
	margin: 0;
	padding: 10px 0 20px 0;
	text-align: center;
	display: flex; /* Changed from inline-block to flex for better control */
	justify-content: center; /* Centers items */
	flex-wrap: wrap; /* Allows items to wrap on smaller screens */
	width: 100%;
}

.navbar li {
	margin: 0 5px;
	padding: 5px 10px; /* Added padding for better touch targets on mobile */
}

.navbar img {
	margin: 0 4px;
	transition: transform var(--transition-speed);
}

/* Media query for mobile devices */
@media (max-width: 768px) {
	.navbar {
		flex-direction: column; /* Stacks items vertically on small screens */
		padding: 10px;
	}

	.navbar li {
		margin: 5px 0; /* Adjusts spacing for vertical layout */
	}
}

.navbar img:hover {
	transform: scale(1.1);
}

.headerblock {
	height: auto;
	min-height: 50px;
	position: relative;
	margin-bottom: 15px;
}

.headertabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin-top: 10px;
}

.headertabs ul {
	list-style-type: none;
	list-style-image: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.headertabs li {
	margin: 2px;
	display: inline-block;
}

.headertab {
	margin: 2px;
	vertical-align: bottom;
	transition: transform var(--transition-speed);
}

.headertab:hover {
	transform: translateY(-2px);
}

.livestats-table {
	border-style: solid;
	border-width: 0px;
	border-color: #39495A;
	border-collapse: collapse;
	width: 100%;
}

.livestats-table td {
	border: 0;
	padding: 1px;
	text-align: center;
}

/* Tabs de subseção */
#main ul.subsection_tabs {
list-style: none;
margin: 0 0 15px 0;
padding: 0;
clear: both;
border-bottom: 1px solid #ccc;
display: flex;
flex-wrap: wrap;
gap: 5px;
}

#main ul.subsection_tabs li {
margin: 0 5px 5px 0;
text-align: center;
}

#main ul.subsection_tabs li a {
display: block;
padding: 8px 12px;
background-color: rgba(255, 255, 255, 0.1);
color: var(--text-color);
font-weight: bold;
font-family: Verdana, Arial, sans-serif;
font-size: 10pt;
border-radius: 4px 4px 0 0;
transition: all var(--transition-speed);
}

#main ul.subsection_tabs li a:hover {
background-color: rgba(255, 255, 255, 0.2);
color: var(--highlight-color);
}

#main ul.subsection_tabs li a.active {
background-color: var(--accent-color);
color: var(--highlight-color);
}

/* Media Queries Aprimoradas */
@media only screen and (max-width: 768px) {
	body {
		padding: 10px;
		font-size: 11pt;
		background-attachment: scroll;
	}

	tr, td, div, span {
		font-size: 11pt;
	}

	.fTitle {
		font-size: 18pt;
	}

	.fHeading {
		font-size: 14pt;
	}

	/* Banner para tablets */
	img[src*="/title.png"], img[src*="/icons/title.png"], img[alt*="ILstatsX Community Edition"] {
		max-width: 85%;
	}

	.navbar {
		padding: 5px 0 15px 0;
		text-align: center;
	}

	.navbar li {
		margin: 0 3px;
	}

	.headertabs {
		position: static;
		justify-content: center;
		margin: 10px 0;
	}

	.data-table td {
		padding: 8px;
	}

	#main ul.subsection_tabs li a {
	padding: 8px 12px;
	}

	.subblock {
		width: 98%;
	}
}

@media only screen and (max-width: 480px) {
	body {
		padding: 8px;
		font-size: 12pt;
	}

	tr, td, div, span {
		font-size: 12pt;
	}

	/* Banner otimizado para celular */
	div.title {
		padding: 10px 0;
	}

	img[src*="/title.png"], img[src*="/icons/title.png"], img[alt*="HLstatsX Community Edition"] {
		max-width: 95%;
		margin-bottom: 5px;
	}

	.subblock {
		width: 100%;
		padding: 8px;
	}

	.headertabs {
		flex-direction: column;
		align-items: center;
	}

	.headertabs li {
		margin: 4px 0;
	}

	.navbar {
		padding: 5px 0;
		text-align: center;
		overflow-x: auto;
	}

	.navbar li {
		margin: 0 2px;
		display: inline-block;
		white-space: nowrap;
	}

	.location li {
		display: block;
		padding: 5px 0;
		text-align: center;
	}

	#main ul.subsection_tabs {
	flex-direction: column;
	}

	#main ul.subsection_tabs li {
	width: 100%;
	margin-bottom: 5px;
	}

	#main ul.subsection_tabs li a {
	width: 100%;
	border-radius: 4px;
	}

	.data-table-head, .data-table td {
		padding: 10px 8px;
	}

	/* Ajustes para telas muito pequenas */
	.fTitle {
		font-size: 16pt;
	}
}

/* Ajustes para telas muito pequenas */
@media only screen and (max-width: 360px) {
	body {
		padding: 5px;
	}

	img[src*="/title.png"], img[src*="/icons/title.png"], img[alt*="HLstatsX Community Edition"] {
		max-width: 100%;
	}
}
