    /* Reset default margin and padding for all elements */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Apply some basic styles to the body */
    body {
        background-color: #f0f8ff;
        color: #333;
        font-family: 'Arial', sans-serif;
    }

    /* Modern Gaming Navbar Styles */
    .navbar-custom {
    background: linear-gradient(135deg, #12015e, #3f2186);
    backdrop-filter: blur(10px); /* Frosted glass effect */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); /* Subtle shadow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease; /* Smooth transition */
    animation: gradientAnimation 1s ease infinite; /* Gradient animation */
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 3rem; /* Size of the logo */
    margin-right: 1rem; /* Space between logo and brand name */
    transition: transform 0.3s ease; /* Smooth logo hover effect */
}

.logo-image:hover {
    transform: scale(1.1); /* Scale up on hover */
}

.navbar-custom .nav-link {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar-custom .nav-link:hover::before {
    visibility: visible;
    width: 100%;
}
.nav-link {
        color: #ffffff;
        font-size: 1.1rem;
    }
.navbar-custom .nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ffcc00;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.navbar-custom .nav-link:hover::before {
    visibility: visible;
    width: 100%;
}

.navbar-custom .nav-link:hover {
    color: #ffcc00; /* Highlight color on hover */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 12px rgba(255, 255, 255, 0.6);
    transform: translateY(-3px); /* Float up effect on hover */
}


/* Keep this for regular nav links if needed */
.navbar-custom .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #ffcc00;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
    visibility: hidden;
}

.navbar-custom .nav-link:not(.dropdown-toggle):hover::after {
    visibility: visible;
    width: 100%;
}

/* Existing dropdown arrow styling (if using custom) */
.nav-item.dropdown .nav-link::after {
    content: "";
    display: inline-block;
    margin-left: 0.5rem; /* Space between the text and the arrow */
    vertical-align: 0.2em;

    /* Create the arrow shape */
    border-top: 0.4em solid; /* Size and color of the arrow */
    border-right: 0.4em solid transparent;
    border-left: 0.4em solid transparent;

    /* Transition for smooth animation */
    transition: transform 0.3s ease;
}

.nav-item.dropdown.show .nav-link::after {
    transform: rotate(180deg);
}

/* Navbar toggler */
.navbar-toggler {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px;
    border-radius: 8px;
}

.navbar-toggler-icon {
    background-image: linear-gradient(to right, #6200ea, #2373a0);
}




    /* Center align the main heading */
    h1 {
        text-align: center;
        margin: 40px 0;
        color: #2c3e50;
        font-size: 2.5rem;
        font-weight: 600;
    }

    /* Style the content container */
    .container {
      
        margin: 0 auto;
        padding: 0;
        text-align: center;
        
    }

    .container img {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .container p {
        margin-bottom: 10px;
    }



    /* Set the background image */
    #background-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("/static/images/white.avif");
        background-repeat: no-repeat;
        background-size: cover;
        z-index: -1;
    }

    .about-section {
        margin-top: 100px;
        display: flex;
        justify-content: center;
    }

    .about-image {
        flex: 0 0 10%;
        margin-right: 20px;
    }

    .about-image img {
        width: 110%;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .about-text {
        flex: 0 0 40%;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 20px;
        background-color: #f0f0f0;
        color: rgb(8, 8, 8);
    }

    /* Apply styles only to elements within the content container */
    .content-container {
        text-align: center;
    }

    /* Center-align the .center-content container using flexbox */
    .center-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Center-align the filter container */
    .filter-container {
        text-align: center;
        margin-bottom: 20px; /* Add some space between filters and challenge list */
    }

    /* Add styles for filter container elements (form, labels, select, input) */
    .filter-container form,
    .filter-container label,
    .filter-container select,
    .filter-container input {
        /* Your styles for filter container elements */
    }

    /* Center-align the challenge list items */
    .challenge-list ul {
        list-style: none;
        padding: 0;
    }

    /* Update the CSS for challenge list items */
    .challenge-list li {
        display: flex;
        align-items: center; /* Vertically align content */
        margin-bottom: 10px;
        border: 1px solid #ccc;
        padding: 10px;
        background-color: rgb(8, 1, 36);
        border-radius: 15px;
        color: white;
    }

    /* Update the CSS for challenge list item images */
    .challenge-list li img {
        width: 100px; /* Fixed width for the image */
        height: 100px; /* Fixed height for the image */
        object-fit: cover; /* Preserve aspect ratio and cover container */
        margin-right: 20px; /* Add some space between image and details */
    }

    /* Add styles for challenge boxes */
    .challenge-box {
        display: flex;
        justify-content: space-between; /* Align content to the start and end of the box */
        align-items: center; /* Vertically center content */
        margin-bottom: 20px;
        border: 1px solid #ccc;
        padding: 10px;
        background-color: white;
        border-radius: 5px;
    }

    /* Style for challenge details (left side) */
    .challenge-details {
        flex-grow: 1; /* Allow the details to grow and take up available space */
    }

    /* Style for the "Accept Challenge" button (right side) */
    .button {
        background-color: #000;
        border: 0.5px solid crimson;
        border-radius: 10px;
        color: #200dc4;
        padding: 8px;
        box-shadow: 0 0 30px 0 crimson, 0 0 30px 0 crimson, 0 0 10px 0 crimson inset;
    }

    /* Add these styles to your CSS file */
    .row-challenges {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .challenge-item {
        width: 19%; /* Adjust as needed */
        margin-bottom: 10px;
    }

    .players-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* Adjust the gap value as needed */
        justify-content: center;
    }

    /* Style for the game URL box */
    #game-url-box {
        width: 100%;
        padding: 10px;
        border: 1px solid #22025f;
        border-radius: 5px;
        resize: none; /* Disable textarea resize */
        box-sizing: border-box;
        margin-bottom: 10px; /* Adjust margin as needed */
        overflow-wrap: break-word; /* Wrap long URLs */
    }

    /* Style for the game URL container */
    .game-url-container {
        position: relative;
    }

    /* Style for the copy button */
    #copy-button {
        position: absolute;
        top: 5px;
        right: 5px;
        padding: 5px 10px;
        background-color: #0a0033;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }




    .notification-box {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #333;
        color: white;
        padding: 10px;
        border-radius: 5px;
        z-index: 9999;
    }



    /* styles.css */
    .notification-icon {
        position: relative;
        cursor: pointer;
    }

    .notification-icon .badge {
        position: absolute;
        top: 0;
        right: 0;
        background-color: red;
        color: white;
    }

    .dropdown-menu {
        max-height: 300px;
        overflow-y: auto;
    }

    .notification-bell {
        position: relative;
        cursor: pointer;
    }

    .notification-bell .badge {
        position: absolute;
        top: 0;
        right: 0;
        background-color: rgb(168, 6, 6);
        color: white;
    }

    .dropdown-menu {
        max-height: 300px;
        overflow-y: auto;
    }

    .popup {
        position: fixed;
        top: 0;
        left: 0;
        background-color: #0d0046;
        color: white;
        padding: 10px;
        border-radius: 0 10px 0 0;
        z-index: 999;
    }

    .popup a {
        color: #ffcc00;
    }

    .notification-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        width: 300px;
    }

    .notification {
        background: #090150;
        color: #fff;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .notification p {
        margin: 0;
        padding: 0 10px;
    }

    .notification button {
        background: #4CAF50;
        border: none;
        color: white;
        padding: 5px 10px;
        margin: 5px;
        cursor: pointer;
        border-radius: 5px;
    }

    .notification button:hover {
        background: #45a049;
    }

    .notification .decline-button {
        background: #ff4c4c;
    }

    .notification .decline-button:hover {
        background: #e04343;
    }

    .notification-bell {
        position: relative;
        cursor: pointer;
    }

    .notification-bell .badge {
        position: absolute;
        top: 0;
        right: 0;
        background-color: red;
        color: white;
    }

    .dropdown-menu {
        max-height: 300px;
        overflow-y: auto;
    }

    .popup {
        position: fixed;
        top: 0;
        left: 0;
        background-color: #040344;
        color: white;
        padding: 10px;
        border-radius: 0 10px 0 0;
        z-index: 999;
    }

    .popup a {
        color: #ffcc00;
    }


    /* Style the buttons with a modern touch */
    .btn-modern-primary {
        background-color: #6200ea;
        border: none;
        color: #fff;
        padding: 10px 20px;
        font-size: 16px;
        border-radius: 50px;
        transition: background-color 0.3s ease, transform 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .btn-modern-primary:hover {
        background-color: #3700b3;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .btn-modern-secondary {
        background-color: #03dac5;
        border: none;
        color: #fff;
        padding: 10px 20px;
        font-size: 16px;
        border-radius: 50px;
        transition: background-color 0.3s ease, transform 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .btn-modern-secondary:hover {
        background-color: #018786;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .btn-modern-danger {
        background-color: #b00020;
        border: none;
        color: #fff;
        padding: 10px 20px;
        font-size: 16px;
        border-radius: 50px;
        transition: background-color 0.3s ease, transform 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .btn-modern-danger:hover {
        background-color: #8e0016;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }



    body.modal-open {
        overflow: auto;
        padding-right: 0 !important; /* Optional: Prevent the body from shifting due to scrollbar */
    }

