{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.3",
  "body": [
    {
      "type": "ColumnSet",
      "columns": [
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "Image",
              "url": "${image}",
              "altText": "${imageAlt}",
              "size": "auto"
            }
          ]
        },
        {
          "type": "Column",
          "width": 5,
          "items": [
            {
              "type": "TextBlock",
              "text": "${name}",
              "weight": "Bolder",
              "size": "ExtraLarge",
              "spacing": "None",
              "wrap": true
            }
          ]
        }
      ]
    },
    {
      "type": "FactSet",
      "facts": [
        {
          "title": "Region",
          "value": "${region}"
        },
        {
          "title": "Income Group",
          "value": "${incomeGroup}"
        }
      ]
    },
    {
      "type": "Image",
      "url": "${map}",
      "altText": "${mapAlt}",
      "size": "auto",
      "separator": true
    },
    {
      "type": "ColumnSet",
      "style": "default",
      "columns": [
        {
          "type": "Column",
          "width": 4,
          "items": [
            {
              "type": "TextBlock",
              "horizontalAlignment": "Right",
              "height": "stretch"
            }
          ],
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "Value",
              "size": "Medium",
              "spacing": "None",
              "height": "stretch",
              "horizontalAlignment": "Center"
            }
          ],
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "Rank",
              "size": "Medium",
              "spacing": "None",
              "height": "stretch",
              "horizontalAlignment": "Center"
            }
          ],
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "Trend",
              "size": "Medium",
              "spacing": "None",
              "height": "stretch",
              "horizontalAlignment": "Center"
            }
          ],
          "spacing": "None"
        }
      ],
      "separator": true
    },
    {
      "type": "ColumnSet",
      "style": "default",
      "columns": [
        {
          "type": "Column",
          "width": 4,
          "items": [
            {
              "type": "TextBlock",
              "text": "INFORM Risk",
              "size": "Medium",
              "horizontalAlignment": "Right",
              "height": "stretch",
              "fontType": "Default",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/Risk.png"
          },
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "${$root.RiskValue}",
              "size": "Medium",
              "horizontalAlignment": "Center",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/Risk.png"
          },
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "${$root.RiskRank}",
              "size": "Medium",
              "horizontalAlignment": "Center",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/Risk.png"
          },
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "${if($root.RiskTrend > 0, '▲', if($root.RiskTrend < 0,'▼','─'))}",
              "size": "Medium",
              "horizontalAlignment": "Center",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/Risk.png"
          },
          "horizontalAlignment": "Center",
          "spacing": "None"
        }
      ],
      "spacing": "None",
      "height": "stretch"
    },
    {
      "type": "ColumnSet",
      "style": "default",
      "columns": [
        {
          "type": "Column",
          "width": 4,
          "items": [
            {
              "type": "TextBlock",
              "text": "Hazard & Exposure",
              "size": "Medium",
              "horizontalAlignment": "Right",
              "height": "stretch",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/HazardAndExposure.png"
          },
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "${$root.HazardValue}",
              "size": "Medium",
              "horizontalAlignment": "Center",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/HazardAndExposure.png"
          },
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "${$root.HazardRank}",
              "size": "Medium",
              "horizontalAlignment": "Center",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/HazardAndExposure.png"
          },
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "${if($root.HazardTrend > 0, '▲', if($root.HazardTrend < 0,'▼','─'))}",
              "size": "Medium",
              "horizontalAlignment": "Center",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/HazardAndExposure.png"
          },
          "horizontalAlignment": "Center",
          "spacing": "None"
        }
      ],
      "spacing": "None"
    },
    {
      "type": "ColumnSet",
      "style": "default",
      "columns": [
        {
          "type": "Column",
          "width": 4,
          "items": [
            {
              "type": "TextBlock",
              "text": "Vulnerability",
              "size": "Medium",
              "horizontalAlignment": "Right",
              "height": "stretch",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/Vulnerability.png"
          },
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "${$root.VulnerabilityValue}",
              "size": "Medium",
              "horizontalAlignment": "Center",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/Vulnerability.png"
          },
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "${$root.VulnerabilityRank}",
              "size": "Medium",
              "horizontalAlignment": "Center",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/Vulnerability.png"
          },
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "${if($root.VulnerabilityTrend > 0, '▲', if($root.VulnerabilityTrend < 0,'▼','─'))}",
              "size": "Medium",
              "horizontalAlignment": "Center",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/Vulnerability.png"
          },
          "horizontalAlignment": "Center",
          "spacing": "None"
        }
      ],
      "spacing": "None"
    },
    {
      "type": "ColumnSet",
      "style": "default",
      "columns": [
        {
          "type": "Column",
          "width": 4,
          "items": [
            {
              "type": "TextBlock",
              "text": "Lack of Coping Capacity",
              "size": "Medium",
              "horizontalAlignment": "Right",
              "height": "stretch",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/CopingCapacity.png"
          },
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "${$root.LackOfCopyingCapacityValue}",
              "size": "Medium",
              "horizontalAlignment": "Center",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/CopingCapacity.png"
          },
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "${$root.LackOfCopyingCapacityRank}",
              "size": "Medium",
              "horizontalAlignment": "Center",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/CopingCapacity.png"
          },
          "spacing": "None"
        },
        {
          "type": "Column",
          "width": 1,
          "items": [
            {
              "type": "TextBlock",
              "text": "${if($root.LackOfCopyingCapacityTrend > 0, '▲', if($root.LackOfCopyingCapacityTrend < 0,'▼','─'))}",
              "size": "Medium",
              "horizontalAlignment": "Center",
              "color": "Accent"
            }
          ],
          "backgroundImage": {
            "url": "https://drmkc.jrc.ec.europa.eu/inform-index/Portals/0/images/CopingCapacity.png"
          },
          "horizontalAlignment": "Center",
          "spacing": "None"
        }
      ],
      "spacing": "None"
    }
  ],
  "actions": [
    {
      "type": "Action.OpenUrl",
      "title": "More Info",
      "url": "${url}"
    }
  ]
}