html {
  box-sizing: border-box;
  min-height: 90%;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
header {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}
h3 a {
  margin: 0;
  padding: 0;
  list-style-type: none;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.leftheader {
  flex-basis: 10%;
  text-align: right;
  padding-right: 0.5rem;
}
.rightheader {
  flex-basis: 60%;
  margin-top: 3.75rem;
}
.rightheader h1 {
  margin: 0;
  font-size: 3em;
}
.rightheader p {
  margin-top: -0.5rem;
  padding-right: 0.5rem;
}
.rightheader a {
  list-style-type: none;
  text-decoration: none;
  color: inherit;
}
body {
  min-height: 90%;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  text-align: justify;
  text-justify: inter-word;
  background-color: #f6f6f6;
}
section {
  line-height: 25px;
}
section img {
  margin: 2.5rem;
}
.wrapper {
  width: 90%;
  margin: 0 auto;
}
/* NAVIGATION */
nav {
  width: 80%;
  margin: 0 auto;
  background: #f6f6f6;
  box-shadow: 0px 5px 0px #f6f6f6;
}
nav ul {
  list-style: none;
  text-align: center;
}
nav ul li {
  display: inline-block;
}
nav ul li a {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: black;
  font-weight: 750;
  margin: 0 10px;
}
nav ul li a,
nav ul li a:after,
nav ul li a:before {
  transition: all 0.5s;
}
nav ul li a:hover {
  color: #555;
}

nav.fill ul li a {
  transition: all 2s;
}

nav.fill ul li a:after {
  text-align: left;
  content: ".";
  margin: 0;
  opacity: 0;
}
nav.fill ul li a:hover {
  color: #fff;
  z-index: 1;
}
nav.fill ul li a:hover:after {
  z-index: -10;
  animation: fill 1s forwards;
  -webkit-animation: fill 1s forwards;
  -moz-animation: fill 1s forwards;
  opacity: 1;
}
/* SHIFT */
nav.shift ul li a {
  position: relative;
  z-index: 1;
}
nav.shift ul li a:hover {
  color: #91640f;
}
nav.shift ul li a:after {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 1px;
  content: ".";
  color: transparent;
  background: #ffdd00;
  visibility: none;
  opacity: 0;
  z-index: -1;
}
nav.shift ul li a:hover:after {
  opacity: 1;
  visibility: visible;
  height: 100%;
}

section {
  display: flex;
  flex-flow: column nowrap;
}
article p {
  padding-left: 2.5rem;
}
article img {
  float: left;
  margin: 0 1rem 1rem 0;
  border-radius: 1rem;
}
article::after {
  content: "";
  display: table;
  clear: both;
  padding-left: 2.5rem;
  margin-bottom: 2.5rem;
}
table {
  border-collapse: separate;
  width: 50%;
  align-items: center;
}
td,
th {
  border: 1px solid #dddddd;
  text-align: center;
  padding: 8px;
}
tr:nth-child(even) {
  background-color: #ffdd00;
}
/* .tablecenter {
  margin-left: auto; 
  margin-right: auto;
} */
select {
  width: min(100%, 28rem);
  min-height: 2.75rem;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  border: 1px solid #b8b8b8;
  border-radius: 0.4rem;
  background-color: #fff;
  font: inherit;
}
.container {
  display: grid;
  gap: 2rem;
  padding: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.box1 {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-flow: column wrap;
}
.box2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column wrap;
}
.results {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  width: 100%;
}
.result-status {
  margin: 0 0 1.25rem;
  text-align: center;
  font-weight: 600;
}
.result-status--error {
  color: #a11919;
}
.travel-time-note {
  max-width: 55rem;
  margin: 1.5rem auto 0;
  padding: 0.75rem 1rem;
  border-left: 0.25rem solid #ffdd00;
  background: #fffbe6;
  color: #444;
  line-height: 1.5;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.result-card {
  padding: 1.25rem;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.08);
  text-align: center;
}
.result-card h2 {
  margin: 0.5rem 0;
}
.result-card p {
  margin: 0;
}
.maps-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.35rem;
  background: #535252;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.maps-link:hover,
.maps-link:focus {
  background: #242424;
  color: #fff;
  text-decoration: underline;
}
.result-rank {
  color: #666;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .container {
    grid-template-columns: 1fr;
  }

  .box1,
  .box2,
  .results {
    grid-column: 1;
  }

  .box1 {
    grid-row: 1;
  }

  .box2 {
    grid-row: 2;
  }

  .results {
    grid-row: 3;
  }
}

/* CSS Search button*/
.button-4 {
  appearance: none;
  background-color: #fafbfc;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0,
    rgba(255, 255, 255, 0.25) 0 1px 0 inset;
  color: #24292e;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  list-style: none;
  padding: 6px 16px;
  position: relative;
  transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: break-word;
}

.button-4:hover {
  background-color: #f3f4f6;
  text-decoration: none;
  transition-duration: 0.1s;
}

.button-4:disabled {
  background-color: #fafbfc;
  border-color: rgba(27, 31, 35, 0.15);
  color: #959da5;
  cursor: default;
}

.button-4:active {
  background-color: #edeff2;
  box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
  transition: none 0s;
}

.button-4:focus {
  outline: 1px transparent;
}

.button-4:before {
  display: none;
}

.button-4:-webkit-details-marker {
  display: none;
}
/* End of search button css */

footer {
  display: flex;
  justify-content: space-between;
  flex-flow: row nowrap;
  text-align: end;
  padding-right: 1rem;
  margin-right: 2px;
  background-color: #535252;
  color: white;
}
footer ul {
  margin: 0;
  padding: 10px;
  list-style-type: none;
  flex-flow: row nowrap;
  justify-content: end;
}
footer li {
  padding: 2px;
}

footer a {
  color: inherit;
}
footer img {
  flex-flow: row nowrap;
  justify-content: start;
  padding: 31px;
}
