body {
            font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
            background: #f0f0f0;
            margin: 0px;
            padding: 0px;
            color: #222;
        }
        
        .header {
            background-color: #1e88e5;
            width: 100%;
            margin: 0;
            border-bottom: 2px solid #cfd6ce;
        }

        .sidenav {
            height: 100%;
            width: 0;
            position: fixed;
            z-index: 99999;
            top: 0;
            left: 0;
            background-color: #fafafa;
            overflow-x: hidden;
            transition: 0.5s;
            padding-top: 60px;
        }

        .sidenav a, .sidenav h3 {
            padding:5px 32px;
            text-decoration: none;
            font-size:20px;
            color: #222222;
            display: block;
            transition: 0.3s;
            text-align: left;
        }

        .sidenav a:hover {
            color: #1e88e5;
        }

        .sidenav .closebtn {
            position: absolute;
            top: 0;
            right: 25px;
            font-size: 36px;
            margin-left: 50px;
        }

        .main-menu {
            background-color: #1e88e5;
            overflow: hidden;
            margin: 0 auto;
            width: 100%;
            max-width: 1200px;
            color: #fafafa;
        }

        @media screen and (max-height: 450px) {
            .sidenav { padding-top: 15px; }
            .sidenav a { font-size: 18px; }
        }

        img {
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            border: 0;
        }

        h1 {
            color: #1e88e5;
            font-size: 25px;
            padding: 10px;
            text-align: left;
            margin-bottom: 12px;
        }

        a.logo { color: #1e88e5;font-size:24px;}

        .container {
            max-width: 1100px;
            margin: 50px auto;
            background: #fff;
            padding: 15px 20px;
        }

        textarea {
            display: block;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto 12px;
            min-height: 84px;
            padding: 10px;
            font-size: 20px;
            border-radius: 2px;
            border: 1px solid #ccc;
            box-sizing: border-box;
            resize: vertical;
        }

        #controls {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            margin-bottom: 18px;
        }

        #controls label {
            display: flex;
            flex-direction: column;
            font-size: 13px;
            color: #333;
            font-weight: 600;
            gap: 6px;
            align-items: flex-start;
        }

        #controls input[type="range"] { width: 180px; }
        #controls input[type="color"] { height: 36px; width: 48px; padding: 0; border: 0; }

        #alignButtons button {
            padding: 8px 12px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #f0f0f0;
            cursor: pointer;
            margin: 0 5px;
        }

        #alignButtons button.active {
            background-color: #1e88e5;
            color: #fff;
            border-color: #1e88e5;
        }

        #alignButtons button:hover {
            background-color: #ddd;
        }

        #outputContainer {
            gap: 18px;
            align-items: start;
        }

        .preview-wrapper {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
            width: 100%;
            box-sizing: border-box;
            margin: 20px auto;
        }

        .preview-card {
            background: #fff;
            border-radius: 10px;
            padding: 20px;
            min-height: 80px;
            width: 100%;
            display: flex;
            align-items: center;
            box-sizing: border-box;
            outline: 1px solid #eee;
            box-shadow: 0 0 6px rgba(0,0,0,0.1);
        }

        .font-name {
            text-align: left;
            font-weight: 700;
            color: #222;
            font-size: 17px;
            user-select: text;
        }

        .preview-area {
            flex: 1 1 auto;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            text-align: left;
            min-height: 80px;
            word-break: break-word;
            width: 100%;
        }

        .preview-text {
            display: inline-block;
            line-height: 1;
            padding: 30px;
            font-family: inherit, sans-serif;
            text-align: left;
            white-space: pre-wrap;
        }

        .buttons-row {
            width: 100%;
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        .btn {
            padding: 5px 10px;
            margin: 2px;
            cursor: pointer;
            background-color: #f0f0f0;
            border: 1px solid #ccc;
            border-radius: 3px;
        }

        .btn:hover {
            background: #222;
            color: white;
        }

        .small-note {
            text-align: center;
            color: #666;
            font-size: 13px;
            margin-top: 10px;
        }

        .site-footer {
            background-color: #fff;
            color: #080000;
            padding: 40px 20px 20px;
            font-family: 'Segoe UI', sans-serif;
        }

        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 40px;
            max-width: 1100px;
            margin: auto;
        }

        .footer-content h3, .footer-content h4 {
            color: #1e88e5;
        }

        .footer-left p {
            max-width: 300px;
            font-size: 0.95em;
            line-height: 1.6;
        }

        .footer-links ul {
            list-style: none;
            padding: 0;
        }

        .footer-links ul li {
            margin-bottom: 8px;
        }

        .footer-links ul li a {
            color: #302f31;
            text-decoration: none;
        }

        .footer-links ul li a:hover {
            text-decoration: underline;
        }

        .footer-social a {
            color: #555;
            text-decoration: none;
            font-size: 0.95em;
        }

        .footer-social a:hover {
            text-decoration: underline;
        }

        .footer-bottom {
            text-align: center;
            margin-top: 30px;
            font-size: 0.85em;
            color: #999;
            border-top: 1px solid #333;
            padding-top: 15px;
        }

        .pagination {
            text-align: center;
            margin: 30px auto;
            font-family: sans-serif;
        }

        .pagination a {
            display: inline-block;
            padding: 8px 14px;
            margin: 0 4px;
            text-decoration: none;
            color: #1e88e5;
            border: 1px solid #1e88e5;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .pagination a:hover {
            background-color: #1e88e5;
            color: #fff;
            text-decoration: none;
        }

        .pagination a.active {
            background-color: #1e88e5;
            color: #fff;
            pointer-events: none;
            cursor: default;
        }