:root {
  --body-color: #E4E9F7;
  --sidebar-color: #FFF;
  --primary-color: #695CFE;
  --primary-color-dark: #3629cb;
  --primary-color-light: #F6F5FF;
  --toggle-color: #DDD;
  --text-color: #707070;

  --tran-02: all 0.2s ease;
  --tran-03: all 0.3s ease;
  --tran-04: all 0.4s ease;
  --tran-05: all 0.5s ease;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f1f1f1;
  margin: 0;
  padding: 20px;
}

h1 {
  color: #333;
}

#generateStoryForm {
  width: 100%;
  padding-top: 2vw;
  padding-bottom: 2vw;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 12px;
  font-size: 1vw;
}

textarea {
  height: 100px;
}

button {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#generateButton {
  background-color: var(--primary-color);
  color: white;
}

#generateButton:hover {
  background-color: var(--primary-color-dark);
}

#viewReportButton {
  background-color: var(--primary-color-light);
  color: var(--primary-color);
  padding-inline: 1vw;
}

#viewReportButton:hover {
  background-color: var(--toggle-color);
}

button:hover {
  background-color: #45a049;
}

.error {
  color: red;
  margin-bottom: 12px;
}

.success {
  color: green;
  margin-bottom: 12px;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  max-height: 400px;
  /* Set a maximum height for the popup */
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  overflow-y: auto;
  /* Enable vertical scroll when content exceeds the height */
}

.popup p {
  margin-bottom: 10px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.success-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  text-align: center;
}

.close-success-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.invalid-feedback {
  color: red;
}

#viewReportPage {
  display: none;
}

#viewReportPage {
  display: grid;
  grid-template:
    'viewReportSideNav viewReportContent';
  width: 100vw;
  grid-template-columns: 50% 50%;
}

#viewReportSideNav {
  grid-area: viewReportSideNav;
}

#viewReportContent {
  grid-area: viewReportContent;
  width: auto;
  color: black;
}

#checkOrderSideNav {
  grid-area: checkOrderSideNav;
}

#checkOrderContent {
  grid-area: checkOrderContent;
}

#checkOrderPage {
  display: grid;
  grid-template:
      'checkOrderSideNav checkOrderContent';
  width: 100vw;
  grid-template-columns: 40% 60%;
}




.tag-remove {
  margin-left: .5vw;
  color: var(--primary-color);
}

#chapterRadioContainer {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: .5vw;
}

/* new Question Dropdown */
.question-set-dropdown {
  position: relative;
  display: inline-block;
}

.question-set-dropbtn {
  background-color: white;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: .25vw;
  color: black;
  cursor: pointer;
}

.question-set-dropbtn:hover {
  background-color: var(--primary-color);
  color: white;
}

.question-set-dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  z-index: 1;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.question-set-dropdown-content .question-set-column {
  float: left;
  width: 50%;
  padding: 10px;
}

.question-set-dropdown-content .question-set-column a {
  display: block;
  color: black;
  padding: 5px 0;
  text-decoration: none;
  font-size: 1vw;
}

.question-set-dropdown-content .question-set-column a:hover {
  background-color: #f1f1f1;
}

.show {
  display: block;
}

#shareReportGrid {
  display: grid;
  grid-template:
    'subjectArea questionArea'
    'messageArea chapterArea'
    'emailArea chapterArea'
    'checkboxArea checkboxArea'
    'buttonArea buttonArea'
  ;
  width: 100%;
  gap: .5vw;

}

#subjectArea {
  grid-area: subjectArea;
}

#messageArea {
  grid-area: messageArea;
}

#emailArea {
  grid-area: emailArea;
}

#questionArea {
  grid-area: questionArea;
}

#chapterArea {
  grid-area: chapterArea;
}

#checkboxArea {
  grid-area: checkboxArea;
}

#buttonArea {
  grid-area: buttonArea;
}

.order-tooltip-btn {
  background-color: #CCC;
  position: relative;
  border: none;
  border-radius: 50%;
  /* Make the button circular */
  width: 1.75vw;
  /* Adjust the width and height as needed */
  height: 1.75vw;
  padding: 0;
  /* Remove padding to make it circular */
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: .5vw;
  margin-bottom: .5vw;
}

.order-tooltip-btn:hover {
  background-color: var(--toggle-color);
}




.order-tooltip-btn:hover+.order-tooltip {
  display: block;
}

.order-tooltip {
  display: none;
  position: absolute;
  background-color: var(--primary-color-dark);
  color: #fff;
  padding: 1vw;
  border-radius: 1vw;
  z-index: 1;
  width: auto;
  max-width: 80%;
}

.chapter-tooltip-btn{
  background-color: #CCC;
  position: relative;
  border: none;
  border-radius: 100%;
  /* Make the button circular */
  width: 2rem;
  /* Adjust the width and height as needed */
  height: 2rem;
  padding: 0;
  /* Remove padding to make it circular */
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: .5vw;
  align-content: center;
  color: var(--primary-color);
}

.chapter-tooltip-btn:hover{
  background-color: var(--toggle-color);
}

.chapter-tooltip-btn:hover+.chapter-tooltip {
  display: block;
}

.chapter-tooltip {
  display: none;
  position: absolute;
  background-color: var(--primary-color-dark);
  color: #fff;
  padding: 1vw;
  border-radius: 1vw;
  z-index: 1;
  width: 100%;
}

.help-tooltip {
  visibility: hidden;
  display: block;
  background-color: var(--primary-color-dark);
  color: #fff;
  padding: 1vw;
  border-radius: 1vw;
  z-index: 1;
  width: 100%;
  text-align: center;
}

#currentDoc{
  background-color: lightgray;
  padding: .5vw;
  padding-right: 1vw;
  color: black;
  border-radius: .5vw;
}

#currentDoc option{
  background-color: lightgrey;
  padding: 1vw;
  color: black;
  border-radius: .5vw;
}

.getStartedBtn {
    border-radius: 20px;
    border: none;
    padding: 2vh;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

#getStartedWorldBtn {
    background-color: var(--primary-color);
    color: white;
}

#getStartedWorldBtn:hover {
    background-color: var(--primary-color-dark);
}

.footerBtn{
  cursor: pointer;
}

.hyperlinkBtn:hover{
  color: var(--primary-color-dark);
}

#export-help-btn{
  background-color: white;
  position: relative;
  border: none;
  border-radius: 100%;
  /* Make the button circular */
  width: 3rem;
  /* Adjust the width and height as needed */
  height: 3rem;
  padding: 0;
  /* Remove padding to make it circular */
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  color: #695CFE;
  font-size: 4rem;
}

#export-help-btn:hover{
  color: #3629cb;
}
