@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Sacramento";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/sacramento-v15-latin-regular.woff2") format("woff2"),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url("./fonts/sacramento-v15-latin-regular.ttf") format("truetype"); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/nunito-v26-latin-regular.woff2") format("woff2"),
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
      url("./fonts/nunito-v26-latin-regular.ttf") format("truetype"); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

html {
scroll-behavior: smooth;
}

body {
  display: flex;
  width: 100%;
  font-family: "Nunito";
  font-size: 16px;
  margin: 0;
}

.mg-top-bottom {
  margin: 32px 0;
}

.mg-right {
  margin-right: 32px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #8860d0;
  border-radius: 25px;
}

nav {
  display: flex;
  flex-direction: column;
  width: 250px;
  height: 100%;
  position: fixed;
  margin: 32px 0 32px 32px;
}

h1 {
  color: #5680e9;
  font-family: "Sacramento";
  font-size: 48px;
  margin: 0 0 16px 0;
}

h1:hover {
  color: #8860d0;
}

.navi {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 16px 0;
  padding: 4px 8px;
  gap: 8px;
}

.navi:hover {
  background-color: #c1c8e4;
  border-radius: 15px;
}

.navi-icon {
  height: 48px;
  border-radius: 50%;
}

.navi-text {
  color: black;
  text-decoration: none;
  font-size: 24px;
}

.navi-logo {
  display: none;
}

.navi-logotext {
  text-decoration: none;
  cursor: pointer;
}

#navi-profile {
  display: none;
}

#main {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  flex-grow: 1;
  margin-left: 266px;
  margin-right: 16px;
  gap: 32px;
}

#content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 128px;
}

#stories {
  display: flex;
  flex-direction: column;
  width: 80%;
}

.story-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.story {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-text-big {
  font-size: 18px;
  margin: 0 8px;
}

.story-text-small {
  font-size: 16px;
  color: #c1c8e4;
}

.story-avatar {
  height: 64px;
  width: 64px;
  border: 4px solid #8860d0;
  border-radius: 50%;
  background-color: white;
  padding: 2px;
  margin: 8px;
  cursor: pointer;
}

.post-single {
  width: 450px;
}

.post-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 8px;
}

.post-avatar {
  height: 64px;
  width: 64px;
  border-radius: 50%;
  margin-right: 16px;
  cursor: pointer;
}

.post-author {
  margin: 0;
  font-size: 20px;
}

.post-author-color {
  color: #5680e9;
}

.post-date {
  font-size: 16px;
  color: #5ab9ea;
}

.post-location {
  margin: 0;
}

.post-img {
  width: 450px;
  height: 450px;
  object-fit: cover;
}

.post-interaction {
  display: flex;
  justify-content: space-between;
  margin: 8px 0px;
}

.post-icon {
  height: 32px;
  cursor: pointer;
}

.post-like {
  display: flex;
  align-items: center;
  color: #8860d0;
}

.post-description {
  margin: 16px 0;
}

.post-add-comment {
  margin: 16px 0;
  display: flex;
  justify-content: space-between;
}

.post-input {
  border-top: 1px solid white;
  border-left: 1px solid white;
  border-right: 1px solid white;
  border-bottom: 1px solid #5ab9ea;
  width: 350px;
  height: 48px;
  padding: 0 4px;
}

.post-button {
  color: #5ab9ea;
  border-radius: 15px;
  border: none;
  padding: 8px;
  background-color: white;
  border: 1px solid #5ab9ea;
  cursor: pointer;
}

.post-button:hover {
  color: white;
  background-color: #5ab9ea;
}

.post-comments {
  margin: 32px 0 16px 0;
}

.post-single-comment {
  display: flex;
  margin: 0 0 16px 0;
}

.post-comment-text {
  margin: 0;
}

.post-comments-author {
  color: #5680e9;
  margin-right: 4px;
  white-space: nowrap;
}

.post-show-moreless {
  text-align: center;
  cursor: pointer;
  color: #5ab9ea;
}

.post-show-moreless:hover {
  color: #8860d0;
}

.post-footer {
  --size: 25px;
  --R: calc(var(--size) * 1.28);

  mask: radial-gradient(
        var(--R) at 72% calc(1.8 * var(--size)),
        #000 99%,
        #0000 101%
      )
      calc(72% - 2 * var(--size)) 0 / calc(4 * var(--size)) 100%,
    radial-gradient(
        var(--R) at 72% calc(-0.8 * var(--size)),
        #0000 99%,
        #000 101%
      )
      72% var(--size) / calc(4 * var(--size)) 100% repeat-x;
  background: linear-gradient(180deg, #84ceeb, #5ab9ea);
  height: 50px;
  border-radius: 15px;
}

.d-none {
  display: none;
}

.d-flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay-bg {
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.img-big {
  width: 700px;
  height: 700px;
  object-fit: cover;
}

.overlay-text {
  background-color: white;
  height: 668px;
  width: 500px;
  padding: 16px;
}

.line {
  height: 1px;
  width: 100%;
  background-color: #c1c8e4;
  margin: 16px 0;
}

.po-scroll {
  overflow-y: scroll;
  overflow-x: hidden;
  height: 520px;
}

#recommended {
  display: flex;
  flex-direction: column;
  width: 350px;
  gap: 16px;
}

.profile {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.profile-name {
  font-size: 18px;
  margin: 0;
}

.profile-text {
  margin: 0;
}

.profile-follow {
  color: #5ab9ea;
  text-align: right;
  width: 60px;
  cursor: pointer;
}

.profile-follow:hover {
  color: #8860d0;
}

.profile-width {
  width: 210px;
}

.footer {
  color: #c1c8e4;
  margin-top: 16px;
}

.footer-link {
  color: #c1c8e4;
  cursor: pointer;
}

.footer-link:hover {
  color: #8860d0;
  cursor: pointer;
}

@media (min-width: 1920px) {
  html {
    display: flex;
    justify-content: center;
  }

  body {
    width: 1920px;
  }
}

@media (max-width: 1280px) {
  .img-big {
    width: 600px;
    height: 600px;
  }

  .overlay-text {
    height: 568px;
    width: 500px;
  }

  .po-scroll {
    height: 420px;
  }
}

@media (max-width: 1199px) {
  #recommended {
    display: none;
  }

  .d-flex {
    flex-direction: column;
  }

  #navi-profile {
    display: flex;
  }

  .img-big {
    width: 550px;
    height: 550px;
  }

  .overlay-text {
    height: 250px;
    width: 518px;
  }

  .po-scroll {
    height: 100px;
  }
}

@media (max-width: 800px) {
  body {
    flex-direction: column;
  }

  nav {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    position: fixed;
    margin: 0 0 32px 0;
    padding-top: 32px;
    background-color: white;
    gap: 16px;
    z-index: 800;
  }

  .navi-block {
    display: flex;
    gap: 16px;
    height: 70px;
  }

  h1 {
    margin: 0;
  }

  .navi {
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    height: 52px;
    width: 52px;
  }

  .navi:hover {
    border-radius: 50%;
  }

  .navi-text {
    display: none;
  }

  #main {
    margin-left: 32px;
    margin-right: 32px;
    gap: 32px;
  }

  .mg-top-bottom {
    margin-top: 170px;
  }
}

@media (max-width: 580px) {
  #recommended {
    display: none;
  }

  .d-flex {
    flex-direction: column;
  }

  .img-big {
    width: 500px;
    height: 500px;
  }

  .overlay-text {
    width: 468px;
  }
}

@media (max-width: 514px) {
  .mg-right {
    margin-right: 8px;
  }

  #main {
    margin-left: 8px;
    margin-right: 8px;
    gap: 32px;
  }

  #stories {
    display: none;
  }
}

@media (max-width: 465px) {
  h1 {
    display: none;
  }

  nav {
    gap: 8px;
  }

  .navi-logo {
    display: flex;
    height: 48px;
    width: 48px;
    padding: 2px;
  }

  .navi-logo:hover {
    border-radius: 50%;
    background-color: #c1c8e4;
  }

  .navi-block {
    height: 100px;
    align-items: center;
    gap: 8px;
  }

  .post-single {
    width: 350px;
  }

  .post-img {
    width: 350px;
    height: 350px;
  }

  .post-input {
    width: 250px;
  }

  .post-footer {
    --size: 19px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .mg-right {
    margin-right: 4px;
  }

  .mg-top-bottom {
    margin-top: 164px;
  }

  nav {
    padding-top: 16px;
  }

  #main {
    margin-left: 4px;
    margin-right: 4px;
  }

  .post-single {
    width: 290px;
  }

  .post-avatar {
    height: 54px;
    width: 54px;
    border-radius: 50%;
    margin-right: 8px;
  }

  .post-author {
    margin: 0;
    font-size: 18px;
  }

  .post-date {
    font-size: 14px;
    color: #5ab9ea;
  }

  .post-location {
    margin: 0;
    width: 180px;
    font-size: 14px;
  }

  .post-img {
    width: 290px;
    height: 290px;
    object-fit: cover;
  }

  .post-input {
    width: 200px;
  }

  .post-footer {
    --size: 16px;
    height: 35px;
  }
}
