body {
    font-family: Arial, sans-serif;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 500px;
}

.drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    cursor: pointer;
    margin-bottom: 20px;
}

#previewContainer {
    margin-top: 20px;
}

canvas {
    max-width: 100%;
    border: 1px solid #ccc;
    display: block;
    margin-bottom: 20px; /* Ensure some space between labels */
}

button {
    color: #fff;
    padding: 15px 25px;
    margin: 20px 20px 20px 20px;
    border-radius: 100px;
    background-color: #4C43CD;
    background-image: radial-gradient(93% 87% at 87% 89%, rgba(0, 0, 0, 0.23) 0%, transparent 86.18%), radial-gradient(66% 87% at 26% 20%, rgba(255, 255, 255, 0.41) 0%, rgba(255, 255, 255, 0) 69.79%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 2px 19px 31px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    font-size: 16px;
    border: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    cursor: pointer;
}

@media print {
    .drop-area,
    button#printButton {
        display: none;
    }

    /* Ensure section break before each container */
    .label-container {
        break-before: auto; /* Reset break behavior */
        height: calc(100vh / 2); /* Height for each shipping label container */
        width: 100%;
        overflow: hidden; /* Hide overflow content */
        position: relative; /* Set position relative for absolute positioning */
    }

    /* Adjust canvas position */
    canvas {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto; /* Let the height be determined by the content */
        max-width: 100%; /* Ensure the canvas doesn't exceed the container width */
        max-height: 100%; /* Ensure the canvas doesn't exceed the container height */
        margin: 0px; /* Set smaller margin */
        padding: 0px; /* Set smaller padding */
        border: none; /* Remove any border */
        display: block; /* Ensure canvas takes full width */
        box-sizing: border-box; /* Ensure canvas respects width and height */
    }
}




/* Style for shipping label */
.shipping-label {
    width: 100%;
    border: 1px solid #ccc;
    display: block;
}
