
body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 19px;
  font-weight: 300;
  color: white;
  position: relative;
}

h1 {
  font-size: 2.8rem;
}

#tm-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#tm-bg video {
  object-fit: cover; /* Cover the entire viewport */
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#tm-bg:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#tm-wrap {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 100vh;
}

p {
  line-height: 1.9;
  letter-spacing: 1px;
}

.tm-main-content {
  display: flex;
  align-items: center;
  padding: 50px 15px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: auto;
}

.tm-site-header-col {
  display: flex;
  align-items: center;
}

.tm-site-header {
  margin: 10px;
  text-align: right;
  width: 100%;
}

.tm-nav ul {
  padding-left: 0;
  display: block;
}

.tm-nav li {
  list-style: none;
  display: inline-block;
  border: 1px solid white;
  /*float: left;*/
  margin: 10px;
}

.tm-nav-link {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 165px;
  height: 165px;
  text-align: center;
  border: 1px solid white;
  cursor: pointer;
  position: relative;
}

.tm-nav-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
}

.tm-logo-container {
  position: absolute;   /* Position it relative to the modal */
  bottom: -30px;        /* Adjust this value to place it higher or lower */
  left: 50%;
  transform: translateX(-50%);  /* Centers the container horizontally */
  text-align: center;  /* This ensures that the image is centered within the container */
}

.tm-logo {
  width: 40px;         /* Adjust this to make the logo image larger or smaller */
  height: auto;        /* Maintains aspect ratio */
  display: inline-block;  /* Ensures it respects the text-align of its parent */
}

.fa-3x {
  font-size: 2.5em;
}

.product {
  background: transparent;
  transition: all 0.3s ease;
}

.product:hover {
  background: #2c2a35;
  color: #a9a9a9;
}

.tm-nav-icon {
  display: block;
  margin-bottom: 25px;
}

/* Expanding Grid Items from Codrops #2c2a35*/
.tm-page-title {
  font-weight: 300;
}

.content {
  max-width: 370px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
}

.grid__item {
  margin: 10px;
}

.product {
  position: relative;
  cursor: pointer;
}

.product__bg {
  width: 100%;
  height: 100%;
  top: 0px;
}

.product__bg,
.product__description {
  opacity: 0;
  position: absolute;
}

.product__description {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none;
  opacity: 0;
}

.product__description, .product, .grid__item {
  overflow: none;
}

.tm-fa-close {
  font-size: 30px;
}

.details {
  font-size: 1rem;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  padding: 15px;
  display: none;
}

.details > * {
  position: relative;
  opacity: 0;
}

.details--open {
  pointer-events: auto;
}

.details__bg {
  width: 100%;
  max-width: 900px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.details__bg--down {
  /*#2c2a35  #55545869*/
  background: #2c2a35;
}

.details__bg {
  padding: 50px;
  transform-origin: 0 0;
}

.details__close {
  position: absolute;
  top: 5px;
  right: 0;
  border: 0;
  background: none;
  margin: 1em;
  cursor: pointer;
  font-size: 0.85em;
  color: white;
  z-index: 1001;
}

/* Team */
.tm-reverse-sm {
  flex-direction: row;
}

#moreInfo {
  display: none; 
  opacity: 1;
}

/* Products */
p {
  user-select: text;
  -webkit-user-select: text; /* for Safari */
  -moz-user-select: text; /* for Firefox */
  -ms-user-select: text; /* for IE/Edge */
}

.tm-img-caption {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.5em; /* Change this value to increase/decrease the size */
}

.tm-slider-img-link p {
  font-weight: normal; 
  margin-bottom: 1.9em; 
  line-height: 1.9;
  letter-spacing: 1px;
}

.tm-slider-img-link {
  position: relative;
  display: flex;
  flex-direction: column; 
  align-items: center; 
 /*padding-left: 10px;
  padding-right: 10px;*/
}

.tm-slider-img-link img {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.tm-img-slider img {
  display: block;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 15px; /* Adds a little spacing between images */
}

.tm-img-slider {
  display: flex;
  flex-direction: column; /* To ensure content stacks vertically*/ 
  align-items: center; 
}

.tm-slider-img-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0; /* To override previous padding values*/
}

/*.slick-dots li button:before {
  font-size: 20px;
  color: white;
  opacity: 1;
}

.slick-dots {
  position: absolute;
  bottom: -40px;
  display: block;
  width: 100%;
  padding: 0;
  list-style: none;
  text-align: center;
}

.slick-dots li.slick-active button:before {
  opacity: 0.75;
  color: deepskyblue;
}

/* For the video play button 
.play-btn {
  width: 50px;
  position: absolute; 
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%); /* This ensures the button is centered 
  cursor: pointer;
  transition: 0.5s;
  opacity: 0; /* Completely invisible by default 
  z-index: 2;
}

.tm-slider-img-link:hover .play-btn {
  opacity: 1; /* Fully visible on hover 
  transform: translate(-50%, -50%) scale(1.1); /* Enlarge slightly on hover 
  /*background-color: rgba(0, 0, 0, 0.5);  Add a darker background on hover 
  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.7); /* Add shadow on hover 
}*/

video {
  max-width: 100%;
  height: auto;
}

/* The primary modal backdrop */
.video-modal {
  position: absolute; /* Changed from 'right' to 'absolute' */
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999; 
  display: none; /* Set to none so it's hidden by default */
  align-items: center; 
  justify-content: center;
  /* Add the following properties for proper positioning */
  width: auto;
  top: 0;
  left: 0;
}

/* Adjustments for the modal to appear below the caption */
.tm-slider-img-link {
  pointer-events: auto;
  position: relative;
}

.tm-img-caption {
  z-index: 10;  /* Adjust accordingly */
  position: relative;  /* If it's not already positioned */
}

.tm-img-caption:hover {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s;
}

/* Contact */
#country_region {
  overflow: visible;
  height: auto;
  font-size: 1rem;
  line-height: 1.5rem;
}

.form-control {
  font-size: 1.1rem;
  border-radius: 0;
  border: none;
  background-color: #353541;
  color: white;
  padding: 0.75rem;
  box-sizing: content-box;
}

.form-control:focus {
  color: #cecece;
  background-color: #4d4c59;
  border-color: transparent;
}

.tm-col-email {
  padding-left: 0;
}

.tm-btn-submit {
  background-color: #006599;
}

.tm-btn-gray {
  background-color: #494752;
  color: white;
}

.tm-btn-gray:hover {
  background-color: #77757d;
  color: white;
}

.btn {
  padding: 0.5rem 2.4rem;
  font-size: 1.2rem;
  border-radius: 0;
}

.btn-primary {
  border-color: transparent;
}

.btn-primary:hover {
  background-color: #0e7fb9;
  border-color: transparent;
}

/* Footer */
footer {
  position: absolute;
  bottom: 30px;
  text-align: center;
  left: 0;
  right: 0;
}

.tm-text-highlight {
  color: white;
}
.tm-text-highlight:hover {
  color: red;
}
.tm-main-content.tm-footer-relative {
  flex-direction: column;
}
.tm-main-content.tm-footer-relative footer {
  position: relative;
  bottom: 0;
  margin-top: 50px;
}

.tm-copyright-text {
  background-color: rgba(0, 0, 0, 0.6);
  display: inline-block;
  padding: 10px 30px;
}

a,
button {
  transition: all 0.3s ease;
}
a:hover,
a:focus {
  text-decoration: none;
  outline: none;
}

p:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .container {
    max-width: 900px;
  }
}

@media (min-width: 767px) and (max-width: 991px), (max-width: 440px) {
  .tm-nav-link {
    width: 145px;
    height: 145px;
  }
}

@media (max-width: 767px) {
  .tm-logo-container {
    bottom: -40px;
    /* Adjust this value until it looks good, and doesn't overlap other content */
  }
  .container {
    max-width: 450px;
  }
  .content {
    margin-left: auto;
    margin-right: 0;
  }
  .tm-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .grid {
    justify-content: flex-end;
  }
  .tm-col-email {
    padding-left: 15px;
  }
  .tm-reverse-sm {
    flex-direction: column-reverse;
  }
}

@media (max-width: 544px) {
  .tm-main-content {
    flex-direction: column;
  }
  .details__bg {
    padding: 55px 40px;
  }
 /* .slick-dots li button:before {
    font-size: 15px;
  }*/

  footer {
    position: relative;
    bottom: 0;margin-top: 20px; /* Adjust this value as needed*/
    padding: 10px 0;  /* Adjust padding if necessary*/

  }
}

@media (max-width: 419px) {
  .tm-nav-link {
    width: 120px;
    height: 120px;
  }

  .fa-3x {
    font-size: 2.2em;
  }
}

@media (max-width: 860px) {
  .tm-img-slider, .grid__item, .product {
      max-height: none !important;
      height: auto !important;
  }
  .tm-img-slider {
      overflow-y: auto;  /* add vertical scroll if necessary */
  }
}

/*@media (orientation: portrait) {
  .tm-img-slider {
      max-height: 60vh; /* This is just an example. Adjust as necessary.
      overflow-y: auto;
  }
}*/
