*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Poppins,sans-serif;
}

body{
    background:#f4f7fb;
    color:#222;
}

.header{
    background:#4f46e5;
    color:#fff;
    padding:20px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    color:#fff;
    text-decoration:none;
    font-size:28px;
    font-weight:bold;
}

nav a{
    color:#fff;
    text-decoration:none;
    margin-left:20px;
}

.container{
    width:90%;
    max-width:800px;
    margin:40px auto;
    background:#fff;
    padding:30px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
    text-align:center;
}

h1{
    margin-bottom:10px;
}

p{
    color:#666;
    margin-bottom:20px;
}

.preview{
    margin:25px 0;
}

canvas{
    max-width:100%;
    border:2px dashed #ccc;
    border-radius:10px;
}

.controls{
    display:grid;
    gap:15px;
    margin:20px 0;
}

.controls input[type="text"]{
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
}

.controls input[type="range"]{
    width:100%;
}

#fontValue{
    font-weight:bold;
    color:#4f46e5;
}

button,
#downloadBtn{
    background:#4f46e5;
    color:#fff;
    border:none;
    padding:14px 30px;
    border-radius:8px;
    cursor:pointer;
    text-decoration:none;
    display:inline-block;
    margin:10px;
}

button:hover,
#downloadBtn:hover{
    background:#3730a3;
}

@media(max-width:768px){

.header{
    flex-direction:column;
    gap:15px;
}

.container{
    padding:20px;
}

}
