/* Games Portal Styles */
body {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.games-portal-container {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.games-header {
    text-align: center;
    margin-bottom: 0;
    padding: 0.5rem;
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.games-iframe-container {
    flex: 1;
    background: white;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    animation: slideInUp 0.6s ease-out;
    height: 100%;
    overflow: hidden;
}

.games-iframe {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: none;
    border-radius: 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timepass-banner-header {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
}

.timepass-banner-header:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.play-button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.4);
}

.play-button:active {
    transform: translateY(0);
}

.back-button {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.stats-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.9rem;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-portal-container {
        padding: 0;
    }
    
    .games-header {
        margin-bottom: 0;
        padding: 0.25rem;
    }
    
    .timepass-banner-header {
        max-height: 60px;
    }
    
    .games-iframe-container {
        padding: 0;
    }
    
    .games-iframe {
        height: 100vh;
        min-height: 100vh;
    }
    
    .back-button {
        position: absolute;
        top: 0.25rem;
        left: 0.25rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .games-portal-container {
        padding: 0;
    }
    
    .timepass-banner-header {
        max-height: 50px;
    }
    
    .games-iframe-container {
        padding: 0;
    }
    
    .games-iframe {
        height: 100vh;
        min-height: 100vh;
    }
    
    .back-button {
        top: 0.25rem;
        left: 0.25rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}
