.body-essay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    padding: 0;
    margin: 0;
    height: unset;
  }
  .document {
    background-color: white;
    width: 50%;
    margin: auto;
    min-height: 100vh;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 2em;
    border-radius: 5px;
    position: relative;
    /* border: 1px solid rgba(0, 0, 0, 0.8) ; */
  }
  .extension-cta {
    width: 50%;
    margin: auto;
  }

  .essay-button {
    display: inline-block;
    background-color: rgb(211, 214, 238);
    font-family: Poppins, sans-serif;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    margin: 6px;
    padding: 10px;
    position: relative;
    border: none;
    transition: 0.15s;
  }
  .essay-button:hover {
    cursor: pointer;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);

  }
  #submit-essay {
    display: inline-block;
    background-color: rgb(211, 214, 238);
    position: absolute;
    right: 10px;
    top: 5px;
    box-shadow: none;
  }
  .essay {
    max-width: 70%;
    text-align: center;
  }
  h2.essay   {
    max-width: 70%;
    margin-top: 0px;
  }

 #openAI-loading, .doorstop-cta {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: calc(50% - 40px);
 }
 .doorstop-cta {
  display: none;
  color: #007bff;
  width: 40%; 
  max-width: 40%;
  left: 30%;
  font-weight: bold;
  top: calc(50% + 80px);
 }

 .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background-color: rgba(128, 128, 128, 0.5); /* gray with 50% opacity */
    z-index: 4; /* Ensure it's above other content */
}

.highlight {
    background-color: #ffffbe;
  }

.feedback-div {
    position: absolute;
    border: 1px solid gray;
    padding: 12px;
    border-radius: 4px; 
    /* margin-top: 5px; */
    background-color: #edf2fa;
    width: 22%;
    max-width: 22%;
    right: 1%;
    font-size: 10pt;
}

.essay.detail {
  max-width: 60%;
}

  @media screen and (max-width: 720px) {
    .desktop {
      display: none;
    }
    #cta-top {
      transition: opacity 0.3s;
      opacity: 0;
      background-color: rgb(211, 214, 238);
      width: 100%;
      margin: 0;
      border-radius: 0;
    }
    .doorstop-cta {
      max-width: 80%;
      width: 80%;
      left: 10%;
    }
    .document {
      width: 92%;
      max-width: 100%;
      padding: 0.75em;
      padding-top: 2.5em;
    }
    .extension-cta {
      width: 92%;
      padding: 0.75em;
      max-width: 100%;
    }
    .slider-wrapper {
      width: 350px;
      max-width: 100%;
      margin: auto;
    }
    .reset-styles .slider {
      width: 100%;
    }
    .essay {
      max-width: 98%;
      width: 95%;
      text-align: left;
    }
    .essay.detail {
      max-width: 98%;
    }
    .essay-button {
      margin: 8px;
      padding: 10px 16px;
    }

    .feedback-div {
      bottom: 0;
      width: 100%;
      display: none;
      max-width: 100%;

    }

  }
