/* manage content page*/
.create-post {
  background-color: white;
  width: 800px;
  margin: 0 auto;
  border: 1px solid  #e2e0e0;
  border-radius: 10px;

}

.create-post .container {
  padding: 16px;
}

.create-post .container .submitbtn {
  background-color: #2c62a3;
  color: white;
  padding: 16px 20px;
  margin: 23px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  opacity: 0.9;
}

.dropdown-container {
  position: relative;
  margin: 20px;
}

.dropdown-selected {
  border: 1px solid #ccc;
  padding: 10px;
  cursor: pointer;
  background-color: #f9f9f9;
}

.dropdown-items {
  display: none;
  border: 1px solid #ccc;
  position: absolute;
  width: 100%;
  background-color: white;
  max-height: 150px;
  overflow-y: auto;
  z-index: 100;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
}

.dropdown-item img {
  margin-right: 10px;
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

.dropdown-item.selected {
  background-color: #e0e0e0;
}

/* all_contents*/


/* videos */

.videos__container .video {
  
  position: relative;
  color: #fff;
  cursor: pointer;
  width: 20%;
  /*min-height: 330px;*/
  height: 302px;
  margin-bottom: 20px;
  direction: ltr;
  float: right;
    align-content: center;
}

.videos__container {
  flex-wrap: wrap;
  padding-bottom: 3rem;
  align-items: stretch;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  position: relative;

}



.video__thumbnail {
  display: grid;
   width: 100%; 
   /*height: 100%; */
  border-radius: 15px;
  /* background-color: #1A1A1A; */
  object-fit: contain;
  align-items: stretch;
  text-align: center;
}

.video__thumbnail img {
  object-fit: fill;
    width: 100%;
    height: 300px !important;
    border-radius: 15px;
    padding: 6px;
}
.video__thumbnail video {
  object-fit: fill;
  width: 100%;
  height: 300px;
  border-radius: 15px;
  padding: 6px;

}
.reel__container video{
  object-fit: contain;
  height: 500px;
  width: 100%;
}

.author img {
  object-fit: cover;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  margin-right: 10px;
}

.video__details {
  display: flex;
  margin-top: 10px;
}

.title {
  display: flex;
  flex-direction: column;
}

.title h3 {
  color: rgb(3, 3, 3);
  line-height: 18px;
  font-size: 14px;
  margin-bottom: 6px;
}

.title a,
span {
  text-decoration: none;
  color: rgb(96, 96, 96);
  font-size: 14px;
}



@media (max-width: 430px) {
  .reel__container{
    width: 355px !important;
    padding: 20px !important;
  }
  .reel__video{
    height: auto !important;

  }
  .header__search {
    display: none;
  }

  .header__icons .material-icons {
    display: none;
  }

  .header__icons .display-this {
    display: inline;
  }

  .sidebar {
    display: none;
  }
  .gallery-item{
    height: 150px !important;
    text-align: center;

  }
  .gallery-item video{
    width: 100% !important;
    height: 150px;
    object-fit: cover;
  }
  .gallery-item img{
    width: 100% !important;
    height: 150px;
    object-fit: cover;
  }

  .video__thumbnail video {
    object-fit: cover;
    width: 100%;
    /*  height: 150px;*/
  }
  .video__thumbnail img {
    object-fit: fill;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    padding: 6px;
  }
  .videos__container .video {
    /*height: 150px;
    min-height: 100% !important;*/
    width: 50% !important;
  }
}

@media (max-width: 768px) {
  .header__search {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .show-sidebar {
    display: inline;
    position: fixed;
    top: 4.4rem;
    height: auto;
  }
}

@media (max-width: 941px) {
  .header__search input {
    width: 300px;
  }
}

/* for you */

#foryoucontainer {
	max-width: 472px;
	margin: 30px auto;
}



#posts-container {
	display: flex;
	flex-direction: column;
	gap: 1.5em;
}

.post {
	background: #fff;
}

.profile {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5em;
}
.profile-text h2,
.profile-text h3 {
	margin: 0;
	font-size: 14px;
}
.profile-text h3 {
	font-weight: normal;
}
.avatar {
	width: 35px;
	border-radius: 50%;
}

.post-content img {
	max-width: 100%;
}
.post-content img:hover {
	cursor: pointer;
}

footer {
	padding: 1em;
}
.actions {
	display: flex;
	align-items: center;
	gap: 1em;
}
.actions button {
	background: transparent;
	border: none;
	padding: 0;
}
.actions button:focus,
.actions button:hover {
	opacity: 0.5;
	cursor: pointer;
}

.actions .liked {
	fill: red;
}
.reel__content .liked path{
	fill: red;
}

.actions .saved {
	color: red;
}
.reel__content .saved path {
	fill: red !important;
}

.actions button img {
	width: 22px;
}

.counts {
	font-weight: bold;
  text-align: center;
}

.post-text span {
	font-weight: bold;
  float: left;
  margin: 7px;
}
.actions #likeImage{
  transition: fill 0.3s ease;
    cursor: pointer;
    margin-right: 10px;
}


/* Profile Section */


.profile::after {
  content: "";
  display: block;
  clear: both;
}

.profile-image {
  float: left;
  width: calc(33.333% - 1rem);
  display: flex;
  justify-content: center;
  height: 100%;
  margin-right: 3rem;
}

.profile-image img {
  border-radius: 50%;
  width: 140px;
    height: 140px;

}

.profile-user-settings,
.profile-stats{
  display: flex !important;
    align-items: center;
    gap: 10px;
    /* justify-content: center;*/
    
}



.profile-user-name {
  display: inline-block;
  margin: 5px;
    font-size: 20px;
      font-weight: bold;
}




.profile-stats {
  margin-top: 1rem;
}

.profile-stats li {
  display: inline-block;
  font-size: 1.0rem;
    line-height: 1.5;
   /* margin-right: 5rem;*/
  cursor: pointer;
}



.profile-bio {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.0;
  margin-top: 1.3rem;
  text-align-last: start;
}

.profile-edit-btn {
  font-size: 1.4rem;
    line-height: 1.9;
    border: 0.1rem solid #dbd0d0;
    border-radius: 0.3rem;
    padding: 0px 7px 0px 7px;
    margin-top: 7px;
    background-color: #dbdbdb;
    width: 37px;
}
.profile-real-name,
.profile-stat-count,
.profile-edit-btn {
  font-weight: 600;
}

.profile-stats ul {
  text-align: start;
  padding: 0.2rem 0;
}
/* Loader */

.loader {
  width: 5rem;
  height: 5rem;
  border: 0.6rem solid #999;
  border-bottom-color: transparent;
  border-radius: 50%;
  margin: 0 auto;
  animation: loader 500ms linear infinite;
}

/* Media Query */

@media screen and (max-width: 40rem) {

  .gallery-item:hover .gallery-item-info,
.gallery-item:focus .gallery-item-info {
  align-items: end !important ;
}
  .gallery-item video{
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
  }
  .gallery-item {
    width: 33% !important;
    height: 150px !important;
    object-fit: contain !important;
  }
  .profile {
      display: flex;
      flex-wrap: wrap;
      
  }

  .profile::after {
      display: none;
  }

  .profile-image,
  .profile-user-settings,
  .profile-bio,
  .profile-stats {
      float: none;
      width: auto;
  }

  .profile-image img {
    width: 90px;
    height: 90px;
    
  }

 

  .profile-user-name {
      font-size: 14px;
      font-weight: bold;
  }



  .profile-bio {
      font-size: 1.4rem;
  }


  .profile-stats {
      order: 1;
      margin-top: 1.5rem;
  }

  .profile-stats ul {
      display: flex;
      text-align: center;
      padding: 1.2rem 0;
      
  }

  .profile-stats li {
      font-size: 18px;
      flex: 1;
  }

  .profile-stat-count {
      display: block;
  }
}

/* Spinner Animation */

@keyframes loader {
  to {
      transform: rotate(360deg);
  }
}

/*

The following code will only run if your browser supports CSS grid.

Remove or comment-out the code block below to see how the browser will fall-back to flexbox & floated styling. 

*/

@supports (display: grid) {
 
  .profile {
      display: grid;
      grid-template-columns: 1fr 5fr;
      grid-template-rows: repeat(3, auto);
      grid-column-gap: 0rem;
      align-items: center;
  }

  .profile-image {
      grid-row: 1 / -1;
  }

  .gallery {
   display: grid; 
        grid-template-columns: repeat(auto-fit, minmax(1rem, 1fr)); 
         grid-gap: 0rem; 
        align-items: stretch;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        flex-shrink: 0;
        position: relative;
  }

  .profile-image,
  .profile-user-settings,
  .profile-stats,
  .profile-bio,
  .gallery-item,
  .gallery {
      width: auto;
      margin: 0;
  }

  @media (max-width: 40rem) {
      .profile {
          grid-template-columns: auto 1fr;
          grid-row-gap: 1.5rem;
          direction: rtl;
          display: flex !important;
      }

      .profile-image {
          grid-row: 1 / 2;
      }

      .profile-user-settings {
          display: grid;
          grid-template-columns: auto 1fr;
          grid-gap: 1rem;
          width: 100%;
      }

      
      .profile-edit-btn,
      .profile-stats,
      .profile-bio {
          grid-column: 1 / -1;
      }

      .profile-user-settings,
      .profile-edit-btn,
      .profile-settings-btn,
      .profile-bio,
      .profile-stats {
          margin: 5px;
      }
  }
}







/* Gallery Section */

.gallery {
  display: flex;
  flex-wrap: wrap;
  margin: -1rem -1rem;
  padding-bottom: 3rem;
  align-items: stretch;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        flex-shrink: 0;
        position: relative;
}
.gallery .gallery-item {
  padding: 0;
  padding-left: 1px !important; 
  padding-right: 1px !important;
}
.gallery-item {
  position: relative;
  
  color: #fff;
  cursor: pointer;
  width: 20%;
    height: 315px;
    text-align: center;
    padding: 5px;
}
.gallery-item video{
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.gallery-item:hover .gallery-item-info,
.gallery-item:focus .gallery-item-info {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}

.gallery-item-info {
  display: none;
  inset-area: center;
}
.gallery-item-info svg{
width: 20px;
height: 20px;
}

.gallery-item-info li {
  display: inline-block;
  font-weight: 600;
}
.gallery-item-info ul{
  width: 100%;
  display: flex;
  justify-content: center;
}

.gallery-item-likes {
  margin-left: 30px;
}

.gallery-item-type {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  text-shadow: 0.2rem 0.2rem 0.2rem rgba(0, 0, 0, 0.1);
}

.fa-clone,
.fa-comment {
  transform: rotateY(180deg);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* header search */

#search_div {
  width: 100%;
  padding: 20px;
  margin: 0 auto;
  background-color: #eff0f4;
  direction: ltr;
}

#searchtxt {
  width: 80%;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: auto;
  padding: 10px 30px;
  text-align: end;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 25 25' fill-rule='evenodd'%3E%3Cpath d='M16.036 18.455l2.404-2.405 5.586 5.587-2.404 2.404zM8.5 2C12.1 2 15 4.9 15 8.5S12.1 15 8.5 15 2 12.1 2 8.5 4.9 2 8.5 2zm0-2C3.8 0 0 3.8 0 8.5S3.8 17 8.5 17 17 13.2 17 8.5 13.2 0 8.5 0zM15 16a1 1 0 1 1 2 0 1 1 0 1 1-2 0'%3E%3C/path%3E%3C/svg%3E") left / contain no-repeat;
  background-size: 22px;
  

}

#btnsearch {
  padding: 10px 30px;
  float: left;
  width: 19%;
  margin-right: 10px !important;
  margin: auto;
  border-radius: 4px;
  border: 1px solid #29b6ab !important;
  background-color: #088395 !important;
  font-size: 12px;
  color: #fff;
}


@media screen and (max-width: 576px) {

 
  .videos__container{
    grid-template-columns: repeat(auto-fit, minmax(min(25% - 9px, max(155px, 16.6667% - 10px)), 1fr));
  }

  #btnsearch,
  #searchtxt {
      float: none;
      width: 100%;
      margin: 5px;
      font-size: 11px;
      margin-right: 0px !important;
  }

  #order-tabs-container .btnsearch_status {
      width:25%;
      margin: 0px;
      padding: 0px;
  }
}

#searchtxt:hover {
  border: 2px solid #088395;
  transition: -2.7s;
}

#btnsearch:hover {
  background-color: #ccc !important;
}

#loading_search,
#login-loader {
  margin: 0 auto;
  border: 10px solid #f3f3f3;
  border-radius: 50%;
  border-top: 10px solid #3498db;
  width: 20px;
  height: 20px;
  -webkit-animation: spin 2s linear infinite;
  /* Safari */
  animation: spin 2s linear infinite;
}


/*reel__container*/
#section-post {
    
  display: grid;
  align-items: center;
  justify-content: center;
  /*background-color: #1A1A1A !important;*/
}

.reel__container {
  direction: ltr;
  width: 700px;
  /*height: 100vh;*/
  scroll-snap-align: start;
  background-size: cover;
  border-radius: 10px;
  padding: 25px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.reel__container .slideshow-container{

  display: block;
    width: 100%;
    height: 100%;
}


.reel__video {
  border-radius: 10px;
  /* Optional: Add additional styling for video */
  object-fit: contain;
  border-radius: 10px;
    object-fit: contain;
   height: 75vh;
    width: 100%;
    padding: 10px;
}

.reel__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  direction: rtl;
}

.reel__user {
  display: flex;
  align-items: center;
  /* margin-bottom: 0.5rem; */
  direction: rtl;
  margin-right: 25px;
  margin-top: 10px;
}

.reel__avatar {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 30px;
  margin-right: 0.5rem;
}

.reel__username {
  font-weight: 600;
  margin-right: 0.5rem;
  margin-top: 1.4rem;
}

.icon-tabler-message-circle {
  transform: scaleX(-1);
}

.reel__options {
  display: flex;
  flex-direction: column;
  align-items: center;
       margin-left: 7px; 
    /* margin-right: 10px;*/
}
.reel__options svg{
  cursor: pointer;
}

.reel__audio-cover {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border: 3px solid #FFFFFF;
  border-radius: 7px;
}

.reel__likes {
  font-weight: 600;
  margin-top: -1rem;
  font-size: 11px;
}

.reel__caption {
  margin-bottom: 0.5rem;
  /* margin: 21px; */
  direction: rtl;
  margin-right: 55px;
}

.reel__audio {
  display: flex;
  align-items: center;
  margin-left: -0.4rem;
}

/*profile tabs*/

.profile__section__tab {
  /*overflow: hidden; */
  /* display: grid;
  justify-content: center; */
  /* margin: 0 0 10px 0; */
  /* flex-wrap: wrap; */
  /* margin: -1rem -1rem; */
  margin-bottom: 25px;
  align-items: stretch;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  position: relative;
}

.profile__section__tab button {
    /* margin: 0px 5px; */
    transition: 0.3s;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    background-color: transparent;
    color: black;
    gap: 0.5em;
}

.profile__section__tab button svg {
  margin-right: 5px;
}

.profile__section__tab__tabcontent {
  display: none;
}

.profile__section__tab__tabcontent__container {
  max-width: 1300px;
}

.profile__section__tab__tabcontent__container__image {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.profile__section__tab__tabcontent__container__image img {
  width: 25%;
  object-fit: contain;
  flex: 1;
}

.profile__section__tab__tabcontent__container__image img:nth-child(2) {
  margin: 7px 14px;
}
.profile__section__tab .active {
 
  color: #5c5c5c;
}


/*svg*/

.reel__options svg{
  width: 35px;
  height: 35px;
}
/* arrows*/






#left-arrow {
  margin: 4px;
  color: #ea830e !important;
  cursor: pointer;
}
#right-arrow {
  margin: 4px;
  color: #ea830e !important;
  cursor: pointer;
}




.slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0 auto;
  align-content: center;
}

.slides {
  position: relative;
}

.slide {
  width: 100%;
  height: 100%;
  display: none;
}
.slide.active_slid {
  width: 100%;
  height: 100%;
  display: block;
}

/* comments*/

#comment-input {
  width: 100%;
  border: 0;
  border-top: 1px solid #c1c1c1;
  border-bottom: 1px solid #c1c1c1;
  resize: none;
  font: 500 13px 'Quicksand';
  outline: none;
  text-indent: 30px;
  padding: 15px 0 0;
  min-height: auto;

}



/* Popup Styles */
#comments-popup ,#products-popup ,#login-popup,#complet-data-popup{
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#comments-popup .popup-content ,#products-popup .popup-content ,#complet-data-popup .popup-content ,#login-popup .popup-content{
  background: #fff;
  padding: 20px 20px 0 20px;
  max-width: 600px;
  width: 90%;
  max-height: 50vh;
  overflow-y: auto;
  position: relative;
  border-radius: 5px;
  margin: 0 auto;
  top: 25%;
  direction: ltr;
}
#comments-popup p{
  margin-bottom: 0;
}
#comments-popup .comment{
  display: flex;
  margin-bottom: 10PX;
}

#comments-popup .comment img{
  object-fit: cover;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  margin-right: 10px;
}
#comments-popup .comment-date{
  margin-left: 50px;
  margin-top: -50px;
  display: flex;
  margin-bottom: 20px;

}


#comments-popup .close-btn ,#products-popup .close-btn ,#share-popup .close-btn ,#login-popup .close-btn,#complet-data-popup.close-btn{
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}

#comments-popup .close-btn:hover ,#products-popup .close-btn:hover ,#share-popup .close-btn:hover {
  color: #0073aa;
}

#comments-popup button{
  width: fit-content;
  padding: 15px;
}
/* Fixed comment input container at the bottom */
.comment-input-container {
  position: sticky;
  bottom: 0;
  background-color: white;
  padding: 10px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #ddd; /* Top border for separation */
  direction: rtl;
}

/*toast*/

.toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/*loader*/
/* Loader Styles */
#loader {
  display: none; /* Hidden by default */
  position: fixed;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3; /* Light grey */
  border-top: 5px solid #3498db; /* Blue */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2000; /* Ensure it's above other elements */
}

#popup-products-container{
  align-items: center;
  direction: rtl;
}
#popup-products-container a {
  text-decoration: none;
}

#popup-products-container img {
  width: 50px;
    height: 50px;
    margin: 10px;
}

/* Share Popup Styles */
#share-popup {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#share-popup .popup-content {
  background: #fff;
  padding: 20px;
  max-width: 515px !important;
  position: relative;
  border-radius: 5px;
  margin: 0 auto;
  top: 30%;
}
#share-btns span ,#copy-link-btn2 span{
  font-family: serif;
font-size: 12px;
font-weight: 400;
line-height: 20px;
text-align: center;
text-underline-position: from-font;
text-decoration-skip-ink: none;


}
@media (max-width: 430px) {
  #share-options {
    gap: 1px !important;
    
  }

  #share-popup .popup-content{
    top: 40% !important;
    width: 100% !important;
  }
  .products-slider .product-card{
    flex: 0 0 80% !important;
  }

  .profile__section__tab button{
    
  }
  .profile__section__tab{
    background: #F5F7FA;
    border-radius: 10px;
    
  }

}
#share-options {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: baseline;
}

.share-btn, #copy-link-btn {
  padding: 10px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
}

.share-btn:hover, #copy-link-btn:hover {
  background-color: #0056b3;
}


