* {
  margin: 0;
  padding: 0;
}
body {
  background-color: rgb(216, 216, 216);
  padding: 0;
  margin: 0;
  font-family: cursive;
}
.navBar {
  display: flex;
  padding: 5px 15px;
  background-color: white;
  align-items: center;
  justify-content: space-between;
  .logo {
    display: flex;
    align-items: center;
    gap: 5px;
    h3 {
      font-size: 30px;
    }
    img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      margin-right: 10px;
    }
  }

  input {
    padding: 10px 8px;
    border-radius: 5px;
    outline: none;
    border: none;
    background-color: rgb(184, 212, 212);
    font-size: 18px;
  }
}
.container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.sideBar {
  min-height: calc(100vh - 90px);
  background-color: white;
  padding: 20px 10px 10px 5px;
  width: 17vw;
  ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding-left: 5px;
    li {
      padding: 10px 70px 10px 10px;
      border-radius: 10px;
    }
    li a {
      color: black;
      text-decoration: none;
      font-size: 18px;
      display: flex;
      gap: 10px;
      img {
        width: 20px;
      }
    }
    .active,
    li:hover {
      background-color: rgb(160, 204, 204);
      color: #fff;
    }
  }
}
.content {
  width: 60vw;
  min-height: 70vh;
  background-color: white;
  margin: 20px 0px;
  border-radius: 10px;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  .active {
    margin: 0px auto 10px 10px;
    background-color: #222;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
  }
}
.rightSide {
  width: 25vw;
  margin: 20px 0px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-right: 20px;
  .trendingAuthor {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    p {
      font-weight: bold;
      font-size: 18px;
      margin: 0px 0px 15px 0px;
    }
    .Authors {
      display: flex;
      flex-direction: column;
      gap: 15px;
      .author {
        display: flex;
        align-items: center;
        gap: 10px;
        img {
          width: 40px;
          height: 40px;
          border-radius: 50%;
        }
        p {
          text-align: center;
          margin-left: auto;
          margin-bottom: 0;
          margin-right: 5px;
          background-color: rgb(197, 223, 223);
          padding: 4px 8px;
          border-radius: 10px;
          cursor: pointer;
        }
        .followed {
          background-color: rgb(58, 58, 189);
          padding: 4px 8px;
          border-radius: 10px;
          color: #fff;
        }
      }
    }
  }
  .popularBlogs {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    p {
      font-weight: bold;
      font-size: 18px;
      margin: 0px 0px 10px 0px;
    }
    .Blogs {
      display: flex;
      flex-direction: column;
      gap: 20px;
      .blog {
        display: flex;
        gap: 5px;
        img {
          width: 100px;
          height: 120px;
        }
        .details {
          display: flex;
          flex-direction: column;
          font-weight: 200;
          font-size: 15px;
          p {
            color: grey;
            font-size: 15px;
            margin-top: 10px;
          }
          .reactions {
            display: flex;
            justify-content: space-around;
            margin-top: auto;
            .likes {
              display: flex;
              align-items: center;
              justify-content: center;
              gap: 5px;
            }
            .comments {
              display: flex;
              align-items: center;
              justify-content: center;
              gap: 5px;
            }
            img {
              width: 25px;
              height: 30px;
            }
            p {
              margin: 0;
            }
          }
        }
      }
    }
  }
}
#content {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  gap: 20px;
  justify-content: center;
}

.book {
  flex-grow: 1;
  width: 18%;
  min-width: 120px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  a h3 {
    font-size: 1.5rem;
    padding: 10px;
    color: #2c3e50;
    text-align: center;
  }
  a img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
  }

  button {
    margin-top: auto;
    border-radius: 10px;
    border: none;
    padding: 10px;
    cursor: pointer;
    background-color: rgb(197, 223, 223);
    font-family: cursive;
    font-weight: bold;
  }
}

.book:hover {
  transform: translateY(-5px);
}
.about {
  width: 60vw;
  margin: 20px auto;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about h2 {
  max-width: 800px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  background: linear-gradient(to right, #f39c12, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about p {
  max-width: 800px;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  margin: 15px 0;
}
.contact {
  width: 60vw;
  margin: 20px auto;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  background: linear-gradient(to right, #f39c12, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact p {
  max-width: 500px;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 20px;
}

.contact-info p {
  max-width: 700px;

  margin: 8px 0;
  color: #444;
}

.contact-form {
  width: 80%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.contact-form button {
  background-color: rgb(58, 58, 189);
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: rgba(58, 58, 189, 0.7);
}
.book-details {
  width: 100%;
  border-radius: 12px;
  display: flex;
  gap: 40px;

  .book-data {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    h2 {
      font-size: 40px;
    }

    p {
      font-size: 17px;
    }

    button {
      border-radius: 10px;
      border: none;
      padding: 10px;
      font-size: 17px;
      cursor: pointer;
      background-color: rgb(197, 223, 223);
      font-family: cursive;
      font-weight: bold;
    }
  }

  img {
    width: 400px;
    height: 500px;
    border-radius: 12px;
  }
}
.profile-container {
  width: 60vw;
  margin: 20px 0;
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

  .profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
  }

  .user-info h2 {
    margin: 0;
  }

  .section {
    margin-top: 30px;
  }

  .section h3 {
    color: #333;
    margin-bottom: 10px;
  }

  .section ul {
    list-style: none;
    padding: 0;
  }

  .section ul li {
    background: #f0f0f0;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 8px;
  }

  button {
    padding: 10px 20px;
    margin-right: 10px;
    background-color: #3a86ff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }

  button:hover {
    background-color: #265ecf;
  }

  .section dl {
    padding-bottom: 15px;
    dt {
      border-bottom: 1px solid lch(71.87% 6.15 95.09);
      padding-bottom: 7px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
  }
}
#mylist {
  li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    button {
      background-color: red;
      padding: 5px 10px;
      font-size: 17px;
      font-weight: bold;
      border-radius: 20px;
    }
  }
}

@media (max-width: 1000px) {
  .navBar {
    margin: 0;
    input {
      display: none;
    }
  }
  .container {
    flex-direction: column;
    align-items: center;
  }
  .sideBar {
    min-height: 1vh;
    width: 100%;
    margin: 0;
    ul {
      flex-direction: row;
      justify-content: space-between;
      margin: 0px 10px;
      li {
        padding: 10px 10px 10px 10px;
      }
      li a p {
        display: none;
      }
    }
  }
  .content {
    margin-top: 5px;
    margin-bottom: 10px;
    width: 90%;
  }
  .about {
    margin-top: 5px;
    margin-bottom: 10px;
    width: 80%;
  }
  .contact {
    margin-top: 5px;
    margin-bottom: 10px;
    width: 80%;
  }
  .book-details {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    .book-data {
      gap: 10px;
    }
    img {
      width: 300px;
      height: 400px;
    }
  }
  .profile-container {
    width: 80%;
  }
  .rightSide {
    display: none;
  }
}
