
        :root { 
            --primary: #2563eb; 
            --primary-hover: #1d4ed8;
            --bg: #dbe6f0; 
            --text: #1e293b;
        }
        
        body { 
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
            background: var(--bg); 
            color: var(--text);
            margin:0;padding:0;
        }
        
        #main{width:900px;height:auto;padding:20px;margin:100px auto;background-color:white;border:1px solid #e6e6e6;display: flex; 
            flex-direction: column; 
            align-items: center; 
            padding: 40px 20px; 
            border-radius:20px;
            box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
            }

        header { text-align: center; margin-bottom: 30px; max-width: 600px; }
        h1 { margin: 0; color: #0f172a; font-size: 2rem; }
        p.subtitle { color: #64748b; margin-top: 10px; }
        
        .tool-card { 
            background: white; 
            padding: 30px; 
            border-radius: 16px; 
            box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
            width: 100%; 
            max-width: 480px; 
            box-sizing: border-box;
           
        }
        
        #viewport {
            width: 300px; 
            height: 400px; 
            margin: 20px auto;
            overflow: hidden;
            position: relative;
            border: 2px solid #000;
            background: #fff;
            cursor: move;
            display: none;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }

        #raw-img {
            position: absolute;
            top: 0;
            left: 0;
            transform-origin: 0 0;
            pointer-events: none;
        }

        #name-preview-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.9);
            color: #000;
            font-size: 14px;
            font-weight: bold;
            padding: 8px 0;
            display: none;
            pointer-events: none;
            text-align: center;
            border-top: 1px solid #ddd;
        }

        .controls { display: none; flex-direction: column; gap: 20px; margin-top: 20px; }
        
        .input-group { text-align: left; }
        .input-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: #475569; }
        
        input[type="text"], input[type="range"] {
            width: 100%;
            padding: 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            box-sizing: border-box;
            font-size: 1rem;
        }

        .btn { 
            display: inline-block;
            width: 100%;
            background: var(--primary); 
            color: white; 
            border: none; 
            padding: 14px; 
            border-radius: 8px; 
            font-weight: bold; 
            font-size: 1rem;
            cursor: pointer; 
            transition: background 0.2s; 
        }
        .btn:hover { background: var(--primary-hover); }
        .btn-upload { background: #334155; margin-bottom: 10px; }
        .btn-upload:hover { background: #1e293b; }

        footer { margin-top: 50px; font-size: 0.85rem; color: #94a3b8; }
        
        
 #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;
        }
.top2{width:60%;display:table;background-color:white;margin:50px auto;padding:20px}
.top2 p{font-size:16px;font-family: arial;line-height:25px;margin-left:20px;margin-top:20px}
.top2 h3{font-size: 18px;margin-left:20px;font-family: arial}
.top2 h2{font-size: 22px;margin-left:20px;font-family: arial}
.top2 ul li a{font-size:16px;font-family: arial;line-height:25px;margin-top:20px;text-decoration:none}
.top2 ul li{font-size:16px;font-family: arial;line-height:25px;margin-left:20px;margin-top:20px}        

 @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:85%}  

 .top2{width:85%;display:table;background-color:white;margin:50px auto;padding:20px}
.top2 p{font-size:16px;font-family: arial;line-height:25px;margin-left:20px;margin-top:20px}
.top2 h3{font-size: 18px;margin-left:20px;font-family: arial}
.top2 h2{font-size: 22px;margin-left:20px;font-family: arial}
.top2 ul li a{font-size:16px;font-family: arial;line-height:25px;margin-top:20px;text-decoration:none}
.top2 ul li{font-size:16px;font-family: arial;line-height:25px;margin-left:20px;margin-top:20px}    
            .footer-content {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .step:not(:last-child)::after {
                display: none;
            }    
  } 
}  
    