* {
  padding: 0;
  margin: 0;
  box-sizing: border-box; /* 保證元素的寬高包括內邊距和邊框 */
}

body {
  font-family: 'Arial', sans-serif; /* 使用特定字型 */
  background-color: #f5f5f5; /* 背景色 */
  color: #333; /* 文字顏色 */
}

.container5 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 400px;
  background-color: #612407;
  text-align: center;
}

header ul {
  position: absolute;
  right: 5%;
  top: 0%;
}

.center-text {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-size: 40px;
  top: 150px;
  text-align: center;
}

a {
  color: inherit;
  text-decoration: none;
}

nav > ul {
  list-style: none;
}

.flex-nav {
  display: flex;
}

nav li {
  margin-right: 10px;
}

  a:hover {
    color: #6fd26c;
}

  header img {
    width: 100%;
    height: auto;
}
  body {
    width: 100%;
    height: 100vh; /* 視窗高度 */
    background-color: #EEF0E5;
    color: #304D30;
}
 


.fb-botton {
  float: right;
  width: auto; /* 保留自動調整寬度 */
  max-width: 200px; /* 添加最大寬度 */
  z-index: 3; /* 確保在較高的層級上 */
}



  footer {
    width: 100%;
    height: 100px;
    background-color: #163020;
    color:#EEF0E5;
}

  .header-content {
    position: absolute;
    display: flex;
    left: 50%;
    transform: translateX(-50%);
}

header img.main-banner {
  width: 100%;
  height: auto;
}

header img.floating-image {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 100px;
  height: auto;
  z-index: 1;
}
.container1,
.container2,
.container3 {
  width: 80%;
  max-width: 400px;
  background-color: #B6C4B6;
  padding: 20px;
}



main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px; /* 調整容器之間的間距 */
    justify-content: center;
    align-items: center;
    height: 100vh;
}


h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.random-button {
  position: absolute;
  width: 300px; /* 寬度調整為更大 */
  height: 180px; /* 高度調整為更大 */
  background-color: rgba(0, 0, 255, 0); /* 完全透明 */
  cursor: pointer;
}
.random-button1 {
  bottom: 100px;
  right: 50px;
}

.random-button2 {
  bottom: 200px;
  right: 150px;
}

.random-button3 {
  bottom: 300px;
  right: 250px;
}