@import url('https://fonts.googleapis.com/css2?family=Mooli&display=swap');

* {
  font-family: 'Mooli', sans-serif;
  margin: 0;
  padding: 0px;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

body {
  background: whitesmoke;
  padding-top: 15px;
  padding-left: 15px;
  transition: background-color 0.5s ease;
}


.sidebar {
  position: fixed;
  width: 271px;
  height: 100vh;
  background: white;
  z-index: 2;
  border-radius: 0rem 1rem ;
  transition: background-color 0.5s ease;
}

.main-home {
  position: absolute;
  width: calc(100% - 300px);
  top: 0;
  left: 300px;
  background: white;
  border-radius: 1rem 0 0 1rem;
  transition: background-color 0.5s ease;
}

.header{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 150px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1rem 0rem 2rem 0rem;
  letter-spacing: 1.3px;
}

img{
  cursor: pointer;
}

.profile-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;

  background: var(--white) padding-box, var(--gradient) border-box;
  --white: linear-gradient(white, white);
  --gradient: linear-gradient(to right, rgb(255, 42, 42),rgb(235, 57, 166), rgb(254, 193, 9));
  border: solid 0.14rem transparent;
  border-radius: 50%;
}

.profile-img img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  object-position: center;
}

.name {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.name h1 {
  font-size: 1.2rem;
}

.name img {
  margin-left: 4px;
  width: 20px;
  object-fit: center;
}

.profile-img span {
  font-size: 0.938rem;
  font-weight: 400;
}

.menu a {
  width: 94%;
  font-size: 1rem;
  color: black;
  display: flex;
  align-items: center;
  line-height: 40px;
  gap: 15px;
  margin-left: 15px;
  transition: all 0.29s ease-in-out;

}

.menu a:hover,
.menu .active {
  
  color: #ee3570;
  transform: scale(1.05) translateX(-1px);
}

.menu a:hover::before,
.menu > active::before {
  content: "";
  position: absolute;
  right: 2px;
  width: 2px;
  height: 17px;
   background: #ee3570; 
 
} 

.main-home {
  padding: 20px;
  overflow: hidden;
  margin-top: 15px;
}

.search {
  display: flex;
  align-items: center;
  background: whitesmoke;
  width: 200px;
  height: 2.4rem;
  padding: 10px;
  border-radius: 10px;
  transition: background-color 0.5s ease;
}

.search input {
  border: none;
  outline: none;
  background: transparent;
  margin-left: 7px;
}

/*stories*/
.stories {
  /* border: 2px solid red; */
  width: 100%;
  margin-top: 2rem;
  display: flex;
  overflow-x: scroll;
  user-select: none;
}

.stories-img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  max-width: 80px;
  margin: 0 10px;
  position: relative;
  height: 80px;
  
  background: var(--white) padding-box, var(--gradient) border-box;
  --white: linear-gradient(white, white);
  --gradient: linear-gradient(to right, rgb(255, 42, 42),rgb(255, 39, 172), rgb(254, 193, 9));
  border: solid 0.14rem transparent;
  border-radius: 50%;
}

.stories-img img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  object-position: center;
}

.storyname{
  /* border: 2px solid red; */
  font-size: 10px;
  display: flex;
  justify-content: center;
  letter-spacing: 0.5px;

}

.main-post{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}
.post-box{
  width: 400px;
  margin: 20px;
}

.post-box img{
  width: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.parentpost{
  margin-top: 5px;
  padding: 0px 5px;
}

.post-info{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-info > div:first-child{
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-img{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.post-img img{
  width: 27px;
  height: 27px;
  object-fit: cover;
  border-radius: 50%;
  object-position: center;
}

.post-profile{
  display: flex;
  align-items: center;
}

.post-profile h3{
  font-size: 12px;
  font-weight: 600px;
  margin-left:5px;
}

.likes{
  display: flex;
  align-items: center;
}

.likes i{
  font-size: 20px;
  margin-left: 7px;
}

.likes span{
  font-size: 14px;
  margin-left: 7px;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
  &::-webkit-scrollbar {
    display: none;
  }
}

.light-mode{
  background-color: whitesmoke;
}

.dark-mode {
  background-color: black;
  color: white;

.sidebar{
  background: rgb(21, 21, 21);
}

.main-home{
  background: rgb(21, 21, 21);
  color: white;
}

.menu a{
  color: white;
}

.menu a:hover{
  color: #ee3570;
}

.profile-img{
  background: var(--black) padding-box, var(--gradient) border-box;
  --black: linear-gradient(black, black);
  --gradient: linear-gradient(to right, rgb(255, 42, 42),rgb(255, 39, 172), rgb(254, 193, 9));
  border: solid 0.14rem transparent;
  border-radius: 50%;
}

.stories-img{
  background: var(--black) padding-box, var(--gradient) border-box;
  --black: linear-gradient(black, black);
  --gradient: linear-gradient(to right, rgb(255, 42, 42),rgb(255, 39, 172), rgb(254, 193, 9));
  border: solid 0.14rem transparent;
  border-radius: 50%;
}

.search{
  background: black;
}
}

#mode {
  cursor: pointer;
  /* border: 2px solid red; */
  border-radius: 5px;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: white;
  outline: none;
  border: none;
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 20;
}

.posthead{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  max-width: 50px;
  position: relative;
  height: 50px;
  
  background: var(--white) padding-box, var(--gradient) border-box;
  --white: linear-gradient(white, white);
  --gradient: linear-gradient(to right, rgb(255, 42, 42),rgb(255, 39, 172), rgb(254, 193, 9));
  border: solid 0.14rem transparent;
  border-radius: 50%;
}

.posthead img{
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  object-position: center;
}

.userhead{
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.username{
  border: 2px solid red;
  font-size: 0.9rem;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.posttail{
  margin: 10px 0px 0px 5px;
  font-size: 0.9rem;
}

.likes{
  margin-top: 15px;
}

.comments{
  color: rgb(170, 168, 168);
}

.caption{
  margin: 9px 0px 9px 0px;
}

.postpara{
  max-width: 450px;
  max-height: 800px;
}

.postvideo{
  margin-top: -40px;
  border-radius: 10px;
  overflow: hidden;
}