#website-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #332f2f 0%, #1e1e1e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;

    
}


#website-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
 

.hide, div.social-links {
    display: none;
}
     
    




 /* Updated Category Item Styles */
.category-item {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    max-width: 200px;
    outline: 2px solid var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    border-radius: 8px;
    background-color: var(--card-bg);
    text-decoration: none;
    white-space: wrap;
    transition: all 0.3s ease;
}

.category-item:hover {
    outline: 2px solid var(--select);
     background: rgba(255, 255, 255, 0.05);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    color: white;
    transform: scale(1.1);
}

.category-item span {
    font-weight: 400;
    font-size: 1em;
    position: relative;
    z-index: 2;
}

/* Stickman icon styling in category cards */
.category-item .stickman-icon {
    font-size: 2rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
    width: 40px;
    height: 38px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 6px;
    border-left: 2px solid orange;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.category-item:hover .stickman-icon {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    border-left-color: #ffb74d;
}

.category-item .stickman-svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    transition: inherit;
}
        

.retry-btn:hover {
    background-color: var(--select);
    transform: translateY(-2px);
}


.load-more-card .game-title-overlay {
    opacity:1;
    visibility: visible;
    transform: translateY(0);
    background-color:transparent!important;
          
}
.load-more-card .fa-spinner {
    color: var(--text-color)!important;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}
        .load-more-card {
           animation: scale 1.1s linear 0s infinite;
           font-size: 1.2rem
        }
        
        .load-more-card:hover {
            animation: unset;
        }
        
        @keyframes scale {
            50% {
               transform: scale(1.03);
            }
        }

        
        /* Remove decoration from More Games card overlay */
.load-more-card .game-title-overlay {
    background: var(--card-bg) !important;
    background-image: none !important;
    
    color: var(--accent-color) !important;
    font-weight: bold !important;
    border-radius: 0 0 8px 8px !important;
}

/* Ensure the thumbnail background is clean too */
.load-more-card .game-thumbnail {
    background: var(--card-bg) !important;
    background-image: none !important;
}

/* Hover state for More Games card */
.load-more-card .game-title-overlay {
    background: rgba(255, 255, 255, 0.49) !important;
    color: white !important;
    height:100%;
    line-height: 170px
    
}
.fa-arrow-down {
    
    z-index: 1;
    color: white !important;
    text-shadow: 0 0 4px black;
}
      
@media (max-width:400px) {
          .network-error-content h2 {
        color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 20px;
              
}
      }

/* Footer Social Media Styles */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}



            .recently-played-icon-card {
                display: flex;
                align-items: center;
                justify-content: center;
                background: linear-gradient(135deg, var(--accent-color) 0%, #7c4dff 100%);
                cursor: default;
                width: 94px;
            }

            .recently-played-icon-card:hover {
                border: unset;
                outline: unset;
            }

            #new-games-scroll {
                padding-top: 50px;
            }

            .recently-played-icon {
                font-size: 2rem;
                color: white;
                text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            }

            .recently-played-icon-card .game-title-overlay {
                background: rgba(0, 0, 0, 0.7);
                transform: translateY(0);

                font-size: 12px !important;
                font-weight: bold;
            }

            /* Network Error Overlay Styles */
            .network-error-overlay {
                position: fixed;
                top: 0; /* Leave space for header */
                left: 0;
                bottom: 0;
                width: 100%;
                height: 100vh;
                background-color: var(--primary-bg);
                z-index: 999;
                display: none;
                justify-content: center;
                align-items: center;
                flex-direction: column;
                transition: unset;
            }

            .network-error-overlay.active {
                display: flex;
            }

            .network-error-content {
                text-align: center;
                padding: 30px;
                background-color: transparent;
                border-radius: 12px;
                max-width: 400px;
                width: 90%;
                position: absolute;
                top: 60px;
            }

            .network-error-content h2 {
                color: var(--accent-color);
                margin: 20px 0 15px;
                font-size: 24px;
            }

            .network-error-content p {
                color: var(--text-secondary);
                margin-bottom: 25px;
                font-size: 16px;
                line-height: 1.5;
            }

            .retry-btn {
                background-color: var(--accent-color);
                color: white;
                border: none;
                padding: 12px 30px;
                border-radius: 25px;
                font-size: 16px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s ease;
            }

            .retry-btn:hover {
                background-color: var(--select);
            }

            .retry-btn.retrying {
                background-color: #4caf50; /* Green when retrying */
                cursor: not-allowed;
            }

            .retry-btn.retrying:hover {
                background-color: #4caf50;
            }

            .retry-btn.error {
                background-color: #ff5f53; /* Red when no network */
            }
        
.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-link.tiktok:hover {
    background-color: #000000;
    color: #ffffff;
}

.social-link.telegram:hover {
    background-color: #0088cc;
    color: #ffffff;
}

.social-link.whatsapp:hover {
    background-color: #25D366;
    color: #ffffff;
}

.cart-ads{
                height: 100px;
                width: 60%;
                margin: auto;
                display: flex;
                justify-content: center;
                background-color: #4f4a4a;
                color: #dddddd;
                align-items: stretch;
                 margin-bottom: -50px;
                
            }
            
            @media (min-width: 640px) and (max-width: 840px) {
                .cart-ads{
                    width: 100%;
                }
            }
            
            @media (max-width:640px) {
                .cart-ads { 
                    margin-top: 56px;
                   
                    width: 100%;
                    
                }
                
            }




/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    
    }

p.brief-about {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.5;
    font-weight: 500;
}



                 .share-menu{position:absolute;right:10px;bottom:56px;background:var(--card-bg,#ffffff);color:var(--text-primary,#111);min-width:200px;padding:8px;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.18);backdrop-filter:blur(6px)}
               


                 .share-item{display:flex;gap:10px;align-items:center;padding:8px;border-radius:8px;cursor:pointer}
                .share-item:hover{background:rgba(160, 160, 160, 0.3)!important}
                .share-label{flex:1;font-size:14px}
                .share-note{font-size:12px;color:#ffffff}
                .share-icon{width:28px;height:28px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center}




        .share-text-container {
    flex: 1;
}

.share-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 14px;
}



.copy-success-tick {
    color: #10B981;
    font-size: 14px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.copy-success-tick.show {
    opacity: 1;
    transform: scale(1);
}


@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.copy-success-tick.show i {
    animation: checkmarkPop 0.4s ease-out;
}
.game-description-title {
                color: var(--text-primary);
                font-size: 1.5rem;
                margin-bottom: 10px;
                font-weight: 600;
                border-bottom: 2px solid var(--accent-color);
                padding-bottom: 5px;

            }
         
         
            
            
         
.wrap {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
    justify-content: flex-start;

    
    
}
         
         @media (max-width: 640px) {
             .wrap {
                 flex-wrap:wrap;
             }
         }

.game-description {
    background-color: var(--card-bg);
    color: var(--text-secondary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(30, 29, 29, 0.2);
    flex: 0 1 700px; 
    max-height:110px;
    min-height: 380px;
    overflow-y: auto;
   
    
    
}

.game-description-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.game-description-content {
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Game Tags Styling */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}


/* For dark theme compatibility */
[data-theme="dark"] .game-tag {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Side ad styling */
.wrap .ads {
    background-color: #343434;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex: 1 1 400px; /* Fixed width for the ad */
    position: relative;
    overflow: hidden;
}

/* Ad placeholder styling */
.wrap .ads::before {
    content: "Advertisement";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 16px;
    opacity: 0.7;
    margin-right: 10px;
}

        /* Game Tags Styling */
            .game-tags {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                margin-top: 15px;
            }

            .game-tag {
                display: inline-block;
                padding: 4px 10px;
                background-color: rgba(255, 255, 255, 0.1);
                border-radius: 16px;
                color: #fff;
                font-size: 13px;
                text-decoration: none;
                transition: all 0.2s ease;
                border: 1px solid rgba(255, 255, 255, 0.2);
                font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
            }

            .game-tag:hover {
                background-color: var(--accent-color);
                transform: translateY(-1px);
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            }

            .game-tag:active {
                transform: translateY(0);
            }

            /* For dark theme compatibility */
            [data-theme="dark"] .game-tag {
                background-color: rgba(0, 0, 0, 0.3);
                border-color: rgba(255, 255, 255, 0.1);
            }
            
            .game-display-container {
    display: flex;
    flex-direction: column;
    position: relative;
}

            .game-display-container {
    display: flex;
    flex-direction: column;
    position: relative;
}
         
        



/* When in fullscreen, adjust the layout */
.game-display-container:fullscreen {
    width: 100vw;
    height: 100vh;
    background: black;
}

.game-display-container:fullscreen .game-display {
    height: calc(100vh - 67px); /* Subtract controls height */
    flex: none;
}

.game-display-container:fullscreen .game-controls {
    position:sticky;
    bottom: 0;
    width: 100%;
    background-color: var(--primary-bg);
    padding: 8px 10px;
}

/* Vendor prefixes for fullscreen */
.game-display-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    background: black;
}

.game-display-container:-webkit-full-screen .game-display {
    height: calc(100vh - 50px);
    flex: none;
}

.game-display-container:-webkit-full-screen .game-controls {
    position: sticky;
    bottom: 0;
    width: 100%;
}

.game-display-container:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    background: black;
}

.game-display-container:-moz-full-screen .game-display {
    height: calc(100vh - 50px);
    flex: none;
}

.game-display-container:-moz-full-screen .game-controls {
    position: sticky;
    bottom: 0;
    width: 100%;
}

.game-display-container:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    background: black;
}

.game-display-container:-ms-fullscreen .game-display {
    height: calc(100vh - 50px);
    flex: none;
}

.game-display-container:-ms-fullscreen .game-controls {
    position: sticky;
    bottom: 0;
    width: 100%;
}
















            
        


