/* Header */

nav {
  margin: 0px;
  padding: 5px;
  list-style: none;
  text-align: center;
  display: block;
}

nav li {
  display: inline-block;
}

nav li a {
  font-weight: bold;
  display: block;
  padding: 5px;
  border-radius: 7px;
  border-style: solid;
  border-color: #19314b;
  background-color: #4e9a06;
}

nav li a:hover {
  color:black;
  background-color: #73d216;
}

/* Main Body */

body {
  margin: auto;
  padding: 5px;
  font-family: "Arial", sans-serif;
  background-color: #729fcf;
}

h1 {
  text-align: center;
  margin: 3px;
  padding: 0px;
}

h2 {
  vertical-align: center;
  display: inline-block;
  text-align: left;
  padding: 0px;
  margin: 0px;
}

main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(525px, 1fr));
  place-items: center;
  justify-content: center;
}

.tool {
  margin: 5px;
  max-width: 550px;
  border-style: ridge;
  border-color: #19314b;
  padding: 10px;
  background-color: #888a85;
}

.tool-header {
  margin: 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.links {
  display: flex;
  vertical-align: center;
  display: inline-block;
  border-style: none;
  padding: 0px;
}

.links a {
  border-radius: 7px;
  border-style: ridge;
  border-color: #19314b;
  background-color: #4e9a06;
  padding: 3px;
}

.links a:hover {
  background-color: #73d216;
}

p {
  margin: 0px;
  padding: 5px;
  padding-bottom: 0px;
}

a {
  color:black;
}

footer {
  text-align: center;
  font-size: 10px;
}

/* Mobile Support */

@media screen and (max-width: 768px) {
  main {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    justify-content: center;
  }
  
  tool {
    max-width: 550px;
  }
}