* {
    padding: 0;
    margin: 0;
  }
  body {
    background-color: rgb(33, 37, 41);
    overflow-x: hidden;
  }
  nav {
    top: 0;
    width: 100%;
    padding: 16px;
  }

  .divider{
    margin: 1rem 0;
    color: rgb(222, 226, 230);
    background-color: rgb(222, 226, 230);;
    border: 0;
    border-top: var(--bs-border-width) solid;
    opacity: .25;
    height: 1px;
    width:1116px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    align-items: center;
  }

  .c{
    color: rgb(222, 226, 230);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 57.6px;
    text-align: center;
    margin-bottom: 8px;
  }

  .d{
    font-size: 20px;
font-weight: 300;
color: rgb(222, 226, 230);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 24px;
    text-align: center;
    margin-bottom: 24px;
  }
  #abc{
    margin-left: 100px;
  }

  nav{
    display: flex;
    width: 1250px;
    justify-content: space-between;
    overflow-x: hidden;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    font-size: 18px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    width: 350px;
    gap: 50px;
    align-items: center;
  }

  nav .a li{
    gap: 50px;
  }
  nav .b li{
    flex-basis: 150px;
  }
  nav .a{
    align-items: flex-start;
    margin-left: 100px;
  }

  

  li a {
    text-decoration: none;
    color:rgb(255, 255, 255);
    font-weight: 400;
    line-height: 24px;
  }
  .hero {
    font-size: 3rem;
  }

  .content{
    margin-left: 48px;
    margin-right: -12px;
  }
  .content,
  .remove-page {
    width: 85vw;
    box-sizing: border-box;
    margin: auto;
  }
  .remove-page{
    height: 82vh;
  }
  
  .book {
    height: 325px;
    display: flex;
    margin: auto;
    padding: 48px;
    padding-top: 24px;
    padding-bottom: 24px;
    margin-left: 10px;
  }
  
  .index-img {
    width: 150px;
  }
  
  .cover {
    margin: auto;
    margin-right: 2rem;
    margin-left: 10px;
    margin-top: 0px;
  }
  
  .title {
    font-size: 2rem;
    font-weight: 400;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: rgb(110, 168, 254);
    color: rgb(222, 226, 230);
    line-height :28px;
  }

  .title a{
    color: rgb(110, 168, 254);
  }

  .author{
    color: rgb(222, 226, 230);
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 25px;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 8px;
    line-height :30px;
  }
  .isbn , .rank,.date,.note{
    color: rgb(222, 226, 230);
    margin-top: 5px;
    margin-bottom: 5px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size :16px;
font-weight :400;
line-height: 24px;
opacity: 0.8;
  }
  
  .note {
    font-size: 20px;
    font-weight: 300;
    opacity: 1;
    line-height: 30px;
    margin-right: 110px;
  }
  /*.date {
    margin: 1rem;
    margin-left: 0;
    font-style: italic;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
  }*/
  .addform {
    font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
    padding: 10px;
    width: 30vw;
    margin: auto;
    text-align: start;
  }
  .instruction {
    font-size: 1.2rem;
  }
  header {
    padding: 1rem;
    padding-bottom: 0;
    color: rgb(99, 98, 98);
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

  }
  label {
    font: bold;
    display: block;
  }
  input[type="text"],
  input[type="password"] {
    border-radius: 10px;
    border: gray 2px solid;
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    margin: 8px 0;
    box-sizing: border-box;
  }
  textarea {
    padding: 5px;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    resize: none;
    width: 100%;
  }
  input[type="date"] {
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
  }
  #submit,
  #submit-delete,
  #cancel-edit,
  #cancel-delete {
    border: white 2px solid;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    color: rgb(222, 226, 230);
    background-color: rgb(33, 37, 41);
    cursor: pointer;
  }
  #submit-delete {
    border: rgb(133, 4, 4) 2px solid;
    background-color: #f14646;
  }
  #cancel-edit,
  #cancel-delete {
    width: 36%;
    margin-left: 32%;
    background-color: #0098c7;
    border-color: #006989;
  }
  .back {
    text-decoration: none;
    color: black;
  }
  
  .preview {
    box-sizing: border-box;
    margin: 1rem;
    border: 2px gray solid;
    height: 600px;
    width: 100%;
    padding: 1rem;
    border-radius: 5px;
    padding-left: 2rem;
  }
  .view-img {
    width: 250px;
    height: 390px;
    object-fit: cover;
    float: left;
    margin-right: 1rem;
    border-radius: 10px;
  }
  
  .view-text {
    display: block;
    width: 100%;
    text-wrap: wrap;
  }
  #view-title {
    text-align: center;
    color: rgb(222, 226, 230);
    margin: 2rem;
    margin-left: 0px;
  }
  
  #view-note {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-weight: 400;
    color: rgb(222, 226, 230);
    line-height: 24px;
    font-size: 16px;
    margin-bottom: 16px;
    margin-right: 10px;
  }
  #view-date {
    color: rgb(222, 226, 230);
    font-size: 32px;
    font-weight: 500;
    line-height: 38.4px;
  }
  .btns {
    margin: 10px 0;
    box-sizing: border-box;
    position: relative;
    display: block;
  }
  .view-cover {
    margin-bottom: 4rem;
  }
  footer {
    padding-top: 1rem;
    text-align: center;
    color: rgb(222, 226, 230);
    width: 100%;
    position: relative;
    height: 10vh;
    bottom: 0;
  }
  .contacts{
    color: rgb(222, 226, 230);
    gap: 10px;
  }
  
  #delete-btn,
  #update-btn {
    background-color: rgb(250, 96, 96);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    color: black;
    border: none;
    padding: 5px;
    border-radius: 5px;
    margin-top: 10px;
  }
  #update-btn {
    background: #006989;
  }
  #delete-btn > a,
  #update-btn > a {
    text-decoration: none;
    color: whitesmoke;
  }
  
  .content-preview{
    color: rgb(222, 226, 230);
  }
  @media (max-width: 1024px) {
    .view-cover {
      margin-bottom: 0rem;
    }
    .view-img {
      width: 200px;
      height: 400px;
    }
    .preview {
      height: 100vh;
    }
    .addform {
      width: 80vw;
    }
    .title {
      font-size: 1.2rem;
    }
    .note {
      font-size: 0.8rem;
      line-height: 125%;
    }
   
  }
  
  @media (max-width: 425px) {
    body{
      overflow-x: hidden;
    }
    nav {
      width: 100%;
    }
    
    footer {
    box-sizing: border-box;    
    }
    .content-preview{
      height: 88vh;
    }
  
    .book {
      padding: 50px;
      margin: 1rem 0;
      gap: 1rem;
      justify-content: center;
      height: 55vh;
      align-items: center;
      flex-direction: column;
    }

    
    .hero {
      font-size: 2rem;
    }
    nav ul {
      font-size: 1rem;
    }
    .view-btn {
      margin: 1rem;
    }
  
    .view-img {
      width: 120px;
      height: 200px;
    }
    .view-text {
      width: 100%;
    }
    #view-title {
      margin: 0;
    }
    .title {
      font-size: 1rem;
    }
    #view-date {
      font-size: 16px;
    }
  
    .preview {
      height: 65vh;
      margin: 1rem 0;
      padding: 1rem 1rem;
    }
      nav{
        padding: 10px;
        overflow-x: hidden;
      }
      nav .a{
        margin-left: 10px;
      }
      .content{
        width: 95vw;
        margin-left: 10px;
        margin-right: 10px;
      }
  
      .title {
        font-size: 1.5rem;
      }
      .author{
        font-size: 20px;
        margin-top: 8px;
        margin-bottom: 6px;
      }
      .isbn , .rank,.date,.note{
        font-size: 12px;
      }
      .note{
        font-size: 14px;
        margin-right: 0px;
      }
      #abc{
        margin-left: 20px;
      }
  
  
      .book{
        padding: 5px;
      }
  
  
      nav .b{
        align-items: flex-start;
      }
  
      nav .a li{
        gap:10px;
      }
      nav ul{
        font-size: 12px;
        gap:12px;
      }
      nav .b li{
        flex-basis: 60px;
      }
      nav .b{
      width: 170px;
      overflow-x: hidden;
      }
      .c{
      font-size: 30px;
      }
      .d{
      font-size: 15px;
      }
      .divider{
      width: 300px;
      }
      .index-img{
        width: 100px;
      }
      .cover{
        margin-right: 10px;
      }
      .text{
        width: 200px;
      }
      .book{
        display: flex;
        flex-wrap: wrap;
        gap: 0px;
      }
     
      .addform {
        width: 80vw;
      }
      .preview {
        height: 100vh;
      }
      .content-preview{
        height: 120vh;
    }
    body{
      overflow-x: hidden;
    }
    #view-date{
      font-size: 16px;
    }
  }
  
  @media (max-width: 375px) {
    body{
      overflow-x: hidden;
    }
    .book {
      padding: 45px;
      height: 65vh;
    }

    nav{
      padding: 10px;
      overflow-x: hidden;
    }
    nav .a{
      margin-left: 10px;
    }
    .content{
      width: 95vw;
      margin-left: 10px;
      margin-right: 10px;
    }

    .title {
      font-size: 1.5rem;
    }
    .author{
      font-size: 20px;
      margin-top: 8px;
      margin-bottom: 6px;
    }
    .isbn , .rank,.date,.note{
      font-size: 12px;
    }
    .note{
      font-size: 14px;
      margin-right: 0px;
    }
    #abc{
      margin-left: 20px;
    }


    .book{
      padding: 5px;
    }


    nav .b{
      align-items: flex-start;
    }

    nav .a li{
      gap:10px;
    }
    nav ul{
      font-size: 12px;
      gap:12px;
    }
    nav .b li{
      flex-basis: 60px;
    }
    nav .b{
    width: 170px;
    overflow-x: hidden;
    }
    .c{
    font-size: 30px;
    }
    .d{
    font-size: 15px;
    }
    .divider{
    width: 300px;
    }
    .index-img{
      width: 100px;
    }
    .cover{
      margin-right: 10px;
    }
    .text{
      width: 200px;
    }
    .book{
      display: flex;
      flex-wrap: wrap;
      gap: 0px;
    }
   
    .addform {
      width: 80vw;
    }
    .preview {
      height: 100vh;
    }
    .content-preview{
      height: 120vh;
    }
    #view-date{
      font-size: 16px;
    }
  }