body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f4f4f4;
}


 /* BUTTONS */

.button3D {
    background-color: White; /* White */
    border: none;
    color: #04AA6D;
    padding: 10px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 3px 110px;
    transition: background-color 0.4s, box-shadow 0.4s; /* Smooth transitions */
    cursor: crosshair;
}

.button3D:hover {
    background-color: #04AA6D; /* Darker color for hover */
    color: white;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.button3D:active {
    background-color: #555; /* Even darker color for click */
    box-shadow: 0 5px 10px 0 rgba(0,0,0,0.1);
    transform: translateY(2px); /* Mimics the button being pressed down */
}


 /* ORDER BUTTONS */

.btn {
  transition: all 0.3s ease-in-out;
  font-family: "Dosis", sans-serif;
}

.btn {
  width: 150px;
  height: 60px;
  border-radius: 50px;
  background-image: linear-gradient(135deg, #feb692 0%, #ea5455 100%);
  box-shadow: 0 20px 30px -6px rgba(238, 103, 97, 0.5);
  outline: none;
  cursor: pointer;
  border: none;
  font-size: 24px;
  color: white;
}

.btn:hover {
  transform: translateY(3px);
  box-shadow: none;
}

.btn:active {
  opacity: 0.5;
}

 /* END */

.popup-title {
    font-size: 24px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 0px;
}

.popup-fields {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2px;
    font-size: 14px;
}

.popup-field {
     width: calc(33.33% - 10px); /* Adjusting for some margin */
    margin-bottom: 10px;
    border: 1px solid #ccc;      /* Add a light border */
    padding: 10px;               /* Add some internal spacing */
    background-color: #f9f9f9;  /* Light background color */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Slight shadow for 3D effect */
    border-radius: 5px;          /* Rounded corners */
    transition: transform 0.2s; /* Smooth transition for hover effect */
}

popup-field:hover {
    transform: scale(1.02); /* Slightly enlarges the box on hover */
}


.popup-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: #ffffff;
    align-items: center; /* Center vertically */
    height: 100%; /* Make sure the parent container has a defined height */
    padding: 20px;
    border: 5px solid #dcdcdc;
    border-radius: 15px;
}

/* Table styles */
.popup-content table {
    width: 100%;
    Height: 100%;
    margin: 0 auto;  /* Center the table horizontally */
    border-collapse: collapse;
    display: none;
}

    
.popup-content th, .popup-content td {
    border: 1px solid #dcdcdc;  /* Border for table headers and cells */
    padding: 10px 15px;         /* Padding inside each cell */
    text-align: left;           /* Align text to the left */
    font-size: 2vw;             /* Adjust the font size based on viewport width */
}

   /* loaded table in popup header*/
.popup-content th {
    background-color: #f4f4f4; /* Light gray background for headers */
    font-weight: bold;          /* Bold text for headers */
    font-size: 30px;
}


 /* loaded table inside text*/
.popup-content tr:nth-child(odd) {
    background-color: #fafafa; /* Slightly different background for alternate rows for better readability */
      font-size: 15px;
}

.popup-content tr:hover {
    background-color: #e6e6e6; /* Highlight the row when hovered over */
}

.table {
    display:none;
    width: 50%;
}

/* Machine images */
.popup-image {
    width: 70%;
    text-align: center;
    float: left;
    margin: 15px;
}

#machineImage {
    max-width: 100%;
    margin-top: 20px;
}

/* Small pictures for support */
.popup-images {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap; /* Allows the images to wrap to the next line if there isn't enough space */
}

.close-popup {
  position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background-color: #ff4b4b;  /* Red background */
    color: #ffffff;              /* White text */
    padding: 10px 8px;           /* Some padding for a button-like appearance */
    border-radius: 5px;          /* Rounded corners */
    font-weight: bold;           /* Bold text */
    text-align: center;          /* Center the "X" text */
    width: 15px;                 /* Fixed width */
    height: 15px;                /* Fixed height */
    line-height: 14px;           /* Vertically align the "X" in the center */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* A subtle shadow for depth */
}

.close-popup:hover {
    background-color: #e63939;  /* Slightly darker red for hover effect */
}



.clear-data-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    background-color: #ff4b4b;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Styles for support images */
.popup-images img {
    width: 35px;
    height: 35px;
}

@media (max-width: 768px) { /* Example breakpoint */
    .popup-field {
        width: 50%; /* Two columns for smaller screens */
    }

    .popup-field:nth-child(odd) {
        margin-right: 10px;
    }
}


/* Responsiveness: CSS for responsiveness */

@media (max-width: 480px) { /* Another example breakpoint */
    .popup-field {
        width: 100%; /* One column for even smaller screens */
    }
     .button3D {
        padding: 12px 24px; /* Smaller padding on mobile devices */
        font-size: 14px; /* Slightly smaller font size */
    }
}

/* Table Styling */
#sparePartsTable {
    width: 100%;
    border-collapse: collapse;
}

#sparePartsTable th, #sparePartsTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#sparePartsTable th {
    background-color: #4CAF50;
    color: white;
}

#sparePartsTable tr:hover {
    background-color: #f5f5f5;
}

#sparePartsTable td:nth-child(6) {  /* Select the 6th column which is the Stock column */
    text-align: center;
}


/*/* Checkbox Styling
input[type=checkbox] {
    margin-right: 10px;
}*/

/* Checkbox Styling */
input[type=checkbox] {
    margin-left: 12px;
    transform: scale(1.5); /* Scale the checkbox */
    }





.modal {
    display: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-size: 18px;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 50px;
    border: 5px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.qty-input {
    width: 33px !important; /* Set a fixed width with higher priority */
    max-width: 33px !important; /* Set a maximum width with higher priority */
    padding: 3px !important;
    border: 1px solid #ccc !important;
    border-radius: 10px !important;
    text-align: center !important; /* Center the text inside the input field */
}


#modelViewerModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;  // Ensure this is high enough to be on top of other content
    overflow: hidden;  // Adjust as necessary
}

#canvasContainer {
    width: 100%;  // Takes the full width of its parent
    height: 100%; // Takes the full height of its parent
    overflow: hidden; // Prevents any overflow from the canvas spilling out of the container
}