/* General styles */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Header */
.page-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #fff;
}

.logo {
    height: 50px;
    margin-right: 15px;
}

.page-title {
    font-size: 32px;
    color: #9059a1;
}

/* Main Content */
.content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Instructions Box */
#instructions-box {
    margin: 10px 0;
}

/* Style adjustments for the image container */
.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 10px;
    gap: 10px; /* Ensure some space between image wrappers */
}

/* Image wrap to contain both image and selection checkbox */
.image-wrap {
    position: relative;
    width: calc(33.333% - 20px); /* Adjust based on desired number per row, accounting for gap */
    box-sizing: border-box;
}

.image-wrap img {
    width: 100%; /* Ensure images are responsive within their wrapper */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 5px; /* Space between the image and the checkbox */
}

/* Style for the selection checkbox and label */
.image-wrap label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.image-wrap input[type="checkbox"] {
    margin-right: 5px; /* Space between checkbox and label text */
}

/* Button Styling */
.btn, label.btn, #generatePDF {
    font-family: Arial, sans-serif; /* Ensure font-family is the same */
    padding: 8px 15px;
    margin-top: 15px;
    cursor: pointer;
    background-color: #9059a1;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    display: inline-block; /* This ensures that the label behaves like a button */
    text-align: center;
}

.btn:hover, label.btn:hover, #generatePDF:hover {
    background-color: #7a489a;
}

/* PDF Button Container */
.pdf-button-container {
    text-align: left;
    padding: 10px 0;
}

.pdf-donate-container {
    display: flex;
    align-items: center; /* Align items vertically in the center */
    justify-content: center; /* Center items horizontally, change this as needed */
    gap: 10px; /* Space between items */
    padding: 20px;
}

.donate-button-container {
    /* Example styling; adjust as needed */
    display: flex;
    align-items: center;
justify-content: center;
padding: 10px 10px; 

}

.donation-text {
color: #9059a1;
}

/* Ensure the donation button iframe (rendered by PayPal) is not taking up unexpected space */
#donate-button iframe {
    height: auto; /* or some fixed height that aligns with your buttons */
    width: auto; /* or some fixed width as needed */
}


/* Footer */
footer {
    height: 30px;
    background-color: #9059a1;
    color: white;
    text-align: center;
    padding: 10px 0;
}

.increase, .decrease {
        font-size: 13px; /* Even larger text for clear visibility */
        padding: 16px 16x; /* Slightly larger than general buttons for easier interaction */
    }

.image-quantity-controls button {
        /* If your + / - buttons are within a specific container, you can target them like this */
        padding: 15px 15px; /* Adjust padding as needed */
        font-size: 16px; /* Adjust font size as needed */
    }

/* Mobile styles */
@media (max-width: 780px) {
    /* Adjust header padding and logo size */
    .page-header {
        padding: 15px;
    }

    .logo {
        height: 60px; /* Adjust logo size to be reasonable on mobile */
    }

    /* Adjust title size */
    .page-title {
        font-size: 24px;
    }

    /* Standardize button sizes */
    .btn, label.btn, #generatePDF, .increase, .decrease {
        padding: 10px 20px; /* Uniform padding */
        font-size: 18px; /* Uniform font size */
    }

    /* Adjust text size in the instructions box and footer */
    #instructions-box p, footer p {
        font-size: 18px;
    }

    /* Adjust footer padding */
    footer {
        padding: 15px 0;
    }

    .image-wrap {
        width: calc(33.333% - 10px); /* for three images per row */
        margin: 5px; /* Adjust the margin as needed */
        box-sizing: border-box; /* Include padding and borders in the element's total width and height */
    }

   /* Ensure images fill their container */
    .image-wrap img {
        width: 100%;
        height: auto;
    }

    /* Increase padding for content container */
    .content, .image-container {
        padding: 15px;
    }

    /* Adjust the increase/decrease button sizes if needed */
    .increase, .decrease {
        padding: 10px; /* Slightly larger than other buttons for easier interaction */
        font-size: 18px; /* Readable font size but not too large */
    }

    /* Ensure image quantity controls are a reasonable size */
    .image-quantity-controls button {
        padding: 10px;
        font-size: 18px;
    }
}

.paper-size-selector {
    margin-top: 20px;
    text-align: center;
    color: #9059a1;
    font-size: 16px;
}
.paper-size-selector select {
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #9059a1;
}

.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #ffffff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#uploadFileProgressPopup {
  font-family: sans-serif;
  font-weight: bold;
  font-size: 16px;
  background-color: #f8f8f8;
  box-shadow: 0px 0px 5px rgba(0,0,0,0.2);
  padding: 15px 30px;
  border-radius: 8px;
}
