/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: left;
}

h2 {
    margin-top: 20px;
    text-align: center;
}

.attribute, select, button, #result, #design {
    display: block;
    margin-top: 20px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.attribute label, .attribute select, #design {
    margin-top: 0;
}

#design {
    width: 50px; /* Adjust the width to make the number box smaller */
}

.attribute {
    text-align: center; /* Center-align the labels */
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 20%;
  height: auto;
}

.hidden {
    display: none;
}

.product-images img {
    display: block;
    margin: 0 auto;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    max-width: 300px;
    height: auto;
}

/* Responsive styles */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .attribute, select, button, #result, #design {
        width: 100%; /* Make elements full-width */
    }

    #design {
        width: 90%; /* Make the input box full-width on small screens */
    }

    select, button, input {
        font-size: 16px; /* Adjust font size for better readability */
    }

    h2 {
        font-size: 24px; /* Adjust the heading size for smaller screens */
    }
    
    .hidden {
    display: none;
    }
    
    .center {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 50%;
        height: auto;
    }
}

/* Print styles */
@media print {
    #productImageDiv,
    .product-images,
    button,
    a[href*="wa.me"] {
        display: none !important;
    }

    body::after {
        content: "www.ghsolution.com.my";
        display: block;
        text-align: center;
        font-size: 14px;
        font-weight: bold;
        color: #000;
        margin-top: 30px;
        padding-top: 125px;
        border-top: 1px solid #ccc;
        background-image: url("https://api.qrserver.com/v1/create-qr-code/?size=110x110&data=https://www.ghsolution.com.my/price_checker/");
        background-repeat: no-repeat;
        background-position: center 10px;
        background-size: 110px 110px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}