
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #fff; /* Ensures text is readable */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-top: 110px; /* Ensures content is below navbar */
    scroll-behavior: smooth;
}

/* Background Image */
body::before {
    content: "";
    position: fixed; /* Ensures it covers the full page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://static.vecteezy.com/system/resources/previews/005/416/086/non_2x/childrens-day-background-with-little-girls-free-vector.jpg') 
        no-repeat center center;
    background-size: cover;
    opacity: 0.9; /* 90% opacity */
    z-index: -1; /* Keeps it behind content */
}
/* secondry navbar */

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Glass effect sidebar container */
.glass-nav {
    position: fixed;
    top: 10px; /* moved closer to top */
    left: 0;
    width: 70px; /* Narrow width showing only icons */
    height: 268px; /* Further reduced height */
    background: rgba(16, 5, 5, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 12px 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    padding: 15px 8px; /* reduced vertical and horizontal padding */
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    z-index: 1000;
    transition: width 0.4s ease, height 0.4s ease;
    overflow: hidden;
    user-select: none;
    top: 24%;
}

/* Expand sidebar on hover */
.glass-nav:hover {
    width: 180px;
    padding: 15px 25px;
}

/* Logo container */
.glass-nav .logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px; /* further reduced margin */
    cursor: default;
    position: relative;
    transition: all 0.4s ease;
}

/* Show only cc-text initially */
.glass-nav .logo .cc-text {
    font-size: 30px; /* reduced font size */
    font-weight: 900;
    color: #f4850e;
    letter-spacing: 2px;
    margin-bottom: 2px;
    user-select: none;
    text-align: left;
    white-space: nowrap;
}

/* Hide the full-text initially */
.glass-nav .logo .full-text {
    display: flex;
    font-size: 20px; /* reduced font size */
    font-weight: 700;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    white-space: nowrap;
}

/* Show full-text on sidebar hover */
.glass-nav:hover .logo .full-text {
    opacity: 1;
    max-height: 30px;
}

/* Highlight part of the full logo */
.glass-nav .logo .full-text .color {
    color: #ffb300;
    margin-right: 6px;
}

/* Secondary logo text */
.glass-nav .logo .full-text .craze {
    color: #ff4112;
}

/* Navigation list container */
.glass-nav .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1; /* fill remaining height */
    display: flex;
    flex-direction: column;
    gap: 5px; /* reduced gap */
}

/* Navigation link items */
.glass-nav .nav-links li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #110101;
    font-size: 14px; /* reduced font size */
    font-weight: 600;
    padding: 8px 8px; /* reduced padding */
    border-radius: 10px;
    transition: background-color 0.3s ease, color 0.3s ease, padding 0.4s ease;
    white-space: nowrap;
    overflow: hidden;
}

/* Icons inside links */
.glass-nav .nav-links li a i {
    min-width: 22px;
    font-size: 20px; /* smaller icon */
    color: #000000;
    margin-right: 0;
    transition: color 0.3s ease, margin-right 0.4s ease;
}

/* Show label text span is hidden initially */
.glass-nav .nav-links li a span {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    margin-left: 0;
    transition: opacity 0.3s ease, max-width 0.3s ease, margin-left 0.3s ease;
    display: inline-block;
}

/* On hover of sidebar show label text and add margin */
.glass-nav:hover .nav-links li a span {
    opacity: 1;
    max-width: 5em;
    margin-left: 12px;
}

/* On sidebar hover: increase padding for full text */
.glass-nav:hover .nav-links li a {
    padding-left: 16px;
}

/* Hover and focus states for links */
.glass-nav .nav-links li a:hover,
.glass-nav .nav-links li a:focus {
    background-color: rgba(86, 68, 68, 0.25);
    color: #0f0b0b;
    outline: none;
}

.glass-nav .nav-links li a:hover i,
.glass-nav .nav-links li a:focus i {
    color: #0b0808;
}

/* Scrollbar styling if needed */
.glass-nav::-webkit-scrollbar {
    width: 5px;
}

.glass-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
    .glass-nav {
        width: 60px;
        height: 260px;
        padding: 12px 6px;
        top: 8px;
    }

    .glass-nav:hover {
        width: 220px;
        padding: 12px 20px;
    }

    .glass-nav .logo .cc-text {
        font-size: 28px;
    }

    .glass-nav .logo .full-text {
        font-size: 14px;
    }

    .glass-nav .nav-links li a {
        font-size: 12px;
        padding: 7px 6px;
    }

    .glass-nav:hover .nav-links li a {
        padding-left: 14px;
    }

    .glass-nav .nav-links li a i {
        font-size: 14px;
        min-width: 20px;
        margin-right: 0;
    }

    .glass-nav:hover .nav-links li a span {
        margin-left: 10px;
    }
}



/* second nev */

.navbar {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 60%;
    position: fixed; /* Keeps navbar fixed at the top */
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    height: 80px;
    overflow: hidden;
}

.navbar-nav {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 10px;
    overflow-y: auto;
    margin: 0;
}

.navbar-nav a {
    font-size: 2rem;
    text-decoration: none;
    transition: transform 0.3s;
    display: inline-block;
}

.navbar-nav a:hover {
    transform: scale(1.2);
}

.nav-link i {
    padding: 15px;
    border-radius: 50%;
    background-color: transparent;
    animation: float-animation 2s infinite ease-in-out alternate;
}

@keyframes float-animation {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-8px);
    }
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    border: none;
    background: transparent;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: all 0.3s ease-in-out;
}


@media (max-width: 768px) {
    .navbar {
        width: 30%;
        height: auto;
        flex-direction: column;
        padding: 30px;
        align-items: center;
        max-height: 60vh;
    }

    .navbar-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    .navbar-nav a {
        font-size: 1.5rem;
        display: block;
    }

    .hamburger {
        display: block;
    }

    .navbar.active .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .navbar.active .hamburger {
        left: 85%;
    }
}

/* Move game cards when sidebar appears or nav-links are hovered */
/* Move game cards when sidebar appears */
.glass-nav:hover ~ .allgame {
    transform: translateX(50px);
    transition: transform 0.4s ease-in-out;
}
/* search */


#search {
    width: 70%;
    max-width: 500px;
    padding: 10px;
    margin: 20px auto;
    display: block;
    border: 2px solid #4CAF50;
    border-radius: 24px;
    outline: none;
    font-size: 16px;
    transition: 0.3s;
}

#search:focus {
    border-color: #45a049;
}

#search::placeholder {
    color: #999;
    font-style: italic;
}


/* Pagination */

.pagination {
    display: flex;
    list-style-type: none;
    padding: 0;
    justify-content: center;
    margin-top: 20px;
}
.pagination li {
    margin: 0 5px;
    text-decoration: none;
}
.pagination a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: black;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.pagination a.active {
    background-color: #247BA0; /* Green */
    color: white;
    font-weight: bold;
}
.pagination a:hover {
    background-color: #ddd;
}
.pagination button {
    background-color: #247BA0;
    color: white;
    padding: 10px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.pagination button:hover {
    background-color: #247BA0;
}
.pagination button:disabled {
    background-color: #70C1B3;
    cursor: not-allowed;
}
#paginationList{
    display: flex;
    list-style: none;
}
/* Footer Styles */
.glass-footer {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto 0;
    background: rgba(240, 179, 135, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Grid layout */
.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Column Titles */
.footer-column h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

/* Links List */
.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.footer-column ul li a i {
    margin-right: 10px;
    color: #ff6b6b;
}

.footer-column ul li a:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

/* Social Icons */
.social-column .social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icon {
    color: black;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #ff6b6b;
    transform: scale(1.2);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: black;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .glass-footer {
        padding: 30px 15px 15px;
    }

    .footer-column h4 {
        font-size: 16px;
    }

    .footer-column ul li a {
        font-size: 14px;
    }

    .social-icon {
        font-size: 20px;
    }
}
