 :root {
            --primary: #2A5BFF;
            --primary-dark: #1E4AD9;
            --secondary: #FF6B6B;
            --dark: #1A1A2E;
            --light: #F8F9FF;
            --gray: #6C757D;
            --gray-light: #E9ECEF;
            --success: #28A745;
            --border-radius: 12px;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }

  body { 
    margin:0; 
    font-family: 'Segoe UI', system-ui, sans-serif; 
    background:rgb(56, 55, 55); 
    color: #333; 
    
    touch-action: manipulation;
    background-color: #f2f3f7;
    background-color: #eff0f5;
  }
  #main{
    width:90%;
    min-height:calc(100vh - 50px);
    max-height:auto;
    overflow-y: auto;
    margin:80px auto;
    border-radius:10px;
    position:relative;

  }
 

  #h1{ 
    margin:80px 20px 5px 10px;
    font-size: 30px;
    font-family: Poppins, sans-serif;
    font-weight: 800;
  }
  #h1p{
    margin:0px 20px 10px 10px;
    font-size: 17px;
    text-align: center;
  }
 
 .imgsec{width:46%;height:490px;float:left;margin-top:10px} 
 .imgsec img{height:100%;float:right;border-radius:10px;border-radius:0px 0px 100px 200px}
  
 
  
  
  .filesec{width:50%;height:470px;float:right;margin-top:10px;display:flex;flex-direction:column;align-items:center}
  
  .header-subtitle { 
    text-align: center; 
    color: #64748b; 
    margin-bottom: 2rem; 
    font-size: 1.1rem; 
  }
  #logoimg{
    width:50px;
    position:absolute;
    top:40px;
    left:10px;
  }
  
  .upload-zone { 
    border: 3px dashed #cbd5e1; 
    border-radius: 16px; 
    background: #fff; 
    padding: 40px 20px; 
    text-align: center; 
    cursor: pointer; 
    transition: all .3s; 
    margin-bottom: 2rem; 
    width:80%;
    margin-top:20px;
  }
  .upload-zone.dragover { 
    background: #eff6ff; 
    border-color: #3e8d75;
  }
  .upload-text { 
    font-size: 1.5rem; 
    color: #475569; 
    margin-bottom: 0.5rem;
  }
  .upload-hint { 
    color: #94a3b8; 
  }
  .hidden { display: none; }
  #footer { 
    width:90%;
    background-color:white;
    margin:50px auto;
    font-family: arial;
    border-radius: 10px; 
    padding: 20px;
  }
  #footer h2, p{
    margin:20px 0;
    line-height:25px
  }
  .cropper-wrapper {
    width: 1000px;
    margin: 0 auto;
    z-index:9999;
  }
  .crop-area {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    touch-action: none;
  }
  #imageContainer {
    position: relative;
    display: inline-block;
    max-width: 100%;
    touch-action: none;
  }
  #cropImage {
    max-width: 100%;
    max-height: 70vh;
    display: block;
  }
  .crop-overlay {
    position: absolute;
    border: 3px dashed #3e8d75;
    background: rgba(62, 141, 117, 0.15);
    cursor: move;
    display: none;
    touch-action: none;
  }
  .shape-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .handle {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #3e8d75;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    touch-action: none;
  }
  .handle.nw { top: -12px; left: -12px; cursor: nwse-resize; }
  .handle.ne { top: -12px; right: -12px; cursor: nesw-resize; }
  .handle.sw { bottom: -12px; left: -12px; cursor: nesw-resize; }
  .handle.se { bottom: -12px; right: -12px; cursor: nwse-resize; }
  .controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: end;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .control-group {
    display: flex;
    flex-direction: column;
  }
  .control-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
  }
  select, input[type=number] {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }
  .download-btn {
    padding: 1rem 2.5rem;
    background: #3e8d75;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: bold;
  }
  .download-btn:hover {
    background: #3e8e41;
  }
  .shape-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .shape-btn {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
  }
  .shape-btn.active {
    border-color: #3e8d75;
    background: #e6f4f1;
    box-shadow: 0 0 10px rgba(62,141,117,0.3);
  }

  .top{width:100%;display:table;margin:100px auto;background-color:white;padding:100px 0;background: linear-gradient(to right, #e74e8f, #f8644a); }
  .topleft{width:40%;height:400px;float:left;margin-left:20px;text-align:center;}
  .topleft h2{color:#737373;font-size:38px;font-family: Poppins, sans-serif;color:white;}
  .topleft h3{color:#3399ff;color:#00b386;font-size:45px;font-family:cursive;font-style:italic;margin-top:-20px}
  .topright{width:48%;height:auto;float:right;box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;border-radius:20px;overflow:hidden;margin-right:50px}

  .top2{width:100%;display:table;margin:100px auto;background-color:white;padding:200px 0;}
  .top2 h2{font-family: tahoma;font-size:40px;text-align:center;color:#4d4d4d}
  .top2 li{color:#737373}
  .top2left{width:40%;height:auto;float:left;text-align:center;border:0px solid;margin-left:80px;margin-top:50px;overflow:hidden;border-radius:50px}
  .top2left video{width:100%;float:right;}
  .top2right h3{color:#666666;font-size:22px;font-family:tahoma}
  .top2right strong{color:#737373;font-size:16px;font-family:arial;font-weight:lighter;line-height:28px}
   .top2right p{margin-top:-13px}
  .top2right{width:40%;height:auto;float:left;overflow:hidden;margin-left:50px;border:0px solid;padding:0px;margin-top:50px}
 
 
  .top3{width:80%;display:table;margin:100px auto;background-color:white;padding:100px 0;}
  .faq-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .faq-item {
            margin-bottom: 15px;
            border-radius: var(--border-radius);
            overflow: hidden;
            border: 1px solid var(--gray-light);
        }

        .faq-question {
            padding: 22px 25px;
            background-color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
        }

        .faq-question:hover {
            background-color: var(--light);
        }

        .faq-question i {
            transition: var(--transition);
        }

        .faq-item.active .faq-question i {
            transform: rotate(180deg);
        }

        .faq-answer {
            padding: 0 25px;
            max-height: 0;
           
            transition: max-height 0.3s ease;
            background-color: white;
        }

        .faq-item.active .faq-answer {
            padding: 0 25px 25px;
            max-height: 1100px;
        }


 #header{
    width:100%;
    height:60px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position:fixed;top:0;
    z-index:9999;
    border-bottom:1px solid #d9d9d9;
  }
  #header h1{
    font-size:16px; 
    font-family:arial;
    font-weight:lighter;
    color:white
  }
  #header img{width:170px;margin-left:50px}
  #header p{font-family:arial;margin-right:50px}
  #header p a{margin-left:40px;text-decoration:none;color:#262626;font-family:helvetica}
  #header button{background-color:#262626;color:white;padding:9px 18px;border-radius:9px;cursor:pointer;border:none;font-family:helvetica}
  #header button:hover{background-color:#404040;color:#f2f2f2;border:none}  
  
  
  
  /* Footer */
        footer {
            background-color:#1A1A2E;
            color: white;
            padding: 70px 20px 30px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 50px;
            margin-bottom: 50px;
        }

        .footer-logo {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 20px;
            display: block;
        }

        .footer-about p {
            opacity: 0.7;
            margin-bottom: 25px;
            line-height: 1.8;
        }

        .footer-links h4 {
            font-size: 1.2rem;
            margin-bottom: 25px;
            font-weight: 700;
        }

        .footer-links ul {
            list-style: none;
            margin-left:-40px;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: white;
            padding-left: 5px;
        }

        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.6;
            font-size: 0.9rem;
        }
#arrow-pc{position:absolute;left:10px;top:-20px;font-size:30px;}
 @media (min-width: 200px) and (max-width: 800px) {
 #header p{display:none}  
    #main{
      width:95%;
      min-height:auto;
      overflow-y: auto;
      margin:10px auto;
      border-radius:10px;
      background-color:#f1f5f9;
      opacity:1;
      box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    }

  #header{
    width:100%;
    height:50px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position:fixed;top:0;
    z-index:9999;
    border-bottom:1px solid #d9d9d9;
  }
  #header h1{
    font-size:16px; 
    font-family:arial;
    font-weight:lighter;
    color:white
  }
  #header img{width:110px;margin-left:10px}

  #main{
    width:100%;
    height:auto;
    margin:70px auto;
    border-radius:10px;
    position:relative;
  }

    
.leftimage{width:70%;height:auto;padding-bottom:10px;float:none;margin-left:0px;margin:auto;}
.rightfile{width:90%;height:420px;float:none;margin-right:0px;margin:auto;} 

 .imgsec{width:90%;height:auto;padding-bottom:10px;float:none;margin-left:0px;margin:auto;} 
 .imgsec img{width:100%}
 .filesec{width:90%;height:auto;float:none;margin-right:0px;margin:auto;} 
    


.cropper-wrapper {
    width: 90%;
    margin: 0 auto;
    z-index:9999;
    
  }
  .crop-area {
    display: block;
    margin:10px auto !important;
    float:none;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    touch-action: none;
    width:98%;
    
  }
  
#imageContainer{margin-top:20px}

  
  .controls {
    display: block;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
 
   .control-group {
    display:block;
  }
  .control-group label {
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: #333;
  }
  select, input[type=number] {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width:90% !important;
    margin-bottom:20px;
  } 
  
.top1{width:100%;display:table;background-color:white;margin:50px auto;padding:100px 0}
.top1left{width:98%;height:auto;float:none;margin:auto;}
.top1right{width:95%;height:auto;float:none;margin:20px auto}
.top1right h2{font-size:23px;margin:0;padding:0;}
.top1right h3{font-size:19px;margin:0;padding:0;margin-top:25px;}
.top1right p{font-size:16px;margin-top:10px;padding:0;}  
    



 .top{width:100%;display:table;margin:100px auto;background-color:white;padding:50px 0;background: linear-gradient(to right, #e74e8f, #f8644a); }
  .topleft{width:95%;height:300px;float:none;margin-left:0px;text-align:center;margin:auto;}
  .topleft h2{color:#737373;font-size:38px;font-family: Poppins, sans-serif;color:white;}
  .topleft h3{color:#3399ff;color:#00b386;font-size:35px;font-family:cursive;font-style:italic;margin-top:-20px}
  .topright{width:95%;height:auto;float:none;box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;border-radius:20px;overflow:hidden;margin-right:0px;margin:auto;}

  .top2{width:95%;display:table;margin:100px auto;background-color:white;padding:200px 0;}
  .top2 h2{font-family: tahoma;font-size:40px;text-align:center;color:#4d4d4d}
  .top2 li{color:#737373}
  .top2left{width:98%;height:auto;float:none;text-align:center;border:0px solid;margin-left:0px;margin-top:50px;overflow:hidden;border-radius:50px;margin:auto;}
  .top2left video{width:100%;float:right;}
  .top2right h3{color:#666666;font-size:22px;font-family:tahoma;margin-top:20px;}
  .top2right strong{color:#737373;font-size:16px;font-family:arial;font-weight:lighter;line-height:28px}
   .top2right p{margin-top:-13px;color:black;font-weight:bold}
  .top2right{width:95%;height:auto;float:none;overflow:hidden;margin-left:0px;border:0px solid;padding:0px;margin-top:50px;margin:auto}
 
 
  .top3{display:table;margin:100px auto;padding:100px 0;width:90%}
  .faq-container {
            margin: 0 auto;
        }

        .faq-item {
            margin-bottom: 15px;
            border-radius: var(--border-radius);
            overflow: hidden;
            border: 1px solid var(--gray-light);
            
        }

        .faq-question {
            padding: 22px 25px;
            background-color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            
        }

        .faq-question:hover {
            background-color: var(--light);
        }

        .faq-question i {
            transition: var(--transition);
        }

        .faq-item.active .faq-question i {
            transform: rotate(180deg);
        }

        .faq-answer {
            padding: 0 25px;
            height:auto;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background-color: white;
            width: 95%;
         
        }

        .faq-item.active .faq-answer {
            padding: 0 25px 25px;
            max-height: 1200px;
        }
    
    
            .footer-content {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .step:not(:last-child)::after {
                display: none;
            }    
  } 
    
    
    
    
    
  /*  ////////////////////////////////  */  
    
    




#rightbar{width:calc(100% - 200px);height:calc(100% - 50px);float:none;margin:auto;}




.container {
      display: flex;
      margin-top:160px;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    #image-upload {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

    #preview-container {
      width: 250px;
      height: 200px;
      border: 1px solid #ddd;
      border-radius: 5px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;
    }

    #preview {
      max-width: 100%;
      max-height: 100%;
    }

    #convert-button {
      padding: 10px 20px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      opacity: 0.5;
    }

    #convert-button:hover {
      opacity: 1;
    }

    #error-message {
      color: red;
      font-weight: bold;
      text-align: center;
      display: none;
    }
#label{background-color:#5c7cd6;color:white;padding:10px 20px; border: none;border-radius: 5px;cursor: pointer;font-family:arial}
#label:hover{background-color:#476cd1}




.textcontainer {
    border-radius: 5px;
    margin: 20px;
    overflow: hidden;
    width:900px;
    margin:20px auto;
}

.textheader {
    rgba(71, 108, 209, 0.5);
    padding: 10px;
    cursor: pointer;
}

.textcontent {
    padding: 10px;
    background-color: #fff;

}

.textcontent p{font-size:16px;font-family: arial;line-height:25px;margin-left:20px;margin-top:20px}
.textcontent h3{font-size: 18px;margin-left:20px;font-family: arial}
.textcontent h2{font-size: 22px;margin-left:20px;font-family: arial}
.textcontent ul li a{font-size:16px;font-family: arial;line-height:25px;margin-top:20px;text-decoration:none}
.textcontent ul li{font-size:16px;font-family: arial;line-height:25px;margin-left:20px;margin-top:20px}







        .drop-area {

        }

        .drop-area p {
            margin: 0;
        }

        .error-message {
            color: red;
            margin-top: 10px;
            font-size:14px;
            font-family:arial;
            width:200px;
            cursor:pointer;
        
        }

        button {
            padding: 10px 20px;
            background-color: gray;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        button:hover {
            background-color: #2a93d5;
        }



        #dropArea.dragover {
            border-color: #000;
            color: #000;
        }

  




  #uploadedImages {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;

            overflow-y: auto;
            margin-top: 10px;
        }

        .image-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 10px;
        }

        .uploaded-image {
            max-width: 200px;
            max-height: 200px;
        }

        input[type="file"] {
            display: none;
        }



 








@media (min-width: 500px) and (max-width: 900px) {

    #main{width:90%;height:600px;margin:10px auto;border-radius:10px;background-color:#f1f5f9;opacity:1;box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;}


#rightbar{width:98%;height:auto;padding-bottom:20px;float:none;margin:0 auto;}




.container {
      display: flex;
      margin-top:100px;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    #image-upload {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

    #preview-container {
      width: 250px;
      height: 200px;
      border: 1px solid #ddd;
      border-radius: 5px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;
    }

    #preview {
      max-width: 100%;
      max-height: 100%;
    }

    #convert-button {
      padding: 10px 20px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      opacity: 0.5;
    }

    #convert-button:hover {
      opacity: 1;
    }

    #error-message {
      color: red;
      font-weight: bold;
      text-align: center;
    }
#label{background-color:#5c7cd6;color:white;padding:10px 20px; border: none;border-radius: 5px;cursor: pointer;font-family:arial}
#label:hover{background-color:#476cd1}




.textcontainer {
    border-radius: 5px;
    margin: 20px;
    overflow: hidden;
    width:90%;
    margin:20px auto;
}

.textheader {
    rgba(71, 108, 209, 0.5)
    padding: 10px;
    cursor: pointer;
}

.textcontent {
    padding: 10px;
    background-color: #fff;
}

}






@media (min-width: 200px) and (max-width: 500px) {

    #main{width:94%;height:600px;margin:10px auto;border-radius:10px;background-color:#f1f5f9;opacity:1;box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;}



#rightbar{width:98%;height:auto;padding-bottom:20px;float:none;margin:0 auto;}




.container {
      display: flex;
      margin-top:100px;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    #image-upload {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

    #preview-container {
      width: 250px;
      height: 200px;
      border: 1px solid #ddd;
      border-radius: 5px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;
    }

    #preview {
      max-width: 100%;
      max-height: 100%;
    }

    #convert-button {
      padding: 10px 20px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      opacity: 0.5;
    }

    #convert-button:hover {
      opacity: 1;
    }

    #error-message {
      color: red;
      font-weight: bold;
      text-align: center;
    }
#label{background-color:#5c7cd6;color:white;padding:10px 20px; border: none;border-radius: 5px;cursor: pointer;font-family:arial}
#label:hover{background-color:#476cd1}




.textcontainer {
    border-radius: 5px;
    margin: 20px;
    overflow: hidden;
    width:98%;
    margin:20px auto;
}

.textheader {
    rgba(71, 108, 209, 0.5)
    padding: 10px;
    cursor: pointer;
}

.textcontent {
    padding: 10px;
    background-color: #fff;
}





}

 
  