* {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

body {
  background-color: #fcf7ff;
}

header {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

main {
  min-height: 59vh;
}

.headerclass {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 1rem;
}

.div-logo p {
  font-size: 20px;
  font-weight: 600;
  color: #303030;
}

.dotin {
  color: #777;
  font-size: 14px;
}

.div-logo p:hover {
  -webkit-mask-image: linear-gradient(
    -75deg,
    rgba(0, 0, 0, 0.6) 30%,
    #000 50%,
    rgba(0, 0, 0, 0.6) 70%
  );
  -webkit-mask-size: 200%;

  mask-image: linear-gradient(
    -75deg,
    rgba(0, 0, 0, 0.6) 30%,
    #000 50%,
    rgba(0, 0, 0, 0.6) 70%
  );

  mask-size: 200%;
  animation: shine 2s infinite;
}

@-webkit-keyframes shine {
  from {
    -webkit-mask-position: 150%;
  }

  to {
    -webkit-mask-position: -50%;
  }
}

header .background {
  z-index: -1;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  opacity: 15%;
}

.user-profile {
  margin: 0 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-profile img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
}

.user-details {
  display: flex;
  align-items: center;
}

.user-details div {
  margin-left: 10px;
}

.div-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}


.logo {
  width: 30px;
}

.nav-links a {
  margin: 0 0.5rem;
  /* cursor: pointer; */
  text-decoration: none;
  font-weight: 400;
  color: white;
  background-color: rgba(14, 18, 131, 1);
  padding: 5px 1.5rem;
  border-radius: 20px;
  text-decoration: none;
}

.nav-links a:hover {
  background-color: rgb(8, 10, 82);
}

.options {
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: rgba(246, 227, 255, 1);
}

.options a {
  text-decoration: none;
  cursor: pointer;
  margin: 5px 2rem;
  color: black;
}

.stories b {
  border-bottom: 2px solid rgba(240, 192, 212, 1);
}

.main-nav {
  margin: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav p {
  font-weight: 500;
  /* text-decoration: underline;
  text-decoration-color: cornflowerblue;
  text-decoration-thickness: 2px; */
}

.write-story {
  color: white;
  padding: 0px 10px;
  background-color: rgba(112, 66, 135, 1);
  border-radius: 15px;
  text-decoration: none;
}

.nametag {
  font-size: 1.2rem;
  font-weight: 500;
}

.empty {
  text-align: center;
}

.stories-list {
  margin: 1rem 2rem;
}

.story-item {
  /* border: 2px solid rgba(246, 227, 255, 1); */
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: rgba(248, 234, 255, 1);
  border-radius: 10px;
  cursor: pointer;
}

.story-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 10px;
}

.story-header p {
  font-weight: 600;
}

.story-header i {
  color: grey;
  font-size: 20px;
  cursor: pointer;
}

.story-title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
  -webkit-box-orient: vertical;
  text-align: justify;
}

.story-body {
  margin-bottom: 10px;
}

.read {
  font-weight: 600;
}

.story-body p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
  -webkit-box-orient: vertical;
  text-align: justify;
}

.author {
  text-align: end;
  color: rgba(0, 0, 0, 0.541);
}

/* .desktop-view , .mobile-view{
    text-decoration: underline;
} */
@media only screen and (max-width: 700px) {
  .user-profile {
    margin: 0 1.5rem;
  }
}

@media only screen and (max-width: 350px) {
  /* .user-profile {
    justify-content: center;
  } */
  .user-profile img {
    width: 105px;
    height: 125px;
  }
}
@media only screen and (max-width: 460px) {
  .main-nav p,
  .main-nav a {
    font-size: 14px !important;
  }
}

@media only screen and (max-width: 520px) {
  .stories-list {
    margin: 1rem 0.5rem;
  }

  .main-nav {
    margin: 1rem;
  }

  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }

  .author p {
    font-size: 15px;
  }
}
