.codehap_IMG{clip-path: circle();}
.page_404{ padding:40px 0;  
}

.page_404  img{ width:100%;}

.four_zero_four_bg{
 
 background-image: url(/images/404.gif);
    height: 400px;
    background-position: center;
 }
 
 
 .four_zero_four_bg h1{
 font-size:80px;
 }
 
  .four_zero_four_bg h3{
          font-size:80px;
          }
          
.back-to-top {
  display: none; /* Ensure it's hidden at first */
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 999;
  background-color: #1DA1F2;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, transform 0.2s ease;
}

.back-to-top:hover {
  background-color: #0d8ddb;
  transform: scale(1.1);
}
        

.codehap_img{background: #fff; border-radius: 10px;}
   .small{font-size: 12px; line-height: 14px;}


 

 .codehap_slide_btn{ 
 	margin: 0px;
   	background: none;
    border: none; 
   }

  #codehap_container{

width: 100%;
overflow-x: scroll;

}

.search-bar {
  max-width: 100%;
  transition: all 0.3s ease;
}

.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 280px; /* adjust based on expected height */
  background: #d3cece75;
}

.ad-placeholder::before {
  content: "Loading ad...";
  color: #888;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


@media (max-width: 576px) {
  .search-bar {
    max-width: 130px;
    font-size: 14px;
    padding: 4px 8px;
  }
}
/* Twitter Color Palette */
:root {
  --twitter-blue: #1DA1F2;
  --twitter-dark: #15202B;
  --twitter-darker: #192734;
  --twitter-light: #E1E8ED;
  --twitter-lighter: #F7F9FA;
}

.twitter-tag-cloud {
  background: black;
  padding: 2rem 1rem;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.twitter-tag-cloud h3 {
  color: var(--twitter-light);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.country-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.country-tag {
  position: relative;
}

.country-link {
  color: var(--twitter-blue);
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgb(29 161 242 / 18%);
  display: inline-block;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.country-link:hover {
  background: rgba(29, 161, 242, 0.2);
  transform: translateY(-2px);
}

.city-dropdown {
  display: none;
  position: absolute;
  background: var(--twitter-darker);
  border-radius: 8px;
  padding: 1rem;
  min-width: 200px;
  z-index: 100;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  max-height: 300px;
  overflow-y: auto;
}

.country-tag:hover .city-dropdown {
  display: flex;
}

.city-dropdown a {
  color: var(--twitter-light);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.city-dropdown a:hover {
  background: var(--twitter-blue);
  color: white;
}

@media (max-width: 768px) {
  /* Country tag container */
  .country-tag {
    position: relative;
    display: inline-block;
    padding: 12px 0; /* Better touch area */
  }

  /* Disable country link clicks */
  .country-link {
  /*  pointer-events: none;  Makes text non-clickable */
    cursor: default; /* Removes pointer cursor */
    padding: 8px 16px; /* Visual padding */
  }

  /* Dropdown styling */
  .city-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px; /* Wider for better readability */
    max-height: 60vh; /* Dynamic height based on screen */
    min-height: 150px; /* Minimum height guarantee */
    overflow-y: auto;
    background: #192734;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    padding: 12px 0;
  }

  /* Active dropdown */
  .country-tag.active .city-dropdown {
    display: block;
    animation: fadeIn 0.2s ease-out;
  }

  /* City items */
  .city-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #E1E8ED;
    text-decoration: none;
    transition: background 0.2s;
  }

  .city-dropdown a:hover {
    background: #1DA1F2;
  }

  /* Animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
}