/* Global Styles */
/* designed by Ryan Knowles*/

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* Prevent horizontal overflow */
  font-family: Ubuntu, sans-serif;
  color: #333;
  background: #a8a8a8;
}

p {
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: #337ab7;
}

a:hover {
  color: #23527c;
}

/* Header Styles */
.navbar {
  display: flex;
  background-color: #2157bc71;
  color: white;
  padding: 10px 20px;
}

#navbar-top {
  background-color: rgba(200, 200, 200, 0.4);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 130px;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
}

#navbar-top .logo {
  height: 4rem;
}

#navbar-top nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  border-radius: 1px;
}

#navbar-top nav ul {
  list-style: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

#navbar-top nav ul li {
  margin: 0 10px;
}

#navbar-top nav ul li a {
  color: #fff;
  padding: 10px 20px;
  text-transform: uppercase;
  border: 0px solid #fff;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-size: 120%;
}

#navbar-top nav ul li a:hover {
  background-color: #fff;
  color: #337ab7;
  border-radius: 5px;
}

/* Main Content Styles */
main {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  /*Add box-sizing to include padding in width calculation */
  flex: 1;
  min-height: calc(100vh - 130px);
}

.site-footer {
  background-color: #333;
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  padding: 2px;
  flex-wrap: wrap;
}

.sitemap h3,
.contact-info h3 {
  margin-bottom: 10px;
}

.sitemap ul,
.contact-info ul {
  list-style: none;
  padding: 0;
}

.sitemap a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sitemap a:hover {
  color: #ddd;
}

.contact-info ul li {
  margin-bottom: 5px;
}

.main-index {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* Ensure the main index takes up the full viewport height */
  position: relative;
  overflow: auto;
}

#background-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
}

* {
  scrollbar-width: 0px;
}

*::-webkit-scrollbar {
  width: 0;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: transparent;
  border: none;
}

* {
  -ms-overflow-style: none;
}

.carousel {
  position: relative;
  right: 0rem;
  top: 12.5rem;
  background-color: rgba(200, 200, 200, 0.25);
  width: 80%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  border-radius: 22px;
  border: 2px solid transparent; /* Invisible border */

}

.carousel_container {
  width: 100%;
  display: flex;
  overflow: scroll;
  scroll-behavior: smooth;
  padding: 1rem;
}

.carousel_button {
  position: absolute;
  display: flex;
  top: 0;
  bottom: 0;
  margin: auto;
  height: 4rem;
  background-color: white;
  border: none;
  width: 2rem;
  font-size: 3rem;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 100ms;
}

.carousel_button:hover,
.carousel_button:focus {
  opacity: 1;
}

#carousel_button_prev {
  left: 0;
  padding-left: 0.25rem;
  border-radius: 0 2rem 2rem 0;
}

#carousel_button_next {
  right: 0;
  padding-left: 0.75rem;
  border-radius: 2rem 0 0 2rem;
}

.carousel_slide {
  width: 100%;
  height: 100%;
  flex: 1 0 100%;
  background-color: rgba(255, 255, 255, 0.0);
  padding: 0;
  overflow-x: hidden;
}

.carousel_slide h1 {
  font-size: 3rem;
  font-weight: 100;
  color: #f2eef2;
  margin: 1rem 0 1rem 0;
  /*font-family: Ubuntu, sans-serif;*/
}

.carousel_slide:nth-child(1) {
  /*background-color: #49b293;*/
}

.carousel_slide:nth-child(2) {
  /*background-color: #b03532;*/
}

.carousel_slide:nth-child(3) {
  /*background-color: #6a478f;*/
  margin: 0;
}

.carousel_slide:nth-child(4) {
  /*background-color: #da6f2b;*/
  margin: 0;
}

.carousel_slide_inner {
  margin: 0;
}

.link_list {
  width: 25rem;
  padding: 0 0 0 0;
  margin-bottom: 1rem;
  font-family: 'Trebuchet MS', 'Lucida Grande',
    Verdana, Lucida, Geneva, Helvetica,
    Arial, sans-serif;
  font-size: 1.5rem;
  list-style: none;
  list-style-type: none;
  color: #333;
  position: relative;
  padding-top: 0.0rem;
  margin-top: 0;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.link_list ul {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  border: none;
}

.link_list li {
  border-bottom: 1px solid #222e469d;
  margin: 0;

}

.link_list li a {
  display: block;
  padding: 1rem 0.5rem 1rem 0.5rem;
  border-left: 10px solid #102144b8;
  border-right: none;
  background-color: #c4c4c4be;
  color: #333;
  text-decoration: none;
  width: 100%;
}

html>body .link_list li a {
  width: auto;
  transition: 0.3s;
}

.link_list li a:hover {
  border-left: 10px solid rgba(81, 113, 201, 1);
  border-right: none;
  background-color: rgba(81, 113, 201, 0.6);
  color: #fff;
  padding-left: 1rem;
}

.slide_head {
  margin: 0;
  background-color: #102144b8;
  width: 100%;
  text-align: center;
  line-height: 1.5;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: #f2eef2;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.slide_head h2 {
  color: #fff;
}

.slide_head h3 {
  color: #fff;
  border-radius: 5px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  width: fit-content;
}

h2 {
  font-size: 24px;
  color: black;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active {
  background-color: #ccc;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger-menu div {
  width: 30px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Mobile Navigation */

.mobile-nav.active li a:hover {
  background: #956bf7;
}

.wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 100%; */
  background-color: rgba(0, 0, 0, 0);
  z-index: 999;
}

.banner_box {
  position: relative;
  width: 100%;
}

.banner_image {
  width: 100%;
  max-height: 40%;
  min-height: 250px;
  object-fit: cover;
  z-index: -1;
}

.banner_title {
  margin: 0;
  background-color: #222e469d;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  line-height: 1.5;
}

.banner_box h1 {
  font-size: 4rem;
  font-weight: 100;
  text-align: center;
  color: #f2eef2;
  margin-block-start: 0px;
  margin-block-end: 0px;
}

.article {
  margin: auto;
  width: 100%;
  padding-top: 0;
}

.article_container {
  padding-left: 10%;
  padding-right:10%;
}

.article p {
  font-size: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  margin-top: 4rem;
}

.article .flexheader {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.article h2 {
  padding-right: 1rem;
  font-size: 2rem;
  color: #244a95;
  flex-grow: 0
}

.article .divider {
  flex-grow: 1;
  height: 2px;
  background-color: #222e469d;
}

.article_section {
  display: flex;
  margin-bottom: 1.5rem;
}

a.anchor {
  display: block;
  position: relative;
  top: -10em;
  visibility: hidden;
}

.article_section_image {
  position: relative;
  width: 20rem;
  height: 20rem;
  background-color: #333;
  flex-grow: 0;
  flex-shrink: 0;
  filter: drop-shadow(4px 4px 4px #000000af);
}

.article_section_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article_section_contents_container {
  flex-grow: 1;
}

.article_section_contents_text {
  background-color: #cecece54;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  padding-left: 3rem;
  padding-right: 3rem;
  padding-top: 1rem;
  padding-bottom: 1rem;

}

.article_section_contents_text h3 {
  margin: 0;
  color: #244a95;
  font-size: 2rem;
}

.article_section_contents_text p {
  text-align: left;
  margin-bottom: 0;
  margin-top: 1rem;
}

.product_section {
  background-color: #cecece54;
  padding: 2rem;
}

.product_section h2 {
  text-align: center;
}

.product_section_image {
  position: relative;
  height: auto;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  background-color: #33333300;
  flex-grow: 0;
  flex-shrink: 0;
}

.product_section_image img {
  width:100%;
  max-height: 400px;
  display: block;
}

.product_selection_bar {
  background-color: #8d8d8d;
  border-top: 1px solid #757575;
  border-bottom: 1px solid #757575;
}

.product_selection_bar nav {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1px;
  padding: 15px;
  background-color: #3c424d00;
}

.product_selection_bar nav ul {
  list-style: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.product_selection_bar nav ul li {
  margin: 0 10px;
}

.product_selection_bar nav ul li a {
  color: #fff;
  padding: 10px 20px;
  text-transform: uppercase;
  background-color: #3c424d00;
  border: 1px solid #757575;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: bold;
  font-size: 120%;
}

.product_selection_bar nav ul li a:hover {
  background-color: #fff;
  color: #337ab7;
  border-radius: 5px;
}

.STM42_features_diagram_image {
  margin-left: auto;
  margin-right: auto;
}

.STM42_features_diagram_image img {
  width: 100%;
}

.STM42_features_display_image img {
  margin-right: 2rem;
  width: 25rem;
}

.STM42_features_display {
  display: flex;
  justify-content: center;
  align-items: center;
}

.STM42_features_display p {
  text-align: left;
  margin: 0;
}

.STM42_features_webform {
  display: flex;
  justify-content: center;
  align-items: center;
}

.STM42_features_webform_image img {
  margin-left: 2rem;
  width: 20rem;
}

.STM42_features_webform p {
  text-align: left;
  margin: 0;
}

.STM42_features_design_image img {
  margin-right: 2rem;
  width: 65rem;
}

.STM42_features_design {
  display: flex;
  justify-content: center;
  align-items: center;
}

.STM42_features_design p {
  text-align: left;
  margin: 0;
}

.STM42_features_connections_image img {
  margin-left: 2rem;
  width: 25rem;
}

.STM42_features_connections {
  display: flex;
  justify-content: center;
  align-items: center;
}

.STM42_features_connections p {
  text-align: left;
  margin: 0;
}

.applications_list {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  line-height: 1.5rem;
}

.STM42_specs_image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.STM42_specs_image img {
  margin-left: 0rem;
  width: 80%;
}

.STM42_drawing_image img {
  height: 30rem;
  margin: 3rem;
}

.STM42_drawing_image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.STM42_drawing_section {
  background-color: #fff;
  padding: 5rem;
  margin-left: 2rem;
  margin-right: 2rem;
}

.order_section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.order_section p {
  text-align: left;
  margin: 0rem;
}

.order_section a {
  text-align: left;
  margin: 0rem;
  font-size: 1.5rem;
  line-height: 1.5rem;
}

.contact_us_button {
  background-color: #244a95;
  border: 1px solid #757575;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: bold;
  margin-right: 0.5rem;
}

.contact_us_button a {
  color: #fff;
}

.contact_us_button:hover {
  background-color: #fff;

  border-radius: 5px;
}

.contact_us_button a:hover {
  color: #337ab7;
}

.article_contactus {
  margin: auto;
  width: 58rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 0;
}

.article_contactus p {
  font-size: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  margin-top: 4rem;
}

.article_contactus .flexheader {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.article_contactus h2 {
  padding-right: 1rem;
  font-size: 2rem;
  color: #244a95;
  flex-grow: 0
}

.article_contactus .divider {
  flex-grow: 1;
  height: 2px;
  background-color: #222e469d;
}

.applications_list ul {
  padding: 10px;
}

.contact_information_container {
  display: block;
  justify-content: center;
  align-items: center;
}

.contact_information {
  display: inline-block;
  margin-bottom: 4em;
  width:100%;
}

.contact_information p {
  text-align: left;
  margin-top: 0.5em;
  display: inline-block;
}

.contact_information_entry {
  display: block;
}

.contact_information_entry_symbol {
  margin-right: 1em;
  display: inline-block;
}