/* Stylesheet for Joo Hee Transport Engineering Ptd Ltd Webpage */
/* Author: @ElliotMonde | https://github.com/ElliotMonde | 2022 */
html {
  scroll-behavior: smooth;
  transition: all ease-in-out;
}
body,
a {
  color: #303457;
  font-family: "SF-Pro", "source-sans-pro", Arial;
}
@media all and (min-width: 769px) {
  body,
  a {
    text-align: left;
  }
  body,
  header,
  main,
  footer,
  #topNav,
  .navLinks {
    display: flex;
  }
  .home,
  h1,
  .hero,
  .scroll,
  .blank,
  .heroImg,
  .heroImg > img,
  .midMask,
  #mapMask,
  #imgMask,
  .about > object,
  #aboutImg > img,
  #aboutBg,
  #servicesTitle,
  #servicesBg,
  .contact,
  #contactBg,
  #contactTitle,
  #enquiryBg,
  #enquiryDiv,
  #heroImgDiv,
  #quoteBtn,
  .btn {
    display: block;
  }
  @keyframes maskMove {
    0% {
      width: 100%;
    }
    100% {
      width: 0%;
    }
  }

  .maskMove {
    animation: maskMove 1s ease-in-out;
    transform-origin: left;
  }
  .midMask {
    background: #303457;
    position: absolute;
    animation-fill-mode: forwards;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }
  #imgMask,
  #mapMask {
    background: white;
    position: absolute;
    animation-fill-mode: forwards;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }
  header,
  body,
  main,
  footer,
  a.navlinks,
  .home,
  .heroImg,
  .heroImg > img,
  .hero {
    width: 100%;
  }
  body,
  main,
  footer {
    flex-direction: column;
    margin: 0;
  }
  header,
  footer {
    flex-direction: row;
    background: #303457;
    align-items: center;
    height: 8vh;
    justify-content: space-between;
  }
  .navLinks,
  .navLinks:hover,
  .navLinks:visited,
  a {
    text-decoration: none;
  }
  .fixed {
    position: fixed;
  }
  header {
    position: fixed;
    z-index: 2;
  }
  .logo > svg {
    width: 80%;
    padding: 4%;
    height: inherit;
  }
  #topNav {
    position: relative;
    margin: 0;
    right: 6%;
    height: inherit;
  }
  a.navLinks {
    display: absolute;
    font-weight: lighter;
    font-size: 1.3vw;
    line-height: inherit;
    justify-content: center;
    align-items: center;
    padding-left: 4%;
    padding-right: 4%;
    border: hidden;
    border-radius: 0px 0px 5px 5px;
    transition: all 0.1s ease-in;
    z-index: 999;
  }
  .scrollBlue {
    -webkit-text-stroke: 0;
    -webkit-text-fill-color: white;
    background: none;
  }
  .scrollBlue:hover {
    -webkit-text-fill-color: #303457;
    background: white;
  }
  .scrollHover {
    -webkit-text-stroke: #303457;
    -webkit-text-stroke-width: 1px;
    -webkit-text-fill-color: white;
    background: none;
  }
  .scrollHover:hover {
    -webkit-text-fill-color: #303457;
  }
  .blank {
    visibility: hidden;
    height: 4vh;
  }
  main {
    align-items: center;
    justify-content: center;
  }
  .home {
    height: 100%;
    z-index: -999;
  }
  .about {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 150vh;
    width: 80%;
    height: 20vh;
    margin-top: 0vh;
    padding-top: 35vh;
    background: white;
    z-index: -993;
  }
  .services {
    display: flex;
    flex-direction: row;
    z-index: -992;
    position: absolute;
    top: 320vh;
    height: 45vh;
    width: 80%;
  }
  .about > div,
  #aboutContent {
    width: 40vw;
  }
  .about > object {
    width: 40%;
    height: fit-content;
    background: #303457;
  }
  .right {
    margin-left: 5%;
  }
  .left {
    margin-right: 5%;
  }
  #aboutImg > img {
    width: 100%;
    height: auto;
  }
  #aboutBg {
    position: absolute;
    z-index: -995;
    top: 100vh;
    width: 100%;
    height: 100vh;
    background-color: white;
  }
  #aboutTitle,
  #aboutContent,
  #aboutImg,
  #heroTitle {
    z-index: -993;
    position: fixed;
  }
  #aboutTitle,
  #aboutContent {
    left: 50vw;
  }
  #aboutTitle {
    top: 30vh;
  }
  #aboutContent {
    top: 40vh;
  }
  #aboutImg {
    top: 25vh;
    left: 10vw;
  }

  #servicesTitle {
    position: fixed;
    top: 10vh;
    left: 50%;
    transform: translate(-50%, 0);
    color: white;
    z-index: -991;
  }
  #servicesBg {
    position: absolute;
    top: 225vh;
    background: #303457;
    height: 200vh;
    width: 100%;
    z-index: -993;
  }
  .contact {
    z-index: -990;
    position: absolute;
    top: 425vh;
    height: 100vh;
    margin-top: 5%;
  }
  #contactBg {
    position: absolute;
    top: 425vh;
    background: white;
    height: 150vh;
    width: 100%;
    z-index: -991;
  }
  #contactDiv {
    display: flex;
    flex-direction: row;
    z-index: -991;
  }
  #contactDetails {
    margin-top: 5%;
    margin-left: 0%;
  }
  #contactTitle {
    margin-left: 0;
  }
  #enquiryBg {
    position: absolute;
    z-index: -989;
    background-color: white;
    top: 525vh;
    height: 125vh;
  }
  #enquiryDiv {
    position: absolute;
    top: 525vh;
    height: 100vh;
    z-index: -988;
  }
  #enquiryForm {
    position: fixed;
    top: 10vh;
    z-index: -988;
  }
  .mid {
    display: flex;
    flex-direction: row;
    position: fixed;
    top: 30vh;
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
    opacity: inherit;
    width: 100%;
  }
  .mid > div {
    display: flex;
    flex-direction: column;
    width: 80vw;
    margin-right: auto;
    margin-left: auto;
    width: 25%;
    height: 25%;
  }
  .mid > div > p {
    color: white;
    z-index: -991;
  }
  .mid > div > object > img {
    width: 80%;
    height: auto;
    padding-left: 10%;
    padding-right: 10%;
    aspect-ratio: 1/1;
    object-fit: cover;
  }
  #heroImgDiv {
    width: 100%;
    position: absolute;
    top: 0vh;
    height: 100vh;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 85%,
      rgba(255, 255, 255, 1) 95%
    );
    z-index: -996;
  }
  .heroImg,
  .heroImg > img {
    position: fixed;
    object-fit: cover;
    top: 4vh;
    height: 92vh;
  }
  .hero {
    height: 96vh;
    margin-top: 4vh;
    background: linear-gradient(
      to left,
      rgba(48, 52, 87, 0.9),
      rgba(255, 255, 255, 0.2)
    );
  }
  .heroImg {
    opacity: 0.7;
    z-index: -998;
  }
  h1 {
    font-size: 7.5vw;
    height: 96vh;
    z-index: -997;
    margin: 0vh;
    padding: 17vh 24vh 0vh 24vh;
  }
  #quoteBtn {
    position: fixed;
    top: 57vh;
    left: 50vw;
    color: white;
    font-size: 1.3vw;
    width: fit-content;
    height: auto;
    margin-top: 1.5%;
    padding: 1.5%;
    background: #303457;
    border-radius: 8px;
    z-index: 1;
    cursor: pointer;
  }
  .btn {
    color: white;
    font-size: 1.3vw;
    text-align: center;
    height: auto;
    padding: 1.5%;
    background: #303457;
    border-radius: 8px;
    z-index: 999;
    cursor: pointer;
  }
  a.btn {
    width: 100%;
  }
  td > p {
    width: 200%;
    font-size: 1em;
  }
  th {
    text-align: left;
  }
  .tableLinks {
    display: none;
  }
  #quoteBtn:hover,
  .btn:hover {
    background: rgb(83, 95, 191);
    font-size: 1.3vw;
  }
  h3 {
    font-size: 3vw;
  }
  p {
    font-size: 2vw;
  }
  footer {
    position: absolute;
    top: 620vh;
    z-index: 0;
  }
  footer > p {
    font-size: 1em;
  }
  footer > p,
  footer > a {
    padding: 0% 4%;
  }
  footer,
  footer > a {
    color: white;
  }
  .footerLinks {
    text-decoration: underline;
  }
  form {
    display: flex;
    flex-direction: column;
  }
  #submit {
    color: white;
    background: #303457;
  }
  #submit:hover {
    background: rgb(83, 95, 191);
    cursor: pointer;
  }
  .mobile {
    display: none;
  }
}
@media all and (max-width: 768px) {
  html {
    width: 100vw;
    overflow-x: hidden;
  }
  body {
    margin: 0;
    scroll-behavior: smooth;
  }
  * {
    flex-direction: column;
    transition: all 1s ease-in-out;
  }
  header {
    display: block;
    position: fixed;
    top: 0vh;
    margin: 0;
    background-color: rgba(255, 255, 255, 0);
    width: 100vw;
    z-index: 998;
  }
  .logo {
    width: 40%;
  }
  .logo > svg {
    display: block;
    width: 100%;
    height: auto;
    padding: 10%;
  }
  #logo {
    fill: white;
    background: transparent;
  }
  .heroImg {
    position: fixed;
    top: 0vh;
    width: 100%;
    object-fit: cover;
    height: 45vh;
    z-index: -999;
    margin: 0;
  }
  .heroImg > img {
    display: block;
    width: 150%;
    height: auto;
  }
  #aboutImg {
    display: none;
    width: 0%;
  }
  .home {
    display: block;
  }
  img {
    width: inherit;
  }
  .mobile {
    display: block;
    position: absolute;
    right: 0vw;
    width: 40%;
    z-index: 999;
  }
  #burgerIcon,
  #xIcon {
    display: block;
    color: white;
    width: fit-content;
    height: auto;
    position: fixed;
    top: 3vh;
    right: 5vw;
  }
  #burgerIcon > svg,
  #xIcon > svg {
    width: 5vw;
    height: auto;
  }
  #menu {
    width: 100vw;
    height: 100vh;
    background-color: #303457;
    z-index: 999;
    text-align: center;
    font-size: 5vw;
    font-weight: bold;
  }
  #mobileLinks {
    display: flex;
    flex-direction: column;
  }
  .sideNavItem {
    text-decoration: none;
    display: block;
    color: white;
    padding-top: 5vh;
    padding-bottom: 5vh;
  }
  .sideNavItem:hover {
    background: white;
    color: #303457;
    transition: all 0.5s ease-in-out;
  }
  .open {
    display: block;
    opacity: 1;
    width: 100%;
  }
  .close {
    display: none;
    opacity: 0;
    width: 0%;
  }
  #topNav {
    display: none;
    width: 0;
  }
  .home {
    display: block;
    position: absolute;
    top: 0vh;
    z-index: -999;
    height: 100vh;
  }
  #heroTitle {
    display: block;
    width: 60vw;
    margin-left: 20vw;
    margin-right: 20vw;
    height: 20vh;
    position: fixed;
    top: 10vh;
    font-size: 10vw;
  }
  #heroImgDiv {
    display: block;
    position: absolute;
    top: 0vh;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
      to left,
      rgba(48, 52, 87, 0.9),
      rgba(255, 255, 255, 0.2)
    );
    z-index: -998;
  }
  .heroImg {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    opacity: 0.4;
    z-index: -999;
  }
  .heroImg > img {
    height: 100%;
    width: auto;
  }
  #quoteBtn {
    text-decoration: none;
    display: block;
    position: absolute;
    top: 60vh;
    left: 20vw;
    background: #303457;
    padding: 2%;
    color: white;
    border-radius: 8px;
    z-index: 0;
  }
  #aboutBg {
    display: block;
    width: 100%;
    position: absolute;
    top: 100vh;
    height: 120vh;
    background: white;
    z-index: -998;
  }
  .about {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 180vh;
    height: 20vh;
    z-index: -997;
  }
  #aboutImg {
    display: block;
    position: fixed;
    top: 25vh;
    width: 60vw;
    height: fit-content;
    z-index: -997;
    margin-left: 20vw;
    margin-right: 20vw;
  }
  #aboutImg > img {
    width: 100%;
    height: auto;
  }
  #aboutTitle {
    position: fixed;
    top: 55vh;
    font-size: 5vw;
    margin-left: 20vw;
  }
  #aboutContent {
    position: fixed;
    top: 65vh;
    margin-left: 20vw;
    margin-right: 20vw;
  }
  .services {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 200vh;
    width: fit-content;
    height: 50vh;
    z-index: -995;
    background: #303457;
    color: white;
    justify-items: center;
    padding-top:10vh;
    margin-left: 30vw;
    margin-right: 30vw;
  }

  #servicesBg {
    display: block;
    position: absolute;
    top: 200vh;
    width: 100vw;
    height: 100vh;
    background: #303457;
    z-index: -995;
  }
  .mid {
    display: block;
    width: 60%;
    height: fit-content;
    z-index: -995;
  }
  #servicesTitle {
    display: block;
    margin-bottom: 5vh;
    font-size: 5vw;
    width: inherit;
    line-height: inherit;
    z-index: -994;
  }
  .mid > div {
    display: block;
    margin-bottom: 5vh;
    width: 40vw;
    overflow: hidden;
    object-fit: cover;
    align-items: center;
  }
  .mid > div > object {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .mid > div > object > img {
    display: block;
    width: 100%;
    height: 100%;
  }
  .contact,
  .enquiry {
    display: block;
    position: absolute;
    width: 60vw;
    margin-left: 20vw;
    margin-right: 20vw;
    padding-top: 10vh;
    text-align: left;
    background: white;
  }
  .contact {
    top: 300vh;
    height: 60vh;
  }
  #contactTitle {
    font-size: 5vw;
    width: fit-content;
    line-height: normal;
  }
  .gmap_canvas {
    width: inherit;
    aspect-ratio: 6/5;
    justify-self: center;
    margin-bottom: 5vh;
  }
  .enquiry {
    top: 390vh;
    height: 20vh;
  }
  #enquiryTitle {
    font-size: 5vw;
  }
  #form {
    display: block;
    width: 20em !important;
    height: 15em !important;
  }
  .maskMove {
    width: inherit;
    height: inherit;
    display: block;
    position: absolute;
    background: white;
  }
  footer {
    position: absolute;
    top: 470vh;
    width: 100%;
    background: #303457;
    z-index: 0;
    text-align: center;
    padding-bottom: 2vh;
  }
  footer > p {
    font-size: 1em;
  }
  .tableBr {
    display: none;
  }
  footer > p,
  footer > a {
    padding: 0% 4%;
  }
  footer,
  footer > a {
    color: white;
  }
  .footerLinks {
    text-decoration: underline;
  }
}
