/* Game Page Styles */

.game-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    margin-top: 80px;
    overflow: hidden;
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px rgba(50, 255, 227, 0.5);
    border-radius: var(--border-radius);
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #32FFE3;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    padding: 8px 16px;
    background-color: var(--accent);
    color: var(--primary);
    border-radius: var(--border-radius);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(50, 255, 227, 0.5);
    transition: var(--transition);
}

.back-button:hover {
    box-shadow: 0 0 15px rgba(50, 255, 227, 0.8);
    transform: translateY(-2px);
}

/* Loading Animation */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.5s ease;
}

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

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(50, 255, 227, 0.3);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: var(--spacing-md);
}

.loading-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--accent);
    letter-spacing: 2px;
}

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

/* Responsive Styles for Game Pages */
@media (max-width: 768px) {
    .game-container {
        height: calc(100vh - 60px);
    }
    
    .back-button {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}