* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'PianPian';
    src: url('../fonts/pianpian.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DFHei';
    src: url('../fonts/tsuhei.ttc');  /* 使用華康粗黑體 */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DFLiuFong';
    src: url('../fonts/liufong.ttc');  /* 使用華康流風體 */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DFRFeng';
    src: url('../fonts/rfeng.ttc');  /* 使用華康兒風體 */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DFLiSu';
    src: url('../fonts/lisu.ttc');  /* 使用華康隸書體，用小寫 ttc */
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #4891ff;
    --light-color: #f4f4f6;
    --dark-color: #111;
}

body {
    background-image:  url(../images/backpic2.png);
    background-repeat:  repeat;
    background-size: contain;
    background-size: 100vw;
    font-size: 16px;
    line-height: 1.5;
    background-color: white;
    overflow-x: hidden;
}

/* Base styles */
a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}


.logo {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    padding: 10px;
}
.logo-spin {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg) ; 
      }
      100% {
        transform: rotate(360deg) ; 
      }
}
#music-animation {
    margin-top: 3.5px;
    width: 32.5px;
    height: 32.5px;
    cursor: pointer;
}
.information{
    display: flex;
    color: #ffffff;
}
.song-title{
    font-family: "Noto Serif TC", serif;
    margin-bottom: 0px;
    color: #fff;
}
.navbar .music-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* flex-wrap: wrap; */
    max-width: 1100px;
    margin: auto;
    padding: 0 0.2rem;
}
#progress{
    border: solid 2px #fff;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
}
#progress::-webkit-slider-thumb{
    -webkit-appearance: none;
    background-color: #753533;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 5px 5px rgb(255,25,25,0.25);
}
/* Navbar */
.navbar {
    background-color: #753533;  /* 酒紅色 */
    padding: 0.25rem;
    width: 100%;
    top: 0;
    z-index: 1;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* flex-wrap: wrap; */
    max-width: 1100px;
    margin: auto;
    padding: 0 0.2rem;
}

.navbar .logo img {
    width: 60px;
    height: auto;
}
.navbar .main-menu ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.15rem;
    align-items: center;
}

.navbar ul li a {
    padding: 0rem 0.6rem;
    display: block;
    /* 加深字體粗細 */
    font-weight: 800;
    transition: 0.5s;
    color: #fff;
}

.search-item{
    margin-left: 1rem;
}
/* Dropdown */
.main-menu .li a{
    margin-bottom: 5px;
    padding: 100px;
}
.dropbtn {
    color:#fff;
    border: none;
    border-width: 0;
    /* border-top: 3px solid ; */
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background-color: #753533;
    outline: 0;
    color: #F5E6E8;  /* 淺粉白色 */
    /* 加深字體粗細 */
    font-weight: 800;
    text-align: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.5s;
    position: relative;
}

.dropdown {
    border: none;
    color:#fff;
    position: relative;
    display: inline-block;
}

.dropdown-content {
    color:#fff;
    display: none;
    font-weight: 600;
    position: absolute;
    background-color: #753533;
    margin-top: 1px;
    font-size: large;
    padding: 7.5px 0.5px;
    min-width: 140px;
    border-radius: 20px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 9999;
    border: 1px solid #D4A9AF;  /* 淺玫瑰色邊框 */
}
.dropbtn::before{
    border: none;
    color:#fff;
    content: '';
    position: absolute;
    top: 0;
    left: 50%; /* 先设置到左边的 50% */
    transform: translateX(-50%); /* 使用 transform 将元素居中 */
    width: 80%;
    display: flex;
    gap: 1rem;
    display: inline-block;
    transition: 0.3s;
}
.dropdown-content a {
    border: none;
    color: #fff;
    padding: 1rem 1rem;
    text-decoration: none;
    text-align: center;
    position: relative;
    display: block;
    margin: 0.5rem 0; /* 添加间距 */
    transition: all 0.3s ease;
}
.dropdown-content a:hover {
    border: none;
    color:#fff;
    background-color: #9b3f48; /* 更浅的背景色用于悬停 */
    box-shadow: 0 0 5px #fff; /* 添加发光效果 */
}

.dropdown:hover .dropdown-content {
    border: none;
    color:#fff;
    display: block;
}

.dropdown:hover .dropbtn {
    border: none;
    color:#fff;
    text-shadow: 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff; /* 添加文字发光效果 */
}
.dropdown-content a::before{
    border: none;
}
/* search */
.search_container {
    height: auto;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.search {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #f6f6f6;
    transition: all 0.3s ease;
}

.search:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search.focused {
    transform: scale(1.05);
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search_input {
    font-size: 14px;
    color: #333;
    margin-left: 8px;
    outline: none;
    border: none;
    background: transparent;
    width: 150px;
    transition: all 0.3s ease;
}

@keyframes searchFocusAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.search dotlottie-player {
    width: 30px !important;
    height: 30px !important;
}
.search-icon{
    animation: none;
}
.search_input::placeholder,
.search_icon{
    color: rgba(0, 0, 0, 0.5);
}

.search.unfocusing {
    animation: searchUnfocusAnimation 0.3s forwards;
}

@keyframes searchUnfocusAnimation {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
#instagram-animation {
    width: 45px;
    height: 45px;
    cursor: pointer;
}
#youtube-animation {
    width: 50px;
    height: 50px;
    cursor: pointer;
}
.hero {
    margin-bottom: 3rem;
}

.hero .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 300px;
}

.hero-heading {
    display: flex;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to right, #e8dedf, #5e3c3f, #7a5559, #ab8f91);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear
        infinite;
}

.hero-texting {
    width: 90%;
    max-width: 500px;
    padding: 1rem;
    padding-top: -100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4A1D21;
    font-size: clamp(2rem, 7vw, 2rem);
    font-weight: 1000;
    font-family: "Noto Serif TC", serif;
    background-color: #D4A9AF;
    text-align: center;
    border-radius: 15px;
    position: relative;
}

.hero-texting::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #431116, #ab8f91, #f4f4f6);
    z-index: -1;
    border-radius: 15px;
    background-size: 300%;
    animation: borderRotate 3s linear infinite;
}

.hero-texting::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4A1D21, #ab8f91, #b25892, #4A1D21);
    z-index: -2;
    filter: blur(15px);
    border-radius: 17px;
    background-size: 300%;
    animation: borderRotate 3s linear infinite;
    opacity: 0.5;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.date {
    font-family: "Noto Serif TC", serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    font-variation-settings:"wdth" 100;
    width: 90%;
    max-width: 500px;
    height: 50px;
    display: flex;
    justify-content: center;
    font-size: clamp(1.5rem, 7vw, 1.5rem);
    align-items: center;
    padding-top: 1rem;
    margin: 0 auto;
    background: linear-gradient(to right , #63a8d5 , #81aae0 , #75add2 , #b132b7 , #d6a4e4 ,  #81aae0 );
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear
        infinite;
    font-weight: 600;
    text-shadow: 1px 1px #F5E6E8;
}

@keyframes animate-gradient{
    to{
        background-position: 200%;
    }
}
.slider-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Base slider styles */
.slider1, .slider3 , .slider5{
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

/* First slider items */
.slider1 .item {
    position: absolute;
    width: 450px;
    height: 600px;
    text-align: justify;
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    left: calc(50% - 225px); /* Adjusted for item width */
    top: 0;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    perspective: 1000px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Second slider items */
.slider3 .item2 {
    position: absolute;
    width: 700px;
    height: 600px;
    text-align: justify;
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    left: calc(50% - 350px); /* Adjusted for item2 width */
    top: 0;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    perspective: 1000px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Third slider items */

.item3 {
    position: absolute;
    width: 700px;  /* 確保與 item2 一致 */
    height: 600px; /* 確保與 item2 一致 */
    text-align: justify;
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    left: calc(50% - 350px); /* 確保居中 */
    top: 0;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    perspective: 1000px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.item3 .front,
.item3 .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: linear-gradient(45deg, #753533, #9b3f48);
    border-radius: 20px;
    overflow: hidden;
}

.item3 .back {
    transform: rotateY(180deg);
}

.item3 .front h1 {
    font-family: "Noto Serif TC", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d5d2c3;
}

.item3 .front p {
    font-family: "Noto Serif TC", serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: #fff;
}

.item3 .front .clickme {
    display: flex;
    justify-content: end;
    font-family: "Noto Serif TC", serif;
    font-size: 1.10rem;
    color: #fff;
    margin: 0;
    margin-bottom: -15px;
}

.item3 .back p {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    font-family: "Noto Serif TC", serif;
}

.item3 .back img {
    display: block;
    border-radius: 10px;
    width: 760px;
    height: 645px;
}

/* Common front/back styles */
.item .front,
.item .back,
.item2 .front,
.item2 .back,
.item3 .front,
.item3 .back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 20px;
    backface-visibility: hidden;
    border-radius: 20px;
    background: #753533;
}

/* Front side layout */
.item .front,
.item2 .front,
.item3 .front {
    display: flex;
    flex-direction: column;
}

/* Common content styles */
.item .frontimg {
    margin-top: auto;
    height: 295px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    overflow: hidden; /* Changed from visible to hidden */
}
.item2 .frontimg {
    margin-top: auto;
    height: 335px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    overflow: hidden; /* Changed from visible to hidden */
}
.item3 .frontimg {
    margin-top: auto;
    height: 335px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    overflow: hidden; /* Changed from visible to hidden */
}
.frontimg .img-wrapper {
    width: 100%; /* Added width constraint */
    height: 100%; /* Added height constraint */
    overflow: hidden;
    border-radius: 10px;
    display: flex; /* Added flex display */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.frontimg img {
    border-radius: 10px;
    width: auto; /* Changed from auto to 100% */
    height: 100%; /* Changed from auto to 100% */
    object-position: center; /* Center the image */
    display: block;
}
/* Typography */
.item .front h1 {
    font-family: "Noto Serif TC", serif;
    font-size: 2.15rem;
    font-weight: 700;
    color: #d5d2c3;
}
.item2 .front h1{
    font-family: "Noto Serif TC", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d5d2c3;
}
.item3 .front h1{
    font-family: "Noto Serif TC", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d5d2c3;
}
.item .front p {
    font-family: "Noto Serif TC", serif;
    font-weight: 500;
    font-size: 1.15rem;
    color: #fff;
}

.item .front .clickme{
    display: flex;
    flex-wrap: nowrap;
    font-family: 'DFRFeng';
    font-size: 1.10rem;
    color: #fff;
    margin-bottom: -20px;
    margin-left: 330px;
}
.item2 .front .clickme{
    display: flex;
    justify-content: end;
    font-family: 'DFRFeng';
    font-size: 1.10rem;
    color: #fff;
    margin-bottom: -20px;
    margin-left: 330px;
}
.item3 .front .clickme{
    display: flex;
    justify-content: end;
    font-family: 'DFRFeng';
    font-size: 1.10rem;
    color: #fff;
    margin-bottom: -20px;
    margin-left: 330px;
}
.item2 .front p{
    font-family: "Noto Serif TC", serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: #fff;
}
.item3 .front p{
    font-family: "Noto Serif TC", serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: #fff;
}
.item .back,
.item2 .back,
.item3 .back {
    transform: rotateY(180deg);
}

.backimg {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.item .back p,
.item2 .back p {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    font-family: "Noto Serif TC", serif;
}

/* Back images with different sizes for each slider */
.item .back img {
    display: block;
    border-radius: 10px;
    width: 400px;
    height: 520px;
}

.item2 .back img {
    display: block;
    border-radius: 10px;
    width: 650px; /* Adjusted for larger item2 */
    height: 520px;
}
.item3 .back img {
    display: block;
    border-radius: 10px;
    width: 650px; /* Adjusted for larger item2 */
    height: 520px;
}

.item.flipped,
.item2.flipped,
.item3.flipped {
    transform: rotateY(180deg) translateX(0);
}


#next1,#next2,#next3,#prev1,#prev2,#prev3{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
    transition: all 0.3s ease;
}
#prev1{
    left: 30%;
    top: 300px;
}
#prev2{
    left: 20%;
    top: 300px;
}
#prev3{
    left: 20%;  /* 更靠近左邊緣 */
    top: 300px;
}
#next1{
    left: unset;
    top: 300px;
    right: 30%;
}
#next2{
    left: unset;
    top: 300px;
    right: 20%;  /* 更靠近右邊緣 */
}
#next3{
    left: unset;
    top: 300px;
    right: 20%;  /* 更靠近右邊緣 */
}
#next1:hover,#next2:hover,#next3:hover, #prev1:hover,#prev2:hover,#prev3:hover {
    background-color: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}
.slider2-container{
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider2 {
    width: 80%;
    height: 50px;
    overflow: hidden;
    position: relative;
    background-color: transparent;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
}

.slider2 .list {
    display: flex;
    position: absolute;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.slider2 .list .items2 {
    display: flex;
    align-items: center;
    padding: 0 5px;
    white-space: nowrap;
    color: #753533;
    font-family: "Noto Serif TC", serif;
    font-size: 1.3rem;
    animation: none;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.slider2:hover .list {
    animation-play-state: paused;
}

.slider2 .list .items2 span {
    padding: 0 1px;
    transition: all 0.3s ease;
}
.groupimg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 1200px; /* Adjust based on your needs */
    margin: 0 auto;
}

.groupimg img {
    max-width: 100%;
    height: auto;
    display: block;
}
.text-container{
    margin-top: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Noto Serif TC", serif;
    font-size: 50px;
    font-weight: 700;
    color: #5d4447;
    margin-bottom: 0.25em;
}
#check{
    display: none;
}
.close-icon{
    top: 1.5%;
    right: 3%;
    position: absolute;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    display: none;
}

  @media screen and (max-width: 1024px) {
    .popup-overlay {
      display: none !important;  /* Force hide the overlay */
    }
    
    /* If you also want to hide the container */
    .popup-container {
      display: none !important;
    }
    .control-music{
        display: none !important;
    }
    .search-item{
        display: none !important;
    }
  }
@media (max-width:768px){
    .navbar{
        overflow: visible;
        padding: 0px;
    }
    .logo{
        margin-left: 0;
        margin-right: auto;
    }
    #check:checked~.close-icon #menu-list{
        display: none;
    }
    #check:checked~.close-icon #close-menu{
        display:block !important;
    }
    .navbar ul li a {
        padding: 0rem ;
    }
    .navbar .logo img {
        width: 40px !important;
        height: auto;
    }
    .container{
        height: 60px;
    }
    .close-icon{
        display: inline-flex;
    }
    .dropbtn{
        padding: 0 !important;
        margin: 0;
        text-align: start !important;
        height: auto;
        width: auto;
        background-color: transparent !important; 
    }
    .dropbtn:hover{
        transform: none !important; 
    }
    .dropbtn:hover::before {
        left: 0;
        transform: none !important; 
        width: 100%; 
    }
    .dropbtn::before{
        left: 0 !important;
        transform: none !important;
    }
    .main-menu{
        position: absolute;
        top:60px;
        left: 0;
        width: 100%;
        height: 0rem;
        background: rgba(114, 47, 55, 0.8); 
        backdrop-filter: blur(50px) !important;
        -webkit-backdrop-filter: blur(50px);
        z-index: 1000;
        overflow: hidden;
        transition: .3s ease;
    }
    .close-icon #close-menu{
        display: none;
    }
    #check:checked~.main-menu{
        height: 16.25rem;
        overflow: visible;
    }
    .main-menu ul{
        padding: 5px;
        display: block !important;
        
    }
    .main-menu ul li{
        margin: 1rem 0.5em !important;
    }
    .text-xxl{
        margin-top: 0.25em;
        font-size: clamp(3rem, 8vw, 4rem);
        height: 100px !important;
        width: auto;
    }
    .hero-texting{
        font-size: clamp(3rem, 8vw, 4rem);
    }
    .hero .container{
        min-height: 150px;
        padding: 0;
    }
    .hero-content{
        height: 150px;
        padding: 0;
    }
    #instagram-animation {
        width: 50px;
        height: 50px;
    }
    .main-menu ul li:nth-child(4),
    .main-menu ul li:nth-child(5) {
    display: inline-block;
    margin-right: 1rem; /* Space between icons */
    }
    .text-container{
        margin-top: 1em;
    }
    .slider-container {
        min-height: 50vh;
    }
    .slider1 .item{
        width: 300px;
        height: 400px;
        left: calc(50% - 150px); /* Adjusted for item width */
    }
    .slider3 .item2 {
        width: 350px;
        height: 300px;
        left: calc(50% - 175px);
    }
    .item .front h1 {
        font-family: "Noto Serif TC", serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: #d5d2c3;
    }
    .item2 .front h1{
        font-family: "Noto Serif TC", serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: #d5d2c3;
    }
    .item .front p {
        font-family: "Noto Serif TC", serif;
        font-weight: 500;
        font-size: 0.85rem;
        color: #fff;
    }
    
    .item .front .clickme{
        display: flex;
        justify-content: end;
        flex-wrap: nowrap;
        font-family: 'DFRFeng';
        font-size: 1.10rem;
        color: #fff;
        margin: 0;
        margin-bottom: -15px;
    }
    .item2 .front .clickme{
        display: flex;
        justify-content: end;
        font-family: 'DFRFeng';
        font-size: 1.10rem;
        color: #fff;
        margin: 0;
        margin-bottom: -15px;
    }
    .item2 .front p{
        font-family: "Noto Serif TC", serif;
        font-weight: 500;
        font-size: 0.8rem;
        color: #fff;
    }
    .item .back,
    .item2 .back {
        transform: rotateY(180deg);
    }
    
    .backimg {
        margin-top: 10px;
        display: flex;
        justify-content: center;
    }
    
    .item .back p,
    .item2 .back p {
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: bold;
        font-family: "Noto Serif TC", serif;
    }
    
    /* Back images with different sizes for each slider */
    .item .back img {
        display: block;
        border-radius: 10px;
        width: 270px;
        height: 350px;
    }
    
    .item2 .back img {
        display: block;
        border-radius: 10px;
        width: 320px; /* Adjusted for larger item2 */
        height: 240px;
    }
    .item .front,
    .item .back,
    .item2 .front,
    .item2 .back {
        padding: 15px;
        border-radius: 20px;
    }
    #next1,#next2,#next3,#prev1,#prev2,#prev3{
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color:transparent !important;
        border: none;
        cursor: pointer;
        color: #f0f0f0;
        font-size: 15px;
        font-weight: bold;
        z-index: 100;
        transition: all 0.3s ease;
    }
    #prev1{
        left: 10px;
        top: 200px;
    }
    #prev2{
        left: 5px;
        top: 165px;
    }
    #next1{
        left: unset;
        top: 200px;
        right: 10px;
    }
    #next2{
        left: unset;
        top: 165px;
        right: 5px;
    }
    #next1:hover,#next2:hover, #prev1:hover,#prev2:hover,#next3:hover,#prev3:hover {
        background-color: #f0f0f0;
        transform: translateY(-50%) scale(1.1);
    }
    .groupimg {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        height: auto;
        max-width: 1200px; /* Adjust based on your needs */
        margin: 0 auto;
    }
    .slider2 .list {
        animation: scroll 60s linear infinite;
    }
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100%);
        }
    }
    #prev3{
        left: 5px;
        top: 165px;
        transform: none;
    }
    
    #next3{
        right: 5px;
        top: 165px;
        transform: none;
    }
    
    .slider5 .item3 {
        width: 350px;
        height: 300px;
        left: calc(50% - 175px);
    }
    
    .item3 .front h1 {
        font-family: "Noto Serif TC", serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: #d5d2c3;
    }
    
    .item3 .front p {
        font-family: "Noto Serif TC", serif;
        font-weight: 500;
        font-size: 0.8rem;
        color: #fff;
    }
    
    .item3 .front .clickme{
        display: flex;
        justify-content: end;
        font-family: 'DFRFeng';
        font-size: 1.10rem;
        color: #fff;
        margin: 0;
        margin-bottom: -15px;
    }
    
    .item3 .back p {
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: bold;
        font-family: "Noto Serif TC", serif;
    }
    
    .item3 .back img {
        display: block;
        border-radius: 10px;
        width: 320px;
        height: 240px;
    }
    
    .item3 .front,
    .item3 .back {
        padding: 15px;
        border-radius: 20px;
    }
}
@media screen and (768px<=width<=1024px){
    .navbar{
        overflow: visible;
        padding: 10px;
    }
    .logo{
        width: 60px;
        height: 60px;
        margin-left: 0;
        margin-right: auto;
    }
    #check:checked~.close-icon #menu-list{
        display: none;
    }
    #check:checked~.close-icon #close-menu{
        display:block;
    }
    .navbar ul li a {
        padding: 0rem ;
    }
    .navbar .logo img {
        width: 45px !important;
        height: auto;
    }
    .close-icon{
        top: 2%;
    }
    .container{
        height: 60px;
    }
    .close-icon{
        display: inline-flex;
    }
    .dropbtn{
        padding: 0 !important;
        margin: 0;
        text-align: start !important;
        height: auto;
        width: auto;
        background-color: transparent !important; 
    }
    .dropbtn:hover{
        transform: none !important; 
    }
    .dropbtn:hover::before {
        left: 0;
        transform: none !important; 
        width: 100%; 
    }
    .dropbtn::before{
        left: 0 !important;
        transform: none !important;
    }
    .main-menu{
        position: absolute;
        top:80px;
        left: 0;
        width: 100%;
        height: 0rem;
        background: rgba(114, 47, 55, 0.8); 
        backdrop-filter: blur(50px) !important;
        -webkit-backdrop-filter: blur(50px);
        z-index: 1000;
        overflow: hidden;
        transition: .3s ease;
    }
    .close-icon #close-menu{
        display: none;
    }
    #check:checked~.main-menu{
        height: 16.25rem;
        overflow: visible;
    }
    .main-menu ul{
        padding: 5px;
        display: block !important;
        
    }
    .main-menu ul li{
        margin: 1rem 0.5em !important;
    }
    .hero-content{
        height: 150px;
        padding: 0;
    }
    #instagram-animation {
        width: 50px;
        height: 50px;
    }
    .main-menu ul li:nth-child(4),
    .main-menu ul li:nth-child(5) {
    display: inline-block;
    margin-right: 1rem; /* Space between icons */
    }
    .text-container{
        margin-top: 1em;
    }
    .slider-container {
        min-height: 50vh;
    }
    .slider1 .item{
        width: 500px;
        height: 650px;
        left: calc(50% - 250px); /* Adjusted for item width */
    }
    .slider3 .item2 {
        width: 600px;
        height: 500px;
        left: calc(50% - 300px);
    }
    .item .front h1 {
        font-family: "Noto Serif TC", serif;
        font-size: 2rem;
        font-weight: 700;
        color: #d5d2c3;
    }
    .item2 .front h1{
        font-family: "Noto Serif TC", serif;
        font-size: 2rem;
        font-weight: 700;
        color: #d5d2c3;
    }
    .item .front p {
        font-family: "Noto Serif TC", serif;
        font-weight: 500;
        font-size: 1.3rem;
        color: #fff;
    }
    
    .item .front .clickme{
        display: flex;
        justify-content: end;
        flex-wrap: nowrap;
        font-family: 'DFRFeng';
        font-size: 1.10rem;
        color: #fff;
        margin: 0;
        margin-bottom: -15px;
    }
    .item2 .front .clickme{
        display: flex;
        justify-content: end;
        font-family: 'DFRFeng';
        font-size: 1.10rem;
        color: #fff;
        margin: 0;
        margin-bottom: -15px;
    }
    .item2 .front p{
        font-family: "Noto Serif TC", serif;
        font-weight: 500;
        font-size: 1.25rem;
        color: #fff;
    }
    .item .back,
    .item2 .back {
        transform: rotateY(180deg);
    }
    
    .backimg {
        margin-top: 10px;
        display: flex;
        justify-content: center;
    }
    
    .item .back p,
    .item2 .back p {
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: bold;
        font-family: "Noto Serif TC", serif;
    }
    
    /* Back images with different sizes for each slider */
    .item .back img {
        display: block;
        border-radius: 10px;
        width: 480px;
        height: 590px;
    }
    
    .item2 .back img {
        display: block;
        border-radius: 10px;
        width: 560px; /* Adjusted for larger item2 */
        height: 445px;
    }
    .item .front,
    .item .back,
    .item2 .front,
    .item2 .back {
        padding: 15px;
        border-radius: 20px;
    }
    #next1,#next2,#prev1,#prev2,#next3,#prev3{
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #fff;
        border: none;
        cursor: pointer;
        font-size: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 100;
        transition: all 0.3s ease;
    }
    #prev1{
        left: 70px;
        top: 325px;
    }
    #prev2{
        left: 20px;
        top: 250px;
    }
    #next1{
        left: unset;
        top: 325px;
        right: 70px;
    }
    #next2{
        left: unset;
        top: 250px;
        right: 20px;
    }
    .groupimg {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        height: auto;
        max-width: 1200px; /* Adjust based on your needs */
        margin: 0 auto;
    }
    .slider2 .list {
        animation: scroll 60s linear infinite;
    }
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100%);
        }
    }
    #prev3{
        left: 300px;
        top: 250px;
    }
    #next3{
        left: unset;
        top: 250px;
        right: 300px;
    }
    .slider5 .item3 {
        width: 600px;
        height: 500px;
        left: calc(50% - 300px);
    }
    .item3 .front h1{
        font-family: "Noto Serif TC", serif;
        font-size: 2rem;
        font-weight: 700;
        color: #d5d2c3;
    }
    .item3 .front p{
        font-family: "Noto Serif TC", serif;
        font-weight: 500;
        font-size: 1.25rem;
        color: #fff;
    }
    .item3 .front .clickme{
        display: flex;
        justify-content: end;
        font-family: 'DFRFeng';
        font-size: 1.10rem;
        color: #fff;
        margin: 0;
        margin-bottom: -15px;
    }
    .item3 .back p {
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: bold;
        font-family: "Noto Serif TC", serif;
    }
    .item3 .back img {
        display: block;
        border-radius: 10px;
        width: 560px;
        height: 445px;
    }
    .item3 .front,
    .item3 .back {
        padding: 15px;
        border-radius: 20px;
    }
}
.book-container {
    margin-top: 10rem;
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 20px;
}

#book {
    width: 1200px;
    height: 800px;
    background-color: #f5f5f5;
    transform-origin: center center;
    cursor: pointer; /* 指針效果 */
    touch-action: none; /* 禁用預設觸控行為 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* 增加陰影 */
}

#prev,#next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
    transition: all 0.3s ease;
}
#prev{
    left: 70px;
    top: 600px;
}
#next{
    right: 70px;
    top: 600px;
}
.btn:hover {
    background-color: #45a049;
}

.page {
    background-color: white;
    padding: 0;
    overflow: hidden;
    transform-origin: 50% 50%;
    cursor: pointer; /* 指針效果 */
    margin: 0 !important; /* 移除可能的間距 */
    border: none !important; /* 移除邊框 */
}

.page img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 確保圖片填滿 */
    display: block;
    margin: 0; /* 移除外邊距 */
}

.hard {
    background: none;
    color: inherit;
}
@media screen and (max-width: 1024px) {
    #book {
        width: 90vw;  /* 視窗寬度的90% */
        height: 120vw; /* 保持適當的長寬比 */
        margin: 0 auto;
    }
    #prev{
        display: none;
    }
    #next{
        display: none;
    }
    .book-container {
        margin-top: 10rem;
        padding: 10px;
        gap: 10px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    .card{
        display: flex;
        flex-direction: column;
    }
    .card img{
        margin: 0 ;
        width: 90% !important;
        height:auto !important;
    }
    .card-content{
        padding-left: 7% !important;
        width: 100%;
        height: auto;
        margin: 0 auto;
        justify-content: center;
        align-items: start;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        font-size: 12px !important;
        font-weight: bold;
        color: #8c3737;
      }
      .teachers-name{
        margin-top: 2.5rem;
        color: black;
        font-weight: 900;
        font-size: 15px !important;
      }
}
@media screen and (max-width:1367px){
    #prev {
        display: none;
    }

    #next {
        display: none;
    }
}
@media screen and (1024px<=width<=1367px){
    #prev1{
        left: 20%;
        top: 50%;
    }
    #prev2{
        left: 15%;
        top: 50%;
    }
    #prev3{
        left: 15%;
        top: 50%;
    }
    #next1{
        left: unset;
        top: 50%;
        right: 20%;
    }
    #next2{
        left: unset;
        top: 50%;
        right: 15%;
    }
    #next3{
        left: unset;
        top: 50%;
        right: 15%;
    }
    .card{
        display: flex;
        flex-direction: column;
    }
    .card img{
        margin-left: 1rem;
        width: 50% !important;
        height:auto !important;
    }
    .teachers-name{
        margin-top: 30px;
        color: black;
        font-weight: 900;
        font-size: 18px !important;
      }
      .card-content{
        font-size: 15px !important;
      }
  }
.stack-area {
    margin-top: 600px;
    width: 100%;
    height: 500vh;
    position: relative;
    display: flex;
  }
  .stack-item {
    height: 40vh;
    flex-basis: 50%;
    position: sticky;
    top: 0;
    display: flex;
  }
  .teacher{
    display: flex;
  }
  .card {
    width: 95vw;
    height: 170%;
    border-radius: 15px;
    position: absolute;
    top: calc(30% );
    left: calc(30%-100px );
    transform: translate(-50%, -50%);
    transition: 0.5s ease-in-out;
    display: flex;
  }
  .teachers-name{
    color: black;
    font-weight: 900;
    font-size: 20px;
  }
  .card img {
    width: 200%;
    height: 120%;
    display: block;
    margin: auto;
    object-fit: contain;
  }
  .card-content{
    width: 100%;
    height: auto;
    margin: auto;
    padding-left: 100px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    font-size: 18px;
    font-weight: bold;
    color: #8c3737;
  }
.away {
    transform-origin: bottom left;
  }
.sliderw-container{
    display: flex;
    align-items: center;
    justify-content: center;
}
.sliderw {
    overflow: hidden;
    margin-top: 5rem;
    width: 80%;
    height: var(--height);
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
}
.sliderw .listw {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}
.sliderw .listw .items2 {
    border-radius: 15px;
    width: var(--width);
    height: 300px !important;
    position: absolute;
    left: 50%;
    overflow: hidden;
    animation: Run 60s linear infinite;  /* 將時間從 20s 改為 60s */
    animation-delay: calc((60s / var(--quantity)) * (var(--position) - 1));  /* 這裡也要相應調整 */
}
.sliderw .listw .items2 img {
    width: 100%;
    border-radius: 15px;
    object-fit: contain;
    display: block;
}
.sliderw:hover .listw .items2{
    animation-play-state: paused;
}


@keyframes Run {
    from {
        left: 95%;
    }
    to {
        left: calc(var(--width) * -1);
    }
}
.song-cont,.lyrics-cont{
    width: 60%;
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 0 auto;
}
.song-cont{
    margin-top:3rem;
}
.song-cont h1{
    display: flex;
    color: rgb(84, 18, 18);
    font-weight: 800;
}
.lyrics{
    font-size: 20px;
    font-weight: 600;
    color: #722;
    line-height: 2;
    text-align: justify;
}
.greoup-name p{
    color: #722;
    font-family: "Noto Serif TC", serif;
    font-size: 24px;  /* 增加字體大小 */
    font-weight: 700;  /* 加粗 */
    text-align: center;  /* 置中對齊 */
    padding: 10px 0;  /* 增加上下間距 */
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 40px;
}

.lyrics-cont {
    flex: 1;
}

.music-image {
    flex: 0 0 400px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.music-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .music-image {
        flex: 0 0 auto;
        position: static;
        margin: 20px auto;
        max-width: 300px;
    }
}

.youtube-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    margin-bottom: 60px;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .youtube-container {
        margin: 20px auto;
    }
    
    .youtube-wrapper {
        margin-bottom: 30px;
    }
}


.footer-container{
    width: 100%;
    padding: 5px 5px 5px;
    background-color: #4A1D21;

}
.footer-item{
    justify-content: start;
    display: flex;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .song-cont, .lyrics-cont {
        width: 90%;
    }
    
    .song-cont h1 {
        font-size: 24px;
    }
    
    .lyrics {
        font-size: 16px;
    }
    
    .content-wrapper {
        padding: 10px;
    }
    
    .youtube-container {
        margin: 20px auto;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .song-cont, .lyrics-cont {
        width: 90%;
    }
    
    .lyrics {
        font-size: 18px;
    }
    
    .music-image {
        width: 80%;
        margin: 30px auto;
    }
    
    .youtube-container {
        width: 90%;
    }
}

/* 手機樣式 (max-width: 767px) */
@media screen and (max-width: 767px) {
    .song-cont, .lyrics-cont {
        width: 95%;
    }
    
    .song-cont {
        margin-top: 2rem;
    }
    
    .song-cont h1 {
        font-size: 20px;
    }
    
    .lyrics {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .music-image {
        width: 90%;
        margin: 20px auto;
    }
    
    .youtube-container {
        width: 95%;
        margin: 20px auto;
    }
    
    .youtube-wrapper {
        margin-bottom: 20px;
    }
}