* {
  box-sizing: border-box;
}
html, body {
  font-size: 14px;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Styles for screens smaller than 600px (mobile breakpoint) */
@media only screen and (min-width: 320px) {
  .navbar-center, .navbar-right {
    display: none;
  }

  .navbar-mobilemenu {
    order: 4; 
    display: flex;
    zoom: 1; 
    vertical-align: middle;
    align-items: center;
    width: 6%;
    justify-content: flex-end;
  }
  
  .fullmedia {
    width: 100vw;
    object-fit: cover;
  }

  .page1 {
    position: relative;
    margin-top: 100px;
    width: 100%;
    height: 100vh;
    max-width: none !important;
    overflow: hidden;
  }

  .fullmainheading {
    position: absolute;
    display: flex;
    align-items: center; /* Vertically centers child items */
    justify-content: center;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100%;
    color: rgb(45, 75, 124);
    font-family: Instrument Sans;
    font-weight: bolder;
    font-size: 40px;
    opacity: 1;
    text-align: center;
    margin-top: 100px;
  }
  .mainheadingpanel {
    background-color: white;  
  }
}

@media only screen and (min-width: 1200px) {
  .navbar-center {
    order: 2; 
    display: flex;
    flex-direction: row;
    justify-content: center;
    zoom: 1; 
    vertical-align: top;
    width: 60%;
  }

  .navbar-right {
    order: 3; 
    display: flex;
    zoom: 1; 
    vertical-align: top;
    width: 20%;
    justify-content: flex-end;
  }

  .navbar-mobilemenu {
    order: 4; 
    display: none;
    zoom: 1; 
    vertical-align: top;
    width: 6%;
    justify-content: flex-end;
  }

  .fullmedia {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page1 {
    position: relative;
    width: 100%;
    height: 100vh;
    max-width: none !important;
    overflow: hidden;
  }

  .fullmainheading {
    position: absolute;
    display: flex;
    align-items: center; /* Vertically centers child items */
    justify-content: center;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    color: rgb(45, 75, 124);
    font-family: Instrument Sans;
    font-weight: bolder;
    font-size: 54px;
    opacity: 1;
    text-align: center;
    margin-top: 100px;
  }
  .mainheadingpanel {
    background-color: lightgray;  
  }

}

.btnimage {
  cursor: pointer;
  padding: 0;
  margin: 0;
  background-color: white;
  background: none;
  border: none;
}

.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  overflow: hidden;
  background-color: white;
  opacity: 0.8;
  position: fixed; /* Set the navbar to fixed position */
  top: 0; /* Position the navbar at the top of the page */
  width: 100%; /* Full width */
  height: 100px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 4;
}

.navbar-left {
  order: 1; 
  zoom: 1; 
  vertical-align: top;
  display: flex;
  align-items: center;
  width: 20%;
  margin-left: -40px;
}

.menu-btn {
/*
  height: 60px;
  width: 60px;
*/
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  margin: 0;
}

.menu-btn img {
/*
  height: 60px;
  width: 60px;
*/
  background-color: white;
}
/*
@media only screen and (min-width: 320px) {
  .dropdown {
    width: 180px;
    position: relative;
    display: inline-block;
  }

  .dropdown .dropdown-content {
    visibility: hidden;
    position: absolute;
    overflow: hidden;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out; 
    z-index: 6;
  }

  .dropdown .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s
  }

  .dropdown:hover .dropdown-content {
    max-height: 300px; 
    opacity: 1;
  }
}
*/

.dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.dropdown-content {
  visibility: hidden;
  top: 0;
  background-color: lightgray;
  color: #fff;
  opacity: 1.0;
  text-align: center;
  font-size: 30px;
  position: fixed;
  overflow: auto;
  z-index: 5;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  text-align: right;
  width: 200px;
  height:360px; 
  margin-top:110px; 
  margin-left: -140px;
}
.dropdown .dropdown-content::after {
  content: "";
  position: absolute;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}
.dropdown .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s
}



.navbar img {
  float: left;
  display: block;
  margin-top: 10px;
  margin-left: 60px;
}
/* Links inside the navbar */
.navbar a {
  display: inline-block;
  color: rgba(73,108,164,1);
  font-family: Instrument Sans;
  font-weight: Bold;
  font-size: 24px;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  margin-top: 16px;
}
/* Change background on mouse-over */
.navbar a:hover {
  color: navy;
  font-size: 26px;
}

.genericbutton {
  background-color: rgba(73,108,164,1);
  border: none;
  color: white;
  padding: 20px 30px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-family: Instrument Sans;
  font-weight: Bold;
  font-size: 22px;
  border-radius: 48px;
  height: fit-content;
  margin: 4px 2px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.genericbutton:hover {
  background-color: navy;
}

.genericformbutton {
  background-color: white;
  border: none;
  color: rgba(73,108,164,1);
  padding: 20px 30px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-family: Instrument Sans;
  font-weight: Bold;
  font-size: 18px;
  border-radius: 48px;
  height: fit-content;
  margin: 4px 2px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.genericformbutton:hover {
  background-color: navy;
  color: white;
}

/* Main content */
.main {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width: 100vw; /* Example: Occupy full viewport width */
}

.main button {
  background-color: rgba(73,108,164,1);
  border: none;
  color: white;
  padding: 20px 40px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-family: Instrument Sans;
  font-weight: Bold;
  font-size: 18px;
  border-radius: 48px;
  height: fit-content;
  width: 300px;
  align-self: center;
  margin: 4px 2px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.landingvideo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.mainheadingpanel {
  display: inline-block; 
  position: absolute; 
  z-index: 1; 
  width: 1300px; 
  height: 300px; 
  border-radius: 20px;
  opacity: 0.5;
}

.mainheading {
  width: fit-content;
  color: rgba(73,108,164,1);
  text-shadow: 1px 1px 1px black;
  font-family: Instrument Sans;
  font-weight: Bold;
  font-size: 54px;
  opacity: 1;
  text-align: center;
  margin-top: 100px;
}

.mainsubheading {
  width: 100%;
  color: rgb(45, 75, 124);
  font-family: Instrument Sans;
  font-weight: bold;
  font-size: 32px;
  opacity: 1;
  text-align: center;
  align-self: center;
}

.margintopbottom {
  margin-top: 40px;
  margin-bottom: 40px;
}

.item-inline {
  display: inline-block; /* Makes elements display horizontally */
  padding: 20px;
  margin-right: 10px; /* Adds spacing between items */
}


.page2 {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: none !important;
  /*
  background-image: linear-gradient(rgba(180, 150, 120, 1), white) !important;
  */
  background-image: url("../images/HowWeFunction.png");
  background-color: rgba(0, 0, 0, 0.3);
  background-blend-mode: darken;
  background-position: left top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
}

.grid-5col {
  display:grid;
  grid-template-columns: 28vw 8vw 28vw 8vw 28vw;
}

.page2-gridrow {
  text-align: center;
  align-content: center;
  height: auto;
  margin-left: 40px;
  margin-right: 40px;
}

.page2-heading {
  color: white;
  font-family: Instrument Sans;
  font-weight: bolder;
  font-size: 80px;
  opacity: 1;
  text-align: center;
}

.page2-heading1 {
  color: #f0d373;
  font-family: Instrument Sans;
  font-weight: bolder;
  font-size: 80px;
  opacity: 1;
  text-align: center;
}

@media only screen and (min-width: 320px) {
  .page2-gridrow {
    text-align: center;
    align-content: center;
    height: auto;
    margin-left: 4px;
    margin-right: 4px;
  }
  .page2-subheading {
    color: #f0d373;
    font-family: Instrument Sans;
    font-weight: bolder;
    font-size: 40px;
    opacity: 1;
    text-align: center;
    vertical-align: bottom;
  }
  .page2-contents {
    color: white;
    font-family: Instrument Sans;
    font-weight: normal;
    font-size: 22px;
    opacity: 1;
    text-align: center;
    vertical-align: bottom;
    margin: 0;
    padding: 0;
  }
}

@media only screen and (min-width: 1200px) {
  .page2-gridrow {
    text-align: center;
    align-content: center;
    height: auto;
    margin-left: 40px;
    margin-right: 40px;
  }

  .page2-subheading {
    color: #f0d373;
    font-family: Instrument Sans;
    font-weight: bolder;
    font-size: 60px;
    opacity: 1;
    text-align: center;
    vertical-align: bottom;
  }
  .page2-contents {
    color: white;
    font-family: Instrument Sans;
    font-weight: normal;
    font-size: 30px;
    opacity: 1;
    text-align: center;
    vertical-align: bottom;
  }
}

@media only screen and (min-width: 320px) {
  .page-generic {
    position: relative;
    width: 100%;
    height: fit-content;
    max-width: none !important;
    max-height: none !important;
    background-color: rgba(244,241,234,1);
    opacity: 1;
    overflow: auto;
    display:grid;
    grid-template-rows: 52% 48%;
  }
  
  .page-generic-caption {
    display: flex; 
    flex-direction: column; 
    grid-row: 2; 
  }

  .page-generic-caption-logo {
    width: 195px; 
    height: 156px; 
    margin-left: 20px; 
  }

  .page-generic-caption-heading {
    margin-left: 120px; 
    margin-top: -80px;
  }

  .page-generic-caption-contents {
    margin-left: 120px; 
    margin-right: 80px;
  }

  .page-generic-caption-button {
    margin-left: 120px; 
    margin-top: 20px; 
    margin-right: 40px;
  }

  .page-generic-image {
    grid-row: 1; 
    padding-top: 2px;
  }

  .page-generic-fullmedia {
    width: 100vw;
    height: 90%;
    object-fit: cover; 
  }

  .pagecontents2 {
    font-size: 24px;
  }
  

  .page5-links {
    margin-left: 120px;
  }

  .page6 {
    overflow: auto;
    padding-top: 40px;
  }

  .page7 {
    padding-top: 40px;
  }

  .page6-heading {
    font-size: 40px;
  }

  .page6-subheading {
    font-size: 20px;
  }
  

  .page6-image {
    grid-row: 3; 
    grid-column: span 4; 
    margin-left: 10px; 
    margin-right: auto; 
    padding:0; 
    align-content: end;
  }

  .page6-image-style {
    height: 20vh;
    padding: 0;
  }

  .page6-button {
    grid-row: 3;
    grid-column: 5; 
    align-content: end; 
    margin-left: -120px; 
    margin-bottom: 10px;
  }

  .page7-card-subheading {
    margin-left: 20px;
    margin-right: 14px;
    font-size: 26px;
  }

  .page7-card-contents {
    margin-left: 80px;
    margin-right: 40px;
  }

}

@media only screen and (min-width: 1200px) {
  .page-generic {
    position: relative;
    width: 100%;
    height: 70vh;
    max-width: none !important;
    opacity: 1;
    overflow: hidden;
    display:grid;
    grid-template-columns: 40% 60%;
  }

  .page-generic-caption {
    display: flex; 
    flex-direction: column; 
    grid-row: 1; 
    grid-column: 1; 
    width: 100%;
  }

  .page-generic-caption-logo {
    width: 195px; 
    height: 156px; 
    margin-left: 100px; 
    margin-top: 200px;
  }

  .page-generic-caption-heading {
    margin-left: 200px; 
    margin-top: -80px;
  }

  .page-generic-caption-contents {
    margin-left: 200px; 
    margin-top: 20px; 
    margin-right: 40px;
  }

  .page-generic-caption-button {
    margin-left: 200px; 
    margin-top: 80px; 
    margin-right: 40px;
  }

  .page-generic-image {
    grid-row: 1; 
    grid-column: 2;
    padding: 50px;
    height: 70vh;
  }

  .page-generic-fullmedia {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
  }

  .pagecontents2 {
    font-size: 30px;
  }

  .page5-links {
    margin-left: 200px;
  }

  .page6 {
    height: 80vh;
  }

  .page6-heading {
    font-size: 70px;
  }

  .page6-subheading {
    font-size: 24px;
  }

  .page6-image {
    grid-row: 3; 
    grid-column: span 4; 
    margin-left: 33vw; 
    margin-right: auto; 
    padding:0; 
    align-content: end;
  }

  .page6-image-style {
    height: 30vh;
    padding: 0;
  }

  .page6-button {
    grid-row: 3;
    grid-column: 5; 
    align-content: end; 
    margin-bottom: 20px;
  }

  
  .page7-card-subheading {
    margin-left: 180px;
    font-size: 30px;
  }

  .page7-card-contents {
    margin-left: 56px;
  }

}


.page3 {
  background-color: rgba(244,241,234,1);
}

.page3-heading {
  color: rgba(73,108,164,1);
  font-family: Instrument Sans;
  font-weight: bolder;
  font-size: 70px;
  opacity: 1;
  text-align: center;
}
.pagecontents {
  color: black;
  font-family: Instrument Sans;
  font-weight: normal;
  font-size: 30px;
  opacity: 1;
  text-align: center;
}

.page3to4separator {
  position: relative;
  width: 100%;
  height: 10vh;
  max-width: none !important;
  background-image: linear-gradient(white, rgba(73,108,164,1)) !important;
  background-position: left top !important;
  background-size: auto !important;
  background-repeat: no-repeat !important;
  opacity: 1;
  overflow: hidden;
}

.page4 {
  background-color: rgba(73,108,164,1);
}

.page4-heading {
  color: rgba(240,211,115,1);
  font-family: Instrument Sans;
  font-weight: bolder;
  font-size: 70px;
  opacity: 1;
  text-align: center;
}

.page5 {
  background-color: rgba(244,241,234,1);
}

.page5-heading {
  color: rgba(73,108,164,1);
  font-family: Instrument Sans;
  font-weight: bold;
  font-size: 48px;
  opacity: 1;
  text-align: center;
}

.page5-links {
  display: flex; 
  flex-direction: column; 
  margin-top: 20px; 
  margin-right: 40px;
}
.page5-links-anchors {
  color: rgba(73,108,164,1);
  font-family: Instrument Sans;
  font-weight: Bold;
  font-size: 24px;
  text-decoration: none;
  margin-bottom: 10px;
}

.pagecontents2 {
  color: white;
  font-family: Instrument Sans;
  font-weight: normal;
  opacity: 1;
  text-align: center;
}


.popupform1 {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
/* The actual popup (appears on top) */
/*
.popupform1 .popupform1text {
  visibility: hidden;
  top: 120px;
  right: 4px;
  width: 30vw;
  height: 1180px;
  background-color: rgba(73,108,164,1);
  color: #fff;
  opacity: 0.7;
  text-align: center;
  border-radius: 20px;
  margin-right: 60px;
  position: fixed;
  z-index: 11;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}
*/
.popupform1 .popupform1text {
  visibility: hidden;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: lightgray;
  color: #fff;
  opacity: 0.9;
  text-align: center;
  position: fixed;
  overflow: auto;
  z-index: 5;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}
@media only screen and (min-width: 320px) {
  .popupform1textinnerdiv {
    width: 99vw;
    margin-top: 4px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 20px;
    display:grid; 
    grid-template-columns: 164px auto; 
    background-color: rgba(73,108,164,1);
    opacity: 1.0 !important;
  }
  input[type="checkbox"] {
    width: 30px;
    height: 30px;
  }

}
@media only screen and (min-width: 1200px) {
  .popupform1textinnerdiv {
    width: 50vw;
    margin-top: 120px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 16px;
    padding-bottom: 20px;
    border-radius: 20px;
    display:grid; 
    grid-template-columns: 164px auto; 
    background-color: rgba(73,108,164,1);
    opacity: 1.0 !important;
  }
  input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

}
/* Popup arrow */
.popupform1 .popupform1text::after {
  content: "";
  position: absolute;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}
/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}
/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popupform1 .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s
}

.popupform1textheader {
  margin-left: 20px;
  margin-top: 6px;
  margin-bottom: 8px;
  text-align: left;
}
.popupform1textinput {
  margin-left: 20px;
  margin-bottom: 8px;
  height: 40px;
  text-align: left;
}

.pagecontentspopup {
  color: white;
  font-family: Instrument Sans;
  font-weight: normal;
  font-size: 18px;
  height: 40px;
  opacity: 1;
  text-align: center;
}
.pagecontentspopupheader {
  color: whitesmoke;
  font-family: Instrument Sans;
  font-weight: bold;
  font-size: 18px;
  opacity: 1;
  text-align: center;
}

.solid-divider {
    border: none; /* Remove default border */
    height: 3px; /* Set height for a solid line */
    background-color: white;
    margin-right: 16px;
}


.page6 {
  position: relative;
  width: 100%;
  max-width: none !important;
  background-color: rgba(244,241,234,1);
  opacity: 1;
  overflow: hidden;
  display:grid;
  grid-template-columns: 20% 20% 20% 20% 20%;
}

.page6-heading {
  color: rgba(73,108,164,1);
  font-family: Instrument Sans;
  font-weight: bold;
  opacity: 1;
  text-align: center;
}

.page6-subheading {
  color: rgba(73,108,164,1);
  font-family: Instrument Sans;
  font-weight: bold;
  opacity: 1;
  text-align: center;
}

.page7 {
  position: relative;
  width: 100%;
  height: auto;
  max-width: none !important;
  background-color: rgba(235,232,226,1);
  opacity: 1;
  overflow: hidden;
}

.page7-card-subheading {
  color: rgba(73,108,164,1);
  font-family: Instrument Sans;
  font-weight: bold;
  border-color: rgba(73,108,164,1);;
  border-width: 2px;
  border-radius: 16px;
  opacity: 1;
  text-align: left;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 90%;
}

.page7-card-contents {
  color: black;
  font-family: Instrument Sans;
  font-weight: normal;
  font-size: 24px;
  opacity: 1;
  text-align: left;
  margin-top: 10px;
}

.pagefooter {
  position: relative;
  width: 100%;
  height: 280px;
  max-width: none !important;
  background-color: black;
  color: rgba(235,232,226,1);
  opacity: 1;
  overflow: hidden;
  display:grid;
  grid-template-columns: auto auto;
}

@media only screen and (min-width: 320px) {
  .pagefooterdiv {
    grid-row: 1; 
    grid-column: 1; 
    margin-top: 2vh; 
    margin-left: 20px; 
    margin-bottom: 0;
  }
}

@media only screen and (min-width: 1200px) {
  .pagefooterdiv {
    grid-row: 1; 
    grid-column: 1; 
    margin-top: 2vh; 
    margin-left: 80px; 
    margin-bottom: 0;
  }
}

.pagefooterheading {
  color: rgba(255,255,255,1);
  font-family: Instrument Sans;
  font-weight: SemiBold;
  font-size: 50px;
  opacity: 1;
  text-align: left;
}

.pagefootercontent {
  color: rgba(255,255,255,1);
  font-family: Inter;
  font-weight: Regular;
  font-size: 20px;
  opacity: 1;
  text-align: left;
}

