/*
Copyright 2025-present, Susmita Guha Nag. All rights reserved.
*/

:root {
	--accent: #1f7a8c;
	--muted: #6d6d6d;
	--bg: #fcfbfa;
	--card: #ffffff;
	--max-width: 1100px;
	--gap: 20px;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
	color: #222;
}

/* Games grid */
.games { 
	padding: 40px 0; 
}
.games h2 { 
	margin-bottom: 20px; 
	text-align: center; 
}

/*
.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
	gap: 20px;
}*/

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
}

.games-grid .app-card:only-child {
	grid-column: 2 / 3; 
}

/* For medium screens (e.g., tablets) */
@media (max-width: 900px) {
    .games-grid {
        /* Changes to 2 columns on smaller screens */
        grid-template-columns: repeat(2, 1fr); 
    }

	.games-grid .app-card:only-child {
        grid-column: 1 / 3; 
    }
}

/* For small screens (e.g., phones) */
@media (max-width: 600px) {
    .games-grid {
        /* Changes to 1 column on mobile phones */
        grid-template-columns: 1fr; 
    }

	.games-grid .app-card:only-child {
        /* Center text and elements within the single card (if the card itself isn't full width) */
        margin-left: auto;
        margin-right: auto;
        /* The card's content may still need centering if the internal elements don't fill the space. */
    }
}
	
* {
	box-sizing: border-box;
}

html,body {
	height: 100%;
	margin: 0;
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width:var(--max-width);
	margin:0 auto;
	padding:0 20px;
}

.hero > .container {
	display: flex;
	flex-direction: column;
	align-items: center; 
	text-align: center;
}
	
/* Header */
.site-header {
	background: linear-gradient(90deg, rgba(31,122,140,0.06), rgba(31,122,140,0.02));
	border-bottom: 1px solid rgba(0,0,0,0.04);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding:14px 0;
}

.logo-holder {
	width:300px;
	align-items:center;
	gap:15px;
	text-decoration:none;
	color:inherit;
}

.logo {
	border-radius: 50%;
	margin: 5px 10px;
	width: 64px;
}

.logo-text {
	font-size: 1.2em;
	font-weight: 400;
	letter-spacing: 0.2px;
	display: inline-block;
    vertical-align: top;
    margin-top: 24px;
}

.main-nav {
	margin-left: 20px;
	display: flex;
	gap: 12px;
}
.main-nav a { 
	color: var(--muted);
	text-decoration: none;
	padding: 6px 8px;
	border-radius: 6px;
}
.main-nav a:hover {
	background: rgba(0,0,0,0.03);
	color:#111;
}
.social {
	margin-left: auto;
	display: flex;
	gap: 8px;
}
.social a {
	display: inline-flex;
	width: 30px;
	height: 30px;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	text-decoration: none;
	background: transparent;
	color: var(--muted);
	font-weight: 700;
}

/* Hero */
.hero {
	padding: 48px 0;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 36px; 
	align-items: center;
}

.hero-left h1 {
	font-size: 30px;
	margin: 0 0 10px;
}

.lead {
	margin: 0 0 18px;
	color: var(--muted);
	max-width:520px;
}
.stats {
	list-style: none;
	padding: 0;
	display: flex;
	gap: 18px;
	margin: 10px 0 0;
}
.stats li {
	background: var(--card);
	padding: 12px 14px;
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(16,24,40,0.04);
	min-width: 110px;
	text-align: center;
}
.stats li strong {
	display: block;
	font-size: 18px;
}
.stats li span {
	font-size: 12px;
	color:var(--muted);
}

hr.heading-underline {
	width: 150px;
    height: 2px;
    border: none;
    background-color: green;
    margin-bottom: 20px;
}

/* App card */
.app-card {
	max-width: 350px;
	background: var(--card);
	border-radius: 14px;
	box-shadow:0 10px 30px rgba(16,24,40,0.06);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding:18px;
}

.app-art {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px;
}

.app-art svg {
	width: 160px;
	height: 160px;
	border-radius: 12px;
}

.app-info h2 { 
	margin: 6px 0 8px;
	font-size: 18px;
}

.app-desc {
	margin: 0 0 12px;
	color: var(--muted);
}

.app-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.badge { 
	background: rgba(31,122,140,0.08);
	color: var(--accent);
	padding: 6px 8px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 13px;
	max-height: 30px;
}

.rating {
	color: #b67b00;
	font-weight: 700;
	font-size: 14px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 10px;
	text-decoration: none;
	border: 0;
	font-weight: 700;
	cursor:pointer;
}
.store {
	background: var(--accent);
	color: white;
	box-shadow: 0 6px 18px rgba(31,122,140,0.15);
}
.store svg {
	opacity: 0.95;
}
.store-play {
	background: #2b9f60;
}
.download-row {
	display: flex;
	gap: 10px;
}

/* About / News / Contacts */
.about,.news {
	padding: 36px 0;
}
.about h3,.news h3 {
	margin: 0 0 12px;
}
.news-list {
	margin: 0;
	padding-left: 18px;
	color: var(--muted);
}

/* Contacts */
.contacts {
	padding: 36px 0;
}
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.contact-form input, .contact-form textarea{
	width: 100%;
	padding: 10px;
	border-radius: 8px; 
	border: 1px solid rgba(0,0,0,0.08);
	margin-bottom: 10px;
	font-size: 14px;
}
.contact-form .submit {
	background: var(--accent);
	color: white;
	border-radius: 8px;
	padding: 10px 12px;
	border: 0;
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Footer */
.site-footer {
	border-top: 1px solid rgba(0,0,0,0.04);
	padding: 18px 0;
	margin-top: 30px;
	background: transparent;
}
.footer-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: space-between;
}
.footer-nav {
	display: flex;
	gap: 12px;
}
.footer-nav a{
	color: var(--muted);
	text-decoration: none;
	font-size: 14px;
}

/* Responsive */
@media (max-width:980px) {
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.contact-grid {
		grid-template-columns:1fr;
	}
	.main-nav {
		display:none;
	}
}

@media (max-width:480px) {
	/*.logo-text{
		display:none;
	}*/
	
	.hero-left h1 {
		font-size: 22px;
	}
	.app-art svg {
		width: 120px;
		height: 120px
	}
	.store {
		padding: 8px 10px;
		font-size:13px;
	}
}

h1 {
	font-size: 28px;
}

h2.product {
	color: dodgerblue;
}

nav ul {
	list-style-type: none;
}

nav ul li {
	display: inline;
	margin: 0px 10px;
}