* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-family: "Urbanist", sans-serif;
}

body {
  background:
    url('../static/assets/bgImage.png') no-repeat center center / cover,
    linear-gradient(to right, #2768FF, #588AFF);
  height: 100vh;
  /* Ensure full screen height */
}

.new-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 25px;
  background: linear-gradient(to right, #FFFFFF, #CBD9FB);
  height: 3rem;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: space-between; */
  justify-content: center;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.logo {
  display: flex;
  align-items: center;
}

.heading {
  display: flex;
  align-items: center;
  text-align: center;
  cursor: inherit;
  color: rgb(253, 253, 253);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.heading h2 {
  font-family: "Urbanist", sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  background: linear-gradient(to right, #FFFFFF, #CBD9FB);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.heading h2 .gradient-text {
  background: linear-gradient(to right, #2768FF, #588AFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  position: relative;
  white-space: nowrap;
}

/* Background behind the text */
.heading h2 .gradient-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #FFFFFF, #CBD9FB);
  border-radius: 5px;
  z-index: -1;
}

.sub-heading {
  color: white;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-family: "Urbanist", sans-serif;
  width: 50%;
  text-align: center;
  line-height: 1.5rem;
  margin-bottom: 1rem;
}


#openPopup {
  background: linear-gradient(to right, #2768FF, #588AFF);
  /* border: 1px solid hsl(345deg 100% 47%); */
  border-radius: 6px;
  border: none;
  /* box-shadow: rgba(0, 0, 0, 0.1) 1px 2px 4px; */
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  min-height: 40px;
  outline: 0;
  padding: 12px 14px;
  text-align: center;
  vertical-align: middle;
}

#openPopup:hover,
#openPopup:active {
  background: linear-gradient(to right, #2768FF, #588AFF)/30;
  background-position: 0 0;
}

#openPopup:active {
  opacity: 0.5;
}

.main-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.processing {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 80%;
  /* margin: 0 10%; */
  height: calc(50vh - 80px);
  padding: 50px 10px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.processing .inputSection {
  display: flex;
  flex-direction: column;
  width: 30%;
  align-items: center;
  padding: 15px;
  border: 2px dashed rgb(157, 157, 157);
  border-radius: 20px;

}

.uploadContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.uploadText {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.uploadContainer img {
  cursor: pointer;
}



.file-name {
  font-size: 14px;
  color: #555;
  text-align: center;
  margin-top: 10px;
}

/* Outer Section */
.outputSection {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30%;
  padding: 50px 10px;
  border-radius: 10px;
  margin: 10px 0px;
  /* Soft background */
}

/* Card Layout */
.outputCard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  max-width: 600px;
  background: white;
  border-radius: 15px;
  min-height: 100%;

  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Image Container */
.imageContainer {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  max-height: 300px;
  width: 100%;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imageContainer img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  max-height: 300px;
  min-height: 300px;
  /* Ensures height control */
  object-fit: contain;
  /* Ensures image fits properly */
  border: 3px solid #2768FF;
  /* Adds a visible border */
}

/* Text Overlay */
.textOverlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  border-radius: 0 0 10px 10px;
}

/* Default Case Styling */
.textOverlay:empty::before {
  content: "No text detected";
  /* Shows default message */
  color: rgba(255, 255, 255, 0.7);
}



.inputSection .uploadText {
  font-size: 20px;
  /* margin-top: 5%; */
}

.processing .inputSection .inputBtn {
  background: linear-gradient(to right, #2768FF, #588AFF);

  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  border: none;
  padding: 10px 10px;
  width: 95%;
  border-radius: 6px;
  color: white;
}

.processing .inputSection .browse {
  background-color: rgb(232, 225, 225);
  font-size: 18px;
  margin-bottom: 5px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  position: fixed;
  bottom: 20px;
  font-size: 15px;
  margin: 0rem 1rem;
  padding: 0px 5px;
  letter-spacing: 0.4px;
}

footer a {
  text-decoration: underline;
  color: #FFFFFF;
}

footer .copyright {
  font-weight: 600;
  text-align: end;
  margin-top: 1.4rem;
}

footer .policy {
  text-align: justify;
  width: 70%;
  margin-top: 1.2rem;
  line-height: 1.5rem;
}

#openFooterPopup {
  border: none;
  background-color: transparent;
  /* font-weight: 600; */
  color: #FFFFFF;
  text-decoration: dotted;
  cursor: pointer;
  font-size: 14px;
}

#output {
  background-image: url('../static/assets/Upload.png');
  background-size: contain;
  margin-top: 4%;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.popup-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 50rem;
  height: 38rem;
}

/* Close button (the "×" symbol) styles */
.close {
  position: relative;
  top: -30px;
  left: 750px;
  font-size: 20px;
  cursor: pointer;
  color: #04aa6d;
}

.close:hover {
  color: #000;
}

.custom-line {
  border: 0;
  border-radius: 2px;
  border-top: 4px solid #a8afad;
  margin-top: 5px;
  margin-left: 2rem;
  width: 5rem;
}

form {
  display: grid;
  gap: 10px;
  margin-left: 50px;
}

.flex {
  display: flex;
  width: 93%;
  gap: 30px;
}

#input-text,
input[type="email"] {
  width: 90%;
  padding: 8px;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
}

label {
  font-size: 12px;
}

select {
  height: 40px;
}

option {
  border-radius: 0px;
}

textarea {
  resize: none;
  height: 100px;
  overflow-y: auto;
  width: 91%;
  padding: 5px;
  outline: none;
}

button[type="submit"] {
  background-color: #04aa6d;
  color: #fff;
  padding: 10px 11px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  width: 90%;
}

button[type="submit"]:hover {
  background-color: #04aa6d;
}

.container {
  display: block;
  position: relative;
  padding-left: 28px;
  padding-right: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 14px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.container a {
  text-decoration: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
}

.container:hover input~.checkmark {
  background-color: #ccc;
}

.container input:checked~.checkmark {
  background-color: #2196f3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.container input:checked~.checkmark:after {
  display: block;
}

.container .checkmark:after {
  left: 7px;
  top: 2px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.scribble {
  margin-top: -15px;
}

/* @media (max-width: 1024px) {
  footer {
    position: fixed;

  }
}

@media (min-width: 1025px) {
  footer {
    position: static;
  }
} */