/* Custom Stylesheet */
/**
 * Use this file to override Materialize files so you can update
 * the core Materialize files in the future
 *
 * Made By MaterializeCSS.com
 */

.icon-block {
  padding: 0 15px;
}
.icon-block .material-icons {
	font-size: inherit;
}

.navbg {
  background-color: #1679AB;
}

.footerbg {
  background-color: #102C57;
}

/* 自定義樣式 */
body {
  background-image: url('../img/icon/bg.png');
  background-repeat: repeat; /* 重複顯示 */
}

nav {
  background-color: black;
}

nav a {
  color: white;
}

.button-container {
    margin-top: 20px;
    text-align: center;
}

.button-container .btn {
    margin: 0 10px;
}

footer {
    background-color: black;
    color: white;
    padding: 20px 0;
}

.map{
  height: 100vh;
  filter: grayscale(100%) invert(92%) contrast(83%);
}

.col.s12.m6:nth-child(1) .icon-block,
.col.s12.m6:nth-child(2) .icon-block {
  background-size: cover;
  background-position: center;
  height: 100%;
  border: 1px solid #ddd; /* 添加灰色外邊框 */
  color: white; /* 確保文字在深色背景上可見 */
}

.col.s12.m6:nth-child(1) .icon-block {
  background-color: rgb(9, 7, 35);
}

.col.s12.m6:nth-child(2) .icon-block {
  background-color: rgb(50, 51, 78);
}

.row {
  margin: 0 !important;
}

.col {
  padding: 0 !important;
}

.fbicon {
  background-image: url('/img/icon/fb.webp');
  /* 添加其他樣式，例如寬度和高度 */
}

.igicon {
  background-image: url('/img/icon/ig.webp');
  /* 添加其他樣式，例如寬度和高度 */
}

.lineicon {
  background-image: url('/img/icon/line.webp');
  /* 添加其他樣式，例如寬度和高度 */
}

.english-name {
  display: block; /* 讓英文名稱在新的一行顯示 */
  font-size: 12px; /* 調整字體大小 */
  color: #fff; /* 設置字體顏色 */
  margin-top: 5px; /* 調整上邊距 */
}


.center-col {
  margin: 0 auto; /* 將其置中 */
  float: none; /* 取消浮動 */
}

@media only screen and (max-width: 992px) {
  .center-col {
    flex: 0 0 100%; /* 在小於992px寬度時，佔據全部寬度 */
    max-width: 100%;
  }
}


.d-flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.custom-card {
  max-width: 50%; /* 根據需要調整寬度 */
}

@media only screen and (max-width: 992px) {
  .custom-card {
    max-width: 100%; /* 在小於992px寬度時，佔據全部寬度 */
  }
}


.brand {
  font-size: 1.5rem;
}

.card-title {
  position: relative;
  display: inline-block;
  padding: 2px 5px; /* 調整 padding 來縮小黑色半透明區塊的大小 */
  background-color: rgba(0, 0, 0, 0.773); /* 半透明黑色背景 */
  color: white; /* 白色文字 */
  margin-top: -30px; /* 負邊距使其覆蓋在圖片上 */
  font-size: 5px; /* 調整文字大小 */
}

.card .card-title {
  padding: 5px !important; /* 使用 !important 以確保覆蓋 Materialize 的預設樣式 */
  font-size: large;
}

.card-image {
  height: 200px; /* 設置固定的高度，根據需要調整數值 */
  overflow: hidden; /* 超出區域的部分隱藏，防止影響佈局 */
}
.card-image img {
  object-fit: cover; /* 保持圖片比例並填滿整個區域 */
  width: 100%; /* 讓圖片完全填滿區域 */
  height: 100%; /* 讓圖片完全填滿區域 */
}