/*
* ===================================================
*     CUSTOM CSS CODE BELOW
* ===================================================
*/
.card-menu {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Ensure menu appears above other elements */
}

.card-option {
  padding: 5px;
  cursor: pointer;
}

.overlay-rectangle {
  position: absolute;
  background-color: rgba(255, 0, 0, 0.5); /* Semi-transparent red */
  color: black;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input {
  background-color: rgba(255, 0, 0, 0.5); /* Semi-transparent blue for input */
}

.output {
  background-color: rgba(
    0,
    0,
    255,
    0.5
  ); /* Semi-transparent green for output */
}

.power {
  background-color: rgba(255, 208, 0, 0.5);
}

.add-to-cart-button {
  bottom: 10px;
  right: 10px;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}
.add-to-cart-button:hover {
  background-color: #0056b3;
}

.image-container {
  max-width: 800px; /* Maximum width for the container */
  margin: 0 auto; /* Center the container horizontally */
  position: relative;
}

/* Styling for all tables */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-family: Arial, sans-serif;
}

/* Styling for table headers */
table th {
  background-color: #4caf50;
  color: white;
  padding: 8px;
  text-align: left;
}

/* Styling for table header links */
table th a {
  color: white;
  text-decoration: none; /* Adjust as needed */
}

table th a:hover {
  text-decoration: underline; /* Optional hover effect */
}

/* Styling for alternating rows */
table tr:nth-child(even) {
  background-color: #f2f2f2; /* Light grey */
}

table tr:nth-child(odd) {
  background-color: #e5e5e5; /* Slightly darker grey */
}

/* Styling for data cells */
table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

/* Hover effect for rows */
table tr:hover {
  background-color: #ddd;
}
.note {
  background-color: #f0f0f0; /* Light gray background */
  border-left: 4px solid #3498db; /* Blue left border */
  padding: 10px; /* Padding around the note content */
  margin-bottom: 15px; /* Spacing between notes */
}
.download-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
h3 {
  color: #343a40;
}
.download-section {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 20px;
}
.download-section h4 {
  color: #007bff;
}
.download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}
.download-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  margin-left: 10px;
}
.icon {
  width: 24px;
  height: 24px;
}

/* Make wide tables scroll on small screens */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth iOS scrolling */
}

/* Let the table grow to its content width but not smaller than the viewport */
.table-responsive > table {
  width: max-content;
  min-width: 100%;
}

/* Helpful cell defaults */
th,
td {
  padding: 0.5rem;
  text-align: left;
  vertical-align: top;
  /* Prevent single super-long strings from breaking layout */
  overflow-wrap: anywhere;
}

/* Optional: slightly tighter on small screens */
@media (max-width: 600px) {
  th,
  td {
    padding: 0.4rem;
  }
  table {
    font-size: 0.95rem;
  }
}