* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.inviz {
  display: none;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.5;
  display: grid;
  grid-template-rows: 50px 1fr 25px;
  gap: 20px;
  min-height: 100vh;
}

.italics {
  font-style: italic;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  overflow: auto;
  padding: 0 20px;
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.flex-left {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 20px;
}

.flex-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.flex-column-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.flex-column-no-gap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flex-column-no-gap-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
#logo {
  padding-top: 5px;
  height: 70px;
}

nav {
  font-family: 'IBM Plex Sans', sans-serif;
}

header, footer {
  background-color: #75b9e6;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
}

nav a {
  color: #fff;
  padding: 0 10px;
}

.current-page {
  text-decoration: underline;
}

.page-link:hover {
  text-decoration: underline;
}

.highlight {
  font-weight: bold;
}

/* Product cards */
.card-holder {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  width: 250px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  color: #000;
}

.card-img {
  width: 200px;
  height: auto;
  padding-bottom: 5px;
}

.card-header {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: bolder;
  font-size: 16px;
  text-align: center;
}

.card-lead {
  font-size: 15px;
  text-align: center;
}

.card:hover {
  color: #75b9e6;
}

.onflight-img {
  width: 550px;
  height: auto;
  padding-bottom: 5px;
}

#onflight-specs-docs {
  display: flex;
  flex-wrap: wrap;              /* let it stack on narrower screens */
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* Left column (What's New + Specs) */
#onflight-specs-docs > .flex-column {
  flex: 1 1 60%;
  max-width: 60%;
  align-items: flex-start;
}

/* Right column (Docs + tools) */
#onflight-specs-docs > .onflight-box {
  flex: 0 0 30%;
  max-width: 30%;
  align-items: flex-start;
}

.onflight-logo {
  width: 75px;
  height: auto;
  padding-bottom: 5px;
}

/* Services */
.head {
  font-family: 'IBM Plex Sans', sans-serif;
  text-align: center;
}

.services-holder {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.services-holder-reverse {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.services-img {
  width: 350px;
  height: auto;
  padding-bottom: 5px;
}

.fmu-img {
  width: 250px;
  height: auto;
  padding-bottom: 5px;
}

.services-desc-left {
  text-align: left;
}

.services-desc-right {
  text-align: right;
}

.services-ul {
  margin-left: 40px;
}

.services-ul-l2 {
  margin-left: 45px;
}

.services-ul-l3 {
  margin-left: 50px;
}

.link {
  color: steelblue;
  font-weight: bolder;
}

/* Team */
.team-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team-img {
  width: 175px;
  padding-bottom: 5px;
}

.hide {
  display: none;
}

.team-desc {
  text-align: center;
}

.center {
  text-align: center;
}

.sub-head {
  text-decoration: none;
  font-weight: lighter;
}

/* Footer */

footer {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: bolder;
  color: #fff;
}

@media(max-width: 900px) {
  .services-holder {
    justify-content: center;
    flex-wrap: wrap;
  }

  .services-holder-reverse {
    justify-content: center;
    flex-wrap: wrap-reverse;
  }

  .services-desc-left {
    text-align: center;
  }
  
  .services-desc-right {
    text-align: center;
  }

  .disappear {
    display: none;
  }

  body {
    grid-template-rows: 105px 1fr 25px;
  }

  header .flex {
    flex-direction: column;
    gap: 0px;
  }

  footer {
    display: none;
  }

  .card {
    height: auto;
  }

  #onflight-specs-docs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .onflight-box {
    min-width: none;
  }
  footer {
    display: none;
  }
}

@media(max-width: 700px) {
  nav {
    font-size: x-small;
  }
  h1 {
    font-size: large;
  }
  h2 {
    font-size: medium;
  }
  #logos {
    display: none;
  }
  .onflight-img {
    width: 350px;
    height: auto;
    padding-bottom: 5px;
  }
  footer {
    display: none;
  }
}

.testimonial-container {
  max-width: 500px;
}

.testimonial {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.video {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;  /* keeps videos looking right */
}
