 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

 body {
   margin: 0;
   font-family: "Poppins", sans-serif;
   background: #f2f2f2;
   color: #333;
   text-align: center;
 }

 .page-wrapper {
   display: flex;
   justify-content: center;
   position: relative;
 }

 .ad-sidebar {
   width: 160px;
   position: sticky;
   top: 80px;
   height: 100%;
   display: none;
 }

 @media (min-width: 1200px) {
   .ad-sidebar {
     display: block;
   }
 }

 .main-content {
   max-width: 900px;
   width: 100%;
   background-color: white;
   border: 1px solid rgb(197, 189, 189);
   /* background: transparent; */
   /* padding: 10px 20px 10px 20px; */
 }

 /* Header - now NOT sticky */
 header {
   background: #6d46cb;
   color: white;
   padding: 15px 25px;
   z-index: 10;
   display: flex;
   justify-content: space-between;
   align-items: center;
 }

 .logo {
   font-size: 22px;
   font-weight: bold;
   color: white;
   text-decoration: none;
 }

 nav {
   display: flex;
   gap: 20px;
 }

 nav a {
   color: white;
   text-decoration: none;
   font-size: 15px;
   font-weight: bold;
   transition: color 0.3s;
 }

 nav a:hover {
   color: #ffeb3b;
 }

 .menu-toggle {
   display: none;
   font-size: 26px;
   cursor: pointer;
 }

 /* Sticky input box */
 .your-nickname {
   width: 100%;
   background: #ffffff;
   border-radius: 12px;
   margin-bottom: 10px;
   position: sticky;
   top: 0;
   z-index: 50;
   padding-top: 10px;
 }

 .nick-heading {
   font-size: 28px;
   font-weight: bold;
   font-family: "Poppins", sans-serif;
 }

 h2 {
   font-size: 22px;
   font-weight: bold;
   color: #0202a4;
 }

 h3 {
   font-size: 20px;
   font-weight: bold;
   color: #0202a4;
 }

 h4 {
   text-align: left;
   font-size: 18px;
   color: rgb(52, 2, 123);
 }

 li {
   text-align: left;
 }

 ul {
   text-align: left;
 }

 p {
   text-align: left;
 }

 .fancy-name li {
   /* list-style-type: none;
   text-align: center; */
   margin-bottom: 10px;
   margin-left: 30px;

 }

 .nick-li {
  text-align: left;
 }

 .dotlist-remove {
   list-style-type: none;
 }

 #nickname-style {
   width: 100%;
   font-size: 18px;
   padding: 12px 40px 12px 15px;
   border-radius: 12px;
   border: 2px solid #9b59b6;
   outline: none;
   resize: none;
   min-height: 50px;
   box-sizing: border-box;
   transition: all 0.3s ease;
   background: white;
 }

 #nickname-style:focus {
   border-color: #6d46cb;
   box-shadow: 0 0 5px rgba(109, 70, 203, 0.3);
 }

 .clear-btn {
   position: absolute;
   top: 50%;
   right: 25px;
   transform: translateY(-50%);
   cursor: pointer;
   font-size: 24px;
   color: #888;
   display: none;
 }

 .ads-banner {
   margin: 15px auto;
   text-align: center;
 }

 .name-output-box {
   margin-top: 5px;
   width: 100%;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 12px;
 }

 .nickname-result {
   display: flex;
   margin-bottom: 4px;
   height: 30px;
   align-items: center;
   justify-content: center;
   padding: 9px 12px;
   background: #fff;
   border-radius: 10px;
   border: 1px solid #6d46cb;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
   font-size: 20px;
   cursor: pointer;
   transition: transform 0.1s ease;
 }

 .nickname-result:hover {
   transform: scale(1.01);
   background: #f5f5f5;
 }

 #copy-done {
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   background-color: rgba(0, 0, 0, 0.8);
   color: white;
   padding: 12px 24px;
   border-radius: 25px;
   z-index: 1000;
   display: none;
   font-size: 16px;
 }

 .nick-img {
   width: 600px;
   height: auto;
   max-width: 100%;
   border-radius: 10px;
   object-fit: cover;
 }

 .nick-img1 {
     width: 350px;
   height: auto;
   max-width: 100%;
   border-radius: 10px;
   object-fit: cover;
 }

 footer {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-top: 30px;
   padding: 15px 25px;
   background: #6d46cb;
   color: white;
   font-size: 16px;
   font-weight: bold;
   flex-wrap: wrap;
 }

 footer p {
   margin: 0;
   color: #ffffff;
 }

 .footer-nav a {
   color: #ffffff;
   text-decoration: none;
   margin-left: 20px;
   transition: color 0.2s;
 }

 .footer-nav a:hover {
   color: #ebff0f;
 }

 .blog-contain {
   margin: 10px 20px 10px 20px;

 }

 .intro-contain {
   margin: 20px 20px 50px 20px;
 }

 #backToTop {
   position: fixed;
   bottom: 25px;
   right: 170px;
   background: #6d46cb;
   color: white;
   border: none;
   outline: none;
   padding: 12px 16px;
   border-radius: 20%;
   font-size: 18px;
   cursor: pointer;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
   display: none;
   transition: all 0.3s ease;
   z-index: 1000;
 }

 #backToTop:hover {
   background: #5b38b3;
   transform: translateY(-2px);
 }
 
  /* ==== ROW CENTERED ==== */
.symbol-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    width: 100%;
}

/* ==== EXACT DESIGN STYLE BUTTON ==== */
.symbol-dropdown {
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 600;
    color: #333;

    border-radius: 12px;
    border: 1px solid #a855f7;        /* purple border */
    background: #fff;
    cursor: pointer;

    box-shadow: 0px 2px 4px rgba(0,0,0,0.15);  /* soft shadow */
    transition: 0.25s ease;
    width: auto;
    min-width: 130px;   /* button chhota rakhne ke liye */
    text-align: center;
}

/* Hover */
.symbol-dropdown:hover {
    background: #faf5ff;
    border-color: #9333ea;             /* darker purple */
    box-shadow: 0px 3px 6px rgba(0,0,0,0.20);
}

/* Focus */
.symbol-dropdown:focus {
    outline: none;
    border-color: #7e22ce;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.25);
}

 /* Wrapper */
 .cfu-wrapper {
   background: #ffffff;
   display: flex;
   justify-content: center;
   align-items: center;
   padding: 40px 20px;
 }

 /* Main box */
 .cfu-container {
   background: #fff;
   width: 100%;
   max-width: 600px;
   padding: 35px 30px;
   border-radius: 12px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
 }

 .cfu-title {
   text-align: center;
   margin-bottom: 20px;
   color: #222;
 }

 /* Form elements */
 .cfu-form-group {
   margin-bottom: 15px;
   margin-right: 20px;
 }

 .cfu-label {
   font-weight: 500;
   font-size: 15px;
   display: block;
   margin-bottom: 6px;
 }

 .cfu-input,
 .cfu-textarea {
   width: 100%;
   padding: 12px;
   border: 1.5px solid #dcdcdc;
   border-radius: 8px;
   font-size: 15px;
   outline: none;
   transition: 0.3s;
 }

 .cfu-input:focus,
 .cfu-textarea:focus {
   border-color: #4A90E2;
   box-shadow: 0 0 10px rgba(74, 144, 226, 0.2);
 }

 .cfu-textarea {
   resize: none;
   height: 140px;
 }

 /* Button */
 .cfu-btn {
   width: 100%;
   padding: 14px;
   background: #4A90E2;
   border: none;
   color: white;
   font-size: 16px;
   border-radius: 8px;
   cursor: pointer;
   margin-top: 10px;
   font-weight: 600;
   transition: 0.3s;
 }

 .cfu-btn:hover {
   background: #357ABD;
 }

 /* Messages */
 .cfu-success,
 .cfu-error {
   text-align: center;
   margin-top: 15px;
   font-weight: 600;
   display: none;
 }

 .cfu-success {
   color: #2ecc71;
 }

 .cfu-error {
   color: #e74c3c;
 }

/* Search bar */
#searchBox {
    width: 100%;
    max-width: 350px;
    padding: 10px 14px;
    margin: 15px 10px;
    border: 2px solid #f5c5cf;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}

/* Button container */
.all-posts-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px;
}

/* Small pink buttons */
.all-post-item {
    border: 2px solid #f5c5cf;
    color: #ff0000;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.all-post-item:hover {
    background: #ffe5eb;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 6px 12px;
    border: 2px solid #d9b3f5;
    border-radius: 10px;
    cursor: pointer;
    color: #7a00ff;
    background: white;
    font-size: 14px;
}

.page-btn.active {
    background: #e8d4ff;
    border-color: #7a00ff;
}

.page-btn:hover {
    background: #f3e6ff;
}


.post-buttons-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px auto;
}

.post-button {
  color: white;
  border: 1px solid #f8c6d2;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 17px;
  text-decoration: none;
  font-weight: 400;
  background: #6d46cb;
}


 /* Responsive CSS */
 @media (max-width: 768px) {
   header {
   background: #6d46cb;
   color: white;
   padding: 10px 10px;
   z-index: 10;
   display: flex;
   justify-content: space-between;
   align-items: center;
 }
   
   #nav-menu {
     position: absolute;
     top: 70px;
     /* below header */
     right: 0;
     width: 200px;
     background: #6d46cb;
     border-radius: 0 0 10px 10px;
     z-index: 9999;
     /* ensures it's above the sticky input */
     display: none;
     flex-direction: column;
     text-align: left;
     padding: 10px;
   }

   .main-content {
     border: none;
   }

   .logo {
     text-align: center;
     margin-left: 10px;
     font-size: 25px;
     font-weight: bold;

   }
   

   h2 {
     font-size: 23px;
     font-weight: 600;
     text-align: left;
   }

   h3 {
     font-size: 21px;
     font-weight: bold;
     text-align: left;
   }

   h4 {
     font-size: 19px;
     text-align: left;
     font-weight: bold;
   }


   .nick-img {
     width: 100%;
     height: auto;
     max-width: 100%;
     border-radius: 10px;
     object-fit: cover;
   }

   #nav-menu.active {
     display: flex;
   }

   nav {
     display: none;
     flex-direction: column;
     background: #6d46cb;
     position: absolute;
     top: 60px;
     right: 0;
     width: 200px;
     text-align: left;
     padding: 10px;
     border-radius: 0 0 10px 10px;
   }

   nav.active {
     display: flex;
   }

   .menu-toggle {
     display: block;
   }

   footer {
     flex-direction: column;
     text-align: center;
     gap: 8px;
   }

   .footer-nav {
     display: contents;
   }

   .footer-nav a {
     margin: 0 10px;
   }

   /* End of footer */

   .nick-heading {
     font-size: 20px;
   }

   #nickname-style {
     font-size: 16px;
   }

   .nickname-result {
     font-size: 16px;
     margin-bottom: -1px;
     height: 20px;
   }

   p {
     font-size: 17px;
     text-align: left;
   }

   ul {
     font-size: 17px;
     text-align: left;
   }

   li {
     font-size: 17px;
     text-align: left;
   }

   .blog-contain {
     margin: 5px 15px 5px 15px;

   }

   .intro-contain {
     margin: 5px 15px 5px 15px;
   }

   #backToTop {
     bottom: 20px;
     right: 10px;
     padding: 10px 14px;
     font-size: 17px;
   }

   .fancy-name li {
   /* list-style-type: none;
   text-align: center; */
   margin-bottom: 10px;
   margin-left: 10px;
 }
  .nick-heading {
   font-size: 25px;
 }
 .symbol-dropdown {
        font-size: 15px;
        padding: 8px 10px;
        min-width: 110px;
    }
    
     .cfu-container {
     padding: 25px 20px;
   }

   .cfu-title {
     font-size: 22px;
   }
   
.all-post-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    #searchBox {
        max-width: 100%;
    }
 }