/* CSS Document */
.main {
    max-width: 450px;
    display: block;
    margin: 0 auto;
    margin-top: 39vh;
    z-index: 999;
    position: absolute;
    margin-left: 40vw;
    background-color: #ffffffc9;
    padding: 2%;
	backdrop-filter: blur(3px); /* 模糊效果，可以根據需要調整模糊程度 */
}
.name {
  text-align: center;
  font-family: monospace;
  font-size: 36px;
}
.main div {
  width: 100%;
  display: block;
  text-align: center;
}
.ct img {
  width: 35px;
}
.ct a {
  width: 33.333333%;
  text-align: center;
  display: block;
  float: left;
}
.ct {
  width: 60% !important;
  margin: 0 auto;
  margin-top: 20px;
}
body {
  margin: 0;
  overflow: hidden;
}
.scrolling-container {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    height: 110vh;
    width: 120vw;
    top: 0;
    position: relative;
    background-size: contain;
    transition: all 5s;
    margin-left: -15vw;
}
.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100vw;
  transform: rotate(35deg) translateY(10%);
	transition: all 1s;
}
.column:hover{z-index: 9;}
.box {
    flex: 1;
    height: 100px;
    background-color: #3498db;
    margin: 5px;
    animation: scroll 10s linear infinite;
    transition: transform 0.5s, opacity 0.5s, all 0.5s, rotate 0.5s;
    transform: rotate(-35deg);
    opacity: 0;
    position: relative;
    background-size: contain;
    font-size: 20px;
    text-align: center;
    font-weight: 800;
    filter: grayscale(100%);
    cursor: pointer;
    background-size: cover;
}
    .tooltip {
      position: absolute;
      display: none;
      background-color: #333;
      color: #fff;
      padding: 5px;
      border-radius: 5px;
      font-size: 14px;
    }
.box h4 span{display: none;}
.box:hover {
  animation-play-state: paused;
  background-color: #2a5a91;
  filter: grayscale(0%);
  z-index: 999999!important;
  box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.3);
  opacity: 1!important;
transform: rotate(-deg);
}
.fancybox-caption{font-size: 30px!important;font-weight: 600;}
.box h4 {
  background-color: #000000bf;
  width: 100%;
  display: block;
  bottom: -27px;
  color: #ffffff;
  position: absolute;
  padding: 1% 0%;
}
.fadecover{
	backdrop-filter: blur(30px);
	display: block;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    top: 0;
    position: absolute;
    transition: all 5s;
    float: left;
    z-index: -2;}
.bgfade {
    display: block;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    top: 0;
    position: absolute;
    background-size: contain;
    transition: all 5s;
    float: left;
    z-index: -3;
}
.lightbox {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  z-index: 999;
  opacity: 0; /* 初始化時透明 */
  transition: all 0.5s; /* 添加淡入淡出的過渡效果 */
}
.lightbox-content {
  margin-bottom: 0px;
}
.lightbox-close {
  position: absolute;
  top: -10px;
  right: 10px;
  cursor: pointer;
  font-size: 70px;
color: #ffffff;
text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.3);
}

.enlarged {
  animation-play-state: paused !important;
}
.lightbox.visible {
  display: block;
  opacity: 1; /* 顯示時透明度為1，實現淡入效果 */
}
.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  display: block;
}
@keyframes scroll {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100%) rotate(0);
    opacity: 0;
  }
}
@media screen and (max-width: 500px) {
.main {
    max-width: 100%!important;
    width: 100%!important;
	margin-top: 35vh!important;
	margin-left: 0px;
}
	.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100vw;
    transform: rotate(360deg) translateY(10%);
}
	.scrolling-container {
    display: block;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background-size: contain;
}
.column {
    display: block;
    width: 50%;
    float: left;
}
	.box {
    height: 150px;
    filter: grayscale(30%);
}
	.box h4{display: none;}
	.lightbox {
    top: 0%;
    left: 0%;
    transform: translate(0%, 100%);
}
}