*, *::before, *::after { box-sizing: border-box; }
html, body, h1, p, ol, li, form { margin: 0; padding: 0; }

body {
  background-color: #aadbf5;
  font-family: Helvetica, Arial, sans-serif;
  letter-spacing: -1px;
  line-height: 1.5;
}

a { color: #00364d; }

/* Header: fixed black bar with logo, two image buttons and the search box */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 91px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 0 15px;
  background: #000 url(../images/headbg.png) repeat-x 0 0;
  border-bottom: 1px solid #222;
  box-shadow: 0 10px 30px #000;
}

h1 {
  flex: none;
  width: 220px;
  height: 51px;
  margin-top: 15px;
  background: url(../images/logo.png) no-repeat 0 0;
  overflow: hidden;
  text-indent: -9999em;
}

nav { display: flex; gap: 13px; }

#download, #requests {
  display: block;
  overflow: hidden;
  text-indent: -9999em;
  position: relative;
}
#download { width: 105px; height: 89px; top: -3px; background: url(../images/download.png) no-repeat; }
#requests { width: 117px; height: 84px; top: 0;    background: url(../images/requests.png) no-repeat; }
#download:hover { top: -4px; }
#requests:hover { top: -1px; }

#search {
  margin: 32px 0 0 auto;
  display: flex;
  align-items: center;
  height: 18px;
  background: #fff;
  border-radius: 7px;
  font-size: 12px;
}
#search label {
  width: 18px;
  height: 100%;
  overflow: hidden;
  text-indent: -9999px;
  background: url(../images/magglass.png) no-repeat 4px 3px;
}
#filter {
  width: 140px;
  border: 0;
  padding: 1px;
  font: inherit;
  background: transparent;
  outline: none;
}
#filter::-webkit-search-cancel-button { display: none; }
#zap {
  width: 18px;
  height: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  text-indent: -9999px;
  cursor: pointer;
  background: url(../images/clear.png) no-repeat 2px 3px;
}

/* Icon grid */
main { padding: 130px 10px 40px; }
main > p { padding-top: 10px; text-align: center; }

#icons {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding-top: 40px;
}
#icons li { width: 220px; font-size: 14px; text-align: center; }
#icons li[hidden] { display: none; }
#icons a {
  display: block;
  height: 100%;
  padding: 20px 10px;
  color: #000;
  text-decoration: none;
  background-color: #98c3db;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
}
#icons a:hover,
#icons a:focus-visible {
  background-color: #fff;
  box-shadow: 0 0 30px #000;
}
#icons img { display: block; margin: 0 auto 10px; }

#no-results { text-align: center; }

#footer {
  padding: 20px 0;
  border-top: 1px solid #333;
  background: #000 url(../images/headbg.png) repeat-x 0 0;
  color: #fff;
  text-align: center;
}

/* Narrow screens: let the header scroll away and wrap its contents */
@media (max-width: 720px) {
  #header { position: static; height: auto; flex-wrap: wrap; justify-content: center; padding-bottom: 12px; }
  #search { margin: 0; flex-basis: 100%; max-width: 260px; }
  #filter { flex: 1; }
  main { padding-top: 10px; }
}
