/* Global Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f1f1f1;
}
.page-header {
  background-color: #d51c1c;
  color: #ffffff;
  font-size: 24px;
  padding: 15px;
  text-align: center;
  font-weight: bold;
}

.oneFive {
  background-image: url('fuses_bg.png');
  background-size: cover;
  background-position: center;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
}

.oneFive p {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 3px 3px #d51c1c;
  margin: 0;
}
.grid-item {
  background-color: #ffffff; /* White background */
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border: 2px solid #d51c1c; /* Red Border */
  transition: transform 0.3s, background-color 0.3s;
  border-radius: 4px;
}

.grid-item:hover {
  transform: scale(1.05);
  background-color: #f9f9f9;
}

.grid-item img {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin-bottom: 5px;
}

/* Navigation Bar */
.topnav {
  background-color: #ffffff;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border-bottom: 2px solid #d51c1c;
  position: relative;
  z-index: 1000;
}

.topnav a {
  padding: 10px 15px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

.topnav a.active {
  background-color: #d51c1c;
  color: #ffffff;
  border-radius: 4px;
}

.dropdown {
  position: relative;
}

.dropdown .dropbtn {
  background-color: #ffffff;
  color: #000;
  padding: 10px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.dropdown .dropbtn:hover {
  background-color: #e0e0e0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  padding: 10px;
  min-width: 160px;
  z-index: 1;
  border: 1px solid #d51c1c;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  padding: 8px 12px;
  text-decoration: none;
  color: #000000;
  display: block;
}

.dropdown-content a:hover {
  background-color: #e0e0e0;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;  /* Full viewport width */
  height: 100vh;  /* Full viewport height */
  background-color: rgba(0, 0, 0, 0.85);  /* Darker overlay */
  z-index: 1000;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.modal-content {
  background-color: #ffffff;
  width: 80%;
  max-width: 900px;
  height: 80%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.5s ease;
}

.modal-content img {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  margin-bottom: 15px;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  background-color: #d51c1c;
  color: #ffffff;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
}

.close-button:hover {
  background-color: #b01717;
}

/* Fuse Filters Styling */
/* Fuse Filters Styling - Updated */
#fuse-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background-color: transparent; /* No background */
  margin-bottom: 15px;
}

#fuse-filters button {
  padding: 10px 15px;
  background-color: #ffffff; /* White background */
  color: #d51c1c; /* Red text */
  border: 2px solid #d51c1c; /* Red border */
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  border-radius: 4px;
}

#fuse-filters button:hover {
  background-color: #d51c1c;
  color: #ffffff;
  transform: scale(1.05);
}

/* Red Border and Background for Fuse Grid Container */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  padding: 20px;
  background-color: #d51c1c; /* Red Background */
  border: 4px solid #d51c1c; /* Red Border */
  margin: 20px auto; /* Center the container */
  max-width: 90%; /* Adjust width to maintain spacing */
  box-sizing: border-box; /* Ensure padding doesn't exceed container */
  border-radius: 6px; /* Optional: Adds slight rounding */
}

.sub-dropdown {
  position: relative;
}

.sub-dropdown-content {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;  /* Position to the right of the parent */
  background-color: #ffffff;
  padding: 10px;
  border: 1px solid #d51c1c;
  min-width: 150px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.sub-dropdown:hover .sub-dropdown-content {
  display: block;
}

.sub-dropdown-content a {
  padding: 8px 12px;
  text-decoration: none;
  color: #000000;
  display: block;
}

.sub-dropdown-content a:hover {
  background-color: #e0e0e0;
}