body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
  }
  

  .boxh {
    display: flex; /* เปลี่ยนให้เป็น flex container */
    flex-wrap: wrap; 
    gap: 10px; /* เว้นระยะระหว่างกล่อง */
    justify-content: center; /* จัดระยะระหว่างกล่องให้ตรงกลาง */
    align-items: center; /* จัดแนวกล่องในแนวตั้งให้ตรงกลาง */
}
 
 h1 {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
  }
  
  .hhh{
    color:blue;
    font-size: 30px;
    text-shadow: 2px 2px 0 #ddd;

  }

    .navbar {
      overflow: hidden;
      background-color: #483e75;
      background-image: linear-gradient(to right,#483e75 40%,#fff );
    }
    
    .navbar a {
      float: left;
      font-size: 16px;
      color: rgb(255, 255, 255);
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
    }
    
    .dropdown {
      float: left;
      overflow: hidden;
    }
    
    .dropdown .dropbtn {
      font-size: 16px;  
      border: none;
      outline: none;
      color: white;
      padding: 14px 16px;
      background-color: inherit;
      font-family: inherit;
      margin: 0;
    }
    
    .navbar a:hover, .dropdown:hover .dropbtn {
      background-color: rgb(210, 229, 69);
      color: rgb(5, 146, 7);
    }
    
    .dropdown-content {
      display: none;
      position: absolute;
      background-color: #f9f9f9;
      min-width: 160px;
      box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
      z-index: 1;
    }
    
    .dropdown-content a {
      float: none;
      color: black;
      padding: 12px 16px;
      text-decoration: none;
      display: block;
      text-align: left;
    }
    
    .dropdown-content a:hover {
      background-color: #ddd;
    }
    
    .dropdown:hover .dropdown-content {
      display: block;
    }


    @media screen and (max-width: 600px) {
      .navbar a {
          float: none; /* Make the links stack vertically */
          display: block; /* Make the links block-level elements */
          text-align: left; /* Align text to the left */
      }
  
      .dropdown {
          float: none; /* Remove floating from dropdown */
      }
  
      .dropdown-content {
          position: relative; /* Change position for mobile view */
      }
      
      .dropdown-content a {
          text-align: left; /* Align dropdown links to the left */
      }
  
      .dropdown .dropbtn {
          width: 100%; /* Make the dropdown button full width */
      }
  }