body {
  font-family: sans-serif;
  background: #111;
  color: white;
  margin: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 150px;
  height: auto;
  margin-bottom: 1.5rem;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  text-align: center;
}

h4 {
  text-align: center;
  max-width: 800px;
  font-weight: normal;
  color: #ccc;
}

h2 {
  text-align: center;       /* center the text */
  display: inline-block;    /* only as wide as text */
  margin: 40px auto 20px;   /* vertical spacing */
  border-bottom: 3px solid #19336e; /* underline only under text */
  padding-bottom: 5px;      /* spacing between text and line */
}

h2.left-align {
  text-align: center;        /* override center */
  display: block;          /* full width */
  margin-left: 0;          /* align left */
  border-bottom: 3px solid #19336e; /* underline stays */
  padding-bottom: 5px;
}

.game-list {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.game-card {
  position: relative; /* ensures new-tag stays inside card */
  background: #222;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.2s ease;
}

.game-card:hover {
  transform: scale(1.05);
}

.game-card a {
  display: block; /* ensures absolute positioning works relative to card */
  text-decoration: none;
  color: #00aaff;
  font-weight: bold;
  font-size: 1.1rem;
}

.game-card p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #ccc;
}

.form-container {
  max-width: 500px; /* limits width */
  margin: 0 auto;   /* centers it */
  border: 2px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

iframe {
  display: block;
}

.new-year-banner {
  max-width: 900px;
  margin: 2.5rem auto 3.5rem;
  padding: 2rem 2.5rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(25, 51, 110, 0.25),
    rgba(25, 51, 110, 0.05)
  );
  border: 1px solid rgba(25, 51, 110, 0.6);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.new-year-banner h2 {
  margin: 0 0 0.8rem;
  font-size: 2rem;
  color: #ffffff;
}

.new-year-banner p {
  margin: 0;
  font-size: 1.1rem;
  color: #dbe4ff;
  line-height: 1.6;
}

.last-updated {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-style: italic;
  color: #b6c2e2;
  text-align: center;
}

.last-updated span {
  color: #19336e;
  font-weight: 600;
}

.coming-next {
  margin-top: 3rem;
  text-align: center;
}

.coming-next ul {
  list-style: none;
  padding: 0;
}

.coming-next li {
  margin: 0.5rem 0;
  color: #ccc;
}

/* NEW! tag for game cards */
.game-card .new-tag {
  position: absolute;
  top: 10px;
  left: 10px; /* top-left corner */
  background-color: red;
  color: white;
  font-size: 0.75rem; /* smaller font to fit nicely */
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 10;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.announcement {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: 12px;
  max-width: 500px;
  line-height: 1.6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.announcement a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.announcement a:hover {
  /*text-decoration: underline;*/
  color: #7dd3fc;
}

.link {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -2px;
  background: #38bdf8;
  transition: width 0.3s ease;
}

.link:hover {
  color: #7dd3fc;
}

.link:hover::after {
  width: 100%;
}

/* Arrow button */
#menuButton {
  position: fixed;
  top: 10px;
  left: 10px;
  font-size: 22px;
  background: white;
  color: black;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

/* arrow pointing down when active */
#menuButton.open {
  transform: rotate(90deg); /* rotate 90° to point down */
}

/* Side menu */
#sideMenu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: white;
  padding-top: 60px;
  transition: left 0.3s;
  z-index: 999;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

#sideMenu a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: black;
  font-weight: bold;
}

#sideMenu a:hover {
  background: #f0f0f0;
}

#updates {
  text-align: center;
}

.announcement {
  width: 60%;
  margin: 15px auto;
  padding: 15px;
  border: 1px;
  border-radius: 10px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

header {
  text-align: center;
  position: relative;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .game-list {
    grid-template-columns: 1fr; /* one column on mobile */
    gap: 1rem;
  }

  .game-card {
    padding: 0.8rem;
  }

  #sideMenu {
    width: 200px;
    padding-top: 50px;
  }

  #menuButton {
    font-size: 18px;
    padding: 3px 6px;
  }

  .form-container {
    width: 90%;
    margin: 1rem auto;
  }

  .new-year-banner {
    padding: 1rem 1.5rem;
    margin: 1.5rem auto 2rem;
  }
}

/* Responsive iframes */
iframe {
  width: 100%;
  max-width: 100%;
  height: auto; /* adjust height automatically */
}

/* For specific aspect ratios (like 16:9) */
.responsive-iframe {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 ratio */
  display:none;
}

.responsive-iframe iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border: 0;
}

.captcha-button {
	text-align:center;
	margin-bottom:20px;
}

.contact-mail {
	margin: 10px;
	color:#D44638;
	font-size:30px;
}

.contact-youtube {
	margin:0 10px;
	color:#FF0000;
	font-size:30px;
}

.contact-github {
	margin:0 10px;
	color:#333333;
	font-size:30px;
}

.contact-discord {
	margin:0 10px;
	color:#5865F2;
	font-size:30px;
}

.contact-reddit {
	margin:0 10px;
	color:#FF4500;
	font-size:30px;
}

.contact-viber {
	margin:0 10px;
	color:#7360F2;
	font-size:30px;
}

.contact-substack {
	border: 1px solid #EEE;
	background: white
}

.popup-ad {
	display:none;
	position:fixed;
	bottom:20px;
	right:20px;
	width:300px;
	background:#fff;
	border:1px solid #000000;
	border-radius:8px;
	padding:15px;
	box-shadow:0 4px 12px rgba(0,0,0,0.2);
	font-family:sans-serif;
	color:black;
	z-index:9999;
}

.popup-ad-1 {
	position:absolute;
	top:5px;
	right:10px;
	border:none;
	background:none;
	font-size:18px;
	cursor:pointer;
}

.footer {
	text-align:center;
	padding:20px;
	font-size:14px;
	color:gray;
}

.hidden-thanks {
	display:none;
	font-size:22px;
	text-align:center;
	margin-top:40px;
}

.yt-iframe {
	margin-top:60px;
}

.contacts {
	text-align:center;
	margin-bottom:40px;
	align-items: center;
	margin: 0 auto;
}

/* SECRET 7 */