html{
  height: 100%;
  width:100%;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  padding-bottom: 60px;
  height: 100%;
  width: 100%;
}

.story_header {
  height: 100px;
  border-bottom: 1px black solid;
  display: flex;
  align-items: center;
}
#admin_story,
#other_story {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  border: 1px black solid;
  margin: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#inner_circle_as,
#inner_circle_os {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  border: 1px black solid;
  overflow: hidden;
}
#inner_circle_as img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}
#add_story_btn {
  height: 23px;
  width: 23px;
  border-radius: 50%;
  align-items: center;
  position: absolute;
  left: 62px;
  top: 65px;
}
.postwindow+.story_header{
    border-top: none;
}
.post_window {
  height: 550px;
  width: 98%;
  margin:3px;
  border: 1px black solid;
  border-radius: 10px;
}
.pw_header {
  height: 57px;
  border-bottom: 1px black solid;
  display: flex;
  align-items: center;
}
#profile_pic {
  height: 50px;
  width: 50px;
  border: 2px black solid;
  border-radius: 50%;
  margin-left: 3px;
  margin-right: 7px;
  overflow: hidden;
}
#profile_pic img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}
.pw_main {
  height: 370px;
  border-bottom: 1px black solid;
}
#post_content img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}
#interaction {
  height: 35px;
  display: flex;
  align-items: centers;
  margin-top: 5px;
}
#like_btn {
  margin-left: 7px;
  margin-right: 7px;
  height: 32px;
}
#comment_btn {
  margin-right: 7px;
  height: 32px;
}
#share_btn {
  height: 32px;
}
#caption_area {
  padding: 7px;
}
.nav_footer {
  position: fixed;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 55px;

  background-color: white;
  border-top: 1px solid black;

  display: flex;
  justify-content: space-around;
  align-items: center;

  z-index: 1000;
}
.nav_footer img {
  height: 38px;
  width: 358x;
  object-fit: contain;
}

#profile_nav {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: 3px black solid;
  overflow: hidden;
}
#profile_nav img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.explore_header{
  height: 50px;
  border-bottom: 1px black solid;
  display: flex;
  align-items: center;
  position: fixed;
  background-color: white;
  width: 100%;
}
#search_input{
  margin-left: 20px;
  margin-right: 10px;
  height: 37px;
  border-radius: 15px;
  border: 1px black solid;
  width:75%;
  padding: 5px;
  color: rgba(0,0,0,0.5);
}
#search_btn{
  height: 35px;
}
#back_btn{
  height: 30px;
  width: 30px;
}

.explore_main {
  padding-top: 50px;
  padding-bottom: 60px;          
  background-color: white;
}

.explore_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.grid_item {
  width: 100%;
  aspect-ratio: 1 / 1;           
  overflow: hidden;
  background-color: #eee;         
}

.grid_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;       
  display: block;                 
}
/* ===============================
   DESKTOP / LAPTOP VIEW (NO WRAPPER)
   =============================== */

@media (min-width: 768px) {

  /* Base layout */
  html {
    background-color: #f2f2f2;
    overflow-x: hidden;
  }

  body {
    max-width: 420px;              /* Instagram-like width */
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
    overflow-x: hidden;
  }

  /* ===============================
     FIXED HEADER ALIGNMENT
     =============================== */

  .explore_header {
    width: 420px;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  /* ===============================
     FIXED FOOTER ALIGNMENT
     =============================== */

  .nav_footer {
    width: 420px;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  .nav_footer img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    flex-shrink: 0;
    cursor: pointer;
  }

  /* ===============================
     STORY HEADER WIDTH FIX
     =============================== */

  .story_header {
    width: 420px;
    box-sizing: border-box;
  }

  /* ===============================
     BUTTON & ICON FIXES
     =============================== */

  #interaction {
    display: flex;
    align-items: center;   /* FIXED typo */
    margin-top: 5px;
  }

  #like_btn,
  #comment_btn,
  #share_btn {
    height: 28px;
    cursor: pointer;
    padding: 4px;          /* better click area */
  }

  /* ===============================
     ABSOLUTE BUTTON SAFETY FIX
     =============================== */

  #admin_story {
    position: relative;    /* required for add button */
  }

  #add_story_btn {
    position:absolute;
    left:40%;
    
  }
}

#back_btn_a{
  height: 33px;
  width: 33px;
  border:2px black solid;
  border-radius: 10px;
}
/* messenger css */

.messenger_header{
  height: 120px;
  border-bottom: 1px black solid;
}
#messenger_heading{
  height: 50px;
  display: flex;
  align-items: center;
}
#messenger_logo{
  height: 35px;
  margin: 3px;
}
#search_chat_input{
  height: 37px;
  width: 88%;
  border: 3px rgb(61, 72, 75) solid;
  border-radius: 10px;
  padding: 4px;
  margin-right: 3px;
  font-size: medium;
  font-weight: 600;
}
.search_div{
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#messenger_heading span{
font-weight: bolder;
font-size: larger;
}
.chat_box{
  height: 90px;
  width: 98%;
  border: 1px black solid;
  border-radius: 10px;
  display: flex;
  align-items: center;
  margin: 4px;
}
#chat_profile{
  height:65px ;
  width: 65px;
  border: 1px black solid;
  border-radius: 50%;
  overflow: hidden;
  margin-left:7px;
  margin-right:15px;
}
#chat_profile img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}
#chat_username{
  font-size: larger;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  margin-bottom: 5px;
  margin-top: 15px;
}
#chat_activity{
  font-family: 'Courier New', Courier, monospace;
}
.chat_content{
  height: 90px;
}

#cross_btn{
  height: 37px;
  width: 37px;
}

.profile_header{
  height: 50px;
  border-bottom: 1px black solid;
  display: flex;
  align-items: centers;

}
#menu_icon{
  padding:2px;
  height:42px;
  width: 42px;
  overflow: hidden;

}
#menu_icon img{
  height: 100%;
  width: 100%;
  object-fit: covers;
}
#admin_profile_pic{
  height: 80px;
  width: 80px;
  border-radius: 50%;
  border: 1px black solid;
  margin: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  
}
#inner_circle_app{
  height: 70px;
  width: 70px;
  border-radius: 50%;
  border: 1px black solid;
  overflow: hidden;
}
#inner_circle_app img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.admin_details{
  height: 300px;
  border-bottom: 1px black solid;

}
#admin_name{
  width: 100%;
  text-align: center;
  font-weight: bold;
}
.app_div{
  width: 100%;
  display:flex;
  align-items: center;
  justify-content: center;
}
.social_numbers{
   height: 80px;
   display: flex;
   align-items: center;
   justify-content: center;
  
}
#followers_div,#posts_div,#following_div{
  width:33% ;
  margin: 5px;
}
#flrd_heading,#pd_heading,#flld_heading,#flr_num,#posts_num,#fll_num{
  text-align: center;
  margin: 5px;
  font-weight: 600;
}
.bio_area{
  height: 100px;
  padding: 5px;
}