﻿/* 全局樣式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: lightblue;
    color: #333;
    margin: 0;
    padding: 0;
}

/* 中央容器 */
.container {
    width: 100%;
    max-width: 1200px; /* 設定最大寬度 */
    margin: 0 auto; /* 使容器水平居中 */
    padding: 0 20px; /* 設定兩側留白 */
}

/* 頁首樣式 */
header {
    background-color: darkblue;
    color: white;
    text-align: center;
    padding: 15px;
}

/* 導航 */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #4682B4;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* 設置網格佈局，三排三個 */
.cloud-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 每行三個項目 */
    gap: 20px; /* 設定項目間的間距 */
    padding: 20px;
    justify-items: center; /* 使每個項目水平居中 */
}

/* 讓每個雲項目有合理的樣式 */
.cloud-item {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 300px; /* 控制最大寬度 */
}

.cloud-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 10px;
}

.cloud-item h2 {
    color: darkblue;
}

.cloud-item p {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

/* 頁腳 */
footer {
    background-color: #4682B4;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

.creator-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.creator-profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.creator-info {
    text-align: left;
}

.center-text {
    text-align: center;
}

.center-title {
    text-align: center;
    margin-bottom: 20px;
}