body .nav-link {
  font-family: 'DM Sans', 'IBM Plex Sans Thai', sans-serif !important;
}

/* Navigation bar */

nav {
  position: relative;
}

.hamburger-container {
  display: none;
  position: relative;
  z-index: 5;
}

.hamburger-container hr {
  width: calc(100vw - 40px);
  margin: 0 auto;
  opacity: 0.3;
}

.hamburger-container .hamburger-menu-container {
  height: 0;
  width: 100%;
  max-width: 100vw;
  background-color: rgba(255, 255, 255, 0.77);
  backdrop-filter: blur(5px);
  position: fixed;
  left: 0;
  top: 0;
  z-index:-1;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
}

.hamburger-container input[type="checkbox"]:checked ~ .hamburger-menu-container {
  height: 100vh;
  width: 100%;
  padding-top: 100px;
  background-color: rgba(255, 255, 255, 1);
  backdrop-filter: blur(5px);
  position: fixed;
  left: 0;
  top: 0;
  z-index:0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hamburger-container .hamburger-menu-container .hamburger-menu-item {
  display: none;
  margin: 40px 0;
  font-size: 24px;
  color: #1A1A1A;
}

.checkbox {
  display: block;
  height: 32px;
  width: 64px;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 5;
  opacity: 0;
  cursor: pointer;
  background-color: red;
}

.menu-toggle {
  max-width: 86px
}

.hamburger-lines {
  display: block;
  height: 26px;
  width: 32px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-lines .line {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 10px;
  background: #bcbcbc;
}

.hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.4s ease-in-out;
}

.hamburger-lines .line2 {
  transition: transform 0.2s ease-in-out;
}

.hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.4s ease-in-out;
}

.navbar .menu-items {
  padding-top: 120px;
  box-shadow: inset 0 0 2000px rgba(255, 255, 255, .5);
  height: 100vh;
  width: 100%;
  transform: translate(-150%);
  display: flex;
  flex-direction: column;
  margin-left: -40px;
  padding-left: 50px;
  transition: transform 0.5s ease-in-out;
  text-align: center;
}


.hamburger-container input[type="checkbox"]:checked ~ .menu-items {
  transform: translateX(0);
}

.hamburger-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

.hamburger-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scaleY(0);
}

.hamburger-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}

.hamburger-container input[type="checkbox"]:checked ~ .logo{
  display: none;
}

.landing-navbar-container {
  position: absolute;
  top: 0;
  margin: 0 auto;
  width: 100vw !important;
  max-width: 1024px;
  height: 800px;
  max-height: 100vh;
  white-space: nowrap;
}

.landing-navbar {
  display: flex;
  justify-content: space-between;
  align-content: center;
  padding: 0 40px 0 40px;
  height: 64px;
  width: 100vw;
  max-width: 1024px;
}

.landing-navbar .logo {
  margin-top: -2px;
}

.landing-navbar .language {
  cursor: pointer;
}

.menu-container {
  width: 40%;
  flex: 1;
  padding: 0 32px;
  display: flex;
  justify-content: flex-end;
  gap: 32px;
}

.menu-item {
  font-size: 1rem;
  font-weight: 400;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.auth-container {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.dot-separator {
  margin: 0 2px;
}


@media screen and (max-width: 768px) {
  /* Navbar */

  .hamburger-container {
    display: flex;
    gap: 32px;
  }

  .menu-container {
    display: none;
  }

  .menu-item {
    text-decoration: underline;
  }

  .menu-toggle.close-button {
    max-width: 72px;
    position: absolute;
    top: 16px;
    right: 20px;
    display: flex;
    justify-content: center;
  }

  .auth-container {
    gap: 8px;
  }

  .landing-navbar {
    max-width: 100vw;
    padding: 0 20px;
  }

  .landing-navbar-container .language{
    display: none;
  }
  
  .hamburger-menu-container .language {
    display: block;
    margin: 0 auto;
  }
  
  .landing-navbar-container .language.show-mobile {
    display: flex;
    justify-content: space-between;
  }

  .hamburger-menu-container .brand {
    position: absolute;
    top: 20px;
    left: 20px
  }

  .hamburger-container .hamburger-menu-container .hamburger-menu-item {
    display: block;
  }

  .hamburger-container .hamburger-menu-container .hamburger-menu-item.accented-button {
    color: #fff;
    display: flex;
    align-items: center;
    margin: 0 auto;
  }

  .hamburger-container .hamburger-menu-container .language {
    margin-top: 40px;
    display: flex;
    justify-content: center;
  }

  /* Landing Content */
  .landing-content {
    height: 800px;
    width: 100vw;
    display: grid;
    justify-content: center;
    grid-template-rows: 320px 1fr 100px;
    grid-template-columns: 1fr;
    grid-template-areas: 
      "demo"
      "details"
      "trustedBy";
  }

  .landing-content-details {
    grid-area: details;
    width: 320px;
    height: 460px;
    text-align: center;
    margin: 0 auto;
  }

  .landing-content-details h1{
    
    font-weight: 500 !important;
    margin: 0;
    width: 320px;
  }
  
  .opl-get-started-section {
    justify-content: center;
  } 
  .landing-content-demo {
    grid-area: demo;
    width: 280px;
    height: 280px;
    overflow: hidden;
    margin: 0 auto;
    top: -40px;
    right: 0px;
    display: flex;
    justify-content: center;
    position: relative;
    transform: translateX(50px) scale(2);
  }

  .trusted-by {
    grid-area: trustedBy;
    height: 100px;
  }

  .trusted-by-brands {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
  }

  .landing-content-demo .layer-1 img {
    height: 200px;
  }

  .landing-content-demo .layer-2 {
    transform: translate(-50px, -30px);
  }
  
  .landing-content-demo .layer-2 img {
    height: 100px;
  }

  .landing-content-demo .layer-3 {
    transform: translate(-64px, -44px);
  }

  .landing-content-demo .layer-3 img {
    height: 40px;
  }

  .landing-content .text-container p {
    margin-bottom: 40px;
  }

  .landing .text-container h1 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 24px;
    width: 100%;
  }

  .landing .text-container h1.title {
    font-size: 2.7rem;
    line-height: 3.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    max-width: calc(100vw - 40px);
    width: 100%;
  }
  
  .landing .text-container p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 64px;
  }
  
  .landing .text-container span {
    font-size: 16px;
    font-weight: 400;
  }

  .info-content {
    margin: 80px auto;
    display: grid;
    max-width: 800px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "text";
  }

  .info-content-text {
    padding: 0 40px;
    gap: 0;
  }

  .info-content-text span{
    width: 100%;
  }

  .info-content-center {
    overflow: hidden;
  }

  .info-content-center h1 {
    max-width: 100%;
  }

  .info-content-center-full-screen {
    overflow: visible;
    max-width: calc(100vw - 40px);
    padding: 0;
  }

  .openlink-user {
    margin: 80px 0 80px 0;
    height: 320px;
    object-fit: contain;
  }  

  .instagram-profile {
    display: flex;
    width: 100%;
    height: 360px;
    justify-content: center;
    align-items: center;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateX(0px);
    overflow: hidden;
  }

  .instagram-profile .layer-1 {
    top: 50px;
    transform: translateX(-80px);
  }

  .instagram-profile .layer-1 img {
    height: 150px;
  }
  
  .instagram-profile .layer-2 {
    top: 120px;
    transform: scale(1.5) translateX(40px);
  }

  .instagram-profile .layer-2 img {
    height: 180px;
  }
  
  .instagram-profile .layer-3 {
    top: 256px;
    transform: scale(1.6);
  }

  .instagram-profile .layer-3 img {
    height: 50px;
  }
}


/* Language */

.language{
  grid-area: language;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  flex-direction: row;
}

.language .selected-language {
  white-space: nowrap;
}

.language.d-none {
  display: none;
}

.language .dropdown {
  border: none;
  background-color: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.dropdown-arrow {
  position: relative;
  left: -4px;
}

.locale-dropdown-modal {
  background-color: #ECEDE9;
  border-radius: 4px;
  margin-top: 10px;
  z-index: 3;
  padding: 5px;
  position: absolute;
  right: 0px;
  top: 20px;
}

.hamburger-menu-container .locale-dropdown-modal {
  position: absolute;
  top: 24px;
  width: 100px;
}

.locale-dropdown-selection-container {
  padding: 5px 30px 5px 10px;
  white-space: nowrap;
}

.locale-dropdown-selection-container:hover {
  cursor: pointer;
}

.locale-dropdown-selection-text {
  font-size: 15px;
}

.arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transform: translateY(-12px);
}

.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

@media screen and (max-width: 768px) {
  .language {
    justify-content: flex-start;
    max-width: 120px;
  }

  .dropdown.underlined {
    text-decoration: underline;
  }
}

/* Dropdown */

#backdrop {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  opacity: 0.5;
  z-index: 1;
}