/* Game Page Specific Styles */

.game-container {
  padding: 4rem 0;
}

.game-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.game-frame {
  position: relative;
  width: 100%;
  height: 700px;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: var(--glow-primary);
}

.game-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    rgba(20, 255, 236, 0.1) 0%, 
    rgba(20, 255, 236, 0) 20%, 
    rgba(20, 255, 236, 0) 80%, 
    rgba(20, 255, 236, 0.1) 100%);
  pointer-events: none;
  z-index: 10;
}

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

.game-description {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(20, 255, 236, 0.2);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.game-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(20, 255, 236, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-description:hover::before {
  opacity: 1;
}

.game-description p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.game-description .button {
  display: inline-block;
}

/* Loading animation */
.game-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 14, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.game-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(20, 255, 236, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Game Page */
@media (max-width: 992px) {
  .game-frame {
    height: 600px;
  }
}

@media (max-width: 768px) {
  .game-title {
    font-size: 2rem;
  }
  
  .game-frame {
    height: 500px;
  }
  
  .game-description p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .game-frame {
    height: 400px;
  }
}