/* styles.css */
* {
  margin: 0;
  box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    color: white;
    overflow: auto; /* Enable scrolling on the body */
}

/* Hide scrollbar */
body::-webkit-scrollbar {
    width: 0px; /* Removes the scrollbar */
    height: 0px;
}

body::-webkit-scrollbar-thumb {
    background-color: transparent; /* Hides the thumb (the draggable part) */
}

body::-webkit-scrollbar-track {
    background: transparent; /* Makes the track (the part the thumb slides on) invisible */
}

/* Other styles remain the same */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 50px;
    overflow: auto; /* Allow scrolling within the container */
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Allow grid to scroll but hide the scrollbar */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Default for small screens */
    gap: 10px; /* Reduced gap between items */
    justify-items: center;
    overflow: auto; /* Enable scrolling */
    max-height: 100vh; /* Adjust height to allow scrolling */
    padding-right: 0px; /* Prevent horizontal scroll */
}

/* Hide the scrollbar but still allow scrolling */
.grid::-webkit-scrollbar {
    width: 0px;  /* Hide vertical scrollbar */
    height: 0px; /* Hide horizontal scrollbar */
}

.grid::-webkit-scrollbar-thumb {
    background-color: transparent; /* Hide the thumb (the draggable part) */
}

.grid::-webkit-scrollbar-track {
    background: transparent; /* Make the track (the part the thumb slides on) invisible */
}

.card {
    background-color: transparent; /* Make the background transparent */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px #0275a6;
    width: 100%;
    height: 100%;
    align-items: center;
}

.card img {
    width: 100%;
    height: 100%; /* Default image height */
    object-fit: cover; /* Ensures the image maintains aspect ratio */
    border-bottom: none; /* Removed the bottom border */
}

.card .info {
    padding: 8px;
    background-color: transparent; /* Make the info section background transparent */
}

.card .info h3 {
    font-size: 14px;
    margin: 0;
    margin-bottom: 6px;
}

.card .info p {
    font-size: 10px;
    color: #555;
}

/* Style for the dropdowns */
.dropdown-container {
    display: flex;
    justify-content: center; /* Center the dropdowns horizontally on desktop */
    gap: 20px; /* Adds spacing between the dropdowns */
    margin-top: 20px; /* Add space from the top */
}

/* When on desktop, dropdowns are aligned horizontally */
@media (min-width: 768px) {
    .dropdown-container {
        flex-direction: row; /* Horizontal layout for desktop */
        align-items: center;
    }

    .dropdown {
        text-align: center;
        position: relative;
        max-width: 250px; /* Increase max-width for better spacing */
        flex-grow: 1; /* Ensure dropdowns grow evenly */
        min-width: 180px; /* Minimum width for better readability */
        margin: 10px 0; /* Add vertical margin between the dropdowns */
    }
}

/* When on mobile, dropdowns are aligned vertically */
@media (max-width: 768px) {
    .dropdown-container {
        flex-direction: column; /* Vertical layout for mobile */
        align-items: center; /* Center dropdowns horizontally */
        gap: 15px; /* Add space between dropdowns */
        margin-top: 20px; /* Add space from top */
    }

    .dropdown {
        width: 100%; /* Make each dropdown take full width */
        min-width: 150px; /* Optional: minimum width for dropdowns */
    }

    select {
        width: 100%; /* Ensure dropdown takes full width on mobile */
    }

    /* Add space between the grid and the dropdown container on mobile */
    .grid {
        margin-top: 30px; /* Add margin to the top of the grid to create space */
    }

    /* Ensure 3 posters are displayed per row on mobile */
    .grid {
        grid-template-columns: repeat(3, 1fr); /* 3 items per row */
    }

    .card {
        height: 100%;
        align-items: center;
    }    
    .card img {
        height: 100%; /* Adjust image height for mobile */
    }
}

select {
    padding: 8px;
    font-size: 14px;
    background-color: #333;
    color: white;
    border: 2px solid #444;
    border-radius: 5px;
    appearance: none;
    cursor: pointer;
    width: 100%;
    text-overflow: ellipsis; /* Ensure long text does not overflow */
    border-color: #0296cc;
}

.select-container {
    position: relative;
    overflow: hidden; /* Hide scrollbars */
    display: inline-block;
    max-width: 100px; /* Optional: Adjust as needed */
}

select:focus {  
    border-color: #0296cc; /* Highlight border on focus */
    outline: none;
}

select:hover {
    background-color: #0296cc; /* Slightly lighter background on hover */
}

/* Dropdown options - scrollable */
select option {
    background-color: #333;
    max-height: 300px; /* Optional: control dropdown height */
    overflow-y: scroll; /* Make options scrollable */
}


.container {
    text-align: center;
} /* For CATEGORY */

.get-random-btn {
    padding: 15px 20px;
    font-size: 15px;
    border: 3px solid #ddd;
    background-color: #0296cc;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.get-random-btn:hover {
    background-color: black;
}

h1 {
    margin-bottom: 20px;
    
}

h1 {
    font-family: "Arial Black";  
}



/* NAVIGATION BAR START */
    nav {
      width: 100%;
      background: rgba(0, 0, 0, 0); /* Transparent at the top */
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1000;
      padding: 10px 20px;
      transition: background-color 0.3s;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    /* Sticky Header when Scrolling */
    .nav-solid {
      background-color: rgba(0, 0, 0, 1); /* Solid background when scrolled */
    }

    /* Logo Style */
    #logo {
      max-height: 25px;
      display: inline-block;
    }

    /* Navigation Menu (Links) */
    nav ul {
      display: flex;
      justify-content: flex-end;
      margin: 0;
      padding: 0;
      list-style-type: none;
    }

    nav ul li {
      margin-left: 2px;
    }

    nav ul li a {
      color: #fff;
      text-decoration: none;
      font-weight: bold;
      text-transform: uppercase;
      padding: 10px;
      display: inline-block;
      border-radius: 5px;
      transition: background 0.3s;
    }

    nav ul li a:hover,
    nav ul li a.active {
      background-color: #0296cc;
    }
/* Mobile Navbar */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #1e1e1e;
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links li {
        padding: 15px 0;
    }
}

/* Mobile Styles (Screen width below 768px) */
    @media (max-width: 768px) {
      /* Navigation links initially hidden on mobile */
      nav ul {
        display: none;  /* Hidden by default */
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 50px; /* To place the menu below the nav bar */
        left: 0;
        right: 0;
        width: 100%;
        padding: 10px 0;
      }
      /* Active state of the menu */
      nav.active ul {
        display: flex; /* Show the menu when active */
      }
      nav ul li {
        width: 100%;
        text-align: center;
        margin: 2px 0;
      }

      nav ul li a {
        padding: 10px;
        width: 100%;
        text-align: center;
      }

      /* Logo will adjust for smaller screens */
      #logo {
        max-height: 20px;
      }

      /* Menu Button visible on mobile */
      .menu-btn {
        color: white;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        background-color: #0296cc;
        padding: 10px 20px;
        border-radius: 5px;
        display: block;  /* Visible on mobile */
      }

      /* Show menu when active */
#menu.active {
    display: flex;
}
    }

    /* Hide the menu button on desktop */
    @media (min-width: 769px) {
      .menu-btn {
        display: none;  /* Hide the menu button on desktop */
      }
    }
/* NAVIGATION BAR END */


/* Dropdown MORE Button Start*/
.dropdowns {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    padding: 10px;
    text-transform: uppercase;
    font-size: 17px;
    border-radius: 5px;
    transition: background 0.3s;
}
.dropbtn:hover {
    background-color: #0296cc;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e1e1e;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 5px;
    right: 0;
}

.dropdown-content li {
    list-style: none;
    padding: 5px;
    text-align: right;
}

.dropdown-content li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    transition: background 0.3s;
}

.dropdown-content li a:hover {
    background-color: #0296cc;
}

/* Show dropdown on hover (for larger screens) */
@media (min-width: 769px) {
    .dropdowns:hover .dropdown-content {
        display: block;
    }
}

/* Show dropdown on click (for mobile) */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: none;
    }
    .dropdown-content li {
        padding: 2px;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    
}
@media (max-width: 768px) {
    .dropdown-content.active {
        display: block;
    }
}
/* Dropdown MORE Button End*/

/* Load More Button Start */
#loadMoreBtn {
    display: block;
    margin: 30px auto;
    padding: 12px 30px;
    background: #0296cc;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    transform: scale(1.05);
    background: #0296cc;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
/* Load More Button End */


/* Footer Section Start*/
.site-footer {
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  padding: 20px;
  margin-bottom: 0px;
  border-top: 1px solid #333;
}

.site-footer p {
  margin: 8px 0;
  font-size: 16px;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #0296cc;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .site-footer {
    margin-bottom: 54px;
    padding: 10px;
  }
  
  .site-footer p {
    font-size: 14px;
  }

  .footer-links {
    flex-direction: row;
    gap: 8px;
    text-align: center;
  }

  .footer-links a {
    margin: 0;
  }
}
/* Footer Section End*/

/* Chatroom Section Start */
#netplex-chatroom {
  position: fixed;
  bottom: 0px;
  right: 0px;
  overflow: hidden;
  z-index: 9999;
}
/* Chatroom Section End */
