.body-octopus {
    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) ; */
  }

  .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: calc(15% - 3em);
    bottom: 13.5%;
    box-shadow: none;
    z-index: 3;
  }
  .essay {
    max-width: 90%;
    text-align: center;
  }
  h2.essay   {
    max-width: 70%;
    margin-top: 0px;
  }

 #openAI-loading {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 49%;
 }

 .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%
}

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

  @media screen and (max-width: 720px) {
    .document {
      width: 92%;
      max-width: 100%;
      padding: 0.75em;
      padding-top: 2.5em;
    }
    .slider-wrapper {
      width: 350px;
      max-width: 100%;
      margin: auto;
    }
    .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%;

    }

  }

  .lds-roller {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
  }
  .lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
  }
  .lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #007bff;
    margin: -4px 0 0 -4px;
  }
  .lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
  }
  .lds-roller div:nth-child(1):after {
    top: 63px;
    left: 63px;
  }
  .lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
  }
  .lds-roller div:nth-child(2):after {
    top: 68px;
    left: 56px;
  }
  .lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
  }
  .lds-roller div:nth-child(3):after {
    top: 71px;
    left: 48px;
  }
  .lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
  }
  .lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
  }
  .lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
  }
  .lds-roller div:nth-child(5):after {
    top: 71px;
    left: 32px;
  }
  .lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
  }
  .lds-roller div:nth-child(6):after {
    top: 68px;
    left: 24px;
  }
  .lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
  }
  .lds-roller div:nth-child(7):after {
    top: 63px;
    left: 17px;
  }
  .lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
  }
  .lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12px;
  }
  @keyframes lds-roller {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
/* 
  .left span {
    text-align: left;
}

.right span {
    text-align: right;
} */


.slider-wrapper {
  position: relative;
  width: 700px;
  margin: 0 auto;
  text-align: center;
  max-width: 100%;
}

.slider-wrapper label.slider-label-left {
  text-align: left;
}

.slider-wrapper label.slider-label-right {
  text-align: right;
}

.slider {
  width: 80%;
  height: 15px;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  opacity: 0.7;
  border-radius: 20px; /* This will give the slider rounded corners */
  background: #d3d3d3; /* This will color the track */
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #04AA6D;
  cursor: pointer;
  transition: .3s ease-in-out; 
  border-radius: 50%; /* This will make the thumb (the part you move) round */
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #04AA6D;
  cursor: pointer;
  border-radius: 50%;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 12px;
} 

/* Reset max-width and max-height for mobile devices */
@media screen and (max-width: 600px) {
    .slider-wrapper {
        width: 90%;
    }
}


.input-container {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.input-container input[type="text"] {
    flex-grow: 1; 
    max-width: 80%;
    border: 2px solid #ccc; /* Border for the input */
    padding: 8px; /* Padding inside the input field */
    border-radius: 4px 0 0 4px; /* Rounded corners on the left side */
    border-right: none; /* Remove right border to merge with button */
    font-family: 'Poppins', sans-serif;

}

.input-container input[type="submit"] {
    padding: 8px 16px; /* Padding inside the button */
    border: 2px solid #ccc; /* Border for the button */
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    background-color: rgb(211, 214, 238);
    border-radius: 0 4px 4px 0; /* Rounded corners on the right side */
    border-left: none; /* Remove left border to merge with input field */
    cursor: pointer; /* Cursor changes to pointer when hovering over the button */
    transition: 0.15s;
}

.input-container input[type="submit"]:hover {
    background-color: rgb(211, 214, 255);
}

.prompt-entry {
    position: absolute;
    bottom: 0;
    width: calc(70%);
    height: calc(23vh - 4em);
    margin: auto;
    background-color: white;
    padding: 2em;
    padding-right: 4em;
    border-radius: 5px;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}
.body-octopus h1 {
    font-size: 20pt;
    margin: 0;
}
.response {
    border: 1px solid black;
    height: 100%;
    width: 33.33%;
    position: relative;
}
.prompt-toggle, .settings-toggle {
    position: absolute;
    right: 0.5em;
    background-image: url("../regroup.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 55%;
    padding: 18px 18px;
    z-index: 3;
    top: 0;
}
.prompt-toggle.covered {
  background-color: transparent;
  background-image: url("../regroup_transparent.png");
}

.prompt-toggle.covered:hover {
  background-image: url("../regroup.png");
  background-position: center;
  background-repeat: no-repeat;
  background-color: white;
  background-size: 55%;
}

.settings-toggle {
    background-image: url("../favicon/favicon-32x32.png");
    /* background-image: url("../settings.png"); */
    top: 0;
    z-index: 3;
    max-width: 40px;
    right: 0.5em;
    transition: width 1.5s
}
.settings-toggle.expand, .prompt-toggle.expand {
  border-radius: 0px 10px 10px 0px;
  box-shadow: none;
}
.info {
  border-radius: 10px 0px 0px 10px;
  right: 3em;
  top: 0em;
  height: 36px;
  padding: 8px;
  background-image: none;
  -webkit-clip-path: inset(-5px 0px -5px -5px);
    clip-path: inset(-5px 0px -5px -5px);
  transform: translateX(50px);
  transition: opacity 0.5s, transform 0.5s;
  box-shadow: none;
} 
.info.extra {
  z-index: 4;
  max-width: none;
}
.hide-scroll {
  overflowY: hidden;
}

.hide-scroll::-webkit-scrollbar {
  display: none;
}

#openAI-response {
  z-index: 5;
  position: absolute;
  width: 50%;
  margin: auto;
  background: white;
  padding: 2em;
  border-radius: 10px;
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@keyframes colorChange {
  0%, 100% { background-color: #f5f5f5; }
  50% { background-color: rgba(211, 214, 238, 0.6); }
}
.animate-background {
  animation: colorChange 3s infinite;
}

.engineered-prompt, .engineered-response {
    overflow-y: auto;
    padding: 1em;
    /*     padding: 2em 2em 1em 1em; */
    height: calc(100% - 2em);
    max-height: 100%;
}
.engineered-prompt {
    margin: 0;
}
.engineered-response {
    margin: 0;
}

#row-1 .response:last-child .prompt-toggle  {
  right: 4em
}
#row-1 .response:last-child .engineered-prompt, #row-1 .response:last-child .engineered-response {
  padding-right: 2.5em
}


#prompt-box {
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    height: 77vh;
    max-height: 80vh;
}

.prompt-row {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

.onboarding-overlay, .settings-overlay, .history-overlay {
    position: absolute;
    width: 90%; 
    max-height: 80%;
    z-index: 5;
    padding: 1em;
    background-color: white;
    border-radius: 5px;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.history-overlay, .settings-overlay, .onboarding-overlay {
    padding: 2em;
    width: 50%;
    margin-top: 10vh;
}
.onboarding-overlay {
    margin: auto;

}

.vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
    margin-left: 10px;

}
.vertical p {
    font-size: 10pt;
    color: gray;
    margin-top: 0;
}
p.subtitle {
    font-size: 10pt;
    color: gray;
    margin-top: 0;
    text-align: left;
}

@media screen and (max-width: 720px) {
    .prompt-entry {
        width: calc(100% - 5em);
        max-width: 100%;
    }
    .response {
        width: 100%;
    }
    #prompt-box {
        flex-direction: column;
    }
    .prompt-row {
        flex-direction: column-reverse;
    }
}