@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap");

/* new css */
/* Tổng quan: Đặt các phần tử không vượt quá chiều rộng màn hình */
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Hình ảnh: Đặt chế độ co giãn */
img {
  max-width: 100%;
  height: auto;
}

/* Giao diện đáp ứng theo các breakpoint */
@media (max-width: 768px) {
  /* Đặt các cột thành 1 cột thay vì 2 */
  #intro, #interface, #drag, #link-data {
      flex-direction: column;
      align-items: center;
  }

  .intro-container-img, .interface-container-img, .widget-container--img {
      max-width: 90%;
      margin: 0 auto;
  }

  .intro-container-text, .interface-container-text, .widget-container-text {
      width: auto;
      max-width: 90%;
      margin: 0 auto;
  }

  nav {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  nav .subscribe-button {
      margin-top: 10px;
  }
}

@media (max-width: 480px) {
  h1, p {
      font-size: 1rem;
  }

  .subscribe-button {
      width: 90px;
      height: 35px;
      font-size: 14px;
  }
}



/* end new css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ubuntu Mono", monospace, sans-serif;
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: #333 #ddd; /* For Firefox */
}

/* Styling for Webkit browsers (Chrome, Safari) */
*::-webkit-scrollbar {
  width: 6px;
}

*::-webkit-scrollbar-thumb {
  background-color: #aba9a9;
  border-radius: 2px;
}

*::-webkit-scrollbar-track {
  background-color: #ddd;
}

/* ----------> Root color <------------- */
.text-white {
  color: #fff !important;
}

.text-black {
  color: #2d3436 !important;
}
.text-copyright {
  font-family: 'M PLUS Code Latin', monospace;
  font-weight: 600;
  font-size: 16px;
  color: #c4c9cb;
}

.background-blue {
  background: #3498db;
}
.background-dark-blue {
  background: #40739e;
}

.background-green {
  background: #2ecc71;
}

.background-white {
  background: #dbdfe1;
}

.background-gray {
  background: #ecf0f1;
}

.background-yellow {
  background: #f8efba66;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.5
  ); /* Adjust the alpha channel for the blur effect */
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px); /* Adjust the blur intensity */
  z-index: 999; /* Ensure the overlay is on top of other elements */
  opacity: 0; /* Initially set opacity to 0 */
  visibility: hidden; /* Initially hide the overlay */
  transition: opacity 0.3s, visibility 0.3s; /* Add smooth transitions */
}

#videoContainer {
  position: relative;
  z-index: 10; /* Ensure the video container is on top of the overlay */
  opacity: 0; /* Initially set opacity to 0 */
  transition: opacity 0.3s; /* Add smooth transitions */
}

.heading-title {
  display: flex;
  width: 340px;
  height: 63px;
  flex-direction: column;
  justify-content: center;
  color: #2d3436;
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.text-default {
  width: 353px;
  color: #2d3436;
  text-align: justify;
  /* font-family: Ubuntu Mono; */
  font-family: 'M PLUS Code Latin', monospace;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.nav {
  height: 80px;
}

.header-logo {
  width: 198px;
  height: 30;
}

.subscribe-button {
  width: 110px;
  height: 40px;
  padding: 7px 10px;
  border-radius: 20px;
  box-shadow: 4px 4px 4px 0px #00000040;
  text-align: center;
}

.subscribe-button .text {
  font-family: Ubuntu Mono;
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0em;
  letter-spacing: 1px;
}

.intro-container-img {
  display: flex;
  max-width: 630px;
  max-height: 500px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.intro-img {
  object-fit: cover;
}

.intro-container-text {
  max-width: 407px;
  max-height: 258px;
  padding: 23px 27px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  border-radius: 12px;
  background: rgba(248, 239, 186, 0.4);
  box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.intro-heading {
  color: #2d3436;
  text-align: center;
  /* font-family: Ubuntu Mono; */
  font-family: 'M PLUS Code Latin', monospace;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  word-wrap:break-word;
}

.intro-text {
  color: #2d3436;
  text-align: justify;
  /* font-family: Ubuntu Mono; */
  font-family: 'M PLUS Code Latin', monospace;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.watch-video-btn {
  display: flex;
  /* width: 149px; */
  height: 50px;
  padding: 24px 39px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 30px;
  background: rgba(134, 143, 147, 0.6);
  box-shadow: -4px 4px 6px 4px rgba(0, 0, 0, 0.2);
}
.watch-video-btn span {
  color: #f4f4f4;
  /* font-family: Ubuntu Mono; */
  font-family: 'M PLUS Code Latin', monospace;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

#interface {
  border-radius: 12px;
  background: rgba(248, 239, 186, 0.4);
  height: 274px;
  padding: 31px 11px 73px 492px;
  box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.interface-container-text {
  width: 407px;
  height: 258px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.interface-container-img {
  max-width: 370px;
  max-height: 400px;
  margin-left: 32px;
  transform: rotate(10deg);
  /* flex-shrink: 0; */
}

.drag-container-text {
  width: 407px;
  height: 258px;
  display: inline-flex;
  padding: 22px 27px;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  border-radius: 12px;
  background: rgba(248, 239, 186, 0.4);
  box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.link-data-container-text {
  display: inline-flex;
  padding: 22px 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 41px;
  border-radius: 12px;
  background: rgba(248, 239, 186, 0.4);
  box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

/* ------ Neural Network ------------ */
.network-left-container {
  height: 1213px;
  /* width: 1625px; */
  width: 60%;
  background: #2c3a47;
}

.network-right-container {
  height: 1213px;
  /* width: 753px; */
  width: 40%;
  background: #576574;
}

.network-left-img {
  width: 405px;
  height: 862px;
}

.network-right-img {
  width: 600px;
  height: 1171px;
}

#leftBg,
#rightBg {
  transition: all 0.4s ease-in-out;
}

.network-container-text {
  display: inline-flex;
  width: 400px;
  height: 300px;
  padding: 20px 20px;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  border-radius: 26px;
  background: #40739e;
  box-shadow: 10px 10px 10px 0px rgba(0, 0, 0, 0.25);
}

.network-heading {
  color: #fff;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.network-text {
  color: #fff;
  text-align: justify;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.network-switch-btn {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 40px;
  background: rgba(149, 165, 166, 0.1);
  box-shadow: 6px 6px 6px 0px rgba(0, 0, 0, 0.25);
  right: calc(25% - 40px);
}

/* ----------- SmartHome ------------- */
#smarthome {
  border-radius: 12px;
  background: rgba(248, 239, 186, 0.4);
  height: 334px;
  padding: 31px 73px 11px;
  box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.smarthome-container-img {
  max-width: 352px;
  max-height: 400px;
  margin-left: 32px;
  transform: rotate(-10deg);
  flex-shrink: 0;
  border-radius: 12px;
}

/* ---------- Widget ---------------- */
.widget-container--img {
  width: 630px;
  height: 500px;
  flex-shrink: 0;
}

.widget-container-text {
  display: inline-flex;
  padding: 22px 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 41px;
  border-radius: 12px;
  background: rgba(248, 239, 186, 0.4);
  box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
}

.widget-img {
  object-fit: contain;
}

/* -----------Login ---------------- */
#login {
  padding: 13px 20px;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  border-radius: 8px;
  background: #ecf0f1;
  box-shadow: 6px 6px 6px 0px rgba(0, 0, 0, 0.25);
}

.login-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #2d3436;
  text-align: center;
  /* font-family: Ubuntu Mono; */
  font-family: 'M PLUS Code Latin', monospace;
  font-size: 25px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.form-input {
  display: flex;
  padding: 4px 3px;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: #2c3e50;
  border-bottom: 2px solid #7f8c8d;
}

.submit-button {
  width: 100px;
  height: 40px;
  padding: 7px 10px;
  border-radius: 20px;
  box-shadow: 4px 4px 4px 0px #00000040;
  text-align: center;
  background-color: #3498db !important;
}

.submit-button .text {
  font-family: Ubuntu Mono;
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0em;
  letter-spacing: 1px;
}

.square {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #fdcb6e;
}

.vector-1 {
  width: 369.5px;
  height: 297px;
  flex-shrink: 0;
  stroke-width: 6px;
  stroke: #ff7675;
}

.vector-2 {
  width: 372px;
  height: 144px;
  flex-shrink: 0;
  stroke-width: 6px;
  stroke: #ff7675;
}

.vector-3 {
  width: 644px;
  height: 360px;
  flex-shrink: 0;
  stroke-width: 6px;
  stroke: #ff7675;
}

.vector-4 {
  width: 122.5px;
  height: 249px;
  flex-shrink: 0;
  stroke-width: 6px;
  stroke: #ff7675;
}

.vector-5 {
  width: 320px;
  height: 152px;
  flex-shrink: 0;
  stroke-width: 6px;
  stroke: #ff7675;
}

.vector-6 {
  width: 449px;
  height: 179px;
  flex-shrink: 0;
  stroke-width: 6px;
  stroke: #ff7675;
}

#footer {
  height: 80px;
  padding: 14px 6px;
}

.toast-message {
  border-radius: 10px;
  font-family: Ubuntu Mono;
  font-size: 16px;
  font-weight: 600;
}

iframe {
  border: none;
  background-color: rgba(0, 0, 0, 0);
}