     /*the container must be positioned relative:*/
     .custom-select {
        position: relative;
        font-family: Arial;
      }
      
      .custom-select select {
        display: none; /*hide original SELECT element:*/
      }
      
      .select-selected {
        background-color: DodgerBlue;
      }
      
      /*style the arrow inside the select element:*/
      .select-selected:after {
        position: absolute;
        content: "";
        top: 14px;
        right: 10px;
        width: 0;
        height: 0;
        border: 6px solid transparent;
        border-color: #fff transparent transparent transparent;
      }
      
      /*point the arrow upwards when the select box is open (active):*/
      .select-selected.select-arrow-active:after {
        border-color: transparent transparent #fff transparent;
        top: 7px;
      }
      
      /*style the items (options), including the selected item:*/
      .select-items div,.select-selected {
        color: #ffffff;
        padding: 8px 16px;
        border: 1px solid transparent;
        border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
        cursor: pointer;
        user-select: none;
      }
      
      /*style items (options):*/
      .select-items {
        position: absolute;
        background-color: DodgerBlue;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 99;
      }
      
      /*hide the items when the select box is closed:*/
      .select-hide {
        display: none;
      }
      
      .select-items div:hover, .same-as-selected {
        background-color: rgba(0, 0, 0, 0.1);
      }
      .page-area {
           margin-top: 2em;
           margin-bottom: 1em;
           font-size: 15px;
           font-family: 'Lucida Sans', 'Lucida Sans Regular';
      }
      .page-area label {
          font-size: 15px;
      }          
      .pagart {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px; /* 元素間距 */
      flex-wrap: wrap; /* 適應小螢幕換行 */
      }
 
      .pagart a {
      padding: 8px 12px;
      margin: 2px;
      text-decoration: none;
      border: 1px solid #D5B98E;
      border-radius: 4px;
      color: #A87C4D;
      cursor: pointer;
      background-color: #fff;
      }
 
      .pagart span {
      padding: 8px 12px;
      margin: 2px;
      border: 1px solid #ddd;
      border-radius: 4px;
      background-color: #A87C4D;
      color: #fff;
      font-weight: 600;
      }
 
      .pagart a:hover {
      background-color: #A87C4D;
      color: #fff;
      }
 
      #page_select {
      max-height: 100px; /* Limit height to create scrollbar */
      overflow-y: auto; /* Enable vertical scrolling */
      -webkit-appearance: menulist-button; /* For iOS */
      width: 100%; /* Full width on mobile */
      max-width: 100px; /* Maximum width */
      padding: 3px 6px; /* Comfortable padding */
      font-size: 16px; /* Prevent zoom on mobile */
      border: 1px solid #ccc;
      border-radius: 4px;
      color: #333;
      margin: 10px 0;
      };
      
      /* Style for dropdown options */
      #page_select option {
      padding: 6px;
      font-size: 16px;
      }
 
 /* Media query for mobile devices */
 @media screen and (max-width: 768px) {
   #page_select {
     font-size: 16px; /* Maintain readable size on mobile */
   }
 }
     
     @media screen and (max-width: 480px) {
           .pagart 
                gap: 6px;
           }
           .pagart a, .pagart span {
                font-size: 14px;
                padding: 5px 11px;
           }
     }
 