/* 1. Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Root defaults */
html,
body {
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000000;
  background-image: url("../images/bg01.jpg");
  background-position: top center;
  /*background-repeat: repeat-y;*/
  background-size: cover;
  background-repeat: no-repeat;
  /*background-attachment: scroll;*/
  scroll-behavior: smooth;
}

/* 3. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}
h2,
h3,
h4 {
  padding-bottom: 12px;
}
p {
  margin-bottom: 1rem;
}

/* 4. Links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* 5. Images */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Forms */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Layout helper */
#container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  align-items: center;
}
#container-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
}

#header {
  display: flex;
  width: 100%;
  height: 150px;
  align-items: center;
}
#nav-wrap {
  display: flex;
  width: 100%;
  height: 100px;
  justify-content: right;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
}
#nav-left {
  display: flex;
  width: 100%;
  height: 100px;
  font-size: 24px;
  align-items: center;
  padding-left: 100px;
}
#nav-logo {
  display: block;
  width: 88px;
  height: 80px;
  background-image: url("../images/logo02.png");
}
#nav-title {
  display: flex;
  width: 100%;
  height: 120px;
  align-items: center;
  padding-left: 20px;
}
#nav-right {
  display: flex;
  width: 910px;
  height: 100px;
  justify-content: right;
  padding-right: 50px;
}
.link {
  display: flex;
  width: auto;
  min-width: 150px;
  height: 100px;
  justify-content: center;
  align-items: center;
}
.link:hover {
  border-top: 4px solid #000000;
  border-bottom: 4px solid #000000;
}

/*-----NAVIGATION----------------------------*/
#header-links-desktop {
  display: flex;
  width: 910px;
  height: 100px;
  justify-content: center;
  align-items: center;
  font-weight: 500;
}
#mobile-nav-toggle,
#mobile-nav-links {
  display: none;
}
/*-----END NAVIGATION----------------------*/

#hero-wrap {
  display: flex;
  width: 100%;
  height: auto;
  justify-content: center;
  align-items: center;
}
#hero {
  display: block;
  width: 80%;
  height: auto;
}
#info-wrap {
  display: flex;
  width: 100%;
  height: auto;
  gap: 50px;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 50px;
}
.info-block {
  display: flex;
  position: relative;
  flex-direction: column;
  width: 450px;
  height: 325px;
  background-color: #000000;
  padding: 30px;
  font-size: 14px;
  line-height: 20px;
  color: #ffffff;
  border-bottom-right-radius: 40px;
  border-left: 2px solid #ffffff;
  background-color: rgba(0, 0, 0, 0.3); /* instead of opacity */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(20px);
}
.highlight-image_hhog {
  display: block;
  position: absolute;
  bottom: 20px;
  left: 30px;
  width: 115px;
  height: auto;
}
.highlight-image_gecko {
  display: block;
  position: absolute;
  bottom: 20px;
  left: 30px;
  width: 100px;
  height: auto;
}
.highlight-image_recycle {
  display: block;
  position: absolute;
  bottom: 20px;
  left: 30px;
  width: 150px;
  height: auto;
}
.list {
  padding-left: 20px;
}
.text-top {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 250px;
}
.text-bottom {
  display: flex;
  width: 100%;
  height: 40px;
  justify-content: right;
  align-items: center;
}
/*--HERO SLIDESHHOW---------------------------*/
#hero-slideshow {
  width: 100%;
  height: 700px;
  overflow: hidden;
  position: relative;
  border: 20px solid white;
}
#hero-slideshow .slides {
  position: relative;
  width: 100%;
  height: 100%;
}
#hero-slideshow .slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
#hero-slideshow .slides img.active {
  opacity: 1;
}
/*--END---------------------------------------*/

#body-midsection-wrap {
  display: flex;
  width: 100%;
  height: auto;
  align-items: center;
  justify-content: center;
}
#body-midsection {
  display: flex;
  flex-direction: column;
  width: 80%;
  height: auto;
  background-color: #ffffff;
}
.body-info-wrap {
  display: flex;
  width: 100%;
  height: auto;
  padding: 20px;
  border-bottom: 1px solid #cccccc;
}
.body-info-image {
  display: flex;
  width: 400px;
  height: auto;
}
.body-info-text {
  display: flex;
  flex-direction: column;
  width: 70%;
  height: auto;
  padding-left: 20px;
}
.body-thumb-wrap {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  align-items: end;
  justify-content: left;
  gap: 10px;
}
.body-thumb-image {
  display: flex;
  width: 100px;
  height: 100px;
}
/*--INFO BOX-------------------------------*/
.info-hover {
  position: relative;
  display: inline-block;
}
.info-box {
  position: absolute;
  bottom: 110%; /* above the image */
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: #fff;
  color: #333;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  transform: translateX(-50%) translateY(10px);
  z-index: 20;
}
.info-hover:hover .info-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.info-box::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

/*--MOBILE DEVICES--------------------------------------------*/
@media (max-width: 768px) {
  #header {
    display: flex;
    width: 100%;
    height: 150px;
    align-items: center;
  }
  #nav-wrap {
    display: flex;
    width: 100%;
    height: 100px;
    justify-content: right;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
  }
  #nav-left {
    display: flex;
    width: 80%;
    height: 100px;
    font-size: 24px;
    align-items: center;
    padding-left: 20px;
  }
  #nav-logo {
    display: block;
    width: 80px;
    height: 80px;
    background-image: url("../images/logo02.png");
  }
  #nav-title {
    display: flex;
    width: 50%;
    height: 120px;
    align-items: center;
    padding-left: 20px;
  }
  #nav-right {
    display: flex;
    width: 20%;
    height: 100px;
    justify-content: right;
    padding-right: 50px;
  }
  #hero-wrap {
    display: flex;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
  }
  #hero {
    display: block;
    width: 90%;
    height: auto;
  }
  #info-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
  }
  .info-block {
    display: flex;
    flex-direction: column;
    width: 90%;
    height: auto;
    background-color: #000000;
    padding: 30px;
    font-size: 12px;
    line-height: 20px;
    color: #ffffff;
    border-bottom-right-radius: 40px;
    border-left: 2px solid #ffffff;
    background-color: rgba(0, 0, 0, 0.3); /* instead of opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
  }
  @supports (-moz-appearance: none) {
    .info-block {
      line-height: 18px;
    }
    .highlight-image_hhog {
      display: block;
      position: absolute;
      bottom: 30px;
      right: 100px;
      width: 100px;
      height: auto;
    }
  }

  .text-top {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 250px;
  }
  .text-bottom {
    display: flex;
    width: 100%;
    height: 40px;
    justify-content: right;
    align-items: center;
  }
  /*--HERO SLIDESHHOW in MOBILE VIEW---------------------------*/
  #hero-slideshow {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    border: 10px solid white;
  }
  #hero-slideshow .slides {
    position: relative;
    width: 100%;
    height: 100%;
  }
  #hero-slideshow .slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  #hero-slideshow .slides img.active {
    opacity: 1;
  }
  /*--END SLIDESHOW in MOBILE VIEW----------------------------*/
  #body-midsection-wrap {
    display: flex;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
  }
  #body-midsection {
    display: flex;
    flex-direction: column;
    width: 90%;
    height: auto;
    background-color: #ffffff;
  }
  .body-info-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 10px;
    border-bottom: 1px solid #cccccc;
  }
  .body-info-image {
    display: flex;
    width: 100%;
    height: auto;
  }
  .body-info-text {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 10px;
  }
  .body-thumb-wrap {
    display: none;
  }
  /*NAVIGATION----------------------*/
  #desktop-nav-links {
    display: none;
  }
  #mobile-nav-toggle {
    display: flex;
    width: 50px;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    margin-top: 0;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
  }
  #mobile-nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 50%;
    height: 60vh;
    gap: 0;
    padding: 0;
    align-items: center;
    margin-top: 0;
    padding-top: 20px;
    padding-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.3); /* instead of opacity */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    border-left: 2px solid #ffffff;
    border-bottom-right-radius: 40px;
  }
  #mobile-nav-links a {
    color: #ffffff;
    text-decoration: none;
  }
  #mobile-nav-links.active {
    display: flex;
  }
  #header-links-desktop {
    display: none;
  }
  #header-links {
    display: none;
  }
  #header-links.active {
    display: flex;
  }
}
