* {
	box-sizing: border-box;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: #333;
	/* padding: 20px; */
	background: #fcfcfc;
}
header {
	width: 100%;
	background: #4678c1;
	color: white;
	text-align: center;
	margin: 0 auto;
	font-size: 40px;
	border-radius: 8px;
}
.container {
	max-width: 1000px;
	margin: 0 auto;
}
.ezm {
	display: inline-block;
	vertical-align: middle;
	margin: 0 10px;
}
h2.ezm {
	color: white;
	padding-top: 32px; 
	padding-bottom: 12px;
	margin: 0 auto;
}
h3.ezm {
	text-align: center;
	font-size: 24px;
	color: #4678c1;
	max-width: 568px;
	padding-top: 20px; 
	padding-bottom: 32px; 
	margin: 0 auto;
}
.bordershadow:hover {
	box-shadow: 1px 1px 2px black, 0 0 1em #4678c1;
	transition: box-shadow 0.3s ease-in-out;
}

/* Hero section styles */
.hero-section {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 35px;
	text-align: center;
}
.hero-image {
	flex: 0 0 30%;
	display: flex;
	justify-content: center;
	align-items: center;
}
.hero-image img {
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); /* outline shadow */
}
.hero-content {
	flex: 0 0 70%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}
.hero-content h3 {
	margin: 0;
}

/* Hide image when viewport is too narrow */
@media (max-width: 768px) {
	.hero-image {
		display: none;
	}
	
	.hero-content {
		flex: 1 1 100%;
	}
}

/* Language selector */

.language-selector {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: lightsteelblue;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  white-space: nowrap;
}

.lang-btn:hover {
  background: #f0f0f0;
}

.lang-btn.active {
  border-color: #4678c1;
  background: #e8f0ff;
}

.flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-name {
  font-weight: 500;
}

/* For mobile layout - make horizontal and move above header */
@media (max-width: 756px) {
  .language-selector {
    position: static;
    flex-direction: row;
	justify-content: space-evenly;
    margin: 0 auto 20px;
    width: 100%;
	}
}

.intro-text {
	text-align: center;
	font-size: 24px;
	color: #4678c1;
	margin: 20px 0 40px;
}

.store-badges {
	display: inline-block;
	margin: 10px 25px;
	display: flex;
	gap: 25px;
	flex-wrap: wrap;
	justify-content: center;
}
.store-badges a {
	display: inline-block;
	margin: 10px 25px;
}
.store-badges img {
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	border-radius: 8px;
	max-width: 180px;
	height: auto;
}

.toc {
	background: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	margin-bottom: 40px;
}
.toc h2 {
	margin-top: 0;
	color: #4678c1;
	border-bottom: 2px solid #4678c1;
	padding-bottom: 10px;
}
.toc ul {
	list-style-position: inside;
}
.toc li {
	font-weight: bold;
}
.toc ul ul {
	margin-top: 0;
}
.toc ul ul li {
	margin: 0;
	font-weight: normal;
}
.toc a {
	color: #4678c1;
	text-decoration: none;
}
.toc a:hover {
	text-decoration: underline;
}
section {
	background: white;
	padding: 30px;
	margin-bottom: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
h1 {
	color: #4678c1;
	margin-top: 0;
	padding-bottom: 15px;
	border-bottom: 3px solid #4678c1;
}
h2.guide {
	color: #4678c1;
	border-bottom: 2px solid #4678c1;
	padding-bottom: 10px;
	margin-top: 36px;
}
h3 {
	color: #4678c1;
	margin-top: 25px;
}
h4 {
	color: #4678c1;
	margin-top: 20px;
}
ul {
	margin: 15px 0;
	padding-left: 40px;
}
li {
	margin: 8px 0;
}
a {
	color: #4678c1;
}

.screenshots {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	margin: 30px 0;
}
.screenshots img {
	max-width: 280px;
	height: auto;
	border-radius: 4px;
	transition: transform 0.2s;
}
.screenshots img:hover {
	transform: scale(1.05);
}
footer {
	text-align: center;
	padding: 20px 0;
	color: #666;
}
/* Lightbox styles */
.lightbox {
	display: none;
	position: fixed;
	z-index: 999;
	width: 100%;
	height: 100%;
	text-align: center;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
}
.lightbox span {
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	width: 90%;
}
.lightbox:target {
	display: flex;
	align-items: center;
	justify-content: center;
}
