/* Emerging effect */
a {
  display: inline-block;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

a:hover {
  transform: translate3d(0, -3px, 0);
}
/* Editor */
.ql-container {
  font-size: 18px;
}

.ql-tooltip {
  display: none;
}

.emoji-dropdown {
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  max-width: 200px;
  margin-top: 2rem;
  z-index: 99;
}

.emoji {
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
}

.emoji:hover {
  background-color: #f0f0f0;
}

/* Create post Modal */
.post-body {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  background-color: #f9f9f9;

}


/* search result */
.no-search-result{
  text-align: center;
  font-size: 20px;
  margin-top: 20px;
}

.no-search-result img{
  width: 300px;
  height: 300px;
}

#search-result-container {
  border-radius: 10px;
  font-size: 15px;
  margin: 10px;
  width: 95%;
}

#search-result-container a {
  color: #000;
  text-decoration: none;
}

.search-result-box {
  margin: 10px;
  padding: 20px;
  border: 1px solid #22c1c33b; 
  border-radius: 5px;
  box-shadow: 5px 5px 10px 0px rgba(67, 186, 173, 0.2);
}



.search-author-info img,
.search-author-info i{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 40px;
  margin-right: 10px;
}



.author-name{
  font-size: 16px;
  font-weight: bold;
}



.author-level {
  color: rgba(253, 146, 45, 1);
  font-size: 15px;
  font-weight: 1000;
  text-shadow: 0px 5px 6px rgba(253, 146, 45, 0.48);
  margin-right: 5px;
  margin-bottom: 5px;
}


.badge {
  color: #000;
  margin-right: 5px;
  margin-bottom: 5px;
}

.search-post-body {
  max-height: 70px;
  overflow-y: hidden;
  position: relative;
}

.search-post-body .more {
  position: absolute;
  bottom: -20px;
  right: 0px;
  background: radial-gradient(circle at 90% 100%, white 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
  width: 150px;
  height: 100%;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: end;
}

.search-post-body img {
  width: 100%;
  max-width: 300px;
  object-fit: contain;
}

.search-footer span {
  margin-right: 20px;
}

/* post part */
div.topicContainer {
  list-style-type: none;
  text-align: center;
  margin: 0;
  padding: 0;
  width: 23%;
  background-color: #f1f1f1;
  position: fixed;
  top: 10%;
  left: 0;
  height: auto;
  overflow: auto;
}

div.postContainer {
  list-style-type: none;
  top: 200px;
  margin-left: 25%;
  margin-top: 120px;
  height: auto;
  overflow: auto;
}

/*nav style */
.navbar-nav{
  --bs-nav-link-hover-color: #fff;
}

ul.topnav {
  list-style: none;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  background:linear-gradient(45deg, rgba(34,193,195,1) 0%, rgba(253,146,45,1) 100%);
  position: initial;
  top: 0;
  width: 100%;
  align-content: center;
  font-weight: 700;
  text-align: center;
}



ul.topnav li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

ul.topnav li a:hover:not(.active) {
  background-color: rgba(15, 84, 85, 0.5);
}


ul.topnav li.center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

}

.nav-profile-img{
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.login-item{
  display: flex;
  margin-left: auto;
  align-items: center; 
  justify-content: flex-end;  
}
/* hide search bar on the nav bar*/
.mobile-search {
  display: none;
}

.mobile-search .search-button{
  color: #fff;
  font-size: 20px;
}

.bg-body-tertiary {
  background: linear-gradient(45deg, rgba(34, 193, 195, 1) 0%, rgba(253, 146, 45, 1) 100%);
}

.desktop-left-col {
  display: block;
}

@media screen and (max-width: 991px) {
  .mobile-search {
    display: block;  
  } 
  .desktop-left-col {
    display: none;
  }

  .center{
    display: none;
  }

  
}


/* left column part */
.left-col{
  position: fixed;
  /* vm means viewport width */
  width: 11vw;
  margin-top: 16px;
  padding-right: 10px;
  margin-left: -40px;
}

#hot-topics {
  margin-top:30px;
  font-size: 14px;
}

#hot-topics li{
  list-style: none;
}

.search-bar{
  background-color: #22c1c3;
  border: 2px solid #22c1c3;
}

.top-box {
  margin: 10px auto;
  padding: 15px;
  border-radius: 5px;
  border: 2px solid #22c1c3;
  text-align: center;
}

.top-box a {
  color: #000;
  text-decoration: none;
}

.top-box ul {
  padding: 10px;
}

.box-head {
  border-bottom: 1px solid rgba(12, 12, 12, 30%);
  padding: 10px 0;
  font-weight: bold;
  text-align: center;
}

/* Filter options */
.search-filter {
  font-size: 15px;
  margin-top: 10px;
}
#topic-filter, #tag-filter {
  display: flex;
  flex-wrap: wrap;
}

#topics-container li {
  cursor: pointer;
}
#topics-container li > i {
  margin: 5px 8px;
}
#topic-filter span > i, #tag-filter span > i{
  margin: 2px 5px;
}
#topic-filter span, #tag-filter span {
  width: fit-content;
  cursor: pointer;
}

/* footer part */
.bottom-banner {
  background:linear-gradient(45deg, rgba(253,146,45,1), rgba(34,193,195,1) 100% 0%);
  color: white;
  text-align: center;
  padding: 10px;
  bottom: 0;
  width: 100%;
}

.banner-header{
  display: flex;           
  justify-content: space-between; 
  align-items: center;   
  width: 100%; 
}

.banner-header h4 {
  margin: 0;
  flex-grow: 1;
  font-weight: bold;
}

.bottom-banner .btn {
  margin : 10px;
}

.bottom-banner a {
  text-decoration: none;
}

body {
  /* this padding make sure no content is covered by navbar */
  padding-top: 100px;
  font-family: "Helvetica Neue";
}

body:has(div.bottom-banner:visible) {
  /* this padding make sure no content is covered by banner */
  padding-bottom: 200px;
}
/* pagination */

/* alert for non-login user login or register */
.alert-info {
  --bs-alert-color: #095b6b;
  --bs-alert-bg: white ;
  --bs-alert-border-color: rgba(34,193,195,1) ;
  --bs-alert-link-color: var(--bs-info-text-emphasis);
  text-align: center;
  font-weight: bold;
  line-height: 3;
  margin-top: 40px;
}

#pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#prev-page, #next-page {
  margin: 0 20px;
}

#rank_top_container{
  padding: 0%;
}

#rank_header{
  padding: 8px;
  padding-bottom: 0%;
  height: 100px;
  margin-bottom: 0%;
  font-size: 30px;
  text-align: center;
  color:  black;
  border-bottom: 1px solid #7e7b7b;
}

#rank_container {
  align-items: center;
  padding: 0%;
  width: 80%;
  margin: 0 auto;
  margin-bottom: 5px;
  border-radius: 8px;
}

rank_table th, rank_table td {
  padding: 8px;
  text-align: left;
}

.rank_img{
  margin-right: 10px;
}

#rank_table {
padding-left: 15%;
width: 100%;
border-collapse: collapse;
color: black;
}

.substitute-img{
  color: #f3d37c; 
  padding-right: 20px;
}

.rank-profile_img div {
  display: inline-block;
}

#rank_table th, #rank_table td {
    padding: 20px 40px;
    text-align: left;
}

#rank_table th {
    font-weight: bold;
}

#logo_box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 30%;
}
#logo_cantainer{
  padding: 0;
  margin-top: -15px;
  margin-left: 5%;
  padding-top: 0%;
}
#logo {
padding: 0%;
height: 75px;
width: auto;
object-fit: contain;
}

@media (max-width: 994px) {
  #logo_box {
      display: none;
  }
}

#logo_and{
  padding: 0%;
}

/* button style */
.btn-outline-info {
  --bs-btn-color: black;
  --border-color: rgba(67, 186, 173);
  --bs-btn-hover-bg:rgba(67, 186, 173);
  --bs-btn-active-bg: rgba(67, 186, 173);
  --bs-btn-border-color: rgba(67, 186, 173);
}

.btn-outline-light{
  font-weight: bold;
}

.btn-info {
  --bs-btn-color: white;
  --bs-btn-bg: rgba(67, 186, 173);
  --bs-btn-hover-bg: rgb(78, 218, 201);
  --bs-btn-border-color: rgba(67, 186, 173);
}

.btn-secondary {
  --bs-btn-color: white;
  --bs-btn-bg: rgba(253, 146, 45);
  --bs-btn-hover-bg: rgba(238, 140, 48, 0.637);
  --bs-btn-border-color: rgba(253, 146, 45);
}

/* badge style */
.bg-secondary {
  --bs-bg-opacity: 1;
  background-color: rgba(253, 146, 45, .5) !important;
}

.bg-info {
  --bs-bg-opacity: 1;
  background-color: rgba(67, 186, 173, .5)!important;

}

/* search filter */
.dropdown-item:focus, .dropdown-item:hover{
  background-color:#22c1c3;
}


.text-bg-secondary{
  color: #000 !important;
  background-color:#22c1c363 !important;
}

/* select interested topic modal */
#topicModal .btn-outline-info{
  margin: 5px;
}

/* create post modal */
.ql-toolbar.ql-snow {
  background: linear-gradient(45deg, rgba(34, 193, 195, 1) 0%, rgba(253, 146, 45, 1) 100%);}

.form-control:focus {
    border-color: rgba(34, 193, 195, 1);
    box-shadow: 0 0 0 0.25rem rgb(34 193 195 / 50%);
}

