html {
  height: 100%;
}
body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* background-color: #548076; */
  background-color:#0202a2; /*สี background ของ page*/
  font-family: 'Helvetica', sans-serif; 
  
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2vw;
   padding: 1rem 2rem; 
  /* background-color: rgb(46, 255, 192); */
  background-color:#FFFFFF;
}

.logo img {
  height: 80px; 
  border-radius: 5px;
  
}

/* Menu Style */
ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul li {
  margin: 0 1rem;
}

a {
  text-decoration: none;
  Color:#0202cc;
  /* color: #554a8f; */
  font-size: 1.2vw;
}

a:hover {
  font-weight: bold;
  text-decoration: underline;
}

/* Footer */
footer {
  /* background-color: rgb(46, 255, 192); */
  background-color:#FFFFFF;
  padding: 1rem;
  margin-top: 2rem;
  font-family: 'Helvetica', sans-serif;
  font-size: 2cqmin;
  /* text-align: center; */
}
footer .container {
  Color:#0202cc; /* สีตัวอักษร footer */
  display: flex; /* ใช้ flexbox เพื่อจัดวาง */
  justify-content: space-around; /* กระจายพื้นที่ว่างระหว่าง left และ right */
  width: 100%; /* ให้ container กว้างเต็ม */
  margin-bottom: 2rem; /* เพิ่มระยะห่างด้านล่างของ container */
}

footer .left,
footer .right {
  text-align: left;
}

footer .right {
  margin-left: 5rem;
}

footer a {
  color: #0202cc;
text-decoration: none;
}
.copyright{
  text-align: center;
  Color:#0202cc; 
  }

.Info-container {
  
  max-width: 1500px;
  height: auto;
  margin: 0 auto;
  color:#000080;
  background-color: rgba(253, 254, 254, 0.8);
  border-radius: 10px; 
padding: 1rem;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  text-decoration: underline;
}

h2 {
  padding: 1rem;
  text-align: center;
}

.info {
  display: flex;
  justify-content: space-around;
  margin-bottom: 30px;
}

.info-item {
  text-align: center;
  
  
}

.info-item img {
  width: 40%;
height: auto;

}

.info-item i {
  font-size: 24px;
  margin-bottom: 10px;
}

.contact-form {
  display: flex;
  padding: 1rem;
}

.form-left {
  width: 50%;
  padding-right: 20px;
  /* height: 100%;  ให้ form-left มีความสูง 100% ของ contact-form */
;
}
#map{
  width: 100%;
  height: 740px;
  /* ให้ map-container มีความสูง 100% ของ form-left */

}

.form-right {
  width: 50%;

}

.form-right {
  display: flex; /* จัดเรียง element ในแนวนอน */
  flex-direction: column;
  /* จัดเรียง element ในแนวตั้ง */
  align-items: center; /* จัด element ให้อยู่กึ่งกลางในแนวนอน */
}
.QR-Frame{
  
  display: flex; 
  gap: 140px;
}
.qr-code-container {
  width: 40%;
  /* กำหนดความกว้างของ container ให้เต็ม */
  margin-bottom: 10px; /* ระยะห่างด้านล่าง*/
}
.qr-code-container h1 {
  font-size: 1.5rem; 
  text-decoration-line: none; 
  ;
}

.qr-code-container img {
  width: 100%;
  /* กำหนดความกว้างของรูป QR Code ให้เต็ม container */
}
.qr-code-container h1{
  tab-size: 1rem;
}

.company-logo {
  text-align: center;
  /* จัดข้อความให้อยู่กึ่งกลาง */

}

.company-logo img {
  width: 100%;
  border-radius: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #661a1a;
  margin-bottom: 20px;
  box-sizing: border-box;
  border-radius: 10px;
}

textarea#message {
  height: 200px;
}

button[type="submit"] {
  background-color: #0c270c;
  color: rgb(255, 255, 255);
  padding: 12px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}

/* Media Queries for Responsiveness */

/* For tablets and smaller screens (max-width: 768px) */
@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
/* Stack navbar elements vertically */
    align-items: flex-start;
/* Align items to the left */
    font-size: 1rem;
/* Adjust font size */
  }

  ul {
    flex-direction: column;
/* Stack menu items vertically */
    margin-top: 1rem;
/* Add some space above the menu */
  }

  ul li {
    margin: 0.5rem 0;
/* Adjust spacing between menu items */
  }

  .info {
    flex-direction: column;
/* Stack contact info items */
    align-items: center;
/* Center align items */
  }

  .contact-form {
    flex-direction: column;
/* Stack form */
    
  }

  .form-left, .form-right {
    width: 100%;
/* Make form elements full width */
    height: auto;
    padding: 0;
/* Remove padding */
  }

  footer .container {
    flex-direction: column;
/* Stack footer elements */
    align-items: center;
/* Center align items */
  }

  footer .right {
    margin-left: 0;
/* Remove left margin */
    margin-top: 1rem;
/* Add top margin */
  }

  footer {
    font-size: 1rem;
/* Adjust font size */
  }
}