* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #833ab4;
    background: -webkit-linear-gradient(to right, #fcb045, #fd1d1d, #833ab4);
    background: linear-gradient(to right, #fcb045, #fd1d1d, #833ab4);

    font-family: roboto, sans-serif;
    font-size: 62.5%;
    cursor: default;
}

main {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.bg_mode i {
    font-size: 3rem;
    transition: ease-in-out .3s;
}

.bg_mode i:hover {
    transform: scale(1.1);
}

#light {
    display: block;
}

#dark {
    display: none;
}

.top-heading {
    text-align: center;
    color: #ff009d;
    background-color: #fff;
    margin: 10px 0;
    border-radius: 20px;
    padding: 6px 24px;
    transition: ease-in-out 0.2s;
    font-family: Billabong;
}

.top-heading:hover {
    color: #fff;
    background-color: #ff009d;
}

.top-heading h1 {
    font-size: 2.5rem;
}

.container {
    width: 320px;
    height: 520px;
    border: 2px solid #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .1rem;
    overflow: hidden;
    background-color: #292929;
    position: relative;
    color: #fff;
    transition: ease-in-out 1s;
}

/* insta top */
.insta-top {
    padding: 8px 6px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.insta-logo {
    display: flex;
    gap: 4px;
}

.insta-logo h3 {
    font-size: 1.6rem;
    font-family: Billabong;
    font-weight: 200;
    letter-spacing: 1px;
}

.insta-logo select {
    display: flex;
    text-align: center;
    width: 10%;
    border: none;
    background-color: transparent;
    color: #fff;
}

.insta-logo select option {
    background-color: #343434;
    border: none;
}

.top-icons {
    display: flex;
    gap: 1rem;
}

i {
    font-size: 1.4rem;
    color: #f1f1f1;
    transition: ease .2s;
}

/* story */
.stories-container {
    width: 100%;
    padding: 2px;

    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-con {
    display: flex;
    flex-direction: column;
    width: 90px;
    height: 90px;
    display: inline-block;
    overflow: hidden;
}

.story-box {
    width: 80px;
    height: 80px;
    border: 3px solid #ff009d;
    border-radius: 50%;
    margin-left: 4px;
}

.story-box:hover {
    opacity: .9;
}

.story-box img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.viewstory {
    width: 100%;
    height: 100%;
    position: absolute;
    background-position: center;
    background-size: cover;
    z-index: 9;
    display: none;
}

.storybar {
    height: 4px;
    width: 96%;
    margin: 10px auto;
    background-color: #fff;
    overflow: hidden;
    position: relative;
    display: none;
}

.progress {
    position: absolute;
    height: 100%;
    background-color: #3498db;
    width: 0;
    animation: progressBar 5s ease-in-out forwards;
    transition: ease-in-out .3s;
    display: none;
}

@keyframes progressBar {
    0% {
        width: 0;
    }

    100% {
        width: 98%;
    }
}

/* content */
.content-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    gap: 1rem;
    padding: .2rem 0 .4rem 0;
}

.content-container::-webkit-scrollbar {
    display: none;
}

.content-img {
    width: 100%;
    position: relative;
    position: relative;
}

.content-img img {
    width: 100%;
    height: auto;
    background-size: cover;
    background-position: center;
}

.content-img video {
    width: 100%;
    height: auto;
    background-size: cover;
    background-position: center;
}

.content_user {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    gap: 8px;
}

.content_user .profile_img {
    width: 30px;
}

.content_user .profile_img img {
    width: 100%;
    border: 2px solid #fd1d1d;
    border-radius: 50%;
}

.content_user {
    text-align: start;
}

.content_user .user_name p {
    font-size: .8rem;
}

.content_user .user_name p:last-child {
    font-size: .5rem;
}

.content_user .content_btns {
    flex: 1;
    text-align: end;
}

.content_btns button {
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 6px;
    color: #fff;
    padding: 4px 8px;
}

.content_btns i {
    margin-left: 6px;
}

.content-reactions {
    display: flex;
    gap: 1rem;
    padding: 8px;
}

#hearticon{
    transition: ease-in-out 1s;
    font-weight: bold;
    color: rgb(190, 190, 190);
}

#imgHeart{
    font-size: 4rem;
    position: absolute;
    color: #ff0000;
    left: 50%;
    top: 50%;
    z-index: 2;
    opacity: .8;
    transition: all linear 0.2s;
    transform: translate(-50%, -50%) scale(0);
    font-weight: bold;
}

.content-reactions i:last-child {
    flex: 1;
    text-align: end;
}

.content-details {
    padding: 10px;
    display: flex;
    flex-direction: column;
    padding: 0 6px;
}

.liked {
    display: flex;
    gap: 6px;
    width: 100%;
}

.liked_by_img img {
    width: 12px;
    height: 12px;
    border: 1px solid #fff;
    border-radius: 50%;
}

.comment_and_date {
    display: flex;
    text-align: start;
    flex-direction: column;
    gap: 6px;
    width: 36%;
}

.content-all-comments a {
    text-decoration: none;
    color: #fff;
}

i:hover {
    transition: ease-in .4s;
    color: #fff
}

/* footer */
footer {
    text-align: center;
    font-size: 1rem;
    color: #fff;
    margin: 3rem 0;
}

hr {
    border: 1px solid rgb(247, 247, 255, 0.3);
}