

.container {
    max-width: 100%;
    margin-top: 5px;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Tabs Wrapper */
.tabs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 30px;
    overflow: hidden;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0.9;
}

.scroll-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-left {
    left: 142px;
}

.scroll-right {
    right: 12px;
}

.scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Tabs Container */
.tabs-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 0 60px; /* Space for scroll buttons */
    gap: 8px;
    user-select: none;
    cursor: grab;
}

.tabs-container:active {
    cursor: grabbing;
}

/* Hide scrollbar completely for all browsers */
.tabs-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.tabs-container::-webkit-scrollbar-track {
    display: none;
}

.tabs-container::-webkit-scrollbar-thumb {
    display: none;
}

/* Tab Items */
.tab-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    min-width: 100px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.tab-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.tab-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.tab-item:hover .tab-icon,
.tab-item.active .tab-icon {
    transform: scale(1.1);
}

.tab-label {
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-item.active .tab-label {
    font-weight: 600;
}

/* Tab Indicator */
.tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.tab-item.active .tab-indicator {
    width: 80%;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.game-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.game-thumbnail {
    width: 250px;
    height: 150px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.game-thumbnail.one {
	background-image:url("pic-assets/gameicons/rhythmanbow_gametb.png");
	background-attachment: fixed;
	background-size: 100%;
	background-repeat: no-repeat;
}

.game-thumbnail.two {
	background-image:url("pic-assets/gameicons/dyk_seagurtquiz_gameicon.png");
	background-attachment: fixed;
	background-size: 100%;
	background-repeat: no-repeat;
}

.game-thumbnail.three {
	background-image:url("pic-assets/gameicons/hypptoon_gamebash_gameicon.png");
	background-attachment: fixed;
	background-size: 100%;
	background-repeat: no-repeat;
}

.game-thumbnail.four {
	background-image:url("pic-assets/gameicons/sticktasticrescue_gameicon.png");
	background-attachment: fixed;
	background-size: 100%;
	background-repeat: no-repeat;
}

.game-thumbnail.five {
	background-image:url("pic-assets/gameicons/hypptoon_rushrace_gameicon.png");
	background-attachment: fixed;
	background-size: 100%;
	background-repeat: no-repeat;
}

.game-thumbnail.six {
	background-image:url("pic-assets/gameicons/story-maker_icon.png");
	background-attachment: fixed;
	background-size: 100%;
	background-repeat: no-repeat;
}

.game-thumbnail.seven {
	background-image:url("pic-assets/gameicons/beccydodge_icon.png");
	background-attachment: fixed;
	background-size: 100%;
	background-repeat: no-repeat;
}

.game-thumbnail.eight {
	background-image:url("pic-assets/gameicons/nighttimerun_icon.png");
	background-attachment: fixed;
	background-size: 100%;
	background-repeat: no-repeat;
}

.game-thumbnail::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.game-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.game-thumbnail .thumbnail-emoji {
    transition: all 0.3s ease;
    z-index: 2;
}

.game-thumbnail .thumbnail-emoji-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.game-thumbnail:hover .thumbnail-emoji {
    opacity: 0;
    transform: scale(0.8);
}

.game-thumbnail:hover .thumbnail-emoji-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.game-thumbnail .thumbnail-title {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 4;
}

.game-thumbnail:hover .thumbnail-title {
    opacity: 1;
    transform: translateY(0);
}

.game-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.game-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.game-rating {
    display: flex;
    align-items: center;
    margin-top: 12px;
    gap: 8px;
}

.stars {
    color: #ffd700;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.85rem;
    color: #777;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .tabs-wrapper {
        padding: 6px;
    }
    
    .tabs-container {
        padding: 0 50px;
        gap: 4px;
    }
    
    .tab-item {
        min-width: 80px;
        padding: 10px 16px;
    }
    
    .tab-icon {
        font-size: 1.3rem;
    }
    
    .tab-label {
        font-size: 0.8rem;
    }
    
    .scroll-btn {
        width: 36px;
        height: 36px;
    }
    
    .scroll-left {
        left: 110px;
    }
    
    .scroll-right {
        right: 8px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .game-card {
        padding: 15px;
    }
    
    .game-thumbnail {
        height: 120px;
        font-size: 2.5rem;
    }
    
    .game-thumbnail .thumbnail-emoji,
    .game-thumbnail .thumbnail-emoji-hover {
        font-size: 2.5rem;
    }
    
    .game-thumbnail .thumbnail-title {
        font-size: 0.7rem;
        padding: 3px 6px;
        bottom: 6px;
        left: 6px;
    }
}

@media (max-width: 480px) {
    .tabs-container {
        padding: 0 45px;
    }
    
    .tab-item {
        min-width: 70px;
        padding: 8px 12px;
    }
    
    .tab-icon {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    .tab-label {
        font-size: 0.75rem;
    }
    
    .scroll-btn {
        width: 32px;
        height: 32px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
    
    .game-thumbnail .thumbnail-emoji,
    .game-thumbnail .thumbnail-emoji-hover {
        font-size: 2rem;
    }
    
    .game-thumbnail .thumbnail-title {
        font-size: 0.65rem;
        padding: 2px 5px;
        bottom: 5px;
        left: 5px;
    }
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* Animation for smooth transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.5s ease forwards;
}

.game-card.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Game cards hidden by default, shown by category */
.game-card[style*="display: none"] {
    display: none !important;
}

.game-card.show {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

/* Responsive design for section title */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
}

/* Scrollbar is completely hidden - see .tabs-container styles above */
