@import url(corporate_colors.css);

/* AI overview layout */

#ai-helpful-question {
  /*Question of the AI overview feedback*/
  font-size: medium;
  padding: 0px;
}

.scale-button {
  /*Voting buttons for the AI overview*/
  padding: 10px 25px;
  margin: 10px;
  background-color: lightgray;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 30%;
  font-size: 12px;
}

.scale-button.active {
  background-color: steelblue;
  color: white;
}

#rating-scale {
  width: 95%;
  display: flex;
  justify-content: space-between;
}

.black-line {
  /*To separate the AI Summary from the feedback*/
  height: 1px;
  width: 90%;
  background-color: rgb(61, 61, 61);
}

/* Search Bar Layout */

#search-bar {
    /* Parent element */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 0;
    margin: 20px 0 10px 0px ;
    grid-area: search;
}

#store-dropdown {
    flex: 0 0 auto;
    margin: 0px 0px 0px 0px;
}

#store-select{
    border-radius: 10px;
    padding: 10px;
    margin: 0px 10px 0px 0px;
    font-size: large;
} 

.search-engine-button {
    flex: 0 0 auto;
    font-size: large;
}

/* Search Result Display */






.chunk-metadata-box {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto; 
  gap: 10px;
  width: 100%;
  align-items: center;
  height: 70px;
  text-align: left;
}

/* Wrapper box for the text content of one chunk */
.chunk-text-box{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
  color: black;
  width: auto;
  padding-left: 20px;
}

/*For the display of the search results: Text has a small distance to the border*/
.left {
  padding-left: 20px;
}

/*For the display of the search results: The triangle (arrow-button) is aligned in the center of its box*/
.right {
  text-align: center;
}

.arrow {
  background-color: transparent;
  color: white;
  cursor: pointer;
}



#ai-header, #search-header, #settings-header, #feedback-header{
    padding: 0px;
    /*margin-top: 1em;
    margin-bottom: 0.5em;
    margin-left: 20px;*/
    margin: 0 auto;
    font-size: 24px;
    text-align: center;
}

.header-3-box{
    /*color: white;
    background-color:#023d6b ;
    margin-top: 10px;*/
    color: #023d6b;
    margin-top: 5px;
    padding-left: 3em;
    align-content: center;
}

#AI-answer { 
    font-size: larger;
    line-height: 200%;
}

#AI-disclamer{
    font-style: italic;
    font-size: small;
}

#search-results{
  position: relative;
  margin-top: 20px;
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);*/
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%; 
  height: auto; 
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Uppermost div of one distinct chunk / search result */
.chunkbox {
  width: 90%;
  height: auto;
  margin: 0px;
  margin-bottom: 15px;
  justify-content: space-between;
  align-items: center;
}

.chunk-box-header {
  display: grid;
  width: 100%;
  height: min-content;
  padding-top: 5px;
  padding-bottom: 5px;
  grid-template-columns: 95% 5%;
  grid-template-rows: auto;
  text-align: left;
  align-items: center;
  padding-left: 0px;
  background-color: #023d6b;
  color: white;
  margin: 0px;
  cursor: pointer;
}

.feedback-button-container{
    margin-top: 7px;
    padding-right: 10px;
}

.vote-button {
    padding: 10px;
    background: #023d6b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* .vote-button.active {
    background: #b9d25f;
    color: white;
    transform: scale(1.2);
} */

.votedown.active {
    background: red;
    color: white;
    transform: scale(1.2);
}

.voteup.active {
    background: #b9d25f;
    color: white;
    transform: scale(1.2);
}

.voteneutral.active {
    background: #939304;
    color: white;
    transform: scale(1.2);
}


.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    /*border-top: 4px solid #000;*/
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
  }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.overlay-box-blue {
  /*Background box for the AI Summary and the header*/ 
  position: relative;
  margin-top: 20px;
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);*/
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%; 
  height: auto; 
  background-color: #def;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 15px;
}

.overlay-box-white {
  /*Background box for the actual AI Summary*/
  margin: 0px;
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);*/
  justify-content: space-between;
  width: 90%; 
  height: auto; 
  background-color: white;
  align-items: center;
}

.overlay-box-gray {
  /*Background box for the AI Summary and the header*/ 
  position: relative;
  margin-top: 20px;
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);*/
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%; 
  height: auto; 
  background-color: #ebebeb;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 15px;
}

.grid-1x2 {
  /*Feedback area in the AI Summary*/
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto; 
  gap: 10px;
  width: 100%;
  align-items: center;
  height: 70px;
  text-align: left;
  /*padding-left: 20px;*/
}

#submit-feedback:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

#feedback-questions {
  font-size: medium;
  padding-left: 20px;
  padding-right: 10px;
}

#feedback-checkbox-area {
  padding-top: 30px;
  text-align: left;
  align-items: left;
}

#page-overlay {
  /*Entire page is overlayed by a gray box while the search results get loaded from the backend*/
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  color: white;
}

#page-overlay.hidden {
  display: none;
}

.info-box {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 20px;
}

.info-text {
  visibility: hidden;
  width: 400px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  top: 125%;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 14px;
}

.info-box:hover .info-text {
  visibility: visible;
  opacity: 1;
}

.info-circle {
  display: inline-block;
  padding: 6px 10px;
  background-color: #023d6b;
  color: white;
  border-radius: 50px;
  font-weight: bold;
  font-size: 14px;
  user-select: none;
}

.grid-1x2-checkbox {
  /*Grid for the checkbox at the end of the page*/
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto; 
  gap: 10px;
  width: 100%;
  align-items: center;
  height: 30px;
  text-align: left;
}