/* Global CSS imports and styling */

/* Hide scrollbars but allow scrolling for aesthetics */
#main-menu::-webkit-scrollbar {
    width: 6px;
}
#main-menu::-webkit-scrollbar-track {
    background: transparent;
}
#main-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
#main-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Game Grid */
#game-grid {
    display: grid;
    /* Grid adapts naturally */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1000px;
    margin: 20px auto 50px auto; /* padding at bottom to let last items scroll up nicely */
    flex-shrink: 0;
    pointer-events: auto;
}

/* Glassmorphism Premium Cards */
.game-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Dynamic Hover Effects */
.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
}

.game-card:active {
    transform: translateY(2px) scale(0.98);
}

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

/* Typography styles inside card */
.card-icon {
    font-size: 36px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.game-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    color: #FFF;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 6px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.card-sub {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    font-size: 12px;
}

/* Animation classes for revealing items */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideUpFade 0.5s ease forwards;
    opacity: 0;
}