.writer {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    min-height: 100px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    resize: none;
    box-shadow: 0px 2px 4px hsl(0 0% 0% / 25%);
    animation: border-angle-rotate 12s infinite linear;
    border: 3px solid transparent;
    --border-angle: 0deg;
    border-radius: 12px;
    background: linear-gradient(white, white) padding-box,
      conic-gradient(
          from var(--border-angle),
          oklch(100% 100% 0deg),
          oklch(100% 100% 45deg),
          oklch(100% 100% 90deg),
          oklch(100% 100% 135deg),
          oklch(100% 100% 180deg),
          oklch(100% 100% 225deg),
          oklch(100% 100% 270deg),
          oklch(100% 100% 315deg),
          oklch(100% 100% 360deg)
        )
        border-box;
}
@keyframes border-angle-rotate {
  from { --border-angle: 0deg; }
  to { --border-angle: 360deg; }
}
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
canvas {
    min-width: 100%;
    height: 300px;
    border: 1px solid black;
    image-rendering: crisp-edges;
    border-radius: 8px;
}
#output {
    overflow-y: auto;
    display: block;
}
.canvas-holder{
    display: flex;
}
.canvas-left{
    width: calc(100% - 52px);
}
.canvas-right{
    display: flex;
    flex-direction: column;
    width: 52px;
    padding-left: 10px;
}
.align-btn {
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    padding: 4px;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.align-btn:hover {
    border-color: #4CAF50;
}

.align-btn.active {
    border: 2px solid black;
    background: #f2f2f2;
}
.print-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    padding: 4px;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #3498db;
}
.print-btn:hover{
    background: #3498db;
    border-color: #2980b9;
}
/* General container styling */
.spacing-holder {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 4px;
}

/* SVG adjustments */
.spacing-holder label{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}
.spacing-holder label img {
    width: 24px;
    height: 24px;
    padding: 4px;
    box-sizing: content-box;
}

/* Input field styling */
.spacing-holder input[type=number] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
    border-radius: 4px;
    background: none;
    border: 0 !important;
    border-top: 1px solid #f2f2f2 !important;
    border-bottom: 1px dashed #f2f2f2 !important;
    padding: 0px !important;
    text-align: center;
    font-weight: 800;
    color: black;
}

/* Hide default arrows in WebKit */
.spacing-holder input::-webkit-outer-spin-button,
.spacing-holder input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Custom arrows container */
.custom-arrows {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Buttons */
.custom-arrows button {
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    padding: 2px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    background: none;
    color: black;
    border-radius: 0px !important;
}
.custom-arrows button.increase {
    border-left: 1px solid #f2f2f2;
}
.custom-arrows button:hover {
    background-color: black;
    color: white;
    border-radius: 0px !important;
}

/* Font List Styles */
.slick-wrapper.initializing {
    max-height: 0px;
    overflow: hidden;
}
.slick-wrapper.slick-initialized {
    max-height: none;
    overflow: visible;
}
.slick-list {
    text-align: left; /* Align slides to the left */
}
.nextgrad{
    position: absolute;
    padding-top: 20px;
    right: 52px;
    width: 72px;
    height: 60px;
    z-index: 999;
    background: linear-gradient(90deg,rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 1) 50% ,rgba(255, 255, 255, 1) 100%);
    font-size: 10px;
    font-weight: 800;
    padding-left: 24px;
    color: black;
}
.nextgrad::after {
    content: "DRAG ►";
}
.slick-track {
    display: flex !important; /* Force flex so items align left */
    justify-content: flex-start !important; /* Align left */
    margin-bottom: 6px;
}

.slick-scrollbar {
    width: 100%;
    height: 6px;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #f2f2f2;
    position: relative;
    overflow: hidden;
    margin-top: 6px;
    margin-bottom: 6px;
}

/* Scrollbar Thumb (Movable Part) */
.slick-scrollbar-thumb {
    height: 100%;
    width: 50px; /* Default width, will be updated dynamically */
    background: #f2f2f2;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: background 0.3s;
}

.slick-scrollbar-thumb:hover {
    background: #555; /* Darker when hovered */
}

.font-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 0px 8px;
    height: 60px;
    background: white;
    border-right: 1px solid #ddd;
    border-bottom: 2px solid #ddd;
    transition: all 0.2s ease;
}

.font-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.font-item.purchased {
    cursor: pointer;
    position: relative;
}

.font-item.purchased:not(.active):hover {
    background: #f9f9f9;
}

.font-item.purchased:after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(76, 175, 80, 0.05);
    opacity: 0;
    transition: opacity 0.2s;
}

.font-item.purchased:hover:after {
    opacity: 1;
}

.font-item:not(.purchased) {
    cursor: default;
    opacity: 0.8;
}

/*.font-item-content {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 15px;*/
/*}*/

.font-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
    image-rendering: pixelated;
}
.font-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.font-info h3 {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.font-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-locked {
    color: #666;
    font-size: 14px;
}

.status-unlocked {
    width: 26px;
    height: 26px;
    line-height: 24px;
    text-align: center;
    color: #4CAF50;
    font-size: 16px;
    border: 1px solid #f2f2f2;
    border-radius: 15px;
}

.purchase-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.purchase-link:hover {
    text-decoration: underline;
}

.font-item.active {
    border-color: #4CAF50;
    animation: border-angle-rotate 12s infinite linear;
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
    --border-angle: 0deg;
    background: linear-gradient(white, white) padding-box,
      conic-gradient(
          from var(--border-angle),
          oklch(100% 100% 0deg),
          oklch(100% 100% 45deg),
          oklch(100% 100% 90deg),
          oklch(100% 100% 135deg),
          oklch(100% 100% 180deg),
          oklch(100% 100% 225deg),
          oklch(100% 100% 270deg),
          oklch(100% 100% 315deg),
          oklch(100% 100% 360deg)
        )
        border-box;
}

/* Print styles */
@media print {
    body > *:not(.writer),
    .writer > *:not(.print-page),
    .elementor-location-header,
    .elementor-location-footer,
    #main-header,
    #main-footer,
    .site-header,
    .site-footer,
    nav,
    header,
    footer,
    aside,
    .sidebar {
        display: none;
    }

    body {
        margin: 0;
        padding: 0;
        background: white !important;
        overflow: hidden;
    }

    .print-page {
        page-break-after: always;
        display: flex;
        flex-direction: column;
        background: white !important;
        margin: 0;
        padding: 56px;
        overflow: hidden;
    }

    .print-header {
        text-align: center;
        text-transform: uppercase;
        padding: 10px;
        font-size: 12px;
        font-weight: bold;
        border: 2px solid black;
        border-bottom: none;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        background: white !important;
        order: 1;
    }

    canvas {
        display: block;
        margin: 0 !important;
        padding: 0;
        border-radius: 0;
        border: 2px solid black;
        border-top: 4px solid black;
        border-bottom: 4px solid black;
        order: 2;
    }

    .print-footer {
        order: 3;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        font-size: 10px;
        font-family: monospace;
        line-height: 1.4;
        background: white !important;
    }

    .logo {
        width: 100px;
        height: auto;
        flex-shrink: 0;
    }
}
@page {
    size: A4; /* or "letter" */
    margin: 0;
}