/* CSS Variables for consistent theming */
:root {
  --primary-color: #d81b60;
  --secondary-color: #1e88e5;
  --background-color: #f5f5f5;
  --text-color: #333;
  --accent-color: #4caf50;
  --container-width: 1200px;
  --header-height: 60px;
  --footer-height: 60px;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --iframe-height: 800px;
}

/* Base styles and resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: var(--primary-color);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Logo styles */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-image {
  width: 50px;
  height: 50px;
  margin-right: 1rem;
  object-fit: contain;
}

/* Header styles */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin-bottom: 0;
}

header nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

header nav ul li {
  margin-left: 1.5rem;
}

header nav a {
  color: white;
  font-weight: bold;
}

header nav a:hover, header nav a:focus {
  color: rgba(255, 255, 255, 0.8);
}

/* Main content */
main {
  flex: 1;
  padding: 2rem 0;
}

section {
  margin-bottom: 3rem;
}

/* Game area */
.game-area {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

/* Game container and iframe */
.iframe-container {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Game Cover Styling */
.game-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2b5876, #4e4376);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.5s ease;
  color: white;
  text-align: center;
}

.cover-content {
  max-width: 600px;
  margin: 0 auto;
}

.cover-image {
  max-width: 200px;
  margin-bottom: 1.5rem;
}

.cover-button {
  background-color: #ff6b6b;
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 1.5rem;
}

.cover-button:hover {
  background-color: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.cover-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
}

.cover-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game iframe */
.game-iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Game controls */
.game-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.control-button {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  color: #333;
}

.control-button:hover {
  background-color: #e9e9e9;
  border-color: #ccc;
}

.control-button svg {
  width: 20px;
  height: 20px;
}

.start-button {
  background-color: #4caf50;
  color: white;
  border-color: #3d8b40;
}

.start-button:hover {
  background-color: #3d8b40;
  border-color: #2d682f;
}

.pause-button {
  background-color: #2196f3;
  color: white;
  border-color: #0d8aee;
}

.pause-button:hover {
  background-color: #0d8aee;
  border-color: #0a6ebd;
}

.restart-button {
  background-color: #f44336;
  color: white;
  border-color: #e53935;
}

.restart-button:hover {
  background-color: #e53935;
  border-color: #c62828;
}

/* Game banner */
.game-banner {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Game screenshots */
.gameplay-screenshots {
  margin: 2rem 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.screenshot {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.screenshot:hover {
  transform: scale(1.02);
}

/* How to Play section */
.how-to-play {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.step {
  flex: 1;
  min-width: 250px;
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  text-align: center;
}

.step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  position: absolute;
  top: -18px;
  left: 1.5rem;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: block;
}

.step h4 {
  margin-top: 0.5rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.step p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Features list */
.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.features-list li::before {
  content: "✓";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Characters section */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.character-card {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary-color);
  text-align: center;
}

.character-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--primary-color);
}

.character-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.character-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  text-align: left;
}

.characters-note {
  text-align: center;
  font-style: italic;
  margin-top: 1rem;
}

/* Pro tips */
#pro-tips ul {
  background-color: rgba(76, 175, 80, 0.1);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
}

#pro-tips li {
  margin-bottom: 0.75rem;
}

#pro-tips li:last-child {
  margin-bottom: 0;
}

/* FAQ section */
.faq-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item h3 {
  background-color: rgba(0, 0, 0, 0.02);
  padding: 1rem 1.5rem;
  margin-bottom: 0;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-answer {
  padding: 1rem 1.5rem;
}

.faq-answer p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Message system */
.message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: slide-down 0.3s ease-out;
}

@keyframes slide-down {
  from {
    top: -50px;
    opacity: 0;
  }
  to {
    top: 20px;
    opacity: 1;
  }
}

.message.fade-out {
  animation: fade-out 0.5s ease-out forwards;
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* SEO Content section */
.seo-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.seo-content article {
  margin-bottom: 2.5rem;
}

.seo-content article:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 1rem 0;
  margin-top: auto;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-left: 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-nav a:hover, .footer-nav a:focus {
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header .container,
  footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  header nav ul {
    margin-top: 1rem;
  }
  
  header nav ul li:first-child {
    margin-left: 0;
  }
  
  .logo-container {
    flex-direction: column;
    margin-bottom: 1rem;
  }
  
  .logo-image {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .footer-nav {
    margin-top: 1rem;
  }
  
  .footer-nav ul {
    justify-content: center;
  }
  
  .footer-nav li:first-child {
    margin-left: 0;
  }
  
  .step {
    margin-top: 1.5rem;
  }
  
  .faq-item h3 {
    font-size: 1rem;
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  
  .game-controls {
    flex-direction: column;
    width: 100%;
  }
  
  .control-button {
    width: 100%;
    justify-content: center;
  }
  
  .cover-stats {
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .cover-image {
    max-width: 150px;
  }
  
  .game-cover h3 {
    font-size: 1.5rem;
  }
  
  .game-cover p {
    font-size: 1rem;
  }
  
  .cover-button {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
  }
  
  .game-iframe {
    height: 450px;
  }
  
  .game-tagline {
    font-size: 1.4rem;
  }
  
  .game-stats {
    gap: 1rem;
  }
  
  .stat-value {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .game-iframe {
    height: 350px;
  }
  
  .game-logo {
    max-width: 200px;
  }
  
  .game-tagline {
    font-size: 1.2rem;
  }
  
  .start-button {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }
  
  .game-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Game overlay */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 20;
  justify-content: center;
  align-items: center;
}

.overlay-content {
  text-align: center;
  color: white;
  padding: 2rem;
}

.pause-icon {
  margin-bottom: 1rem;
}

.overlay-content p {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.overlay-content button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.overlay-content button:hover {
  background-color: #c01a57;
}

/* More Games Section */
.more-games-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 3rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.game-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-card__placeholder {
  height: 180px;
  background: linear-gradient(135deg, #d81b60, #1e88e5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card__coming-soon {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 4px;
  transform: rotate(-15deg);
}

.game-card h3 {
  margin: 1rem 1rem 0.5rem;
  color: var(--primary-color);
}

.game-card p {
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .game-card__placeholder {
    height: 150px;
  }
} 