/* 通用 */
main {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  margin: 0;
  scroll-behavior: smooth;
  background-color: #b4c8f0;
  color: #000000;
}

/* 導覽列 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding-top: 10px;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  text-align: right;
}

nav ul {
  display: flex;
  justify-content: center;
  padding: 1rem;
  margin: 0;
  list-style: none;
}

nav li {
  margin: 0 1.5rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
}

.nav-link.active {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4fc3f7;
}

/* 區塊樣式 */
section {
  border-bottom: 1px solid #444;
}

.flex-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
  padding: 2rem;
}

.flex-section section {
  flex: 1 1 45%; /* 基本寬度 45%，可伸縮 */
  min-width: 300px;
  background-color: #f0f0f0;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* footer */
footer {
  text-align: center;
  color: #ffffff;
  padding: 1rem;
  background-color: #5c5c96;
}

.project-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.project-btn {
  background-color: #ae91e4;
  color: #1e1e2f;
  padding: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.project-but {
  background-color: #74f7e3;
  color: #1e1e2f;
  padding: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.project-me {
  background-color: #85d1fd;
  color: #1e1e2f;
  padding: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.project-my-web {
  background-color: #85d1fd;
  color: #1e1e2f;
  padding: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.project-github{
  background-color: #000000;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.project-DC{
  background-color: #5865F2;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.project-ins{
  background-image: linear-gradient(to right bottom, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5 );
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.project-btn:hover {
  background-color: #8c64d6;
  transform: translateY(-2px);
}

.project-but:hover {
  background-color: #2ce2c7;
  transform: translateY(-2px);
}

.project-me:hover {
  background-color: #039be5;
  transform: translateY(-2px);
}

.project-my-web:hover {
  background-color: #039be5;
  transform: translateY(-2px);
}

.project-github:hover {
  background-color: #383838;
  transform: translateY(-2px);
}

.project-DC:hover {
  background-color: #3443e9;
  transform: translateY(-2px);
}

.project-ins:hover {
  background-color: linear-gradient(to right bottom, #fdce4d, #f7710b, #d4186d, #911bc0, #3b48dd );;
  transform: translateY(-2px);
}

h1 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  
}

h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  
}

pre {
  background-color: #363636;
  color: #ffffff;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: "Courier New", monospace;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }

  nav li {
    margin: 0.5rem 0;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  main {
    padding: 1rem;
  }

  .flex-section {
    flex-direction: column;
    padding: 1rem;
  }

  .flex-section section {
    flex: 1 1 100%;
    min-width: unset;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .project-btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* header 標題置中 */
header h1 {
  text-align: center;
}

header h3 {
  text-align: center;
}




