
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    
}

header {
    background-color: #79abf1;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    
}


h1 {
    margin: 0;
    font-family: 'Arial', sans-serif;
    font-size: 33px;
}
h2 {
    margin: 0;
    font-family: 'Arial', sans-serif;
    font-size: 130%;
}
nav {
    background-color: #79abf1;
    text-align: center;
    padding: 10px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
    font-size: 20px; /* You can adjust the font size as needed */
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 20px; /* You can adjust the font size as needed */
    padding: 5px 10px;
    border-radius: 4px;
}

/* Add hover styles */
nav ul li a:hover {
    background-color: #a4c4ee;
    color: #ff9900;
}
    


article {
    margin-bottom: 20px;
}

footer {
    background-color: #79abf1;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    clear: both; /* Clear the floats to ensure the footer appears below the floated content */
    
}
@media (max-width: 768px) {
    footer {
        padding: 10px 0;
    }

    .footer-link {
        display: block; /* Stack links vertically on smaller screens */
        margin: 5px 0;
    }
}


.toggle-button {
    display: none;
    background-color: #79abf1;
    color: #79abf1;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
}


/* #mainNav {
    display: block;
} */

/* @media screen and (max-width: 768px) {
    .toggle-button {
        display: block;
    }
    
    #mainNav {
        display: none;
    }
    
    #mainNav.active {
        display: block;
    }
    
    /* You can add more styles for the mobile menu here */
 */
.small-image {
    max-width: 800px; /* Adjust the width as needed */
    height: auto;
}

.small-image {
    max-width: 100%; /* Images will not exceed the width of their container */
    height: auto; /* Maintain the aspect ratio of images */
}

.blue-background {
    background-color: #79abf1;
    color: white;
    padding: 10px;
    text-align: center; /* Center the text */
    font-size: 24px; /* Adjust the font size as needed */
}


.image-container {
    text-align: right; /* To align the image to the right side */
  }

  .small-image2 {
    width: 80px; /* Adjust the width to your desired size */
    margin-top: -30px; /* Move the image up by 10 pixels (adjust as needed) */

  }

  .spacer {
    margin-right: 40px; /* Adjust the margin-right value to control the amount of space */
}
main {
    max-width: 47%; /* Adjust the percentage based on your design */
    margin: 2.5% 2.5% 2.5% 17.1%; /* Adjust the percentages accordingly */
    background-color: #fff;
    padding: 2.5%;
    float: left; 
}
@media (max-width: 767px) { /* 调整媒体查询的宽度根据您的需要 */
    main {
        float: none; /* 取消浮动 */
        margin: 20px auto; /* 左右边距设置为自动以实现水平居中 */
        max-width: 100%;
    }
}
/* Change the color on hover for the specific link */
a.footer-link {
    color: white;
    text-decoration: none; /* Remove the underline */
}
.footer-link:hover {
    color: orange; /* Text color on hover */
}


aside {
    width: 200px; /* Adjust the width as needed */
    background-color: #f2f2f2;
    padding: 20px;
    float: right; /* 移動清單*/
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    text-decoration: none;
    color: #333;
    font-size: 18px; /* Adjust the font size as needed */
}

.category-list a:hover {
    color: rgb(250, 171, 2);
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    aside {
        width: 100%; /* Occupy full width of the container */
        float: left; /* Remove the float */
    }
}
/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    main {
        width: 90%; /* Occupy full width of the container */
        float: center; /* Remove the float */
    }
}

/* Style for the dropdown menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 120%;
    left: 50%; /* Set left to 50% */
    transform: translateX(-50%); /* Center horizontally using a CSS transform */
    z-index: 0; /* Ensure the dropdown appears above other elements */
    width: 130px; /* Set the width to your desired value */

  }

.has-dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu:hover .sub-dropdown-menu {
    display: block;
}

/* .sub-dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 160px;
    background-color: #f9f9f9;
} */

/* Style the dropdown options */
.dropdown-menu li {
    list-style: none;
    padding: 0px;
    
}

/* Adjust the positioning of the options to the left */
.dropdown-menu li a {
    display: block;
    background: #79abf1;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border: 1px solid #2980b9;
    border-radius: 4px;
    transition: background 0.2s;
    margin-left: 0px; /* Adjust the margin as needed to move the options to the left */
    width: 100px; /* Adjust the width as desired */

}

.dropdown-menu li a:hover {
    background: #ffffff;
}

/* Add some space to move other menu items down */
.has-dropdown:hover + li {
    margin-top: 100px; /* Adjust the margin as needed */
}
@media screen and (max-width: 768px) {
    /* Add space between the footer and dropdown options */
    .has-dropdown:hover + li {
        margin-top: 20; /* Remove margin to place footer below the dropdown */
    }
}

#mainNav ul {
    list-style-type: none;
    padding: 0;
}

#mainNav li {
    margin: 0;
    padding: 1;
}

/* Your existing styles for the navigation menu */
/* You can add styles for the mobile menu here */

/* Default styles for button and navigation */
.toggle-button {
    display: none;
    background-color: #79abf1;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
}
#mainNav {
    display: block;
}

/* Media query for screens with a maximum width of 768px */
@media screen and (max-width: 970px) {
    .toggle-button {
        display: block; /* Show the button on smaller screens */
    }

    #mainNav {
        display: none;
        position: absolute;
        top: 120px; /* Adjust the top margin to move it down */
        right: 0px; /* Increased the right margin to 60 pixels */
        background-color: #79abf1;
        width: 100%;
        text-align: left;
        z-index: 1;
    }

    #mainNav ul {
        padding: 30;
    }

    #mainNav li {
        display: block;
        padding: 0px ;
        text-align: left;
    }

    #mainNav li.has-dropdown {
        position: relative;
    }
    
    #mainNav .has-dropdown:hover .dropdown-menu {
        display: block;
    }
    
    #mainNav .dropdown-menu {
        display: none;
        position: absolute;
        top: -500%; /* Move it above the parent */
        left: 100%; /* Center it horizontally */
        transform: translateX(-50%); /* Center it horizontally */
        background-color: #79abf1;
        transition: left 0.3s; /* Add a transition for left property */
    }
    /* 懸浮後有drop down */
    #mainNav li.has-dropdown:hover .dropdown-menu {
        display: block;
    }
    
}

/* Add this CSS to hide the list when the link is clicked */
.hide-list + .dropdown-menu {
    display: none;
}

/* Show the list when the link is clicked */
.hide-list.clicked + .dropdown-menu {
    display: block;
}
body {
    font-family: 'Lato', sans-serif;
  }
  
  .overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
  }
  
  .overlay-content {
    position: relative;
    top: 15%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
  }
  
  .overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 30px;
    color: #818181;
    display: block;
    transition: 0.3s;
  }
  
  .overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
  }
  
  .overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
  }
  
  @media screen and (max-height: 450px) {
    .overlay a {
      font-size: 10px;
    }
    
    .overlay .closebtn {
      font-size: 10px;
      top: -5px; /* Adjust this value to move it closer to its original position */
      right: 35px;
    }
  }

  .menu-icon {
    font-size: 30px;
    cursor: pointer;
  }


  /* Media query for screens with a maximum width of 768px (typical for smartphones) */
  @media (max-width: 970px) {
    .menu-icon {
      position: relative; /* Enable positioning */
      top: 0px; /* Move the element up by 10 pixels */
      right: 45%; /* Move the element up by 10 pixels */
      display: block;  
      
    }
  }
  @media (min-width: 970px) {
    .menu-icon {
      display: none; /* Display the element on computers */
    }
  }


.container23 {
    text-align: center;
    /* width: 20%;  */
    /* height: 100%;  */
}
/* .container23 img {  
    width: 20%; 
    height: auto; 
    display: block; 
    
    margin: 2% 0 2% 75%; 
} */
.small-image4 {
    width: 20%; /* Adjust the width to make the image larger */
    margin-top: 20px; /* Move the image down by 20 pixels (adjust as needed) */
    /* margin-right: -100px; Move the image 10 pixels to the right (adjust as needed) */
}

div.ball {
    background-color: #79abf1;
    width: 40px;
    height: 40px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    /* mix-blend-mode: difference; */
  }

  .has-dropdown {
    position: relative;
}

.sub-dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 95%; /* This moves the sub-dropdown to the right */
    /* background-color: #fff; Background color for the sub-dropdown */
    /* border: 1px solid #ccc; Border style for the sub-dropdown */
    min-width: 150px; /* Adjust the width as needed */
}

.dropdown-menu:hover .sub-dropdown-menu {
    display: block;
}


.has-dropdown {
    position: relative;
}

.sub-dropdown-menu222 {
    display: none;
    position: absolute;
    top: 0;
    left: 95%; /* This moves the sub-dropdown to the right */
    /* background-color: #fff; Background color for the sub-dropdown */
    /* border: 1px solid #ccc; Border style for the sub-dropdown */
    min-width: 150px; /* Adjust the width as needed */
}

.dropdown-menu222:hover .sub-dropdown-menu222 {
    display: block;
}

.has-dropdown {
    position: relative;
}

.sub-dropdown-menu333 {
    display: none;
    position: absolute;
    top: 50px; /* Adjust the negative value to move it up as needed */
    left: 95%; /* This moves the sub-dropdown to the right */
    /* background-color: #fff; Background color for the sub-dropdown */
    /* border: 1px solid #ccc; Border style for the sub-dropdown */
    min-width: 150px; /* Adjust the width as needed */
}

.dropdown-menu333:hover .sub-dropdown-menu333 {
    display: block;
}


.has-dropdown {
    position: relative;
}

.sub-dropdown-menu444 {
    display: none;
    position: absolute;
    top: 100px; /* Adjust the negative value to move it up as needed */
    left: 95%; /* This moves the sub-dropdown to the right */
    /* background-color: #fff; Background color for the sub-dropdown */
    /* border: 1px solid #ccc; Border style for the sub-dropdown */
    min-width: 150px; /* Adjust the width as needed */
}

.dropdown-menu444:hover .sub-dropdown-menu444{
    display: block;
}

.has-dropdown {
    position: relative;
}

.sub-dropdown-menu555 {
    display: none;
    position: absolute;
    top: 0px; /* Adjust the negative value to move it up as needed */
    left: 80%; /* This moves the sub-dropdown to the right */
    /* background-color: #fff; Background color for the sub-dropdown */
    /* border: 1px solid #ccc; Border style for the sub-dropdown */
    min-width: 150px; /* Adjust the width as needed */
}

.dropdown-menu555:hover .sub-dropdown-menu555{
    display: block;
}

#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    font-size: 5px;
    cursor: pointer;
    border-radius: 50%; /* Adjust the percentage to control the roundness */
}

#myBtn img {
    width: 25px;
    height: 25px;
    border-radius: 50%; /* Adjust the percentage to control the roundness */
}



