/* File: assets/css/font-preview.css */

/* Container for font preview options */
#font-preview-options {
    margin-top: 20px;
}

/* Styling for the live preview box */
#sticker-preview {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    margin-top: 15px;
}

/* Styling for the live preview text */
#live-preview {
    min-height: 50px;
    /* Additional styling can be added here */
}









.color-dropdown {
    appearance: none;
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 14px;
    width: 100%;
    background-color: #fff;
    cursor: pointer;
    text-overflow: ellipsis;
    position: relative;
}

.color-dropdown option {
    background: #fff; /* Reset option backgrounds */
    padding: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-dropdown option:before {
    content: '';
    width: 16px;
    height: 16px;
    display: inline-block;
    border: 1px solid #ccc;
    margin-right: 10px;
    background-color: currentColor;
    border-radius: 2px;
}

/* Improve dropdown appearance on mobile */
@media (max-width: 768px) {
    .color-dropdown {
        font-size: 16px;
    }

    .color-dropdown option {
        font-size: 16px;
    }
}











/* --- Mobile adjustments for font preview --- */
@media (max-width: 768px) {

/* Mobilon a preview text kisebb méretű legyen és ne lógjon ki */
@media (max-width: 768px) {
    #live-preview {
        font-size: 30px !important; /* kisebb kezdőméret mobilon */
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #sticker-text {
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }
}

    /* Remove preview box border and padding */
    #sticker-preview {
        border: none;
        padding: 0;
        background-color: transparent;
    }

    /* Make input fields responsive */
    #sticker-text,
    #sticker-font,
    #sticker-color {
        width: 100%;
        box-sizing: border-box;
    }

    /* Optional: adjust margins */
    #font-preview-options {
        margin-top: 10px;
    }
}