@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

html,body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: black;
    color: white;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
}
html{
    scroll-behavior: smooth;
}
body{
  display:flex;
  flex-direction: column;
}

::-webkit-scrollbar {
  width: 12px; 
}


::-webkit-scrollbar-track {
  background: #0e0e0e; /
}


::-webkit-scrollbar-thumb {
  background: #4f4e4ef5; 
  border-radius: 6px; 
}


::-webkit-scrollbar-thumb:hover {
  background: #363535; 
}

.icons{
  filter:invert(1);
  height:30px;
  width:30px;
  cursor:pointer;
}
.icon-insta{
  filter:invert(1);
   height:50px;
   width:100px;
   margin-top:30px;
  cursor:pointer;
}

main.main{
    display: flex;
    max-width:100vw;
    
   
}

.profilesAndPosts{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: scroll;
    min-width:100%;
    
}
.profilesAndPosts::-webkit-scrollbar{
    display:none;
}
.profiles{
    display:flex;
    flex-direction: column;
    gap:10%;
    max-width: 90%;
    
}
 .profile-container,.suggestion-container{
    display:flex;
    gap: 5%;
    overflow-x: scroll;
    padding:10%;
 }
 .profile-container::-webkit-scrollbar{
    display:none; }
  .suggestion-container::-webkit-scrollbar{
    display:none; }
 
 .profile-pic{
  cursor:pointer;
  height: 70px;
  width: 70px;
  border: 3px solid transparent;
  border-radius: 50px;
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4, #405DE6) border-box; /* Gradient background */
  background-clip: border-box; 
  
}
.post-caption, .like-count{
  padding:10px;
}

.suggestion-container{
  max-width: 50%;
  margin:auto;
}

.suggest{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items:center;
    padding: 10px;
    border: 1px solid rgba(250, 248, 248, 0.525);
}
.suggest > p:nth-of-type(1){align-self:flex-end;}
.suggest > p:nth-of-type(2){text-align:center;}
.empty{
    width:10%;
}
a{
    text-decoration: none;
    color: inherit;
}
nav.navigation{
    display: none;
    flex-direction:column;
    justify-content: space-between;
    height: 100vh;
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    border-right:1px solid rgba(245, 237, 237, 0.171);
}
.img-flex{
    display: flex;
    gap: 5%;
}

.posts{
    margin:10px auto;
    width:100%;
}
/* Basic post container */
.post {
    
    max-width:100%; /* Limit the max width of posts */
    margin: 20px auto; /* Center the post */
    
    border-top: 1px solid #ffffff65;
    border-radius: 10px;
    overflow: hidden; /* Ensures that content inside is contained */
  }
  
  /* Post image container */
  .post-image {
    max-width: 100%;
    height: 0;
    padding-top: 100%; /* This maintains a 1:1 aspect ratio (square image) */
    position: relative;
  }
  
  /* The image itself */
  .post-image img, .post-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the space without distortion */
  }
  
  /*post footer and header styles */
  .post-header, .post-footer {
    padding: 15px;
  }
  
  .post-header {
    position:relative;
    display:flex;
    gap:5px;
    background-color: black;
    
   
  }


  /*create post dialog style*/
  #dialog{
    display:none;
  }
  #dialog[open]{
    height:40vh;
    width:40vw;
    border-radius: 15px;
    background-color: rgb(84, 83, 83);
    display:flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    color:white;
    border: 1px solid rgba(11, 11, 11, 0.29);
  }

  #dialog .dialog-cancel{
    align-self:flex-end;
    cursor:pointer;
  }

  #dialog .dialog-flex .drag-post{
   display:flex;
   flex-direction:column;
   align-items: center;
   gap: 5px;
  }

  .drag-post > div{
    display:flex;

    flex-direction: column;
    gap:4px;
  }

  .hover-profile {
    visibility: hidden;
    position: absolute;
    top: 0;
    bottom: 100px;
    left: 25px;
    width: calc(60vw - 40px);
    max-width: 400px;
    height: calc(80vh - 50px);
    max-height: 400px;
    background-color: black;
    border: 1px solid rgba(255, 255, 255, 0.751);
    border-radius: 10px;
    z-index: 10;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    overflow: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .hover-profile1,
  .hover-profile2,
  .hover-profile3,
  .hover-profile4 {
    max-height: calc(100% / 4); 
    overflow: hidden; 
  }
  .hover-profile1{
    display:flex;
    justify-content: start;
    
    width:100%;
    
    
  
  } 
  img.hoverProfile-pic {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    object-fit: cover;
  }
  .hover-profile2 {
    display: flex;
    width: 100%;
    justify-content: space-around;
    
  }

  .hover-profile3{
    display:flex;
    min-height:50%;
    min-width:50%;
    
    
  }


  
  .hover-profile3 > div > img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

  .hover-profile4{
    display:flex;
    gap: 10px;
    
  
  }
  
  .hover-profile4 > div:nth-of-type(1) {
    display: flex;
    gap: 10px;
    height: 50%;
    width: 100%;
    border-radius: 20px;
    padding: 5px;
    background-color: #405DE6;
    justify-content: center;
    align-items: center;
  }
  
  .hover-icon {
    filter: invert(1);
    height: 20px;
  }
  .hover-profile4 > div:nth-of-type(2){
    height:50%;
    background-color: #494848;
    padding: 5px;
    border-radius: 20px;
    width:100%;
    text-align:center;
  }



  .post-header > img:hover ~ .hover-profile {
    visibility: visible; /* Show when hovering */
    opacity: 1; /* Make it fully visible */
}
  .post-header p:nth-of-type(2){
    margin-left: 60%;
    font-weight:bold;
    font-size:1.2rem;
  }
  

  .post-footer > div:nth-last-of-type(1){
    display:flex;
    gap:10px;
  }
  .post-footer {
    display:flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-left: 1%;
    padding-right:1%;
    
    
    
  }

 dialog.notification, dialog.search{
  display: none;
  position:fixed;
  top:0;
  bottom: 0;
  left: 0;
  right:75vw;
  height:100vh;
  width:25vw;
  z-index:100;
  background-color:black;
  display:none;
  flex-direction:column;
  gap:5%;
  border:1px solid black;
 }
 dialog[open]{
  display:flex;
 }
 

dialog.search[open], dialog.notification[open]{
  display: flex;
}
dialog.search, dialog.notification{
  flex-direction: row;
  overflow-y: scroll;
  overflow-x: hidden;
}
dialog.search nav.searchNav,
dialog.notification nav.notifNav
{
   width:3vw;
   display:flex;
   flex-direction: column;
   justify-content: space-between;
   padding-top:10px;
   padding-bottom:10px;
}

nav.searchNav .nav-links,
nav.notifNav .nav-links
{
  display:flex;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
  flex-direction: column;
  gap:25px;
}
dialog.search > div,
dialog.notification > div

{
  display:flex;
  flex-direction: column;
  width:100%;
}

dialog.notification > div > div{
  display:flex;
  justify-content: space-evenly;
}
.notifyMainContent div button{
  max-height:35px;
  border-radius: 15px;
  background-color:blue;
  color:white;
  margin-top:15px;
}
.notifyMainContent{
  display:flex;
  flex-direction: column;
  gap:15px;
  
}
dialog.search header.search-header {
  display: none; 
}

dialog.search main.searchMain {
  display: none; 
} 
/* dialog.search main.searchMain {
  display: none; 
} */

dialog.search[open] header.search-header {
  display: flex; 
 
}
dialog.search[open]  main.searchMain {
  display: flex; 
 
}
header.search-header{
  flex-direction: column;
  justify-content: space-around;
  height: calc(100% / 4);
  color: white;

}

main.searchMain{
  flex-direction: column;
  gap:15px;
  padding-left:5px;
  padding-right:5px;
  color: white;
}
main .mainSearchContent img.searchedAccounts,
div.notifyMainContent  img.notifiedImage
{
  height: 50px;
  width: 50px;
  border-radius: 50%;
} 
dialog.notification{
  color:white;
}

main.searchMain .recentSearch{
  display:flex;
  justify-content: space-between;
}

main.searchMain .mainSearchContent{
   display:flex;
   color: white;
   gap:15px;
}

main.searchMain .mainSearchContent > div{
  display: flex;
  flex-direction: column;
  line-height: 0;
  

}

main.searchMain .mainSearchContent > div > p:nth-of-type(2){font-size:0.7rem;}


 .suggested-profiles{
  display:none;
  flex-direction: column;
  gap:1%;
  margin-top:20%;
 }
  .suggested-profile{
    display:flex;
    gap: 5%;
    font-size:1rem;
  }
  .suggested-profile > .profile-pic{
    height:40px;
    width:40px;
  }
  .verification-badge{
    height: 25px;
    width:25px;

  }

  header.header{
    display:flex;
    justify-content: space-between;
    padding:10px;
    
  }
  .input-search{
    margin-top: 40px;
    display:flex;
    gap:10px;
  }
  input{
    height:30px;
    border-radius:10px;
    background-color: #363535;
  }
  footer.footer{
    display:flex;
    justify-content: space-around;
   

  }



  .input-search .icons.searcIcon{
      display:none;
  }




@media (max-width:399px){
  .input-search input[type="search"]{
    display:none;
  }
  .input-search .icons.searcIcon{
    display:block;
}
.post-caption{
  font-size:0.9rem;
}
.icons{
  height:30px;
  width:30px;
}
.suggestion-container{
  display:none;
}
.post-footer div svg.heart-icon{
  height:30px;
  width:30px;
}
.profile-pic{
  height:80px;
  width:80px;
}
.post-header .profile-pic{
  border-radius:100%;
  height:35%;
  width:10%;
}
.profile-container{
  max-width:90%;
  overflow-x: auto;
}
.post-footer{
  padding-left:5%;
  padding-right:5%;
}
.post-header > img:hover ~ .hover-profile {
  visibility:hidden; /* Show when hovering */
  opacity: 0; /* Make it fully visible */
}
.like-count{
  display:none;
}
header.header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:70px;
  
  z-index: 20;
  background-color: #0e0e0e;
}
footer.footer{
  position:fixed;
  
  left:0;
  right:0;
  bottom:0;
  z-index:20;
  background-color: #0e0e0e;
}

main.main{
  margin-top:70px;
}
}

@media (min-width: 763px) and (max-width: 1266px){
  body{
    display:grid;
    grid-template-columns: 5vw 95vw ;
    max-width: 100vw;
    max-height:100vh;
    overflow-x: hidden;
 }
 #nav-home{
    display:flex;
 }
 #nav-home .nav-links a div p,
 #nav-home .extras a div p
 {
   display: none;
 }
 #nav-home{
    grid-column:1/2;
    width:5vw;
    height: 100%;
    margin-left:2%;
    font-size:1rem;
 }
  
 #nav-home .nav-links{
   display:flex;
   flex-direction: column;
   gap: 15px;
 }
 main.main{
    grid-column: 2/3;
    height: 100%;
    max-width: 85vw;

 }

 aside.suggested-profiles{
    display:none;
    
 }
 .posts{
  width:60%;
 }
 .post{
    width: 100%;
    max-width: 600px; /* Limit the max width of posts */
    margin: 20px auto;
 }
    

 header.header, footer.footer{
    display: none;
 }
}
@media (min-width: 1267px){
 body{
    display:grid;
    grid-template-columns: 15vw 60vw 25vw;
    max-width: 100vw;
    max-height:100vh;
    overflow-x: hidden;
 }
 #nav-home{
    display:flex;
 }
 nav{
    grid-column:1/2;
    width:15vw;
    height: 100%;
    margin-left:2%;
    font-size:1rem;
 }

 main.main{
    grid-column: 2/3;
    height: 100%;
    max-width: 60vw;

 }

 aside.suggested-profiles{
    display:flex;
    grid-column: 3/4;
    width:25vw;
    height:100%
 }
 .posts{
  width:60%;
 }
 .post{
    width: 100%;
    max-width: 600px; /* Limit the max width of posts */
    margin: 20px auto;
 }
    

 header.header, footer.footer{
    display: none;
 }
}


