body {
    margin: 0;
}
@font-face {
    font-family: 'Acme-Regular';
    src: url('./fonts/Acme-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'AlfaSlabOne-Regular';
    src: url('./fonts/AlfaSlabOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Anton-Regular';
    src: url('./fonts/Anton-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'ArchivoBlack-Regular';
    src: url('./fonts/ArchivoBlack-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Arial Bold';
    src: url('./fonts/Arial-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Arial';
    src: url('./fonts/Arial.ttf') format('truetype');
}

@font-face {
    font-family: 'Arvo-Bold';
    src: url('./fonts/Arvo-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Arvo-BoldItalic';
    src: url('./fonts/Arvo-BoldItalic.ttf') format('truetype');
}

@font-face {
    font-family: 'Arvo-Italic';
    src: url('./fonts/Arvo-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'Arvo-Regular';
    src: url('./fonts/Arvo-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Athletic';
    src: url('./fonts/Athletic.ttf') format('truetype');
}

@font-face {
    font-family: 'Audiowide-Regular';
    src: url('./fonts/Audiowide-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'BalooBhai2-VariableFont_wght';
    src: url('./fonts/BalooBhai2-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Bangers-Regular';
    src: url('./fonts/Bangers-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'BebasNeue-Regular';
    src: url('./fonts/BebasNeue-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Bold Caps';
    src: url('./fonts/Bold-Caps.ttf') format('truetype');
}

@font-face {
    font-family: 'BowlbyOneSC-Regular';
    src: url('./fonts/BowlbyOneSC-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'BreeSerif-Regular';
    src: url('./fonts/BreeSerif-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Buttercup';
    src: url('./fonts/Buttercup.ttf') format('truetype');
}

@font-face {
    font-family: 'Calligraphy';
    src: url('./fonts/Calligraphy.ttf') format('truetype');
}

@font-face {
    font-family: 'CantataOne-Regular';
    src: url('./fonts/CantataOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Catalogue';
    src: url('./fonts/Catalogue.ttf') format('truetype');
}

@font-face {
    font-family: 'Chewy-Regular';
    src: url('./fonts/Chewy-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Cookie-Regular';
    src: url('./fonts/Cookie-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Courgette-Regular';
    src: url('./fonts/Courgette-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'CoveredByYourGrace-Regular';
    src: url('./fonts/CoveredByYourGrace-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Damion-Regular';
    src: url('./fonts/Damion-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'DaysOne-Regular';
    src: url('./fonts/DaysOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Elegant';
    src: url('./fonts/Elegant.ttf') format('truetype');
}

@font-face {
    font-family: 'FugazOne-Regular';
    src: url('./fonts/FugazOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Georgia Bold';
    src: url('./fonts/Georgia-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Georgia';
    src: url('./fonts/Georgia.ttf') format('truetype');
}

@font-face {
    font-family: 'GochiHand-Regular';
    src: url('./fonts/GochiHand-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Handwritten';
    src: url('./fonts/Handwritten.ttf') format('truetype');
}

@font-face {
    font-family: 'Impact';
    src: url('./fonts/Impact.ttf') format('truetype');
}

@font-face {
    font-family: 'Kalam-Bold';
    src: url('./fonts/Kalam-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Kalam-Light';
    src: url('./fonts/Kalam-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Kalam-Regular';
    src: url('./fonts/Kalam-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Lobster-Regular';
    src: url('./fonts/Lobster-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'LuckiestGuy-Regular';
    src: url('./fonts/LuckiestGuy-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Pacifico-Regular';
    src: url('./fonts/Pacifico-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'PatrickHand-Regular';
    src: url('./fonts/PatrickHand-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'PermanentMarker-Regular';
    src: url('./fonts/PermanentMarker-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'ReklameScript-Regular';
    src: url('./fonts/ReklameScript-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Righteous-Regular';
    src: url('./fonts/Righteous-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'RubikMonoOne-Regular';
    src: url('./fonts/RubikMonoOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'RussoOne-Regular';
    src: url('./fonts/RussoOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Sanchez-Italic';
    src: url('./fonts/Sanchez-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'Sanchez-Regular';
    src: url('./fonts/Sanchez-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Satisfy-Regular';
    src: url('./fonts/Satisfy-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Staatliches-Regular';
    src: url('./fonts/Staatliches-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Stencil';
    src: url('./fonts/Stencil.ttf') format('truetype');
}

@font-face {
    font-family: 'Thickest';
    src: url('./fonts/Thickest.ttf') format('truetype');
}

@font-face {
    font-family: 'Thinnest';
    src: url('./fonts/Thinnest.ttf') format('truetype');
}

@font-face {
    font-family: 'Trendsetter';
    src: url('./fonts/Trendsetter.ttf') format('truetype');
}

@font-face {
    font-family: 'Typewriter';
    src: url('./fonts/Typewriter.ttf') format('truetype');
}

@font-face {
    font-family: 'UnicaOne-Regular';
    src: url('./fonts/UnicaOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Verdana';
    src: url('./fonts/Verdana.ttf') format('truetype');
}

@font-face {
    font-family: 'Zooming';
    src: url('./fonts/Zooming.ttf') format('truetype');
}

/* Add more @font-face rules for other weights or styles if necessary */

.container {
    position: relative;
    text-align: center;
}

.text-area {
    background-image: url('./patter_bg.jpg');
    height: 435px !important;
    background-color: #c5c5c5;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    padding: 0 0 3rem 0px;
    background-size: auto; /* Ensures the background image covers the entire area */
}

.enter-text {
    color: #DADADA;
    font-size: 20px;
    font-weight: 200;
    padding-top: 30px;
}

.controls {
    background-color: #FFFFFF;
    padding: 15px;
    margin-top: -50px; /* Adjust margin-top to position controls upwards */
    border-radius: 20px;
    margin-left: 20px;
    margin-right: 20px;
    position: relative;
    z-index: 1; /* Ensure controls are above other content */
}

#customText {
    font-size: 1in; /* Default size */
    color: #FFFFFF; /* Default color */
    font-family: 'Alfa Slab One'; /* Default font */
    border: none;
    background: none;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 0;
}

#customText:focus {
    outline: none;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: left;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input, select {
    padding: 5px;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #186AAD;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    
    color:white;
}

/* New CSS provided */

.container {
    text-align: center;
}

.color-palette {
    display: none;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 5px;
}

.color-palette.visible {
    display: block;
}

.color-option {
    width: 30px;
    height: 30px;
    margin: 2px;
    display: inline-block;
    cursor: pointer;
}
/* Add this to your theme's CSS */
.woocommerce-product-gallery__image img {
    width: auto;
    max-width: 100%;
    height: auto;
}


#colorPalette {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.color-swatch {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-swatch.selected {
    border-color: #000; /* Highlight color for selected swatch */
}

#colorButton {
    margin-top: 2px;
    width: 120px; /* Adjust width and height as needed */
    height: 45px; /* Adjust width and height as needed */
    border: 1px solid #ccc; /* Border to make it visible */
    display: inline-block; /* Ensure it behaves like a button */
    background-color: #FFFFFF; /* Initial background color */
}

.color-palette-div{
    position: relative;
}

#colorPalette{
    position:absolute;
    left:50px;
    width:200px;
}

#colorLabel{
    text-align: left;
}

input.input-size{
    width: 40%; 
    height: 45px;
    border-radius: 20px;
}
input.input-quantity{
    width: 50%; 
    height: 45px;
    border-radius: 20px;
}

/* Custom CSS for WooCommerce cart item data */
.woocommerce-cart .cart_item .item_data {
    font-size: 16px;
}

input.select2-search__field{
    display: none;
}

.custom-text-wrapper {
    display: inline-block;
    max-width: 25ch; /* Limits to 25 characters */
    word-wrap: break-word; /* Breaks the word if it's too long */
    white-space: normal; /* Allows text to wrap */
}


/* Medium devices (tablets, 600px to 900px) */
@media (min-width: 601px) and (max-width: 900px) {

    .custom-text-wrapper {
        display: inline-block;
        max-width: 20ch; /* Limits to 25 characters */
        word-wrap: break-word; /* Breaks the word if it's too long */
        white-space: normal; /* Allows text to wrap */
    }

    .text-area {
        height: auto; /* Adjust height for medium screens */
        padding: 2rem;
    }

    .enter-text {
        font-size: 18px;
    }

    .controls {
        margin-top: -30px;
        padding: 12px;
        margin-left: 15px;
        margin-right: 15px;
    }

    #colorButton {
        width: 110px; /* Adjust width for medium screens */
        height: 40px;
    }

    .input-size, .input-quantity {
        width: 90%; /* Adjust width for inputs on medium screens */
    }
}

/* Large devices (desktops, 900px and up) */
@media (min-width: 901px) {
    .text-area {
        height: 435px; /* Default height for large screens */
        padding: 3rem;
    }

    .enter-text {
        font-size: 20px;
    }

    .controls {
        margin-top: -50px;
        padding: 15px;
        margin-left: 20px;
        margin-right: 20px;
    }

    #colorButton {
        width: 120px; /* Default width for large screens */
        height: 45px;
    }

    .input-size, .input-quantity {
        width: 40%; /* Default width for inputs on large screens */
    }
}

/* Media Query for Mobile Devices (600px and down) */
@media (max-width: 600px) {

    .custom-text-wrapper {
        display: inline-block;
        max-width: 20ch; /* Limits to 25 characters */
        word-wrap: break-word; /* Breaks the word if it's too long */
        white-space: normal; /* Allows text to wrap */
    }
    
    .text-area {
        height: auto; /* Adjust height for smaller screens */
        padding: 1rem;
        flex-direction: column;
    }

    .enter-text {
        font-size: 16px;
    }

    .controls {
        margin-top: -20px;
        padding: 10px;
        margin-left: 10px;
        margin-right: 10px;
        flex-direction: column;
        gap: 5px;
    }


    #colorButton {
        width: 100px; /* Adjust width for smaller screens */
        height: 35px;
    }

    .input-size, .input-quantity {
        width: 100%; /* Full width for inputs on small screens */
    }

    #colorPalette {
        left: 10px;
        width: 100%;
    }

    .color-swatch {
        width: 30px;
        height: 30px;
    }
}
/* Mobile view, max width of 768px */
@media only screen and (max-width: 768px) {
    .jayfx-custom-text {
        display: inline-block;
        word-wrap: break-word;
        word-break: break-all;
        max-width: 25ch; /* Ch is the character unit */
    }
    .preview_img{
        width:200px;
    }
}

@media only screen and (max-width: 768px) {

    .preview_img{
        width:50px;
    }
}

.custom-product-details {
    display: flex;
    align-items: center;
}

.custom-product-image {
    margin-right: 10px; /* Adjust spacing between image and details as needed */
}

.custom-product-details-right {
    flex: 1; /* Allows the details to take up the remaining space */
}
