.content-logo {
  display: flex;
  gap: 20px;
  padding: 20px;
}
.input-with-info {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 10px auto;
}

.input-with-info input[type="text"] {
  width: 100%;
  padding-right: 50px;
  box-sizing: border-box;
}

.info-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%; /* Push above the icon */

  transform: translateX(-50%) translateY(0); /* Center horizontally */

  background: #f3eafe;
  color: #9056d6;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;

  max-width: 200px;
  width: max-content;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;

  opacity: 0;
  transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
  pointer-events: none;
  z-index: 999;
}

/* Show tooltip on hover */
.info-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px); /* Slight animation upward */
}

.box1 {
  width: 50%;
  padding: 20px;
  background-color: white;
  text-align: right;
}

.box2 {
  width: 50%;
  padding: 20px;
  background-color: white;
  text-align: left;
  font-size: 30px;
}

/* Logo styling inside Box 1 */
.box1 img {
  height: 80px;
  max-width: 300px;
}
.box1,
.box2 {
  flex-shrink: 1;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
#wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
.add-border {
  border: 5px solid #9056d6 !important; /* Border thickness, style, and color */
  padding: 30px;
  margin: 10px;
  margin-left: 50px;
  margin-right: 50px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.image-container {
  display: flex;
  align-items: end;
  margin-left: auto;
  /*justify-content: flex-end !important; !* Push image to the right *!*/
}

.image-container img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.text-box {
  display: block;
  background-color: white;
  padding: 10px 15px;
  border: 1px solid #9056d6 !important;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  text-align: left;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.highlighted-text {
  font-size: 24px;
  font-weight: bold;
  color: #9056d6;
  text-align: left;
}

/* Styling for normal text */
.normal-text {
  font-size: 16px;
  color: black;
  text-align: left;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 2.5em;
}
.footer-context {
  font-size: 1.1rem; /* small, scalable */
  font-weight: bold;
  color: #333;
  text-align: center;

  margin: 5px 0 15px;
}

.footer-logo {
  max-width: 100%;
  width: 200px;
  height: auto;
}
.footer-logo-visavis {
  width: 260px;
  max-width: 100%;
  height: auto;
}
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-left h5 {
  padding-left: 20px;
}
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 280px;
  padding: 10px 15px;
  box-sizing: border-box;
}
.footer-center p {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}
.footer-center img.footer-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
}
.footer-center img.footer-logo-mever {
  width: 160px;
  max-width: 100%;
  height: auto;
}
.right-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 400px;
}
.funded-row {
  display: flex;
  align-items: center;
}
.funded-description {
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.5;
}
.emif-logo {
  width: 300px;
  margin-right: 10px;
}

.funded-by {
  font-size: 15px;
  color: #333;
  margin: 0;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.button-group button {
  padding: 15px 30px;
  font-family: "Urbanist", Tahoma, sans-serif;
  font-size: 18px;
  border: none;
  background-color: #9056d6;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.button-group button:hover {
  background-color: grey;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  #video_verify {
    width: 90%;
  }

  .input_box li input[type="text"] {
    width: 90%;
    font-size: 12px;
  }

  .btn {
    width: 90%;
    font-size: 16px;
    height: 40px;
  }
}
/* Responsive design */
@media (max-width: 600px) {
  .headernew {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    width: 60px;
    margin-bottom: 10px;
  }

  .quote {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .content-logo {
    flex-direction: column;
    align-items: center;
    padding: 5px 0;
    margin: 0;
    gap: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .box1,
  .box2 {
    width: 100%;
    padding: 5px 0;
    text-align: center;
    margin: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .box1 img {
    max-width: 120px; /* smaller logo */
    height: auto;
  }

  .box2 {
    font-size: 18px; /* smaller slogan text */
    line-height: 1.1;
    margin-top: 0;
  }
  #wrapper1_1 h1 {
    margin-top: 0;
    font-size: 22px; /* slightly smaller main heading */
  }
  .box2 p {
    margin-bottom: 0;
  }
}
body {
  /*font-family: 'Ubuntu', sans-serif;*/
  font-family: "Urbanist", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  border: 0;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
  outline: 0;
  padding: 0;
  vertical-align: baseline;
  cursor: default;
  margin: 0;
  background: white; /* Olga */
  /* background-attachment: fixed;
    overflow-x: hidden;*/
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  display: table;
}

#wrapper h1 {
  margin-bottom: 0;
  /*font-family: 'Bitter', sans-serif;*/
  font-size: 40px;
  font-weight: bold;
}

#wrapper {
  text-align: center;
  position: relative;
}

#wrapper1_1 h1 {
  margin-bottom: 0;
  font-size: 30px;
  font-weight: 200;
}

#wrapper1_1 {
  text-align: center;
  position: relative;
}

.input_box li input[type="text"] {
  display: block;
  margin: 0;
  font-size: 18px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  background-color: whitesmoke;
  max-width: 600px;
  font-family: "Urbanist", Tahoma, sans-serif;
  padding: 10px;
  border: none;
  border-bottom: solid 2px #969696;
}

.input_box li input[type="text"]:focus {
  outline: none;
}

.input_box {
  list-style: none;
  margin-top: 2px;
  margin-bottom: 0;
}
.input_box li input[type="text"] {
  text-align: center;
}

.btn {
  background-color: #9056d6; /* Olga */
  /*font-family: 'Ubuntu', sans-serif;*/
  font-family: "Urbanist", Tahoma, sans-serif;

  font-weight: bold;
  font-size: 18px;
  width: 100px;
  height: 42px;
  color: #fff;
  cursor: pointer;
  border: 1px solid #9056d6; /* Olga */
  line-height: 1.42857143;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: 0;
  margin: 0 0 0 -3px;
  -webkit-transition: all 1s ease 0s;
  -moz-transition: all 1s ease 0s;
  -o-transition: all 1s ease 0s;
  transition: all 1s ease 0s;
  border: 1px solid #9056d6;
  border-radius: 8px;
}
.btn_feedback {
  background-color: #9056d6;
  font-family: "Urbanist", Tahoma, sans-serif;

  font-weight: bold;
  font-size: 18px;
  width: 150px;
  height: 42px;
  color: #fff;
  cursor: pointer;
  border: 1px solid #9056d6;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}
.btn_feedback:hover {
  background-color: grey;
  transform: scale(1.05);
}
.bolded {
  color: #af0e09;
  font-weight: bold;
}

#processing,
#processing_error {
  display: none;
  text-align: center;
  padding: 15px;
  border: 1px solid #bce8f1;
  border-radius: 4px;
  color: #31708f;
  font-size: 17px;
  background-color: #d9edf7;
  max-width: 470px;
  margin: -10px auto 15px;
  text-align: left;
  word-wrap: break-word;
}
#processing_error {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

#wrapper_result {
  text-align: center;
  margin-left: -8px;
  margin-top: 30px;
  display: none;
  margin-bottom: 60px;
}
#wrapper_result {
  overflow-x: hidden;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.content-wrapper {
  flex-wrap: wrap;
  max-width: 100%;
  overflow: hidden;
  padding-right: 0;
}
.multiple-borders {
  box-shadow: 0 0 0 5px #fff, 0 0 0 10px #fff; /* Olga */
  display: inline-block;
  border-radius: 20px;
  margin-bottom: 35px;
}
#result_image {
  vertical-align: bottom;
  /*max-height: 300px;*/
  border-radius: 20px;
  cursor: grab;
  touch-action: none;
}

footer {
  display: block;
  padding: 10px 0; /* reduce top and bottom padding */
  margin: 0;
}
footer img {
  width: 300px; /* Olga */
  padding: 10px 20px;
  float: right;
}
footer p {
  display: inline-block;
  line-height: 35px;
  font-size: 22px;
}

#upload_form {
  width: 100%;
  max-width: 963px;
  margin: 0 auto;
  text-align: center;
}

#error_upload,
#error_image {
  margin-right: 16px;
  position: relative;
  top: -10px;
  color: #bf3f3b;
  font-weight: bold;
  font-size: 15px;
  display: none;
}
#upload-div {
  width: 80%;
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 20px;
  padding: 0 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#upload_form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#upload-div h3 {
  padding: 0 0 10px 0;
  margin: -30px 0 20px;
  border-bottom: 1px dotted #ddd;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  font-weight: normal;
}

#upload-div p {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  display: block;
  -webkit-margin-before: 1em;
  -webkit-margin-after: 1em;
  -webkit-margin-start: 0;
  -webkit-margin-end: 0;
  line-height: 22px;
}

#upload-div input[type="text"],
#upload-div input[type="url"],
#upload-div input[type="file"] {
  background-color: #edece8;
  font-size: 16px;
  width: 600px;
  height: 40px;
  margin: 10px auto;
  padding: 2px 15px 2px 15px;
  /*border: none;*/
  color: #000000;
  outline: none;
  border-radius: 5px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.image-upload {
  background-color: #edece8;
  font-size: 16px;
  width: 100%;
  max-width: 600px;
  height: 40px;
  margin: 10px auto;
  padding: 2px 15px;
  color: #000000;
  outline: none;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.image-upload > input {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.image-upload label img {
  height: 40px;
  width: 40px;
  vertical-align: middle;
  line-height: 2em;
  gap: 100px;
}
.image-upload img {
  cursor: pointer;
}
.image-upload label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}
#upload-div #submit-btn,
#new_tab-btn,
#plus-btn {
  margin-right: auto;
  margin-left: auto;
  margin-top: auto;
  font-size: 16px;
  padding: 15px 15px 15px 15px;
  cursor: pointer;
  border: none;
  background: #9056d6;
  color: #ffffff;
  text-align: center;
  border-radius: 5px;
  transition: all 0.15s linear;
}

/* Content Part */
#navigation ul {
  min-width: 100%;
}
#navigation a {
  text-decoration: none;
  color: white;
}

#navigation ul {
  padding: 3px 0;
  text-align: right;
  margin: 0 20px 0 0;
}

#navigation ul li {
  list-style-type: none;
  display: inline;
  cursor: pointer;
}

#navigation li:before {
  content: " | ";
}

#navigation li:first-child:before {
  content: none;
}

#navigation {
  background-color: #9056d6; /* Olga */
  font-size: 14px;
  color: white;
  /* font-family: "Bitter", sans-serif; */
  font-family: Arial, sans-serif;
  /* font-family: "Urbanist", Tahoma, sans-serif; */
  padding: 0 20px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .right-side {
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo,
  .emif-logo {
    max-width: 200px;
  }
  .footer-logo-visavis {
    max-width: 300px;
  }
}

.smaller-upload {
  max-width: 90%;
  margin: 0 auto;
}

.smaller-upload .image-upload {
  padding-right: 2.5em;
  position: relative;
  box-sizing: border-box;
}

.smaller-upload .info-icon {
  position: absolute;
  right: 0.8em;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5em;
  height: 1.5em;
  z-index: 2;
}

.smaller-upload .info-icon::after {
  right: -1em;
}

.evidence-very-strong {
  color: #d32f2f; /* Red */
  font-weight: bold;
}

.evidence-strong {
  color: #f57c00; /* Orange */
  font-weight: bold;
}

.evidence-moderate {
  color: #fbc02d; /* Yellow */
  font-weight: bold;
}

.evidence-weak {
  color: #3d5a80; /* Blue */
  font-weight: bold;
}

.result-flex-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.result-texts {
  flex: 1;
}

.evidence-legend {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  line-height: 1.6;
}

.evidence-legend div {
  margin-bottom: 8px;
  white-space: nowrap;
}
.legend-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #9056d6;
}
section h1 {
  font-size: 32px;
  margin-block: 20px;
}

#wrapper_result {
  margin: 30px auto 60px auto; /* Center horizontally */
  max-width: 1200px; /* Set max width */
  width: 90%; /* Responsive width */
  display: none;
  text-align: center; /* Center content */
}
.content-wrapper {
  justify-content: center; /* Center columns */
  max-width: 100%; /* Constrain width */
  margin: 0 auto; /* Center wrapper */
}

.image-container {
  justify-content: center; /* Center image */
}
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    align-items: center;
  }
}
.text-box {
  width: 100%;
  max-width: none; /* remove limit */
}
/* For the left image column */
.column.image-container {
  flex: 1;
}

/* For the right text column */
.column.text-box {
  flex: 2;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
}
.visavis-link {
  color: #9056d6;
  text-decoration: none;
}

.visavis-link:hover {
  text-decoration: underline;
}

.input_box {
  margin-bottom: 10px;
}
.image-upload > input {
  position: absolute;
  top: auto !important;
  left: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.image-upload {
  position: relative;
  z-index: 1;
}

.input-with-info {
  z-index: 2;
  position: relative;
}

/* Responsive design elements */
@media (max-width: 768px) {
  #navigation ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 2px;
    margin: 0;
    white-space: nowrap;
    min-width: fit-content;
  }

  #navigation ul li {
    display: inline-block;
    font-size: 11px;
    flex-shrink: 1;
  }

  #navigation a {
    font-size: 11px;
    padding: 2px 3px;
    display: inline-block;
  }

  #navigation li:before {
    content: "|";
    margin: 0 2px;
  }

  #navigation li:first-child:before {
    content: none;
  }
}

@media (max-width: 768px) {
  #wrapper {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .add-border {
    margin: 10px 0;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  #upload-div,
  #upload_form,
  .input-with-info,
  .image-upload {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #upload-div input[type="text"],
  #upload-div input[type="file"] {
    width: 100%;
  }
  .footer-bottom-texts {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 30px;
    box-sizing: border-box;
    gap: 10px;
  }

  .footer-bottom-texts h5 {
    flex: 1 1 300px;
    margin: 0;
    font-size: 14px;
    text-align: left;
  }
  .input-with-info input[type="text"]::placeholder {
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  #feedback_section,
  #technical_feedback_section {
    font-size: 0.9em;
    padding: 0 10px;
  }

  #feedback_section h2,
  #technical_feedback_section h2 {
    font-size: 1.2em;
  }

  #technical_feedback_text {
    font-size: 0.9em;
    padding: 8px;
    width: 100%;
  }

  #feedback_section label,
  #technical_feedback_section p {
    font-size: 0.9em;
  }

  .btn_feedback {
    font-size: 0.9em;
    padding: 10px 20px;
    width: auto;
  }

  #technical_feedback_status {
    font-size: 0.9em;
  }
}
@media (max-width: 768px) {
  body.result-visible #wrapper {
    display: none;
  }
}
