body {
    font-family: Arial, sans-serif;
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 100vh;
    padding: 40px;
}
label{
    font-size: 26px;
    font-weight: bold;
}
h1 {
    text-align: center;         /* Title ko center mein karne ke liye */
    margin-top: 20px;
    margin-bottom: 25px;        /* Niche description se thoda gap */
    font-size: 3rem;

    /* BLACK UNDERLINE KE LIYE YE LINES ADD KAREIN: */
    border-bottom: 3px solid #000; /* Line ki thickness 3px aur color solid black (#000) */
    display: table;                /* Isse line sirf text jitni lambi dikhegi, puri screen par nahi */
    margin-left: auto;             /* display: table ke saath center karne ke liye */
    margin-right: auto;            /* display: table ke saath center karne ke liye */
    padding-bottom: 8px;           /* Text aur line ke beech thoda space */
}

input, textarea{
    width: 90%;
    padding: 28px;        /* pehle 8px tha → bigger */
    font-size: 26px;      /* text bada */
    margin-bottom: 10px;
    border: 2px solid #ccc;
    border-radius: 10px;
}

.description {
    font-size: 1.5rem; /* Font size bada karne ke liye */
    font-weight: bold; /* Text ko bold karne ke liye */
    line-height: 1.6;  /* Reading easy karne ke liye thoda gap */
    margin-bottom: 50px;
}
.transition-help {
    background: #f2f2f2;
    padding: 10px;
    border-radius: 8px;
    margin-top: 5px;
    text-align: left;
}
.dark {
    color: #000;
    font-weight: bold;
}

.form-group {
    margin-bottom: 70px; 
    display: block;      
}

.hint{
    font-size: 24px;     
    color: #555;
    margin-top: 4px;
    margin-bottom: 10px;
    margin-left: 15px;   
}

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.form-group {
    margin-bottom: 50px;
}

label i {
    font-size: 24px; 
}

input:focus {
    border-color: #2196f3;
    box-shadow: 0 0 12px rgba(33, 150, 243, 0.2); 
    background-color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.hint i {
    color: #2196f3; 
}

.top-buttons {
    position: absolute;
    top: 20px;
    right: 30px;
}
.instruction-box {
    background: #ffffff;
    border-left: 6px solid #2196f3;
    padding: 25px;
    border-radius: 12px;

    max-width: 650px;   /* 👈 width control */
    margin: 0 auto 40px auto; /* 👈 center align */
}

.instruction-box h2 {
    margin-bottom: 10px;
}



.top-buttons button {
    margin-left: 10px;
    padding: 10px 18px;
    font-size: 15px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 20px; /* rounded look */
    cursor: pointer;
    transition: 0.3s;
}

.top-buttons button:hover {
    background: #1976d2;
    transform: scale(1.05);
}
#exampleGraph {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    margin-top: 10px;
}

#exampleGraph svg {
    width: 100%;
    height: 100%;
}


textarea#transitions {
    font-family: 'Courier New', Courier, monospace; 
    line-height: 1.5;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 12px;
    background-color: #fafafa;
    resize: vertical; 
}

/* Convert Button Styling */
.convert-btn {
    background: #2196f3;
    color: white;
    padding: 15px 40px;
    font-size: 22px;
    font-weight: bold;
    border: none;
    border-radius: 50px; /* Capsule shape */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.convert-btn:hover {
    background: #1976d2;
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}
.theory-section{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-left: 20px;
    margin-top: 40px;
}

.theory-section h2{
    font-size: 34px;
    border-bottom: 3px solid black;
    padding-bottom: 5px;
    margin: 0;
}

.theory-btn{
    text-decoration: none;
    background-color: #1e88e5;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.theory-btn:hover{
    background-color: #1565c0;
}
.graph-section{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 20px;
    margin-top: 20px;
}

.graph-section h2{
    font-size: 34px;
    border-bottom: 3px solid black;
    padding-bottom: 5px;
    margin: 0;
}

.graph-btn{
    text-decoration: none;
    background-color: #4CAF50;   /* green (different from theory) */
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 15px;
    transition: 0.3s;
}

.graph-btn:hover{
    background-color: #388E3C;
}
.convert-btn i {
    margin-right: 10px;
}

.convert-btn:active {
    transform: translateY(0); 
}

textarea{
height:300px;
width: 95%;
padding: 28px;
margin-bottom: 3px;

}
.logo{
    width: 120px;      /* image small */
    float: left;       /* left side */
    margin-right: 15px;
    margin-top: 10px;
}

button{
padding:20px 30px;
font-size: 24px;
background:#2196f3;
color:white;
border:none;
border-radius:8px;
margin-top:15px;
}
/* "Subset Construction Steps" wale area ke liye */
#steps, #dfaTable, pre {
    font-size: 20px;          /* Font size bada karne ke liye */
    line-height: 1.6;         /* Lines ke beech gap ke liye */
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace; /* Coding font */
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #ddd;
    color: #333;
    overflow-x: auto;         /* Agar text lamba ho toh scrollbar aa jaye */
    max-width: 800px;         /* Aapke input boxes ke saath matching width */
}

/* Heading (Steps aur Table) ka size bhi thoda bada kar dete hain */
h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a1a;
}
/* Result sections ke fonts bade karne ke liye */
#steps {
    font-size: 22px; 
    line-height: 1.6;
    background: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #2196f3;
    margin-bottom: 30px;
}

/* Modern Table Style */
.modern-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
    font-size: 20px; /* Bada Font */
    margin-top: 20px;
    background: white;
    text-align: center;
}

.modern-table th {
    background: #2196f3;
    color: white;
    padding: 15px;
    border: 1px solid #ddd;
}

.modern-table td {
    padding: 15px;
    border: 1px solid #eee;
}

.state-name {
    font-weight: bold;
    color: #1976d2;
    background-color: #f1f7ff;
}

.modern-table tr:nth-child(even) {
    background-color: #fafafa;
}

#nfaGraph, #dfaGraph {
    width: 100%;
    max-width: 800px; /* Aapke input boxes jitna */
    height: 450px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    border-radius: 12px;
    margin-top: 20px;
    overflow: hidden; /* Yeh important hai */
    position: relative;
}
.theory-img{
    width: 1000px;
    display: block;
    margin: 20px auto;
    border: 2px solid black;
    padding: 5px;
}

pre{
background:white;
padding:20px;
}
