.navbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.2rem 0.5rem;
}
.hamburger {
  display: none;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: #101010;
}
.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px; /* had to add this to stop a bottom margin of about 20px */
}
.nav-item {
  margin-left: 2rem;
  font-size: 18px;
}
.nav-link {
  font-size: 18px;
  font-weight: 400;
  color: #011675;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
}
@media only screen and (max-width: 959px) {
  .content {
    padding-top: 64px;
    max-width: 100%;
    margin-left: 5px;
    margin-right: 5px;
  }
  .header {
    max-width: 100%;
    margin-left: 0;
    line-height: 10px;
    margin-bottom: 4px; /* all this does is stop the header height from reducing when the screen width gets below 960px*/
  }
  .footer {
    max-width: 100%;
    margin-left: 0;
    font-size: 10px;
  }
  td {
    display: block;
    width: auto;
  }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 46px; /* How far down the top of the hamburger menu is - adjust this to get it pixel-perfect on a mobile */
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    border-radius: 0px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-item {
    margin: 1rem 0;
  }
  .hamburger {
    display: block;
    cursor: pointer;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
@media only screen and (min-width: 960px) {
  .content {
    padding-top: 64px;
    max-width: 960px;
    margin-left: calc(50vw - 480px);
  }
  .header {
    max-width: 960px;
    margin-left: calc(50vw - 480px);
  }
  .footer {
    max-width: 960px;
    margin-left: calc(50vw - 480px);
  }
  td {
    width: 50%;
  }
}
p,
li {
  font-size: 16px;
  line-height: 2;
}
body {
  margin: auto;
  max-width: 100%;
  background: black;
}
body:after {
  display: none;
  content: url("../images/horizontal-text-logo-med-catblinks.png");
}
img {
  max-width: 100%;
  display: block;
}
hr {
  border-top: 1px solid crimson;
  border-bottom: 1px solid crimson;
  margin: 0px;
}
hr.grey {
  border-top: 1px solid gray;
  border-bottom: 1px solid lightgray;
  margin: 0px;
}
h1 {
  margin: 0;
  padding: 0px 0px;
  color: #011675;
}
h2 {
  margin: 0;
  padding: 0px 0px;
  color: #011675;
}
h3 {
  margin: 0;
  padding: 0px 0px;
  color: #011675;
}
.header-container {
  width: 100%;
  background: white;
  position: fixed;
  border-bottom: 2px solid crimson;
  z-index: 2;
}
.header {
  padding-top: 5px;
  padding-left: 0px;
  padding-right: 0px;
  background-color: white;
}
.header li {
  list-style: none;
  line-height: 1.2rem;
}
.header-items {
  font-size: 18px;
  text-align: right;
}
.content-container {
  background: white;
  margin: 0px;
  z-index: 1;
}
.content {
  background-color: #ffffff;
  height: 100%;
}
.footer-container {
  width: 100%;
  height: 100%;
  background: black;
}
.footer {
  padding-top: 0rem;
  padding-bottom: 0.5rem;
  text-align: center;
  background: black;
  color: white;
}
.logo {
  display: block;
  width: 240px;
  height: 45px;
  background: url("../images/horizontal-text-logo-med.png"),
    url("../images/horizontal-text-logo-med-catblinks.png"); /* this is supposed to pre-load hover images to stop them flickering on first hover */
}
.logo:hover {
  display: block;
  width: 240px;
  height: 45px;
  background: url("../images/horizontal-text-logo-med-catblinks.png");
}
.bottom-image {
  display: block;
  width: 100%;
  height: 80px;
  margin-top: -2px;
  margin-bottom: -2px;
  background: url("../images/web-photo-bottom-faded.jpg") no-repeat center,
    url("../images/web-photo-bottom-faded-hover.jpg");
  transition: 1s ease-in-out;
}
@media (max-width: 960px) {
  .bottom-image {
    background: url("../images/web-photo-bottom-faded-hover.jpg") no-repeat
      center;
  }
}
.bottom-image:hover {
  display: block;
  width: 100%;
  height: 80px;
  background: url("../images/web-photo-bottom-faded-hover.jpg") no-repeat center;
  margin-top: -2px;
  margin-bottom: -2px;
}
.header a:link {
  color: #011675;
  text-decoration: none;
}
.header a:visited {
  color: #011675;
  text-decoration: none;
}
.header a:hover {
  text-decoration: none;
  color: crimson;
  transition: 0.5s;
}
.header a:active {
  color: crimson;
  text-decoration: none;
}
.content a:link {
  color: #011675;
  text-decoration: none;
}
.content a:visited {
  color: #011675;
  text-decoration: none;
}
.content a:hover {
  text-decoration: none;
  color: crimson;
  transition: 0.5s;
}
.content a:active {
  color: crimson;
  text-decoration: none;
}
.footer a:link {
  color: white;
  text-decoration: none;
}
.footer a:visited {
  color: white;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: none;
  color: crimson;
  transition: 0.5s;
}
.footer a:active {
  color: crimson;
  text-decoration: none;
}
.current-page {
  color: #011675;
  border-bottom: 1px solid crimson;
}
table,
th,
td {
  border: 0px;
  padding: 0px;
}
.image-zoom {
  width: 100%;
  float: left;
  position: relative;
  background: #000000;
  overflow: hidden;
  height: 308px;
  margin-top: -2px;
  margin-bottom: -2px no-repeat;
}
.image-zoom:before {
  background: /*linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), */ url("../images/web-photo-top.png")
    no-repeat center;
  content: "";
  display: inline-block;
  height: 100%;
  opacity: 1;
  position: absolute;
  top: 0;
  width: 100%;
  /*z-index: -1;*/
  animation: 30s ease 0s normal none 0.5 running zoomin; /* the 0.5 refers to the number of iterations. This means only do half of one iteration - just the zoom-out. */
  -webkit-animation: 30s ease 0s normal none 0.5 running zoomin;
  -o-animation: 30s ease 0s normal none 0.5 running zoomin;
  -moz--o-animation: 30s ease 0s normal none 0.5 running zoomin;
}

@keyframes zoomin {
  0% {
    transform: scale(1.5, 1.5);
  }
  50% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(1.5, 1.5);
  }
}
.top-image-container {
  position: relative;
  text-align: center;
  color: white;
}
.top-image {
  height: 308px;
  background: url("../images/top-image-text.png") center top/auto 100%;
  margin-top: -2px;
  margin-bottom: -2px no-repeat;
}
.websites:hover {
  text-shadow: 0px 0px 6px rgba(255, 255, 255, 1);
  -webkit-box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
  -moz-box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
  transition: all 0.6s ease 0s;
}
