body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    color: white;
    overflow: hidden; /* Prevent page overflow */
}
.background {
    position: relative;
    background-image: url('image.png'); /* Replace with your image path */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center; /* Center items vertically */
    text-align: center;
}
.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15); /* Dark overlay */
}
.container {
    position: relative;
    z-index: 1; /* Ensure container is above the overlay */
    text-align: center;
}
.title {
    font-size: 2.5em; /* Reduce font size */
    margin-bottom: 20px;
}
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align cards to the left */
    /* padding: 10px 0; */
    /* background: rgba(0, 0, 0, 0.3); Dark background for the card section */
    /* backdrop-filter: blur(1.8px); Apply blur effect */
    width: 100%;
    position: absolute;
    bottom: 32px; 
    z-index: 3; 
}

.downbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align cards to the left */
    /* padding: 10px 0; */
    background: rgba(0, 0, 0, 0.3); /* Dark background for the card section */
    backdrop-filter: blur(1.8px); /* Apply blur effect */
    width: 100%;
    position: absolute;
    bottom: 0px; 
    z-index: 3; 
}

.card {
    background: rgba(255, 255, 255, 0.0);
    padding: 10px; /* Reduce padding */
    margin: 10px;
    border-radius: 5px;
    width: calc(77% / 6 - 20px); /* Expand width to fit 6 cards per row */
    text-align: left;
    transition: background 0.3s ease;
    cursor: pointer;
    position: relative;
    max-height: 159px; /* Set a fixed height for the card */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 1px; /* Add some padding for better readability */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
.card button {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px); /* Apply blur effect */
    border: none;
    color: white;
    padding: 3px;
    margin: 1px 0; /* Reduce gap between buttons */
    font-size: 0.9em;
    cursor: pointer;
    width: 100%;
    text-align: left;
}
.card button:hover {
    background: rgba(0, 0, 0, 0.7);
}
.card-topic {
    display: flex;
    align-items: center;
    font-size: 1.0em;
    font-weight: bold;
    margin-bottom: 6px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
    position: sticky;
    top: 0;
    z-index: 1;
}
.card-topic .icon {
    width: 20px;
    height: 20px;
    margin-left: auto;
}
.card-topic .color-bar {
    width: 5px;
    height: 100%;
    background-color: #ff0000; /* Default color, can be changed per card */
    margin-right: 10px;
}
.card::-webkit-scrollbar {
    width: 8px;
}
.card::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}
.card::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 5px;
}
nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* Set background opacity to 0.5 */
    backdrop-filter: blur(10px); /* Apply blur effect */
    padding: 10px 0;
    z-index: 2;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start; /* Align items to the left */
    flex-wrap: wrap; /* Make the nav items wrap on smaller screens */
}

nav ul li {
    margin: 0 70px; /* Further increase horizontal space between words */
    position: relative; /* Position relative for the vertical line */
}

nav ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -70px; /* Adjust the position of the line */
    top: 50%;
    width: 1px;
    height: 20px; /* Adjust the height of the vertical line */
    background: rgba(255, 255, 255, 0.3); /* Decrease color and opacity of the vertical line */
    transform: translateY(-50%);
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

nav ul li a:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    nav ul li {
        margin: 0 10px;
    }
}

@media (max-width: 992px) {
    nav ul li {
        margin: 0 8px;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start; /* Align items to the left */
    }
    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .title {
        font-size: 2em; /* Adjust font size for extra small screens */
    }
    nav ul li {
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start; /* Align items to the left */
    }
    nav ul li {
        margin: 5px 0;
    }
}

@media (max-width: 360px) {
    .title {
        font-size: 1.5em; /* Adjust font size for very small screens */
    }
    nav ul li {
        margin: 3px 0;
    }
}