body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'montserratregular', Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
  position: relative;
  /* Do not use overflow: hidden or auto here */
}

/* fonts */
@font-face {
  font-family: 'montserratbold';
  src: url('../fonts/montserrat-bold-webfont.woff2') format('woff2'),
    url('../fonts/montserrat-bold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'montserratregular';
  src: url('../fonts/montserrat-regular-webfont.woff2') format('woff2'),
    url('../fonts/montserrat-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* hero section */
.hero-video-container {
  position: relative;
  height: 100vh;
  min-height: 400px;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 0;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
}

/* logo and nav */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.navbar-container {
  position: relative;
  margin: 0px auto 0px auto;
}

.navbar-collapse {
  padding-right: 10px;
}

.navbar-default {
  border: 0px;
  text-align: right;
  background-color: transparent;
}

.navbar {
  margin: auto 0px auto auto;
  border: 0px;
  padding: 0px 0px;
  position: relative;
  text-align: right;
}

.navbar-nav {
  width: 100%;
  margin: 0px;
  text-align: right;
}

ul.navbar-nav {
  margin: 0px;
  padding: 0px !important;
}

.navbar-collapse {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1050;
  margin: 0px;
  padding: 0px;
  background-color: transparent;
}

.navbar-nav>li {
  float: none;
  margin: 0px;
  padding: 0px;
  display: inline-block;
}

.navbar-default .navbar-nav>li>a {
  color: #4d4d4d;
  margin: 0px 10px;
  padding: 15px 0px;
  font-size: 11pt;
  text-decoration: none;
  border-top: 3px solid #ffffff
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover {
  color: #f26e21;
  text-decoration: none;
  background-color: transparent;
  border-top: 3px solid #f26e21;
}

.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus {
  color: #f26e21;
  text-decoration: none;
  background-color: transparent;
  border-top: 3px solid #f26e21;
}

.navbar-default .navbar-toggle {
  margin-top: 10px;
  border-color: transparent;
  background-color: transparent;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #ffffff;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #4d4d4d;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: transparent;
}

.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:focus,
.navbar-default .navbar-nav>.open>a:hover {
  color: #262324;
  border-radius: 5px 5px 0px 0px;
  background-color: #f7f9f8;
}

@media (max-width: 900px) {
  .navbar-default .navbar-nav>li>a {
    color: #4d4d4d;
    margin: 0px 5px;
    padding: 15px 0px 10px 0px;
    font-size: 10pt;
    text-decoration: none;
    border-top: 3px solid #ffffff
  }

}

@media (max-width: 768px) {
  .navbar {
    border: 0px solid transparent;
    position: relative;
    min-height: 40px;
    margin-bottom: 0px;
  }


  .navbar-container {
    margin: 0px auto 0px auto;
  }

  .navbar-nav>li {
    float: none;
    color: #ffffff;
    display: block;
    line-height: 40px;
    background-color: #888;
    padding: 0px;
    margin: 0px;

  }

  .navbar-default .navbar-nav>li>a {
    color: #ffffff;
    width: 100%;
    margin: 0px;
    padding: 20px 10px;
    text-align: left;
    text-decoration: none;
    border-top: none;
    font-size: 18px
  }

  .navbar-default .navbar-nav>li>a:hover {
    text-align: center;
  }

  .navbar-default .navbar-nav>.active>a,
  .navbar-default .navbar-nav>.active>a:hover,
  .navbar-default .navbar-nav>.active>a:focus,
  .navbar-default .navbar-nav>li>a:hover,
  .navbar-default .navbar-nav>li>a:focus {
    border-bottom: 0px;
    background-color: #f26e21;
    color: #ffffff;
    text-align: left;
  }
}

.logo img {
  max-height: 60px
}

.navbar-nav {
  padding: 0px;
}

#myNavbar .navbar-nav .nav-link.active {
  color: #fff !important;
  background-color: #007bff;
  /* Bright blue background */
  border-radius: 4px;
  font-weight: bold;
}



/* containers */
.container {
  clear: both;
  margin: 0px auto;
  padding: 110px 20px;
  position: relative;
  max-width: 1200px;
}

.what-we-do {
  background-image: url(../assets/about.jpg);
  background-attachment: fixed;
  padding: 100px 20px 0px 20px;
  display: flex;
  align-items: flex-end;
  min-height: 500px;
}

.board-members {
  background-image: url(../assets/team.jpg);
  background-attachment: fixed;
  padding: 100px 20px 0px 20px;
  display: flex;
  align-items: flex-end;
  min-height: 500px;
}

.talk-to-us {
  background-image: url(../assets/contact-v2.jpg);
  background-attachment: fixed;
  padding: 100px 20px 0px 20px;
  display: flex;
  align-items: flex-end;
  min-height: 500px;
}

#footer {
  height: auto;
  margin: 0px;
  padding: 20px;
  background-color: #ecf0f5;
}

/* images */
img {
  width: auto\9;
  height: auto\9;
  margin: 0px;
  padding: 0px;
  max-width: 100%;
  border-style: none;
  border-color: inherit;
  border-width: 0;
}


/* typography */
h1 {
  color: #ffffff;
  font-size: 50px;
}

h2 {
  color: #4d4d4d;
  font-size: 40px;
}

h3 {
  color: #4d4d4d;
  font-size: 30px;
  letter-spacing: 1px;
}

h4 {
  font-family: 'montserratbold', Arial, Helvetica, sans-serif;
  color: #4d4d4d;
  font-size: 14pt;
}

p {
  font-size: 18px;
  font-weight: normal;
  color: #4d4d4d;
  line-height: 26px;
}

p em {
  color: #ffffff;
}

ul {
  font-size: 18px;
  font-weight: normal;
  color: #4d4d4d;
  line-height: 26px;
}

#footer p {
  font-size: 15px
}

#credits p {
  font-size: 10px
}

a:link,
a:visited {
  color: #4d4d4d;
  text-decoration: none;
}

a:active,
a:hover {
  color: #f28e54;
}

/* button */
.btn-primary {
  color: #ffffff;
  cursor: pointer;
  border: 0px;
  margin: 0px 0px 20px 0px;
  padding: 15px 25px;
  font-size: 10pt;
  font-weight: bold;
  border-radius: 5px;
  text-transform: uppercase;
  background-color: #f26e21;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background-image: linear-gradient(#f28e54, #f26e21);
  color: #ffffff;
}

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

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

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

.rotator-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  width: 100%;
  color: #ffffff;
  margin: 50px auto
}

.rotator-box {
  display: block;
  height: 2.8em;
  min-height: 2.8em;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.rotator-item {
  height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
  top: 0;
  opacity: 0;
  animation: continuousLoop 12s infinite ease-in-out;
}

.rotator-item:nth-child(1) {
  animation-delay: 0s;
}

.rotator-item:nth-child(2) {
  animation-delay: 3s;
}

.rotator-item:nth-child(3) {
  animation-delay: 6s;
}

.rotator-item:nth-child(4) {
  animation-delay: 9s;
}

/* Pure forward-moving vertical translation */
@keyframes continuousLoop {

  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  5%,
  25% {
    transform: translateY(0);
    opacity: 1;
  }

  30% {
    transform: translateY(-100%);
    opacity: 0;
  }

  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 10px;
  width: 60%;
}

/* The Close Button */
.close {
  color: #4d4d4d;
  float: right;
  font-size: 28px;
  font-weight: bold;
  background-color: #ffffff;
  border: none
}

.close:hover,
.close:focus {
  color: #f26e21;
  text-decoration: none;
  cursor: pointer;
}

/* The main outer container that sets the 3D space perspective */
.flip-box {
  background-color: transparent;
  width: 100%;
  height: auto;
  perspective: 1000px;
  /* Activates the 3D depth effect */
  margin-bottom: 40px
}

.flip-box-size1 {
  height: 500px;
}

.flip-box-size2 {
  height: 350px;
}

.flip-box img,
.modal-header img {
  max-width: 150px;
  clear: both;
}

.flip-box h3 {
  color: #ffffff;
  margin: 0px
}

.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  /* Controls the speed of the animation */
  transform-style: preserve-3d;
  /* Tells child elements to stay in 3D space */
}

.flip-box:hover .flip-box-inner {
  transform: rotateY(180deg);
}

.flip-box-front,
.flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  /* Hides the flip-side content while looking at a face */
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.flip-box-front {
  background-color: #f26e21;
  color: #ffffff;
  padding: 50px;
}

.flip-box-back {
  background-color: #ffffff;
  color: #4d4d4d;
  transform: rotateY(180deg);
  /* Pre-flips the back content so it displays correctly when rotated */
  border: 1px solid #f26e21;
}


@media (max-width: 768px) {
  .modal-content {
    width: 90%
  }
  .modal-content {
  background-color: #fefefe;
  margin: 200px auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 10px;
  width: 90%;
}
}

@media (max-width: 600px) {
 h3 { text-align: center;}
.flip-box-size1, .flip-box-size2 {
  height: 80vh;
}
}