* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #f9fafb;
  color: #333;
}

header {
  background-color: #013220;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}
/* css for additional typ[es of panels */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-grid img {
  width: 100%;
  display: grid-item;
  flex: 1 1 auto;
  object-fit: cover;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* till here */
.container {
  max-width: 960px;
  margin: auto;
}

.section {
  padding: 2rem 1rem;
  max-width: 960px;
  margin: auto;
  text-align: center;
}

.section h2 {
  margin-bottom: 1rem;
  color: #013220;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 300px;
  flex: 1 1 250px;
}

.card img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 6px;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #013220;
}

.comparison-img {
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #013220;
  color: white;
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    flex-direction: column;
    align-items: center;
  }
}


.comparison-section {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  margin-top: 2rem;
  border-radius: 12px;
}

.comparison-section h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #333;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #004b23;
  color: #fff;
}

tr:hover {
  background-color: #f1f1f1;
}

@media screen and (max-width: 600px) {
  th, td {
    font-size: 0.85rem;
    padding: 0.6rem;
  }

  .comparison-section h3 {
    font-size: 1.2rem;
  }
}


/* css for compare inverter section */
.inverter-section {
  text-align: center;
  padding: 2rem 1rem;
}

.inverter-buttons {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.inverter-buttons button {
  background: #007f5f;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.inverter-buttons button:hover {
  background: #005f40;
}

.inverter-details {
  margin-top: 1rem;
}

.inverter-info {
  display: none;
  max-width: 600px;
  margin: 1rem auto;
  background: #f0f9f0;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px #ccc;
  animation: fadeIn 0.5s ease-in;
}

.inverter-info h3 {
  color: #004b23;
  margin-bottom: 0.5rem;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.inverter-comparison {
  padding: 2rem 1rem;
}

.inverter-comparison table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 0 10px #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.inverter-comparison th, .inverter-comparison td {
  padding: 0.8rem;
  border: 1px solid #ccc;
  text-align: center;
}

.inverter-comparison th {
  background-color: #007f5f;
  color: #fff;
}

@media screen and (max-width: 600px) {
  .inverter-buttons {
    flex-direction: column;
  }

  .inverter-comparison th, .inverter-comparison td {
    font-size: 0.8rem;
  }
}
.inverter-img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  margin: 1rem auto;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.inverter-brief {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
  text-align: left;
}
/* image megnifier */
 /* Basic styling for images if you don't have any */
    img {
      cursor: zoom-in; /* Indicate that images are clickable to enlarge */
      max-width: 100%; /* Ensure images don't overflow their containers initially */
      height: auto;
    }

    /* Styles for the overlay */
    #overlay {
      position: fixed; /* Fixed position to cover the entire viewport */
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
      display: flex; /* Use flexbox to center the image */
      justify-content: center;
      align-items: center;
      z-index: 9999; /* Ensure it's on top of almost everything */
      opacity: 0; /* Initially hidden */
      visibility: hidden; /* Also hidden from screen readers/interactions */
      transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth transition */
      cursor: zoom-out; /* Indicate that clicking the overlay will close it */
    }

    /* Styles for the image inside the overlay */
    #overlay #enlargedImage {
      max-width: 90%; /* Limit the enlarged image size */
      max-height: 90%; /* Limit the enlarged image size */
      object-fit: contain; /* Ensure the whole image is visible */
      transform: scale(0.8); /* Start slightly smaller for a nice zoom-in effect */
      transition: transform 0.3s ease; /* Smooth zoom-in transition */
      cursor: zoom-out; /* Indicate it's clickable to close */
    }

    /* When the overlay is active, make it visible and opaque */
    #overlay.active {
      opacity: 1;
      visibility: visible;
    }

    /* When the overlay is active, apply the final scale to the image */
    #overlay.active #enlargedImage {
      transform: scale(1); /* Zoom to its full size within the overlay */
    }