: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;
}

html,
body {
    margin: 0;
    height: 100%;
    min-height: 100%;
}

body {
  font-family: Arial, sans-serif;
  margin: 20px;
  display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.home {
  padding: 0 30px;
}

.home .text {
  font-size: 30px;
  font-weight: 500;
  color: var(--text-color);
  padding: 8px 0px;
}

h1 {
  text-align: center;
}

.sidebar.close {
  width: 88px;
  position: fixed;
  top: 0;
}

.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,
.failed-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  text-align: center;
}

.close-success-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

a {
  color: black;
}

.report-item {
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  padding: 10px 20px;
  margin-bottom: 20px;
  background-color: white;
  cursor: pointer;
}

.report-item:hover{
  background-color: #CCCCCC;
}

.report-item strong {
  font-size: 18px;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.report-item .date {
  font-size: 14px;
  margin-bottom: 5px;
}

.report-item .progresstext {
  font-size: 14px;
  margin-bottom: 5px;
}

.report-item .duration {
  font-size: 14px;
  margin-bottom: 5px;
}

.report-item .view-details {
  font-size: 14px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.report-item .view-details:hover {
  background-color: var(--primary-color-dark);
}

.report-item .delete-report {
  font-size: 14px;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  background-color: transparent;
}

.report-item .delete-report:hover {
  background-color: #CCCCCC;
}

.report-item .reorder-btn {
  font-size: 14px;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  background-color: transparent;
}

.report-item .reorder-btn:hover {
  background-color: #CCCCCC;
}

.report-item .add-challenge-btn {
  font-size: 14px;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  background-color: transparent;
}

.report-item .add-challenge-btn:hover {
  background-color: #CCCCCC;
}

.report-item .challenge-added-btn {
  font-size: 14px;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: transparent;
}

#loading {
  width: 10vw;
  height: 10vw;
  border: 2vw solid #f3f3f3;
  border-top: 2vw solid var(--primary-color);
  border-radius: 100%;
  margin: auto;
  animation: spin 1s infinite;
}

#loading.display {
  display: flex;
}

.appbar {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
}

#generateBtn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: .5vw;
  font-size: 1vw;
  cursor: pointer;
  border-radius: .5vw;
}

#generateBtn:hover {
  background-color: var(--primary-color-dark);
  color: white;
  border: none;
  padding: .5vw;
  font-size: 1vw;
  cursor: pointer;
  border-radius: .5vw;
}

.center-text {
  margin: 0;
  font-size: 2vw;
}

.right-placeholder {
  flex-grow: 0;
}

hr.solid {
  margin: 0px;
  padding: 0px;
  border-top: 0.5vh solid #ddd;
}

#closeBtn {
  font-size: 1vw;
  color: var(--primary-color);
  background-color: var(--primary-color-light);
}

#closeBtn:hover {
  background-color: var(--toggle-color);
}

.footerBtn{
  cursor: pointer;
}

/* table */

table {
  border-spacing: 0;
  width: 100%;
}

th {
  cursor: pointer;
}

th,
td {
  text-align: left;
  padding: 16px;
}

th,
td {
  border: 1px solid black;
}

.column-header {
  background-color: #f8fafd;
}

.searchInput {
  width: 100%;
  padding: 16px;
  border-bottom: 1px solid #ddd;
  border-top: none;
  border-left: none;
  border-right: none;
  border-top-right-radius: 25px;
  border-top-left-radius: 25px;
}

tr {
  background-color: white;
}

td{
  border: 1px solid black !important;
}

.user-table {
margin: 2vw;
  margin-inline: 5vw;
  border: 1px solid #ddd;
  border-radius: 25px;
}

tbody {
  background-color: white;
}


.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #695cfe;
  color: white !important;
  border: none;
  /*change the hover text color*/
}

/*below block of css for change style when active*/

.dataTables_wrapper .dataTables_paginate .paginate_button:active {
  background: #695cfe !important;
  color: white !important;
  border: none;
}

.dataTables_wrapper {
  background-color: white;
}



#story-table_wrapper {
  padding: 10px;
}

#response-table_wrapper {
  padding: 10px;
}

/* end of table code */



/* export button code */
.export-btn-container {
  display: flex;
  justify-content: flex-end;
  padding: 16px;
  border-bottom: 1px solid #ddd;
  border-top: none;
  border-left: none;
  border-right: none;
  border-top-right-radius: 25px;
  border-top-left-radius: 25px;
  background-color: white;
}


.preEmpt-btn {
  padding: 10px 16px;
  background-color: var(--primary-color);
  color: var(--sidebar-color);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--tran-04);
}

.preEmpt-btn:hover {
  background-color: var(--primary-color-dark);
}

.dataTables_filter input {
  width: 15rem;
}

#questionTableTextArea{
  background-color: var(--primary-color-dark);
  color: white;
}

#questionTextArea{
  background-color: var(--primary-color-dark);
  color: white;
}

#surveyToolsBanner{
  background-color: var(--primary-color-dark);
}

#responsesIcon, #thinkIcon, #analysisIcon, #homeIcon{
  color: var(--primary-color-dark);
}

#viewAllResponsesBtn, #thinkBtn, #analysisBtn{
  background-color: white;
}

#viewAllResponsesBtn:hover, #thinkBtn:hover, #analysisBtn:hover{
  background-color: lightgrey;
}


#homeBtn:disabled, #leftNavBtn:disabled, #rightNavBtn:disabled, tn:disabled{
  cursor: not-allowed;
  opacity: 0.5;
}

#searchBtn{
  font-weight: bold;
  font-size: 1vw;
  width: auto;
  background-color: var(--toggle-color);
  color: #695CFE;
  border-radius: 1rem;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#searchBtn:hover{
  background-color: #CCCCCC;
}

.report-item .delete-report:hover{
  background-color: #8B1A10;
}

.report-item .delete-report:hover img{
  filter: grayscale(100%) invert(100%);
}

.report-item .reorder-btn:hover{
  background-color: #3A00E5;
}

.report-item .reorder-btn:hover img{
  filter: grayscale(100%) invert(100%);
}

.report-item .add-challenge-btn:hover{
  background-color: #3A00E5;
}

.report-item .add-challenge-btn:hover img{
  filter: grayscale(100%) invert(100%);
}

#orderBtn{
  position: fixed; 
  right: 5rem; 
  padding: 2rem; 
  border-radius: 50%; 
  background-color: #695CFE;
  cursor: pointer;
  z-index: 100;
}

#orderBtn:hover{
  background-color: #3629cb
}

#helpMenu{
  background-color: white;
  padding: 1rem;
  border-radius: 3rem;
  margin-right: 1rem;
  box-shadow: 0rem 1.5rem 3rem 0rem rgba(0,0,0,0.5);

}

#backArea{
  padding-top: 1rem;
  z-index: 100;
}

#helpMenuArea{
  padding-top: 1rem;
  z-index: 100;
}

#helpMenu ul li{
  font-size: 2.5rem;
}

#helpMenuBtn{
  height: 5rem;
  padding: 1rem; 
  border-radius: 50%; 
  background-color: #695CFE;
  cursor: pointer;
}

#helpMenuBtn:hover{
  background-color: #3629cb
}

.helpMenuOption{
  background-color: transparent;
  width: 100%;
  border-radius: 3rem;
  font-size: 1.5rem;
}

.helpMenuOption:hover{
  background-color: var(--toggle-color);
}

.backToSynopsesBtn{
  height: 5rem;
  padding: 1rem; 
  border-radius: 50%; 
  background-color: #695CFE;
  cursor: pointer;
  color: white;
}

.synopses-container:hover .backToSynopsesBtn {
  /* Change the background color of the button */
  background-color: #3629cb; /* Example hover background for the button */
}

.synopses-container:hover div {
  /* Change the text color */
  color: #ff0000; /* Example hover color for the text */
}
.worldSection{
  display: none;
}

.worldSection .active{
  display: block;
}

#thinkBtn:disabled{
  opacity: 0.5;
  cursor: none;
}

/* Think modal grid */
#thinkModalGrid {
  grid-template:
      'thinkTitleArea'
      'thinkDropdownArea'
      'thinkArea'
      'thinkCloseArea'
  ;
  display: grid;
  width: 100%;
  height: 100%;
  padding-left: 2vw;
  padding-right: 2vw;
  padding-bottom: 2vw;
  grid-template-rows: auto auto 1fr auto;
  gap: 2rem;
}

#thinkTitleArea {
  grid-area: thinkTitleArea;
}

#thinkDropdownArea {
  grid-area: thinkDropdownArea;
}

#thinkArea {
  grid-area: thinkArea;
  overflow-y: auto;
}

#thinkCloseArea {
  grid-area: thinkCloseArea;
}

.item-receipt-td {
  font-size: 1.5rem; 
  padding: 1rem;
}

.price-receipt-td {
  font-size: 1.5rem;
  padding: 1rem;
  text-align: right;
}

.subtotal-receipt-tr{
  background-color: #EEE;
  height: 2.5rem;
}

.discount-receipt-tr{
  background-color: #ccc;
  height: 2.5rem;
}

.grand-total-receipt-tr{
  background-color: #695CFE; 
  height: 2.5rem; 
  color: white
}

.subtotal, .discount, .grand-total {
  font-size: 1.5rem; 
  padding: 1rem; 
  font-weight: bold;
  text-align: right;
}

.receipt-tr:first-child {
  border-bottom: none;
}

.receipt-tr:last-child {
  border-top: none;
}

.receipt-tr:not(:first-child):not(:last-child) {
  border-top: none;
  border-bottom: none;
}

.back-modal-btn{
  color: #695CFE
}

.back-modal-btn:hover{
  color: #3629cb
}

#exportHelpBtn{
  background-color: #695CFE;
  color: white;
}

#exportHelpBtn:hover{
  background-color: #3629cb;
}