
:root {
  --font-size: 16px;
  --font-color: #000f64;
  --letter-spacing: 0px;
  --word-spacing: 0px;
  --margin-top: 0px;
  --margin-left: 0px;
  --line-height: 1.5;
  --box-height: 10%;
  --box-width: 10%;
  --top-margin-font-size: 14px;
  --background-color: white;
  --line-spacing: 1.5em;
  --left-margin-display: flex;
  --top-margin-display: flex;
  --output-left-border: 2px solid #00000066;
  --top-margin-left-border: 2px solid #00000066;
  --top-margin-bottom-border: 1px solid #00000066;
  --subbox-bottom-border: 1px solid #00000066;
  --background-lines: linear-gradient(#00000066 0.05em, transparent 0.1em);
  --heading-shadow: linear-gradient(-75deg, rgb(0 0 0 / 40%), rgb(0 0 0 / 0%));
  --custom-background-image: none;
  --main-font:'AnotherFont','CustomFont';
  --math-font:'AnotherFont','CustomFont' , 'KaTeX_Main';
  /* Page size (modifiable via JS) */
  --page-width: 874px;
  --page-height: 993px;
}
}/* new frontend */


html{
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif !important;
}


body {
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif !important;

    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background-color: #fff7ed; /* light orange off-white */
    overflow-x: hidden;
    line-height: 1.6;
  }

  /* Header */
header {
    background: #fff1e6; /* soft off-white */
    color: #1f2937;
    text-align: center;
    padding: 28px 20px;
    background-size: cover;
    background-position: left;
    border-bottom: 1px solid #fed7aa;
  }

header h1 {
    margin: 0;
    color: #1f2937;
    font-weight: 800;
    letter-spacing: 0.3px;
  }

  header p {
    /* font-size: 1.2rem; */
    color: rgb(0, 0, 0);
  }

  /* Navigation */
nav {
    background: #fff1e6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    border-top: 2px solid #f59e0b;
    z-index: 1000;
  }

  nav ul {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    list-style: none;
    margin: 0;
  }

  nav ul li {
    margin: 0 15px;
  }

  nav ul li a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.3s ease;
  }

  nav ul li a:hover {
    color: #0056b3;
  }


  /* Show the hamburger icon on small screens */
.menu-icon-main {
  display: none; /* Hidden by default */
  /* font-size: 1.8em; */
  cursor: pointer;
  padding: 10px;
  margin-right: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Initially hide the navbar */
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    position: absolute;
    top: 50px;
    left: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  nav ul li {
    margin: 10px 0; /* Increase the space between items */
    text-align: center;
  }

  nav ul li a {
    color: #007bff;
    /* font-size: 1.2em; */
  }

  /* Display the hamburger icon on small screens */
  .menu-icon-main {
    display: block;
  }
  .image-results {
    grid-template-columns: repeat( auto-fill, minmax(100%, 1fr) ) !important;


  }
  .features-grid {
    
    grid-template-columns: repeat( auto-fill, minmax(35%, 1fr) ) ;
  }
  body{
    font-size: smaller;
  }
  .how-it-works-grid {
    grid-template-columns: repeat( auto-fill, minmax(100%, 1fr) ) !important;}
}

   /* Sections */
  section {
    padding: 30px 5px;
    /* max-width: 1200px; */
    margin: 0 auto;
  } 

  section h2 {
    /* font-size: 2rem; */
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
  }

  .features,
  
  .ratings {
    text-align: center;
  }

  .features ul
   {
    list-style: none;
    padding: 0;
  }

  .features li
   {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
  }

  .features li:before {
    content: "✔";
    color: #007bff;
    position: absolute;
    left: 0;
  }

/* General Feature Section */
.feature-section {
  background: #eff6ff;
  /* padding: 60px 20px; */
  text-align: center;
  margin-top: 40px;
  border-radius: 10px;
  /* width: 100%; */
  margin:10px;
}

.feature-section h2 {
  color: #000000;
  /* font-size: 2rem; */
  margin-bottom: 20px;
}

.feature-content {
  max-width: 800px;
  margin: 0 auto;
}

.feature-content p {
  /* font-size: 1rem; */
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-section button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  /* font-size: 1rem; */
  cursor: pointer;
  transition: background 0.3s ease;
}

.feature-section button:hover {
  background: #0056b3;
}


  /* Image Results Section */
  /* Image Results Section */
  .image-results {
    display: grid;
    grid-template-columns: repeat(
      auto-fill,
      minmax(25%, 1fr)
    ); /* Automatically adjusts columns */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
  }
  #image-results{
    background-color: #eff6ff;
  }

  .image-item {
    /* width: 100%; Takes up the full width of its grid cell */
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
    height: auto;
    padding: 10px;
    background: white;
    border: 1px solid black;
  }

  .image-item img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
  }

  /* Hover effect for the image items */
  .image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .image-item:hover img {
    transform: scale(1.1);
  }

  /* Hover effect for the image items */
  .image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .image-item:hover img {
    transform: scale(1.1);
  }

  /* Ratings Section */
  .ratings .stars {
    /* font-size: 24px; */
    color: #ffc107;
    margin-bottom: 10px;
  }

  .ratings p {
    /* font-size: 1.2rem; */
  }

  /* Contact Section */
  .contact-form {
    text-align: center;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }

  .contact-form button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .contact-form button:hover {
    background: #0056b3;
  }

/* Footer */
#app-footer{
  background: #fff1e6; /* soft off-white */
  color: #1f2937;
  text-align: center;
  padding: 16px 10px;
  border-top: 1px solid #fed7aa; /* light orange */
  font-family: Arial, sans-serif;
}
#app-footer a { color: #f59e0b; text-decoration: none; }
#app-footer a:hover { text-decoration: underline; }
#app-footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
#app-footer .footer-left, #app-footer .footer-right { color: #1f2937; }

.footer-links, .footer-policies {
    margin-bottom: 15px;
}

.footer-link {
    color: #ffffff;
    margin: 0 10px;
    text-decoration: none;
    /* font-size: 16px; */
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-credit {
    /* font-size: 14px; */
    margin-top: 10px;
    color: #ffffff;
}

  /* Features Section */

  /* Medium screen (tablets, small desktops) - 2 columns */
 

  section h2 {
    /* font-size: 2rem; */
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(
      auto-fill,
      minmax(300px, 1fr)
    ); /* Automatically adjusts columns */
    gap: 20px;
    justify-content: center;
  }

  .feature-item {
    display: flex;
    align-items: center;
    background: #eff6ff30;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 100px;
    column-gap: 25px;
  }

  .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .feature-item .icon {
    /* font-size: 2rem; */
    color: #007bff;
    margin-right: 15px;
  }

  .feature-item h3 {
    color: #007bff;
    /* font-size: 1.125rem; */
    margin-bottom: 5px;
  }

  .feature-item p {
    color: #555;
    /* font-size: 0.875rem; */
    line-height: 1.4;
  }

  /* How It Works Section */
  /* How It Works Section */
  #how-it-works {
    /* background: #f8f9fa; */
    text-align: center;
  }

  #how-it-works h2 {
    color: #007bff;
    /* font-size: 2rem; */
    margin-bottom: 50px;
  }

  .how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(
      auto-fill,
      minmax(400px, 1fr)
    ); /* Automatically adjusts columns */
    gap: 20px;
    justify-content: center;
  }

  .step-item {
    background: #eff6ff30;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 100px;
  }

  /* Hover effect */
  .step-item:hover {
    transform: translateY(-5px); /* Moves the item slightly up */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds shadow on hover */
  }

  .step-number {
    background: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 auto 15px;
    /* font-size: 1.5rem; */
    font-weight: bold;
  }

  .step-item h3 {
    color: #007bff;
    /* font-size: 1.2rem; */
    margin-bottom: 10px;
  }

  .step-item p {
    color: #555;
    /* font-size: 0.95rem; */
    line-height: 1.5;
  }





/*font*/


@font-face {
    font-family: 'CustomFont';
    src: url('fonts/fonty.ttf') format('truetype');
}

@font-face {
    font-family: 'AnotherFont';
    src: url('fonts/fontx.ttf') format('truetype');
    /* Add the path or link to another font file */
}
@font-face {
    font-family: 'font3';
    src: url('fonts/farewell.ttf') format('truetype');
    /* Add the path or link to another font file */
}
@font-face {
    font-family: 'font4';
    src: url('fonts/font4.ttf') format('truetype');
    /* Add the path or link to another font file */
}
@font-face {
    font-family: 'font5';
    src: url('fonts/font5.ttf') format('truetype');
    /* Add the path or link to another font file */
}
@font-face {
    font-family: 'font6';
    src: url('fonts/font6.ttf') format('truetype');
    /* Add the path or link to another font file */
}
@font-face {
    font-family: 'font7';
    src: url('fonts/font7.ttf') format('truetype');
    /* Add the path or link to another font file */
}


@font-face {
  font-family: 'font8';
  src: url('fonts/font8.ttf') format('truetype');
}

@font-face {
  font-family: 'font9';
  src: url('fonts/font9.ttf') format('truetype');
}

@font-face {
  font-family: 'font10';
  src: url('fonts/font10.ttf') format('truetype');
}

@font-face {
  font-family: 'font11';
  src: url('fonts/font11.ttf') format('truetype');
}

@font-face {
  font-family: 'font12';
  src: url('fonts/font12.ttf') format('truetype');
}

@font-face {
  font-family: 'font13';
  src: url('fonts/font13.ttf') format('truetype');
}

@font-face {
  font-family: 'font14';
  src: url('fonts/font14.ttf') format('truetype');
}

@font-face {
  font-family: 'font15';
  src: url('fonts/font15.ttf') format('truetype');
}

@font-face {
  font-family: 'font16';
  src: url('fonts/font16.ttf') format('truetype');
}

@font-face {
  font-family: 'font17';
  src: url('fonts/font17.ttf') format('truetype');
}

@font-face {
  font-family: 'font18';
  src: url('fonts/font18.ttf') format('truetype');
}

@font-face {
  font-family: 'font19';
  src: url('fonts/font19.ttf') format('truetype');
}

@font-face {
  font-family: 'font20';
  src: url('fonts/font20.ttf') format('truetype');
}

@font-face {
  font-family: 'font21';
  src: url('fonts/font21.ttf') format('truetype');
}

@font-face {
  font-family: 'font22';
  src: url('fonts/font22.ttf') format('truetype');
}

@font-face {
  font-family: 'font23';
  src: url('fonts/font23.ttf') format('truetype');
}

@font-face {
  font-family: 'font24';
  src: url('fonts/font24.ttf') format('truetype');
}

@font-face {
  font-family: 'font25';
  src: url('fonts/font25.ttf') format('truetype');
}

@font-face {
  font-family: 'font26';
  src: url('fonts/font26.ttf') format('truetype');
}

@font-face {
  font-family: 'font27';
  src: url('fonts/font27.ttf') format('truetype');
}

@font-face {
  font-family: 'font28';
  src: url('fonts/font28.ttf') format('truetype');
}


@media  (max-width: 900px) {
    :root {
      --line-spacing: 20px;
      --margin-top: 7px;
      --font-size: 13px;
      --word-spacing: 10px;
      --line-height:20px;
      /* default mobile page size */
      --page-width: 698px;
      --page-height: 867px;
    }
    
    #left-margin,
    #output-container {
      background-size: 100% var(--line-spacing);
    }
    
    #left-margin-in,
    #output-inner-container {
      line-height: var(--line-height);
      margin-top: var(--margin-top);
      font-size: var(--font-size);
      word-spacing: var(--word-spacing);
    }
    
    .input-box{
      flex: 1 1 100%;
      max-width: none;
    }

    .image-results {
      display: grid;
      grid-template-columns: repeat( auto-fill, minmax(25%, 1fr) );}
      
      .how-it-works-grid {
        grid-template-columns: repeat( auto-fill, minmax(35%, 1fr) );}

}
@media  (min-width: 900px) {
    :root {
      --line-spacing: 23px;
      --margin-top: 7px;
      --font-size: 15px;
      --word-spacing: 10px;
      --line-height:23px;
      /* default desktop page size */
      --page-width: 874px;
      --page-height: 993px;
    }
    
    #left-margin-in,
    #output-inner-container {
      line-height: var(--line-height);
      margin-top: var(--margin-top);
      font-size: var(--font-size);
      word-spacing: var(--word-spacing);
    }
    
    .input-box{
      flex: 0 1 360px;
      max-width: 420px;
    }
    .features-grid {
    
      grid-template-columns: repeat( auto-fill, minmax(25%, 1fr) );
    }
    #output-container,
    #left-margin {
      background-size: 100% var(--line-spacing);
    }
    .how-it-works-grid {
    
      grid-template-columns: repeat( auto-fill, minmax(25%, 1fr) );
    }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


.heading{
    /* font-size: 2rem; */
  color: #007bff;
  margin-bottom: 20px;
  text-align: center;
    
    font-weight: bolder;
}

/* page layout and costumization  */

/*  input container layout */
#input-container1{
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: white;
    row-gap: 10px;
    border-radius: 15px;
}





.input-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  overflow-x: hidden;
  padding: 8px;
  border-bottom: none;
}

.input-box {
  flex: 0 1 360px;
  max-width: 420px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #fed7aa;
  background: #fff8f1; /* off-white */
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.06s ease;
}
.input-box:hover{
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

/* .textarea-box {
} */

.input-row {


margin-bottom: 10px;
}

.input-row label {

margin-right: 10px;
font-weight: bold;
font-size: 10px;
}

.input-row input[type="number"],

.input-row input[type="color"],
.input-row select,
.input-row textarea {
padding: 5px;
border: 1px solid #000000;
border-radius: 3px;
font-size: 10px;

width: 100%; /* Fallback for older browsers */
width: -moz-available; /* Firefox */
width: -webkit-fill-available; /* Chrome, Safari, Edge */
width: fill-available; /* Standard */
    

}

.buttontype_1 {
padding: 5px 10px;
background-color: #f59e0b;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
font-weight: bold;
font-size: 10px;
}

.buttontype_1:hover {
background-color: #d97706;
}

.input-row textarea {
width: -webkit-fill-available;;
resize: vertical;
}

/* Custom checkbox styles */
.input-row input[type="checkbox"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 20px;
height: 20px;
border: 1px solid #ccc;
border-radius: 10px;
cursor: pointer;
vertical-align: middle;
margin-right: 5px;
background: white;
}

.input-row input[type="checkbox"]:checked {
background-color: #1300c0;
border-radius: 10px;
border: 4px solid white;
}

/* Hide the default file input */
.input-row input[type="file"] {
display:none;
}

.file-button {
display: inline-inline;
padding: 8px 14px;
cursor: pointer;
background-color: #f59e0b; /* orange */
color: white;
border: none;
border-radius: 8px;
text-align: center;
text-decoration: none;
transition: background-color 0.15s ease-in-out, transform 0.05s ease-in-out;
}

.file-button:hover { background-color: #d97706; }
.file-button:active { transform: translateY(1px); }
/* page layout */

#left-margin{
            
    /* min-height: 100%; */
    box-sizing: border-box;

    height: fit-content;
    background-image: var(--background-lines);
        height: auto;

    width:var(--box-width);
    min-width: var(--box-width);
    color: rgb(0, 15, 100);
    display: var(--left-margin-display);    /* margin-top: 9px; */
    /* line-height: 23px; */
    
}

#top-margin{
    
    overflow: clip;
    white-space: pre-wrap;
    width: 100%; /* Fallback for older browsers */
    position: relative;
    z-index: 1;
    width: -moz-available; /* Firefox */
    width: -webkit-fill-available; /* Chrome, Safari, Edge */
    width: fill-available; /* Standard */
    
    
    height:100%;
    overflow-wrap: anywhere;
    border-left: var(--top-margin-left-border);
    border-bottom: var(--top-margin-bottom-border);
    
    box-sizing: border-box; /* Add this line */
    color:var(--font-color);
    scrollbar-width: thin;
    word-spacing: var(--word-spacing);
    font-size: var(--top-margin-font-size);
    letter-spacing: var(--letter-spacing);


    
    
}

#output-container {
    width: 100%;
    min-height: 100%;
    height: fit-content;
    border-left: var(--output-left-border);
    white-space: pre-line;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    
    position: relative;
    display: flex;
    font-family: 'AnotherFont','CustomFont';
    background-image: var(--background-lines);    
    
    
    
}

#output-inner-container {
    padding: 0px;
    /* margin-top: 9px; */
    position: relative; /* Add this line */
    top: 0; 
    width: 100%;
    height: auto;
    /* line-height: 23px; */
    overflow: hidden;
    overflow-wrap: anywhere;
    color:var(--font-color);
    margin-left: var(--margin-left);
    letter-spacing: var(--letter-spacing);
    font-family: var(--main-font);
}
#content_page{
    display: flex;
    flex-direction: row;
    height: 100%;
    /* background-image: linear-gradient(#00000066 0.05em, transparent 0.1em); */
    /* background-size: 100% 23px;     */
    overflow-y: hidden;       
    background-attachment: local;
    scrollbar-width: thin;

}
#shadow-effect{

    height: 100%;
    background-size: contain;
    background-color: var(--background-color);
    background-image: var(--custom-background-image);

    
    
}
#heading_page {
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: var(--main-font);
     /* Allow the container to be resized */
    overflow: auto; /* Add scrollbars if content overflows */
    width: 100%;
    height: 100%;
   
    background: var(--heading-shadow);
    background-blend-mode: normal;
    background-size: contain;
    scrollbar-width: thin;
    isolation: isolate;
}
/* Ensure full color rendering in top/left margin text */
#top-margin, #top-margin * {
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
  -webkit-text-fill-color: currentColor !important;
}
#left-margin-in, #left-margin-in * {
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
  -webkit-text-fill-color: currentColor !important;
}
#container-wrapper{
    background: #fffaf4;
    border: 1px solid #f59e0b;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

/* Two-column app layout */
#container-wrapper.two-col{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
  align-items: start;
}
#left-pane{
  position: sticky;
  top: 10px;
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
#right-pane{
  min-width: 0;
}
@media (max-width: 1100px){
  #container-wrapper.two-col{ grid-template-columns: 1fr; }
  #left-pane{ position: static; max-height: none; }
}
#box{
  
    display: var(--top-margin-display);
    flex-direction: row;
    width: 100%;
    
    height: var(--box-height);
    overflow-y: scroll;
    scrollbar-width: thin;

}

#subbox{
    width: var(--box-width);
    min-width: var(--box-width);
    display: var(--left-margin-display);
    
    height: 100%;
    
    border-bottom: var(--subbox-bottom-border);
    box-sizing: border-box; /* Add this line */

}
#final_page {
    position: relative;
    width: var(--page-width);
    height: var(--page-height);
    padding: 12px;
    box-sizing: border-box;
    overflow: auto;
    scrollbar-width: none;
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
#outer-container{
    border-top: 2px solid;
    padding-top: 20px;
    
    height: 85vh;
    /* display: flex;
    overflow-wrap: anywhere;
    
    flex-wrap: wrap;
    justify-content: space-around; */
    overflow: scroll;
}

/* Transparent scrollbars */
/* WebKit */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.15);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background-color: rgba(0,0,0,0.25); }

/* Firefox */
* { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.2) transparent; }

/*button typ2*/
.button-container{
    display: flex;
    justify-content: center;
}
.buttontype_2 {
  background: #f59e0b;
  margin: 2%;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease-in-out, transform 0.05s ease-in-out;
}
.buttontype_2:hover { background: #d97706; }
.buttontype_2:active { transform: translateY(1px); }


 /* Override katex styles to use the custom font */
.katex .mathdefault,.katex .op-symbol.small-op,.katex,.katex .mathbf,.katex .delimsizing.size2 ,.katex .mathnormal{
  font-family: var(--math-font) !important;
  /* font-size: calc(var(--font-size) * 2) !important; */
}


/*drawing canvas and their popup containers*/
.drawing-container {
    background-color: white;
    
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    width: 70%;
    height: 70%;
    
    
}
#drawing-controls {
display: none;

gap: 5px;
align-items: center;
justify-content: center;
padding: 10px;
/* background-color: #ffffff; */

box-shadow: 0 2px 4px rgba(0,0,0,0.1);
width: 100%;
}

#drawing-controls button {
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
padding: 5px 10px;
background-color: inherit;
border: none;
cursor: pointer;
color: #f4f4f9;
transition: background-color 0.3s, color 0.3s;
}

#drawing-controls button:hover {

color: #007bff;
}
#drawing-controls button:hover img {
filter: invert(75%) sepia(100%) saturate(10000%) hue-rotate(200deg) brightness(100%) contrast(100%);
/* fill: red; */
}

/* Mini floating toolbar */
#mini-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  background: #fff8f1;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.12);
  z-index: 10000;
}
#mini-toolbar select,
#mini-toolbar input[type="color"] {
  font-size: 12px;
}
#mini-toolbar button {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #fed7aa;
  background: #fff1e6;
  border-radius: 6px;
  cursor: pointer;
}
#mini-toolbar button:hover {
  background: #ffedd5;
}

#drawing-controls input[type="color"] {
width: 30px;
height: 30px;
border: none;
border-radius: 50%;
cursor: pointer;
padding: 0;
margin: 0;
appearance: none;
}

#drawing-controls input[type="range"] {
width: 100px;
-webkit-appearance: none;
background-color: #f5f5f5;
border: 1px solid #ddd;
border-radius: 5px;
height: 5px;
margin: 0 5px;
}

#drawing-controls input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 15px;
height: 15px;
background-color: #007bff;
border-radius: 50%;
cursor: pointer;
}

#drawing-controls label {
font-size: 12px;
margin-right: 5px;
}
#icons {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;

}
#sliders{
display: flex;
flex-direction: column;
gap: 10px;
width: -webkit-fill-available;
align-items: center;
width: 30%;
}

.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.popup-content{
    display: flex;
flex-direction: column;
align-items: center;
row-gap: 5px;
font-size: 12px;

  
    background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
z-index: 1001;

}

#drawing-canvas {
    border: 1px solid #000000;
   


}



        
        
        #popup-image{
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: center;
border: 1px solid black;
z-index: 100000;
}

.popup-image-content {
display: flex;
flex-direction: column;
background-color: white;
padding: 20px;
border-radius: 5px;
align-items: center;
row-gap: 5px;
font-size: 12px;
}


/*image container styles*/
/* #images-store-container {
    display: flex;
    overflow: auto;
    gap: 10px; 
    margin: 1%;
    justify-content: safe center;
    border: 1px solid #000000;
    background: #ffffff;
    padding: 2%;
    text-align: center;
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1%;
    row-gap: 10px;
    background: white;
    border-radius: 8px;
    
}

.preview-image {
    max-width: 90vw;
    max-height: 50vh;
    cursor: pointer;
} */




/* editor css */
/* #toolbar {
  background-color: #f1f1f1;
  padding: 10px;
  border-bottom: 2px solid #ccc;
  display: flex;
overflow: scroll;
  align-items: center;
}

#toolbar button, select, input[type="color"] {
  cursor: pointer;
  padding: 5px 10px;
  margin: 5px;
  border: none;
  background-color: #fff;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}

#toolbar button.active {
  background-color: #007bff;
  color: white;
  border-radius: 3px;
} */

#mixed-input {
  overflow-wrap: break-word;
  overflow: auto;
  resize: vertical;
  height: 140px;
}

#mixed-input[contenteditable="true"]:empty:before {
  content: "Start typing here...";
  color: #bbb;
}

input[type="color"] {
  height: 30px;
  width: 50px;
  padding: 0;
  border: none;
}

.icon {
  margin-right: 5px;
  display: inline-block;
  width: 16px;
  height: 16px;
}

.file-input {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

td, th {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
  width: auto;
}

td {
  min-width: 50px;
  height: auto;
} 

/* select, input[type="file"] {
  font-size: 14px;
} */
/* .ql-editor{
  line-height: 23px !important;
  padding: 0px !important;
  resize: vertical;
} */
/* Adjust the font sizes for the Quill editor */
.ql-editor .ql-size-small {
  font-size: 12px !important; /* Small size - 12px */
}
.ql-editor .ql-size-large {
  font-size: 20px !important; /* Large size - 20px */
}
.ql-editor .ql-size-huge {
  font-size: 24px !important; /* Huge size - 24px */
}
/* Remove margin from <p> tags inside the Quill editor */
/* #output-inner-container p {
  margin: 0 ; 
  padding: 0 ; 
} */




#policies {
    margin: 20px auto;
    padding: 20px;
    background-color: #eff6ff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    color: #000000;
}

#policies .policy-section {
    margin-bottom: 20px;
}

#privacy-policy h2, #copyright-policy h2 {
    color: #444;
    margin-bottom: 10px;
    border-bottom: 1px solid #000000;
    padding-bottom: 5px;
}

#privacy-policy p, #copyright-policy p {
    margin: 10px 0;
    line-height: 1.6;
}


.contact-container {
  padding: 30px;
  background: #eff6ff;;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  /* font-size: 2em; */
  color: #333;
  text-align: center;
  margin-bottom: 10px;
}

.description {
  /* font-size: 1.1em; */
  color: #555;
  text-align: center;
  margin-bottom: 30px;
}

/* Layout styling */
.contact-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.list-section {
  flex: 1 1 45%;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.list-section h2 {
  /* font-size: 1.3em; */
  color: #333;
  margin-bottom: 10px;
}

.list-section ul {
  list-style-type: disc;
  padding-left: 20px;
}

.list-section li {
  /* font-size: 1em; */
  color: #555;
  margin-bottom: 8px;
}

/* Single block for contact options */
.contact-options {
  flex: 1 1 45%;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.contact-options h2 {
  /* font-size: 1.3em; */
  color: #333;
  margin-bottom: 15px;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-item h3 {
  /* font-size: 1.2em; */
  color: #333;
  margin-bottom: 5px;
}

.contact-item a {
  color: #007bff;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.note {
  /* font-size: 0.9em; */
  color: #888;
  margin-top: 5px;
}


/* Support Us Section Styles */
.support-us {
  background-color: #f9f9f9;
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.support-us h2 {
  /* font-size: 24px; */
  color: #333;
}

.support-us p {
  /* font-size: 16px; */
  color: #555;
  line-height: 1.6;
}

.bmc-button-container {
  margin: 20px 0;
}

.support-us h3 {
  /* font-size: 20px; */
  color: #333;
  margin-top: 30px;
}

.upi-qr-container {
  text-align: center;
  margin: 20px 0;
}

.upi-qr-code {
  max-width: 200px;
  margin: 0 auto;
  border: 1px solid #ddd;
  padding: 10px;
  background-color: #fff;
  border-radius: 8px;
}

.support-us p:last-child {
  font-weight: bold;
  /* font-size: 18px; */
  color: #006400;
}

/* Main Support Popup */
#supportPopup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: #ffeb3b;
  color: #000;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
}

#supportPopup button {
  background: #ff5722;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
}

#supportPopup .close-btn {
  background: #000;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  position: absolute;
  top: 5px;
  right: 10px;
}

/* Mini Popup */
#miniSupportPopup {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff5722;
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  z-index: 9999;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

#miniSupportPopup:hover {
  background: #e64a19;
}

.font-label {
  display: flex;
      flex-direction: row;
      /* padding: 20px; */
      align-items: baseline;
      /* justify-content: space-around; */
      margin-bottom: 2px;
      gap: 5px;
}

.font-label label {
  font-weight: bold;
  margin-bottom: 10px;
}

.info-container {
  position: relative;
  margin-top: 10px;
}

.info-icon {
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 10px;
  font-weight: bold;
}

.info-box {
  display: none;
  position: absolute;
  bottom: 100%; /* Position the info box above the icon */
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px; /* Add space between the "i" button and the info box */
  padding: 10px;
  background-color: #f9f9f9;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 10px;
  width: 200px;
}

details[open] .info-box {
  display: block;
}



.terms-container {
  margin: 20px auto;
  padding: 20px;
  background-color: #eff6ff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  color: #000000;
}

.terms-box {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 40px;
  
}

/* Specific styles for headings within the .terms-box container */
.terms-box h1 {
  text-align: center;
  color: #000000;
  margin-bottom: 30px;
}

.terms-box h2 {
  margin-top: 30px;
  color: #000000;
}

.terms-box ul {
  list-style-type: disc;
  margin-left: 20px;
}

.terms-box ul li {
  margin-bottom: 10px;
}

.terms-box p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #555;
}

.terms-box .intro {
  color: #7f8c8d;
  margin-bottom: 30px;
  font-weight: 400;
}



#cookie-banner {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 5px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: smaller;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 90%;
}

#cookie-banner p {
  margin: 0;
  flex: 1;
}

#cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Buttons */
.cookie-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
}

.deny-btn {
  background: #777;
}

/* 💡 Mobile-Friendly Adjustments */
@media (max-width: 480px) {
  #cookie-banner {
      flex-direction: column;
      text-align: center;
      gap: 10px;
      padding: 10px;
  }

  #cookie-buttons {
      width: 100%;
      justify-content: center;
  }

  .cookie-btn {
      width: 45%;
  }
  body{
    font-size: x-small;
  }
  .features-grid {
    
    grid-template-columns: repeat( auto-fill, minmax(100%, 1fr) );
  }

}

/* Hover Effect */
.cookie-btn:hover {
  background: #0056b3;
  transform: scale(1.05);
}

.deny-btn {
  background: #777;
}

/* Hover Effect for Deny Button */
.deny-btn:hover {
  background: #555;
  transform: scale(1.05);
}
#manage-cookies {
  position: fixed;
  bottom: 60px;
  right: 20px;
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#left-margin-in{

  overflow: clip;
  white-space: pre-wrap;
  height: auto;
  position: relative;
  z-index: 1;
  width: 100%;
  word-wrap :  break-word;
  color: var(--font-color);
  letter-spacing: var(--letter-spacing);
}

#progressBar {
  height: 5px;
  width: 100%;
  background: #eee;
  margin-top: 10px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

#progressBar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0; /* Important: makes sure it starts from the left */
  height: 100%;
  width: 0%;
  background: #ff69b4;
  animation: fillProgress 10s linear forwards;
}


@keyframes fillProgress { 
  0% { width: 0%; }
  100% { width: 100%; }
}
#canvas-container{ 
  height: 60vh;

}
#canvas-tool{ 
  height: fit-content;

}
.floating-img {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 150px;
  height: 100px;
  cursor: move;
  z-index: 999;
}

/* Container for pagination buttons */
.pagination-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8em;
  margin: 1em auto 0.5em auto;
  padding: 0.5em;
  max-width: 95%;
}

/* Shared button styles */
.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 1em;
  font-size: 0.95em;
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Hover effect */
.pagination-btn:hover {
  background-color: #ffedd5;
  border-color: #fdba74;
}

/* Icon inside buttons */
.pagination-btn img {
  width: 1em;
  height: 1em;
}

/* Page number text */
.page-number {
  font-size: 1em;
  font-weight: 600;
  padding: 0.2em 0.7em;
  background: #fff1e6;
  border: 1px solid #fed7aa;
  border-radius: 999px;
}
/* Styling for the slider container */
.slider-container {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0.5em 0;
}

.slider-container input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 5px;
  transition: background 0.2s ease-in-out;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #4CAF50;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.slider-container input[type="range"]:focus {
  outline: none;
}

.slider-container input[type="range"]:hover {
  background: #bbb;
}

.slider-container input[type="range"]:active::-webkit-slider-thumb {
  background: #45a049;
}

/* Styling the value next to the slider */
.slider-container span {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}
#pdf-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
  font-size: 18px;
  font-family: sans-serif;
}

/* Simple rotating ring loader */
.loader {
  width: 50px;
  --b: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  -webkit-mask:
    repeating-conic-gradient(#0000 0deg,#000 1deg 70deg,#0000 71deg 90deg),
    radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b)));
  -webkit-mask-composite: destination-in;
          mask-composite: intersect;
  animation: l5 1s infinite linear;
  margin-bottom: 1em;
}

@keyframes l5 {
  to { transform: rotate(.5turn); }
}