@font-face {
  font-family: 'ChiayiFont';
  src: url('../fonts/ChiayiCity.woff2') format('woff2'),
       url('../fonts/ChiayiCity.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* 選取整個滾動條 */
::-webkit-scrollbar {
    width: 5px;
}

/* 滾動條的滑道部分 */
::-webkit-scrollbar-track {
    background: transparent;
}

/* 滾動條的滑塊部分 */
::-webkit-scrollbar-thumb {
    background-color: #7F7F7F;
}

::-webkit-scrollbar-thumb:hover {
    background: #3D3D3D;
}


body {
	position: fixed;
    font-family: 'ChiayiFont', sans-serif;
	overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #333;
}

#logo {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000000;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 1;
	transition: opacity 1.0s ease;
}

#logo.fade-out {
	opacity: 0;
}

#logo img {
	width: 175px;
	height: auto;
}

header {
    position: fixed;
    width: 100%;
	height: 80px;
    background-color: rgba(0, 0, 0, 1);
    transition: background-color 0.5s ease;
    color: #fff;
    z-index: 3;
}

#title-image {
	position: absolute;
	top: 50%;
	left: 30px;
	transform: translateY(-50%);
	cursor: pointer;
	z-index: 4;
}

#title-image img {
	width: 55px;
	height: auto;
}

.video-container {
	display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	position: relative;
}

#sub-title {
	position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #C8C8C8;
    font-size: 1.2em;
    font-weight: 1000;
    z-index: 2;
}

#main-title {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 5em;
    letter-spacing: 25px;
    font-weight: 1000;
    z-index: 2;
}

#download-button {
	position: absolute;
	padding: 10px 20px;
    top: 50%;
    right: 30px;
	transform: translateY(-50%);
    background-color: #0065D0;
    color: #FFFFFF;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8em;
	font-weight: 800;
	z-index: 4;
	transition: background-color 0.5s ease;
}

#download-button:hover {
	background-color: #FFFFFF;
	color: #0065D0;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the video covers the entire area */
	z-index: 1;
}

nav {
    position: relative; /* 相對定位 */
    width: 100%;
	height: 100%;
	background-color: transparent; /* Ensure the background is transparent */
    backdrop-filter: blur(10px);
	z-index: 2;
	display: flex; /* 將項目排列在一行 */
	justify-content: center; /* 水平居中 `ul` */
    align-items: center; /* 垂直居中 `ul` */
}

nav ul {
	background-color: transparent;
	position: relative;
    list-style-type: none;
    padding: 0;
	
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8em;
	font-weight: 800;
    padding: 5px 10px;
    background-color: transparent; /* No background color */
    border-radius: 5px;
}

section {
    padding: 20px;
	padding-left: 50px;
	padding-bottom: 50px;
    margin: 20px 0;
	margin-left: 50px;
	margin-right: 50px;
    background-color: #000000;
    border-radius: 25px;
}

h2 {
	display: none;
    color: #FFFFFF;
    font-size: 3.5em;
    letter-spacing: 9px;
	font-weight: 1000;
	opacity: 0; /* 起始時文字不可見 */
    transform: translateY(80px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

h2.visible {
	opacity: 1;
    transform: translateY(0);
}

p {
	display: none;
	color: #BFBFBF;
    font-family: 'Tagesschrift', 'LXGW WenKai TC', sans-serif;
	font-weight: 700;
    letter-spacing: 7px;
	opacity: 0;
    transform: translateY(80px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

p.visible {
	opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none;
}

#picture {
    padding: 20px;
    text-align: center;
}

#picture img {
    margin: 0 1%;
    width: 31%;
    height: auto;
    border-radius: 25px;
    transition: transform 0.5s ease;
}

#picture img:hover {
    transform: scale(1.25);
}

.link-style {
	right: 65px;
	width: 150px;
	background-color: transparent;
    cursor: pointer;
    float: right;
}

.link-style a {
    color: #BFBFBF;
    font-weight: 700;
	text-decoration: underline;
	display: inline-block;
	transition: transform 0.25s ease;
}

.link-style a:hover {
	transform: scale(1.2);
}

footer {
	width: 100%;
    background-color: #222222;
    color: #FFFFFF;
    text-align: center;
    padding: 10px 0;
    bottom: 0;
}

/* ===== 響應式：手機或小螢幕 ===== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    #main-title {
        font-size: 1.5em;
        letter-spacing: 10px;
    }

    /* 
	#sub-title {
        font-size: 0.9em;
    } 
	*/

    h2 {
        font-size: 2em;
    }

    p {
        font-size: 0.7em;
        letter-spacing: 4.5px;
    }

	section {
		padding: 20px;
		padding-left: 20px;
		padding-right: 20px;
		margin-left: 20px;
		margin-right: 20px;
		border-radius: 25px;
	}

	nav ul li {
		display: inline;
		margin: 0 0px;
	}

    nav ul li a {
        font-size: 0.5em;
    }

    #download-button {
        font-size: 0.7em;
        padding: 8px 14px;
    }

    .link-style a {
        font-size: 0.9em;
    }
}