/*--------------Main Application--------------*/



  
  
  /*--------------Textractor--------------*/
  /* html {
    scroll-behavior: smooth;
  }
  
  .hide {
    display: none;
  } */
  /* #textractor_div{
    padding-left: 2%;
    padding-right: 2%;
  } */
  
  
  /*--------------Image2text--------------*/
  
  /* Navbar styling */
  #navbarImg2text {
    background-color: #5c20a1; 
    height: 70px;
  }
  
  #logo2 {
    background-color: white;
    margin-left: 4%;
  }
  
  #img2text_header {
    margin-left: 80%;
    font-size: 30px;
  }
  
  /* Upload header styling */
  #upload_head_img {
    text-align: center;
    margin-top: 20px;
    font-size: 40px;
  }
  
  /* Upload box styling */
  #upload-data {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    font-weight: bold;
    background-color: rgb(235, 235, 235);
    text-align: center;
    border-radius: 5px;
    padding: 20px;
  }
  
  /* Uploaded image header */
  #upload_header_img {
    font-size: 30px;
    color: rgb(227, 84, 18);
    position: relative;
    padding-left: 8%;
    max-width: 600px;
  }
  
  /* #upload_header_img:before {
    content: "";
    display: block;
    width: 50px;
    height: 5px;
    background: rgb(227, 84, 18);
    position: absolute;
    left: 0;
    top: 50%;
  } */
  
  /* Uploaded row styling */
  #img_uploaded_row {
    padding-left: 3%;
  }
  
  /* Predicted text header */
  #predict_img {
    font-size: 30px;
    color: rgb(227, 84, 18);
    position: relative;
    padding-left: 10%;
    max-width: 600px;
  }
  
  /* #predict_img:before {
    content: "";
    display: block;
    width: 50px;
    height: 5px;
    background: rgb(227, 84, 18);
    position: absolute;
    left: 0;
    top: 50%;
  } */
  
  /* Generate text button */
  #generate-text {
    color: #fff;
    background-color: rgb(227, 84, 18);
    text-align: center;
    margin-top: 3%;
    border-radius: 5px;
    margin-left: 8%;
    width: auto; /* Keep the width auto to maintain its given size */
  }
  
  #generate-text:hover {
    background-color: rgb(227, 84, 18);
  }
  
  /* Uploaded image styling */
  #input_uploaded_img {
    align-items: center;
    max-height: 50vh;
    max-width: 100%;
    border: 1px solid grey;
    border-radius: 5px;
  }
  
  /* Loading image styling */
  #loading_img {
    padding: 5px; 
    border: 1px solid grey;
    text-align: center;
    background-color: #fff;
    border-radius: 5px;
  }
  
  /* Upload column styling */
  #upload_col_img {
    align-items: center;
    text-align: center;
  }
  
  /* Generate text button column styling */
  #genereate_text_but_img {
    align-items: center;
    text-align: left;
  }
  
  /* Download button */
  #download_but_img {
    padding-right: 2%;
  }
  
  #down_but_col_img {
    position: absolute;
    padding-left: 85%;
  }
  
  #download_but_img2text {
    border-radius: 5px;
    margin-top: -5%;
    margin-left: 60%;
  }
  
  /* OCR output styling */
  #ocr-tesseract {
    background-color: rgb(240, 240, 240);
    border-radius: 5px;
    height: 50vh;
    width: 90%;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-y: auto; /* Add overflow to keep text within the box */
  }
  
  /* Responsive adjustments */
  
  /* Medium devices (tablets, 768px and up) */
  @media (min-width: 768px) {
    #upload_head_img {
      font-size: 30px;
    }
  
    #upload_header_img,
    #predict_img {
      font-size: 24px;
    }
  
    #generate-text,
    #download_but_img2text {
      font-size: 18px;
    }
  
    #img2text_header {
      font-size: 24px;
    }
  
    #upload-data {
      max-width: 80%;
    }
  }
  
  /* Large devices (desktops, 992px and up) */
  @media (min-width: 992px) {
    #upload_head_img {
      font-size: 40px;
    }
  
    #upload_header_img,
    #predict_img {
      font-size: 28px;
    }
  
    #generate-text,
    #download_but_img2text {
      font-size: 20px;
    }
  
    #img2text_header {
      font-size: 30px;
    }
  
    #upload-data {
      max-width: 60%;
    }
  }
  
  /* Extra large devices (large desktops, 1200px and up) */
  @media (min-width: 1200px) {
    #upload_head_img {
      font-size: 40px;
    }
  
    #upload_header_img,
    #predict_img {
      font-size: 32px;
    }
  
    #generate-text,
    #download_but_img2text {
      font-size: 22px;
    }
  
    #img2text_header {
      font-size: 34px;
    }
  
    #upload-data {
      max-width: 50%;
    }
  }
  
  
  /* ----------------------Card extractor------------------- */
  #navbar_card{
  
    height: 70px;
  }
  #card_nav_header{
    font-size: 30px;
    padding-left: 120%;
  }
  #uploadHead_col_card{
    text-align: center;
    padding-left: 39%;
    padding-top: 2%;
    width: fit-content;
    height: fit-content;
  }
  #card_outer_div{
    background-color: rgb(242, 245, 254);
    width: 40%;
    padding: 2%;
    max-height: 15vh; 
    display: flex;
    justify-content: center;
    overflow: hidden;
    align-items: center;
  }
  
  #upload_card_button{
    /*border: dashed 5px rgb(222, 230, 255);*/
    border-radius: 10px;
    /*color: rgb(156, 156, 156);*/
    font-size: 1rem;
    padding: 10px; 
    white-space: nowrap;
  }
  #upload_card_button a{
    color: rgb(95, 135, 255);
  }
  #upload_card_button a:hover{
    cursor: pointer;
  }
  #upload_div_card{
    color: white;
    font-size: 30px;
    width: fit-content;
    height: fit-content;
    background-color: rgb(227, 84, 18);
    padding: 1%;
    border-radius: 20px;
    text-align: center;
  }
  #upload_col_card{
    padding-left: 37%;
    padding-bottom: 5%;
  }
  #upload-image-card{
    width: 100%;
    height: 15vh;
    line-height: 15vh;
    border-radius: 5px;
    text-align: center;
  }
  #f_row_card{
    padding-bottom: 3%;
  }
  
  #uploadHead_col_card{
    padding-left: 37%;
    padding-bottom: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #uploaded_img_card{
    text-align:left;
    color: rgb(227, 84, 18);
    width: 100%;
    padding-left: 4%;
    position: absolute;
    font-size: 30px;
  }
  /* #uploaded_img_card:before{
    content: "";
    display: block;
    width: 50px;
    height: 5px;
    background: rgb(227, 84, 18);
    left: 0;
    top: 50%;
    position:inherit;
  } */
  
  /* #uploaded_img_card{
    text-align:left;
    color: rgb(227, 84, 18);
    margin-top: -15px;
    padding-left: 4%;
    position: absolute;
    font-size: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    background: linear-gradient(45deg, #FF6347, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 2px solid #FF4500;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
  } */
  
  
  #uploaded_img_card1{
    text-align:center;
    color: rgb(227, 84, 18);
   
    padding-left: 12%;
    position: absolute;
    font-size: 30px;
    margin-left: 15%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    background: linear-gradient(45deg, #FF6347, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 2px solid #FF4500;
    border-radius: 10px;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
    }
  
  
  
  /* #extract_head_card{
    text-align:center;
    margin-top: -15px;
    color: rgb(227, 84, 18);
    width: auto;
    padding-left: 7%;
    position: absolute;
    font-size: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    background: linear-gradient(45deg, #FF6347, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 2px solid #FF4500;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
  } */
  
  #extract_head_card{
    text-align:center;
    color: rgb(227, 84, 18);
    width: auto;
    padding-left: 4%;
    position: absolute;
    font-size: 30px;
  }
  /* #extract_head_card:before{
    content: "";
    display: block;
    width: 50px;
    height: 5px;
    background: rgb(227, 84, 18);
    left: 0;
    top: 50%;
    position:inherit;
  } */
  
  
  #download-icon {
    margin-left: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #FF6347;
    cursor: pointer;
  }
  #download-icon:hover {
    transform: scale(1.2);
    color: #FF4500;
    cursor: pointer;
  }
  
  #extract_head_card1 {
    text-align: left;
    color: rgb(227, 84, 18);
    margin-left: 55%;
    padding-left: 40%;
    position: absolute;
    margin-top: -105px;
    font-size: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    background: linear-gradient(45deg, #FF6347, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 2px solid #FF4500;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
  }
  
  /* #extract_head_card:before{
    content: "";
    display: block;
    width: 50px;
    height: 5px;
    background: rgb(227, 84, 18);
    left: 0;
    top: 50%;
    position:inherit;
  } */
  #s_row_card{
   padding-left: 5%;
   padding-right: 5%;
  }
  #save-msg-card{
    text-align: center;
    float: center;
    color: black;
    width: 60%;
    margin-bottom: 12;
    margin-top:25;
    margin-right: 25;
  }
  #save_to_db_card{
    color: White;
    border-radius: 5px;
    background-color: rgb(227, 84, 18);
  }
  #uploaded_image_cardextractor{
    padding-top: 5%;
    text-align: left;
    color: rgba(48, 67, 94, 1);
    width: 90%;
    max-height: 350;
    margin-left: 4%;
  }
  #Next-button{
    text-align: center;
    color: white;
    background-color: #3C3486;
    width: fit-content;
    border-radius: 5px;
    margin-right: 3%;
  }
  
  #summary-button{
    text-align: center;
    color: white;
    background-color: #3C3486;
    width: fit-content;
    border-radius: 5px;
    margin-right: 3%;
  }
  #Extract-button-card{
    margin-right: 30%;
    text-align: center;
    background-color: rgb(227, 84, 18);
    color:white;
    width: fit-content;
    border-radius: 5px;
  }
  #extract-button{
    margin-right: 30%;
    text-align: center;
    background-color: rgb(227, 84, 18);
    color:white;
    width: fit-content;
    border-radius: 5px;
  }
  #table_card{
    padding-top: 5%;
    width: 90%;
  }
  #ocr-tesseract-card{
    padding-top: 15%;
    color:rgb(227, 84, 18);
    
  }
  
  
  
  #patent_logo{
    margin-left: 50%;
    margin-top: -18%;
    border-radius: 100%;
    display: block;
    position: relative;
    margin-left: 1000px;
    margin-top: -225px;
    /* animation: fadeIn 2s infinite alternate;  */
  }
  #next_col{
    padding-left: 6%;
    padding-right: 6%;
    padding-top: 3%;
  }
  #div_loading_card{
    /* padding-top: 5%; */
    height: 20vh;
    line-height: 20vh;
    vertical-align: middle;
  }
  #createcard_divm, #createImg_div{
    padding-bottom: 3%;
  }
  
  
  
  @media (max-width: 576px) {
    /* #card_outer_div{
      background-color: rgb(242, 245, 254);
      width: 60%;
      padding: 2%;
    }
  
    #upload_card_button{
      border: dashed 1px rgb(222, 230, 255);
      border-radius: 10px;
      color: rgb(156, 156, 156);
      font-size: 5px;
      height: 60px;
    }
    #upload_card_button a{
      color: rgb(95, 135, 255);
      
    }
    #upload_card_button a:hover{
      cursor: pointer;
    } */
  
    #uploaded_img_card{
      text-align:left;
      color: rgb(227, 84, 18);
      width: 100%;
      padding-left: 4%;
      
    }
    #extract_head_card{
      text-align:center;
      color: rgb(227, 84, 18);
      width: auto;
      padding-left: 50%;
      
    }
  
    
  
  }
  
  @media (max-width: 768px) {
    #upload_card_button {
      font-size: 16px;
    }
    #upload_div_card,
    #uploaded_img_card,
    #extract_head_card {
      font-size: 20px;
    }
    #uploaded_image_cardextractor {
      width: 100%;
      max-height: 200px;
    }
    #extract_head_card {
      font-size: 20px;
    }
    
    #s_row_card {
      padding-left: 2%;
      padding-right: 2%;
    }
    #save-msg-card {
      width: 80%;
    }
  }
  
  /* ------------------------Form--------------------- */
  #outer_form_div{
    height: 100vh;
    width: 100%;
    padding-top: 18%;
    padding-left: 25%;
    padding-right: 25%;
  }
  #submit_but{
    background-color: rgb(101, 153, 223);
    border-radius: 5px;
    text-decoration: none;
    padding: 10px;
    margin-left: 40%;
    color: white;
  }
  #submit_but:hover{
    background-color: rgb(0, 96, 223);
    cursor: pointer;
  }
  
  #form{
    padding: 10px;
    padding-top: 15px;
    border-radius: 10px;
    background-color: rgb(235, 235, 235);
    margin-bottom: 5%;
  }
  
  .no-gutters {
    margin-right: 0;
    margin-left: 0;
  }
  
  .no-gutters > .col,
  .no-gutters > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
  }
  
  
  /* ----------------Demo------------- */
  .app-header {
    height: 60vh;
    line-height: 60px;
    padding: 50px;
    border-bottom: thin lightgrey solid;
    background-image: linear-gradient(rebeccapurple);
    background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTNalNWJv02YfLsJVWPFEGe0jrFRuMsLEK27A6tkCV9NJtErU6saq3-29kqOc57L7QfWEA&usqp=CAU');
  }
  .app-header .app-header--title {
    font-size: 40px;
    text-align: center;
    position: relative;
    color: white;
    font-family: "Sofia", sans-serif;
  }
  
  .app-hero{
    text-align: center;
    background-color: white;
    box-shadow: -1px 11px 21px 2px rgba(0,0,0,0.75);
    margin-top: 40px;
    border-radius: 10px;
    left: 0; 
    right: 0; 
    margin-left: auto; 
    margin-right: auto; 
    position: absolute;
    height: 600px;
    width: 1000px;
  }
  
  .file-upload{
    border: 2px solid #000;
    padding: 15px;
    margin: auto;
    width: 300px;
    border-radius: 10px;
  }
  
  .left-side{
    background-color: rebeccapurple;
    display: inline-block;
    width: 40%;
    height: 300px;
    margin: 50px;
    border-radius: 10px;
    background-image: linear-gradient(lightgrey,rebeccapurple);
  }
  .right-side{
    width: 40%;
    height: 300px;
    background-color: rebeccapurple;
    display: inline-block;
    margin: 20px;
    border-radius: 10px;
    background-image: linear-gradient(lightgrey,rebeccapurple);
  }
  #picture{
    max-height: 18s0px;
    max-width: 500px;
  }
  
  /* ------------------------Resume Parser-------------------------------------------- */
  /* For Text button */
.fancy-btn-text {
    width: 200px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background-color: #e9a770;
    color: white;
    white-space: normal;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    transition: all 0.3s ease;
    font-family: Calibri, sans-serif;
    display: inline-block;
}

.fancy-btn-text:hover {
    color: #03045e;
}

.fancy-btn-extract:hover {
    color: #03045e !important;
}

.btn-icons-hover:hover {
    color: #03045e !important;
}

/* ---------------- HOME HERO ---------------- */
.hero-section {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Animated Backgrounds */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("https://cdn.pixabay.com/photo/2022/12/28/19/09/abstract-7689918_1280.jpg");
  animation: bgChange 18s infinite alternate ease-in-out;
  z-index: 0;
  filter: brightness(60%) blur(0.5px);
}

/* Overlay for dark tint */
.hero-overlay {
  position: relative;
  z-index: 1;
}

/* Hero text */
.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}
.hero-section p {
  color: #e6e6e6;
  font-size: 1.3rem;
}

/* Button adjustments */
.hero-section .btn-primary {
  background: #007bff;
  border: none;
  font-weight: 600;
  padding: 10px 20px;
}
.hero-section .btn-danger {
  background: #e63946;
  border: none;
  font-weight: 600;
  padding: 10px 20px;
}

/* Floating Patented Badge */
.patent-badge {
  max-width: 150px;
  width: 20%;
  animation: floatBadge 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3));
}

/* Background changing animation */
@keyframes bgChange {
  0% { background-image: url("https://cdn.pixabay.com/photo/2022/12/28/19/09/abstract-7689918_1280.jpg"); }
  33% { background-image: url("https://cdn.pixabay.com/photo/2023/04/05/12/13/ai-7901842_1280.jpg"); }
  66% { background-image: url("https://cdn.pixabay.com/photo/2023/01/10/11/55/artificial-intelligence-7709149_1280.jpg"); }
  100% { background-image: url("https://cdn.pixabay.com/photo/2021/09/01/18/59/technology-6592916_1280.jpg"); }
}

/* Badge floating animation */
@keyframes floatBadge {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2rem; }
  .hero-section p { font-size: 1rem; }
  .patent-badge { width: 30%; max-width: 120px; }
}



