* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

  body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f9f9f9;
            color: #333;
            line-height: 1.6;
        }
/* Header Styles - Full Width */
.site-header {
    background-color: white;
    color: black;
    width: 100%;
  
    top: 0;
    z-index: 100;
}

.mainheader {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 60px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: rgba(226, 184, 143, 0.2);
}

.nav-link.active {
    background-color: #e2b88f;
    color: #333;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
   
    border-radius: 20px;
   
    overflow: hidden;
}

.controls {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    color: white;
}

.controls h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
}

.controls p {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 30px;
}

.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    background: rgba(255,255,255,0.95);
    transition: all 0.3s;
}

input[type="text"]:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.style-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.style-option {
    background: rgba(255,255,255,0.1);
    border: 3px solid transparent;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.style-option:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.style-option.active {
    background: rgba(255,255,255,0.25);
    border-color: white;
}

.style-option span {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

.style-option p {
    font-size: 12px;
    margin: 0;
}

.settings-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.slider-group {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255,255,255,0.3);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

button {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,255,255,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.preview-section {
    padding: 40px;
    background: #f8f9fa;
    min-height: 600px;
}

#preview {
    background: white;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-height: 500px;
}

.tracing-line {
    margin-bottom: 60px;
    position: relative;
}

.tracing-text {
    font-size: 80px;
    line-height: 1.5;
    color: #ddd;
    font-weight: 600;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.tracing-text.dotted {
    color: transparent;
    -webkit-text-stroke: 2px #ddd;
    text-stroke: 2px #ddd;
}

.tracing-text.dashed {
    color: transparent;
    background-image: repeating-linear-gradient(
        90deg,
        #ddd 0px,
        #ddd 10px,
        transparent 10px,
        transparent 20px
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 2px #ddd;
    text-stroke: 2px #ddd;
}

.guide-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.guide-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    left: 0;
}

.baseline { bottom: 20%; }
.midline { bottom: 50%; }
.topline { bottom: 80%; }

/* Handwriting Styles */
.style-print { font-family: 'Arial', sans-serif; }
.style-cursive { font-family: 'Brush Script MT', cursive; }
.style-modern { font-family: 'Comic Sans MS', cursive; }
.style-elegant { font-family: 'Georgia', serif; font-style: italic; }
.style-bold { font-family: 'Impact', sans-serif; }
.style-script { font-family: 'Lucida Handwriting', cursive; }

/* Footer Styles - Full Width */
.site-footer {
    background-color: #333;
    color: #aaa;
    width: 100%;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #444;
}

.footer-column p {
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.social-links a:hover {
    color: #e2b88f;
    background: rgba(226, 184, 143, 0.2);
    transform: translateY(-2px);
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.quick-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.contact-info i {
    color: #e2b88f;
    font-size: 16px;
    margin-top: 2px;
    min-width: 20px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .site-header,
    .controls,
    .site-footer {
        display: none;
    }
    
    .preview-section {
        padding: 20px;
    }
    
    #preview {
        box-shadow: none;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-column:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .mainheader {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .controls h1 {
        font-size: 1.8em;
    }
    
    .style-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tracing-text {
        font-size: 50px;
    }
    
    #preview {
        padding: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 20px 10px;
        border-radius: 10px;
    }
    
    .controls {
        padding: 20px;
    }
    
    .controls h1 {
        font-size: 1.5em;
    }
    
    .style-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .style-option {
        padding: 10px;
    }
    
    .style-option span {
        font-size: 24px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .logo img {
        height: 45px;
    }
}

  .infocontainer {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            
            overflow: hidden;
        }

  .infocontainer  h2 {
  color: #2c3e50;       
  font-size: 2.5em;   
  text-align: center;   
 margin: 0 20px 10px 20px;
 text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

  .infocontainer  p {
  color: #555;          
  font-size: 16px;       
  line-height: 1.6;     
  text-align: justify;  
  margin: 0 20px 10px 20px;  
 
}

        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px 30px;
            text-align: center;
        }

        .header h2 {
            font-size: 2.5em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }

        .header p {
            font-size: 1.1em;
            opacity: 0.95;
        }

        .content {
            padding: 40px 30px;
        }

        .step {
            margin-bottom: 35px;
            padding: 25px;
            background: #f8f9fa;
            border-radius: 12px;
            border-left: 5px solid #667eea;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .step:hover {
            transform: translateX(5px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
        }

        .step-number {
            display: inline-block;
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 40px;
            font-weight: bold;
            font-size: 1.2em;
            margin-right: 15px;
            box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
        }

        .step-title {
            font-size: 1.4em;
            color: #667eea;
            margin-bottom: 12px;
            font-weight: 600;
        }

        .step-description {
            color: #555;
            font-size: 1.05em;
            line-height: 1.7;
        }

        .tip-box {
            background: #e8f4f8;
            border-left: 4px solid #4CAF50;
            padding: 20px;
            margin: 30px 0;
            border-radius: 8px;
        }

        .tip-box h3 {
            color: #4CAF50;
            margin-bottom: 10px;
            font-size: 1.3em;
        }

        .tip-box ul {
            margin-left: 20px;
            color: #555;
        }

        .tip-box li {
            margin: 8px 0;
            line-height: 1.6;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .feature-card {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .feature-card:hover {
            border-color: #667eea;
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
        }

        .feature-icon {
            font-size: 2.5em;
            margin-bottom: 10px;
        }

        .feature-title {
            font-weight: 600;
            color: #667eea;
            margin-bottom: 8px;
        }

        .cta-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            border-radius: 12px;
            text-align: center;
            margin-top: 40px;
        }

        .cta-section h2 {
            margin-bottom: 15px;
            font-size: 1.8em;
        }

        .cta-button {
            background: white;
            color: #667eea;
            padding: 12px 30px;
            border: none;
            border-radius: 25px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .cta-button:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }

            .content {
                padding: 30px 20px;
            }

            .step {
                padding: 20px;
            }
        }