@import url("https://fonts.cdnfonts.com/css/instagram-sans-script");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: 'Instagram Sans Script', sans-serif; */
}

.container {
  display: flex;
  overflow: hidden;
}

.sidebar {
  width: 20vw;
  height: 100vh;
  border-right: 0.5px solid black;
  overflow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: baseline;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: baseline;
}

.main {
  height: 100vh;
  width: 80vw;
  overflow-x: none;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

#insta_logo {
  width: 10vw;
  max-width: 500px;
  padding: 5px;
  margin: 10px 5px 20px 5px;
  box-sizing: border-box;
}

.sidebar-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  margin-left: 5px;
  font-size: 15px;
  display: flex;
  align-items: center;
}

.sidebar-item > p {
  padding: 5px;
  margin-top: 5px;
  margin-left: 20px;
}

.fa-solid {
  font-size: 25px;
  padding: 5px;
  /* margin-left: 8px; */
}

#profile {
  width: 25px;
  height: 25px;
  border: 1px solid black;
  border-radius: 25px;
  margin-left: 8px;
}

.card {
  border: none;
  border-radius: 10px;
  /* box-shadow: 1px 1px 10px 1px #888888; */
  height: auto;
  width: 450px;
  margin-bottom: 30px;
  position: relative;
}

.main-image {
  width: 100%;
  height: auto;
  max-width: 450px;
}

.stories {
  overflow-x: scroll;
  overflow-y: none;
  white-space: nowrap;
  width: 100%;
  margin: 5px 0;
  box-sizing: border-box;
}

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

.story {
  display: inline-block;
  text-align: center;
  padding-right: 10px;
  position: relative;
}

.story > p {
  font-size: 12px;
}

.story > img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid black;
}

.story .plus {
  position: absolute;
  bottom: 18px;
  right: 15px;
  background-color: #0095f6; /* Instagram blue */
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  line-height: 15px;
  text-align: center;
  border: 2px solid white;
}

.next-arrow {
  position: absolute;
  right: 10px;
  top: 30px;
  padding: 8px;
  background-color: white;
  color: black;
  border-radius: 50%;
  opacity: 0.8;
  font-weight: bolder;
  cursor: pointer;
}

.handle-name {
  display: flex;
  align-items: center;
  padding: 5px;
}

.handle-name > img {
  margin-right: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid black;
}

.icon-area,
.comment {
  display: flex;
  justify-content: space-between;
}

.caption-area,
.comment-area,
.add-comment {
  padding: 10px;
}

.comment > i {
  font-size: 10px;
}

.add-comment {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  color: #888888;
  margin-bottom: 5px;
}

.topbar,
.bottom-bar {
  display: none;
}

@media screen and (max-width: 800px) {
  .sidebar {
    display: none;
  }

  .main {
    width: 100vw;
    box-sizing: border-box;
  }

  .card {
    width: 90vw;
  }

  .topbar {
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
    background-color: white;
    padding: 10px;
    align-items: center;
  }

  #insta_logo {
    width: 20vh;
    margin: 0;
    padding: 0;
  }

  .bottom-bar {
    display: flex;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 2;
    background-color: white;
    padding: 10px;
    align-items: center;
    box-sizing: border-box;
  }
}
