@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');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
}

:root{
    --Primary:#000000;
    --story-color:linear-gradient(to right, #AE0EA6 , #DB3230 , #A88016);
    --gray:#a2a2a2;
    --white:#FFFFFF;
    --border:#2C2C2C;
}

body{
    background-color: var(--Primary);
}


/* ====================Main Body=================================== */

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    max-height: 100vh;
    overflow: hidden scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 15px;
}

/* ====================Navbar=================================== */

.navcontainter{
    height: 40%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar{
    background-color: var(--Primary);
    height: 100%;
    width: 40%;
    color: var(--white);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 0;
}

.story-card{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background:var(--story-color);
    padding: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story>img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid black;
    object-fit: cover;
}

.story-card>span{
    font-size: 14px;
    font-weight: 200;
}


/* ============================Feed section======================================== */

.feed-sction{
    background-color: var(--Primary);
    height: 60%;
    width: 70%;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feed-card{
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 5%; 
}

.card-head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 10%;
}

.card-profile{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}


.profile-img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background:var(--story-color);
    padding: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img>img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--white);
    object-fit: cover;
}

.user-name{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--white);
}

.title{
    display: flex;
    align-items: center;
    color: var(--white);
    gap: 10px;
}

.title span{
    font-weight: 500;
}

.location span{
    font-weight: 200;
    font-size: 14px;
}

.user-post{
    width: 100%;
    height: 75vh;
    border-radius: 2px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2%;
    position: relative;
}

.user-post>img{
    width: 100%;
    height: 100%;
    border-radius: 2px;
    object-fit: cover;
}

.user-post>video{
    width: 100%;
    height: 100%;
    border-radius: 2px;
    object-fit: contain;
}

.user-post>audio{
  position: absolute;
  bottom: 0;
  width: 100%;
}

.three-dots{
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================= */
.card-icons{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.left-icons{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

.left-icons img{
    height: 24px;
    cursor: pointer;
}

.left-icons img:nth-child(3){
    margin-bottom: 5px;
    transform: rotate(-30deg);
}

.right-icons>img{
    height: 24px;
    cursor: pointer;
}

.content{
    display: flex;
    justify-content: space-between;
    align-items:end;
}
.left-content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.total-likes>span{
    font-weight: 400;
    font-size: 15px;
}
.more-content>p{
    display: inline-block;
    font-weight: 400;
    font-size: 14px;
}
.more-content>span{
    font-weight: 300;
    font-size: 14px;
    color: var(--gray)
}
.all-comments>span{
    font-weight: 300;
    font-size: 14px;
    color: var(--gray)
}
.add-comment>input{
    background-color: var(--Primary);
    font-weight: 300;
    font-size: 14px;
    color: var(--white);
    border: none;
    outline: none;
}
.add-comment>input::placeholder{
    color: var(--gray);
}

.right-content>img{
    width: 18px;
    cursor: pointer;
}

.line{
    display: flex;
    justify-content: center;
    align-items: center;
}
.line>img{
    width: 100%;
}

/* ========== RESPONSIVE QUERIES ========== */
@media only screen and (max-width: 455px){
  
    /* ===========================Navbar============================= */
    .navbar {
        width: 90%;
        gap: 10px;
      }
      .story{
        width: 80px;
        height: 80px;
      }
      .story-card>span{
        font-size: 14px;
        font-weight: 200;
    }
    /* ============================Feed section======================================== */
    .feed-sction{
        width: 90%;
    }
    .feed-card{
        width: 100%;
    }
    .card-head{
        height: 8%;
    }
    .card-profile{
        gap: 10px;
    }
    .title span{
        font-weight: 400;
        font-size: 14px;
    }
    .location span{
        font-weight: 200;
        font-size: 12px;
    }

    .user-post>video{
        object-fit: cover;
    }
    .three-dots{
        width: 1.1em;
    }
}