 polygon, rect {
      fill: transparent;
      stroke: red;
      stroke-width: 2;
      cursor: pointer;
      transition: fill 0.3s;
    }

    polygon:hover, rect:hover {
      fill: rgba(0, 0, 255, 0.3);
    }

    .custom-size {
        max-width: 700px;  /* You can set 500px, 900px, etc. */
    }    
    :root {
      --page-bg-1: #f6f8ff;
      --page-bg-2: #e9f6f1;
      --modal-bg-1: #1b5e20;
      --modal-bg-2: #66bb6a;
      --overlay-1: rgba(10, 48, 23, 0.65);
      --overlay-2: rgba(26, 94, 58, 0.65);
    }

    body {
      background: linear-gradient(135deg, var(--page-bg-1), var(--page-bg-2));
      min-height: 100vh;
    }

    /* Modal Styling */
    .modal {
      display: none; 
      position: fixed; 
      z-index: 1000; 
      left: 0; top: 0; 
      width: 100%; height: 100%; 
      background: linear-gradient(135deg, var(--overlay-1), var(--overlay-2));
    }
    .modal-backdrop.show {
      background: linear-gradient(135deg, var(--overlay-1), var(--overlay-2));
      opacity: 1;
    }
    .modal-content {
      background: linear-gradient(160deg, var(--modal-bg-1), var(--modal-bg-2));
      color: #fff;
      margin: 10% auto;
      padding: 25px;
      border-radius: 12px;
      width: 450px;
      box-shadow: 0 5px 20px rgba(0,0,0,0.4);
      animation: slideDown 0.3s ease;
      font-size: 18px; /* Default font size for details */
      line-height: 1.6;
    }
    .modal-header-gradient {
      background: linear-gradient(135deg, #1b5e20, #66bb6a);
    }
    .modal-header {
      position: relative;
      z-index: 1;
    }
    .modal-close-bold {
      opacity: 1;
      transform: scale(1.2);
      filter: drop-shadow(0 0 1px rgba(0,0,0,0.6));
    }
    .close {
      float: right;
      font-size: 50px;
      cursor: pointer;
    }  

    .modal-content h2 {
      font-size: 30px; /* Bigger title */
      margin-bottom: 15px;
      font-weight: bold;
    }

    .modal-content p {
      font-size: 25px; /* Bigger details */
      white-space: pre-line; /* Keep line breaks from JS */
    }      
