@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@400;700&family=Pridi:wght@400;700&family=Sarabun:wght@400;700&display=swap");

body {
  font-size: 16px;
  font-family: "Kanit", "Sarabun", "Thahoma";
  color: #333333;
  margin: 0;
  padding: 0;
}

header {
  width: 100%;
  height: 300px;
  background-color: #1e8464;
  background-image: url(https://images.unsplash.com/photo-1505784045224-1247b2b29cf3?q=60&w=2000&H=300&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
}

#headmain {
  width: 1200px;
  margin: auto;
}

#headleft {
  color: aliceblue;
  width: 50%;
  float: left;
  text-align: left;
}
#logo {
  width: 200px;
  border-radius: 50%;
  float: left;
  margin-top: 40px;
}
#webname {
  font-size: 40px;
  float: left;
  font-weight: bold;
  margin-top: 100px;
  margin-left: 10px;
}

#webslogan {
  font-size: 22px;
  float: left;
  font-weight: bold;
}

#headright {
  width: 50%;
  float: right;
  text-align: right;
}

#webcontract {
  color: aliceblue;
  background-color: rgba(29, 87, 68, 0.8);
  backdrop-filter: blur(5px);
  float: right;
  padding: 10px 10px;
  margin-top: 80px;
  font-size: 25px;
}

.icon {
  width: 35px;
}

nav {
  width: 100%;
  height: 50px;
  background-color: #13533f;
  box-shadow: 5px 5px 5px #d2d1d1;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 5px;
}

nav > a {
  color: #ffffff;
  text-decoration: none;
  font-size: 20px;
  margin-right: 50px;
}

nav > a:hover {
  color: #7dbda8;
  font-size: 14px;
  transition-duration: 0.2s;
}

section {
  width: 1200px;
  min-height: 500px;
  overflow: auto;
  background-color: #c6fceb;
  margin: 20px auto;
  box-shadow: 5px 5px 5px #d2d1d1;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
}

section > h3 {
  padding: 20px;
}

.product {
  width: 23%;
  height: 350px;
  border: 2px dashed #d2d1d1;
  border-radius: 5px;
  float: left;
  margin: 10px 10px 10px 10px;
  text-align: center;
  overflow: hidden;
}

.product:hover {
  border: 2px dashed red;
  transition-duration: 0.3s;
}

.product > img {
  width: 50%;
  margin-top: 10px;
  overflow: hidden;
}

.product > img:hover {
  width: 80%;
  transition-duration: 0.5s;
}
footer {
  color: #ffffff;
  font-size: 20px;
  width: 100%;
  height: 200px;
  background-color: #0b241c;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 20px;
}

#b1 {
  text-align: center;
  display: block;
}

#b1 > img {
  width: 50%;
}

#b2 {
  text-align: center;
  display: none;
}

/* Tablet Zone */
@media screen and (max-width: 1023px) {
}

/* Mobile Zone */
@media screen and (max-width: 767px) {
  header {
    height: 150px;
    background-image: url(https://images.unsplash.com/photo-1505784045224-1247b2b29cf3?q=60&w=800&H=200&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
  }
  section {
    width: 98%;
    font-size: 25px;
  }
  #headmain {
    width: 100%;
  }
  #logo {
    width: 100px;
    margin-top: 10px;
  }

  #webname {
    font-size: 15px;
    margin-top: 35px;
    margin-left: 10px;
  }

  #webslogan {
    font-size: 8px;
    margin-left: 10px;
  }

  #webcontract {
    padding: 5px 5px;
    margin-top: 10px;
    font-size: 15px;
  }

  nav {
    height: 20px;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  nav > a {
    font-size: 12px;
    margin-right: 10px;
  }

  .product {
    width: 90%;
    margin: auto;
    margin-top: 10px;
    height: 350px;
    font-size: 20px;
    float: none;
  }
  .product > img {
    width: 150px;
    margin-top: 10px;
    overflow: hidden;
  }

  .product > img:hover {
    width: 45%;
    transition-duration: 0.5s;
  }

  #b1 {
    text-align: center;
    display: none;
  }
  #b2 {
    text-align: center;
    display: block;
  }

  #b2 > img {
    width: 50%;
  }
}
