
#mainPageWrapper div, nav, section, header, footer, article, aside{
	position: relative;
}

#mainPageWrapper {
	margin: 32px auto;
	display: flex;
	flex-direction: column; 
	width: 100%;
	max-width: 1440px;
	min-height: 720px;
	border: 2px solid #c1a362;
	background: #000;
	border-radius: 16px;
	box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
	background-clip: border-box;
	overflow: hidden; /* kluczowe — ucina tło do kształtu */	
}


#mainPageHeaderWrapper {
	display: flex;               
	flex-direction: row;         
	align-items: center;         
	justify-content: center;
	min-height: 144px;
	border-bottom: 1px solid #c1a362;
	background: #000;
	background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(36, 20, 0, 1) 50%, rgba(0, 0, 0, 1) 100%);  
	background-clip: border-box;
	overflow: hidden; /* kluczowe — ucina tło do kształtu */
}

#mainPageWrapper img{
	border-radius: 16px;
}


#MainPageHeaderAvatar {
	display: flex;
	flex-direction: column;  
	justify-content: center;
	margin: 12px 12px;
}

#MainPageHeaderAvatar img{
	object-fit: cover;
	width: 144px;
	height: 144px;
	border-radius: 50%;
	border: 2px solid #c1a362;
	
}


#mainPageHeaderTitles {
  flex: 2;              
  height: 144px;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  text-align: center;

}

#mainPageHeaderTitles h1 {
  margin: 0;
  font-size: 2.8em;
}

#mainPageHeaderTitles h2 {
  margin: 0;
  font-size: 2.2em;
  font-weight: normal;
}


#MainPageHeaderMenu {
	flex: 4;
	height: 144px;
	flex-direction: column;
	justify-content: center; 	
	display: flex;
	text-align: center;
}

#MainPageHeaderMenuHamburger{
	flex: 0;
	width: 96px;
	height: 144px;
	display: none;
	font-size: 2.2em;
	cursor: pointer;
	text-align: center;
	margin: auto;
}

#sectionStatsShorts{
	display: flex;
	flex-direction: row;
	height: 64px;
	border-bottom: 1px solid #c1a362;
	background: #000;
	background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(17, 17, 17, 1) 50%, rgba(0, 0, 0, 1) 100%);
}

.statsBlock{
	display: flex;
	flex: 1;
	justify-content: center; 
	align-items: center;
	min-width: 64px;
}

#mainMenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  text-align: center;
  margin: auto;
}


#mainMenu li {
  position: relative;
}

.pageSections{
	display: flex;
	flex-direction: row;
	gap: 20px;
	margin-bottom: 20px;
}

.leftSectionPage{
	flex: 1;
}

.rightSectionPage{
	flex: 1;
}

.innerContent{
	line-height: 2.4rem;
	font-size: 18px;
	margin: 24px !important;
}

#bodyPageWrapper{
	border-bottom: 1px solid #c1a362;
}


#mainMenu.menuVisible {
  display: flex !important;
}


#MainPageHeaderMenuHamburger.active {
  color: #ffcc00;
  position: relative;
}

#mainPageFooter
{
	width: 100%;
	height: 168px;
	text-align: center;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #444;
}

#bodyPageWrapper ul{
	margin-left: 20px;
}

#bodyPageWrapper h1,h2,h3,h4,h5{
	text-align: center !important;
}

#mobileMenuClose{
	display: none;
}


@media (max-width: 768px) {
		
	#mainPageWrapper{
		margin: 0;
		border: none;
	}
	
	#mainPageHeaderWrapper {
		flex-direction: row;
		align-items: center;
		text-align: center;
	}

	#MainPageHeaderAvatar {
		display: flex;	
	}

	#sectionStatsShorts{
		display: none;
	}

	#mainMenu
	{
		position: fixed;           
		left: 0;
		top: 0;
		width: 100vw;              
		height: 100vh;             
		background: #000;
		overflow: hidden;          
		z-index: 1000;
		display: none;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		align-items: center;
		gap: 32px;		
	}
	#mainPageHeaderTitles
	{
		flex: 4;	
	}
	#MainPageHeaderMenuHamburger
	{
		flex: 2;
		display: flex;
		width: 96px;
		height: 144px;
		flex-direction: column;
		justify-content: center; 	
		position: fixed;
		z-index: 1002;
	}

	.mainMenuButton
	{
		padding: 10px 20px;
		font-size: 18px;
		display: block;
		
	}

	.pageSections
	{
		flex-direction: column;
		
	}

	#mainPageHeaderTitles h1
	{
		margin: 0;
		font-size: 2.0em;
	}

	#mainPageHeaderTitles h2
	{
		margin: 0;
		font-size: 1.6em;
		font-weight: normal;
	}
	#MainPageHeaderMenuHamburger.active
	{
		color: #ffcc00;
		position: fixed;
		left: auto;
	}
	
	#MainPageHeaderMenu{
		flex: 0;
		position: fixed;
		z-index: 999;
	}
	
	.innerContent{
		margin: 20px;
	}	
	
	.innerContent img{
		object-fit: cover;
		scale: 0.9;
		width: 100%;
		height: 100%;
	}		
	iframe{
		object-fit: cover;
		width: 100%;
		height: 366px;
	}
	
	#mobileMenuClose{
		display: block;
	}
	
	.mainMenuButton{
		display: block !important;
		width: 420px !important;
		border: 1px solid #c1a362;
	}
	.mainMenuButton:hover{
		border: 1px solid #fc0;
	}
  .pageSections:nth-of-type(2) .rightSectionPage { order: 1; }
  .pageSections:nth-of-type(2) .leftSectionPage  { order: 2; }

  
  .innerContent { padding: 10px 6px; }
  .pageSections h3, .pageSections h4 { text-align: left; }
}
