:root {
  --accent1: #835488;
  --accent2: #ff3c96;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #000;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

a {
  text-decoration: none;
  color: var(--accent1);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent2);
}

nav {
  background: #111;
  padding: 1rem 0;
  width: 100%;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.nav-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 2rem; /* spacing between logo and links */
}

.nav-content h1 {
  font-size: 1.5rem;
  color: var(--accent1);
  user-select: none;
  margin: 0;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 1.5rem;
  font-weight: bold;
  font-size: 1rem;
  color: var(--accent1);
}

.lang-btn {
  margin-left: 1rem;
  background: transparent;
  border: 2px solid var(--accent1);
  color: var(--accent1);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.lang-btn:hover {
  background: var(--accent2);
  color: #fff;
  border-color: var(--accent2);
}

#flash-container {
  width: 1024px;
  height: 780px;
}

ruffle-player {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-container {
  clear: both;
  width: 1024px;
}

#game-info.footer-container {
  background: #2b2b2b;
  padding: 20px;
  box-sizing: border-box;
  color: white;
  font-family: Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

.country-flags {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.country-flags img {
  width: 20px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.archive-link {
  text-align: center;
  margin: 15px 0;
  font-size: 16px;
}

.archive-link a {
  color: var(--accent1);
  text-decoration: underline;
}

.archive-link a:hover {
  color: var(--accent2);
}

.separator {
  border: none;
  border-top: 1px solid gray;
  margin: 0 0 30px 0;
  width: 100%;
}

.platforms-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 25px;
}

.rating-logos {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rating-logos img {
  height: 113px;
  width: 113px;
}

.rating-logos img:nth-child(-n + 3) {
  height: 56px;
  width: 56px;
}

.rating-logos img:nth-child(1) {
  height: 98px;
  width: 59px;
}

.platform-logos {
  display: flex;
  gap: 25px;
  align-items: center;
}

.platform-logos img {
  height: 88px;
  width: auto;
}

.publisher-section {
  text-align: center;
  margin-bottom: 10px;
}

.publisher-text-logo {
  height: 143px;
  width: auto;
}

.publisher-extra-text {
  color: gray;
  font-size: 18px;
  margin-top: 5px;
}

.publisher-extra-text a {
  color: gray;
  text-decoration: underline;
}

.publisher-extra-text a:hover {
  color: #fff;
}

.copyright-text {
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  max-width: 900px;
  margin: 30px auto 0 auto;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-box {
  background: #222;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  font-family: sans-serif;
}

.popup-box h2 {
  margin-top: 0;
  color: var(--accent1);
}

.popup-box button {
  margin: 10px;
  padding: 10px 20px;
  background-color: var(--accent1);
  border: none;
  color: black;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.popup-box button:hover {
  background-color: var(--accent2);
}
