body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f1f1f1;
}

.ammoh {
  text-align: center;
  font-size: 24px;
  color: white;
  background-color: #d51c1c;
  padding: 10px;
  margin-bottom: 15px;
}

.topnav {
  background-color: #ffffff;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  border-bottom: 2px solid #d51c1c;
}

.topnav a, .dropbtn {
  color: #000000;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: bold;
}

.topnav a.active {
  background-color: #d51c1c;
  color: #ffffff;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.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: #f1f1f1;
}

.oneFive {
  background-image: url('https://armyrecognition.com/images/stories/north_america/united_states/artillery_vehicle/m777/M777_155mm_ultralight_lightweight_towed_howitzer_United_States_925_001.jpg');
  background-size: cover;
  background-position: center;
  height: 150px;
  width: 100%;
  border: 5px solid #d51c1c;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.oneFive p {
  margin: 0;
  font-size: 32px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px #000000;
}

.section-title {
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  padding: 10px;
  margin-bottom: 15px;
  border-top: 2px solid #d51c1c;
  border-bottom: 2px solid #d51c1c;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  background-color: #d51c1c;  /* Red background */
  max-width: 1200px;
  margin: 0 auto;
  border: 2px solid #b51717;
  border-radius: 5px;
}

.grid-item {
  background-color: #ffffff;
  padding: 10px;
  border: 2px solid #d51c1c;
  position: relative;
  text-align: center;
  width: 200px;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.grid-item:hover {
  transform: scale(1.05);
}

.ammo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.label {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  padding: 5px;
  font-size: 12px;
  border-radius: 4px;
}

.modal {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  padding: 20px;
  width: 60%;
  max-width: 600px;
  margin: 100px auto;
  position: relative;
  border-radius: 5px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  color: #d51c1c;
}
