/* Game Page Specific Styles */

body.game-page {
  background-color: var(--dark-bg);
}

.game-content {
  padding: 60px 0;
  min-height: calc(100vh - 300px);
}

.game-title {
  font-family: 'Creepster', cursive;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 10px var(--glow-color);
}

.game-frame-container {
  width: 100%;
  margin: 0 auto 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
  position: relative;
  background-color: #000;
  aspect-ratio: 16/9;
  max-width: 1000px;
}

.game-frame-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.game-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.game-description p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.back-button {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  margin-top: 10px;
}

.back-button:hover {
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  box-shadow: 0 0 10px var(--glow-color);
  transform: translateY(-3px);
}

/* Game Page Header Adjustments */
.game-page .header {
  background-color: rgba(10, 10, 15, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Game Page Responsive Styles */
@media screen and (max-width: 767px) {
  .game-title {
    font-size: 2rem;
  }
  
  .game-frame-container {
    aspect-ratio: 4/3;
  }
  
  .game-description p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .game-title {
    font-size: 1.6rem;
  }
  
  .game-content {
    padding: 40px 0;
  }
  
  .back-button {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* Game Page Ghost Particles */
.game-page #particles-container {
  opacity: 0.5;
}

/* Game Frame Loading Animation */
.game-frame-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/loading.gif') no-repeat center center;
  background-size: 80px;
  z-index: 1;
  opacity: 0.8;
}

.game-frame-container.loaded::before {
  display: none;
}

/* Ghost animations for game page */
.game-page .floating-ghost {
  bottom: 30px;
  right: 30px;
}