:root {
	--accent: #A7BEAE;
	--accent-dark: #A73A3A;
	--background: #F5E9DA;
	--tile-bg: #fff;
	--text: #222222;
	--white: #fff;
	--shadow: 0 4px 16px rgba(34,34,34,0.10);
	--shadow-hover: 0 8px 32px rgba(34,34,34,0.18);
	--radius: 16px;
	--transition: 0.2s;
}

/* Reset and base styles */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--background);
	color: var(--text);
	font-family: 'Segoe UI', Arial, sans-serif;
	line-height: 1.6;
	min-height: 100vh;
	background-image: url('/img/bg-logo.png'); /* your favicon, rotated if needed */
	background-size: 85px 85px; /* adjust for density */
	background-repeat: repeat;
	animation: mosaic-glide 20s linear infinite;
}

@keyframes mosaic-glide {
	0%   { background-position: 0 0; }
	100% { background-position: 1100px 1200px; } /* Adjust for speed/direction */
}

ul { 
	list-style-type: "☗  ";
}

.site-title {
	font-size: 1.5em;
	color: inherit;
	font-weight: bold;
}

/* Banner */
.banner-container {
	width: 100%;
	background: var(--background);
}

.banner-image {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
	border-bottom-left-radius: var(--radius);
	border-bottom-right-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* Navbar*/
.main-navbar {
	width: 100%;
	background: var(--background);
	box-shadow: 0 2px 8px rgba(34,34,34,0.10);
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: top 0.3s, opacity 0.3s;
}

.main-navbar.navbar-hidden {
	top: -80px;
	opacity: 0;
	pointer-events: none;
}

.navbar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.navbar-title {
	font-size: 1.4em;
	color: var(--accent-dark);
	font-weight: bold;
	letter-spacing: 1px;
}

.navbar-links {
	list-style: none;
	display: flex;
	gap: 32px;
	margin: 0;
	padding: 0;
}

.navbar-links li {
	display: flex;
}

.navbar-links a {
	color: var(--accent-dark);
	text-decoration: none;
	font-size: 1.1em;
	font-weight: 500;
	padding: 8px 18px;
	border-radius: 8px;
	transition: background 0.2s, color 0.2s;
}

.navbar-links a:hover,
.navbar-links a:focus {
	background: var(--accent);
	color: var(--background);
}

.login-link {
	color: #fff;
	font-weight: bold;
	transition: background 0.2s, color 0.2s;
}

.login-link:hover,
.login-link:focus {
	background: #7a2323;
	color: #fff;
}

/* Main content area */
.content-area {
	width: 90%;
	max-width: 1200px;
	margin: 36px auto 36px auto;
	display: grid;
	grid-template-columns: 68% 30%;
	gap: 2%;
}

.main-column, .sidebar-column {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* Tiles */
.tile {
	background: var(--tile-bg);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 32px 28px;
	margin-bottom: 0;
	transition: transform var(--transition), box-shadow var(--transition);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.tile:hover {
	transform: scale(1.04);
	box-shadow: var(--shadow-hover);
}

.tile-icon {
	font-size: 2.5em;
	margin-bottom: 16px;
}

.tile h1, .tile h2, .tile h3 {
	color: var(--accent-dark);
	margin-bottom: 1rem;
	text-align: center;
}

.tile h1 {
	font-size: 2em;
}

.tile h2 {
	font-size: 1.3em;
}

.tile h3 {
	font-size: 1.1em;
}

.tile p {
	text-align: center;
	font-size: 1.05em;
	margin-bottom: 0.5em;
}

.tile ul {
	padding-left: 1.5rem;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

.tile li {
	margin-bottom: 0.5rem;
	text-align: left;
}

.tile blockquote {
	font-size: 1.2em;
	font-style: italic;
	margin: 0.5em 0;
	color: var(--accent-dark);
	background: #f9f3ef;
	border-left: 4px solid var(--accent-dark);
	padding: 0.5em 1em;
	border-radius: 8px;
}

.join-btn {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 32px;
	background: var(--accent-dark);
	color: #fff;
	border-radius: 8px;
	font-size: 1.1em;
	font-weight: bold;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(34,34,34,0.10);
	transition: background var(--transition);
}

.join-btn:hover {
	background: #7a2323;
}

/* Sidebar tiles */
.sidebar-column .tile {
	align-items: flex-start;
	text-align: left;
}

.sidebar-column .tile-icon {
	margin-bottom: 8px;
}

.sidebar-column ul {
	padding-left: 1.2em;
}

.sidebar-column li {
	margin-bottom: 0.3em;
}

.sidebar-column a {
	color: var(--accent-dark);
	text-decoration: none;
	transition: color var(--transition);
}

.sidebar-column a:hover {
	color: #7a2323;
	text-decoration: underline;
}

.partner-logo {
	width: auto;
	height: 75px;
	margin-right: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 2em;
	text-align: center;
	padding: 5px;
}

/* Footer */
footer {
	width: 100%;
	background: var(--accent);
	color: var(--background);
	text-align: center;
	padding: 26px 0 12px 0;
	margin-top: 3rem;
}

.footer-inner {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	background: var(--accent);
}

/* Back to Top Button */
#backToTop {
	position: fixed;
	right: 32px;
	bottom: 32px;
	z-index: 999;
	background: var(--accent);
	color: var(--background);
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 2em;
	cursor: pointer;
	box-shadow: var(--shadow-hover);
	display: none;
	transition: background var(--transition), transform var(--transition);
}

#backToTop:hover {
	background: var(--text);
	color: var(--background);
	transform: scale(1.08);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
	.content-area {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.sidebar-column {
		margin-top: 32px;
	}
}

@media (max-width: 900px) {
	
	.content-area {
		width: 98%;
		max-width: 98vw;
		margin: 18px auto;
	}
	.main-column, .sidebar-column {
		gap: 18px;
	}
}

@media (max-width: 700px) {
	.navbar-inner {
		flex-direction: column;
		align-items: flex-start;
		height: auto;
		padding: 16px;
	}
	.navbar-title {
		margin-bottom: 12px;
		font-size: 1.1em;
	}
	.navbar-links {
		flex-direction: column;
		gap: 10px;
		width: 100%;
	}
	.navbar-links a {
		width: 100%;
		padding: 10px 12px;
		font-size: 1em;
	}
}

@media (max-width: 600px) {
	.banner-image {
		height: 120px;
	}
	.tile {
		padding: 18px 8px;
		min-width: unset;
		max-width: 98vw;
	}
	.sidebar-column .tile {
		padding: 14px 6px;
	}
	#backToTop {
		right: 10px;
		bottom: 10px;
		width: 40px;
		height: 40px;
		font-size: 1.5em;
	}
}

/* Utility classes */
.text-center {
	text-align: center;
}
.text-accent {
	color: var(--accent-dark);
}
.bg-accent {
	background: var(--accent-dark);
	color: #fff;
}
::placeholder {
	text-align: center;
}

/* Page Specific */
.forum a {
	color: var(--accent-dark);
	text-decoration: none;
	transition: color var(--transition);
}
.forum a:hover {
	color: #7a2323;
	text-decoration: underline;
}

.contact a {
	color: var(--accent-dark);
	text-decoration: none;
	transition: color var(--transition);
	align-items: left;
}
.contact a:hover {
	color: #7a2323;
	text-decoration: underline;
}

/* Contact page specific */
/* Partner logos */
#partner-strip {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	padding: 12px 0;
	scroll-behavior: smooth;
}

.partner-card {
	flex: 0 0 auto;
	height: 90px;
	width: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.partner-card img {
	height: 80px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: var(--shadow);
}

/* Contact page specific */
/* Social media images */
.social-icon {
	height: 48px;
	width: auto;
	max-width: 64px;
	object-fit: contain;
	transition: transform 0.2s ease;
}

.social-icon:hover {
	transform: scale(1.1);
}

/* Contact page specific */
/* Partner logos */
.partner-marquee-wrapper {
	overflow: hidden;
	width: 100%;
	border-radius: 12px;
	box-shadow: var(--shadow);
	background: #fff;
	padding: 16px 0;
}

.partner-marquee {
	display: flex;
	align-items: center;
	height: 100px;
	position: relative;
}

.partner-track {
	display: flex;
	gap: 32px;
	animation: scrollLeft 20s linear infinite;
}

.partner-card {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.partner-card img {
	height: 80px;
	width: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: var(--shadow);
}

/* Contact page specific */
/* Animation for Partner logos */
@keyframes scrollLeft {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* Hide scrollbar for Chrome, Safari, Opera */
.hide-scrollbar::-webkit-scrollbar {
	display: none;
}

/* Hide scrollbar for IE, Edge */
.hide-scrollbar {
	-ms-overflow-style: none;
}

/* Hide scrollbar for Firefox */
.hide-scrollbar {
	scrollbar-width: none;
}

/* PopUp ads*/
.popup-ad {
	position: fixed;
	bottom: 20px;
	left: 20px;
	width: 300px;
	background: white;
	border: 2px solid #333;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	padding: 15px;
	z-index: 1000;
	transition: transform 0.5s ease, opacity 0.5s ease;
}

.popup-ad.hide {
	transform: translateX(-110%);
	opacity: 0;
	pointer-events: none;
}

.popup-content {
	position: relative;
}

.popup-content button {
	position: absolute;
	top: 5px;
	right: 5px;
	background: transparent;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
}

.popup-content button:hover {
	color: #000;
}

.popup-content h3 {
	margin-top: 0;
	font-size: 1.2em;
}

.popup-content a {
	color: #007bff;
	text-decoration: none;
}

.popup-content a:hover {
	text-decoration: underline;
}

/* Találkozó Hírdetés */
.ad-tile {
	border: 2px solid #ccc;
	padding: 10px;
	margin: 10px 0;
	text-align: center;
	background-color: #f9f9f9;
}

.ad-tile h4 {
	margin: 0 0 10px 0;
	font-size: 1em;
	color: #555;
}

.ad-tile img {
	max-width: 100%;
	height: auto;
	border: none;
	cursor: pointer;
}

/* hobbi & competitive popup question */
/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* Popup Box */
.popup-box {
  background: #fff;
  border: 2px solid #A73A3A;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(34,34,34,0.18);
  padding: 32px 24px;
  max-width: 350px;
  width: 90%;
  text-align: center;
}

.popup-box h2 {
  margin-top: 0;
  color: #A73A3A;
}

.popup-box p {
  margin: 16px 0;
  font-size: 1.1em;
}

.popup-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
}

.popup-buttons button {
  padding: 10px 32px;
  border-radius: 8px;
  border: none;
  background: #A73A3A;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.popup-buttons button:hover {
  background: #7a2323;
}
