

body {
    margin: 0;
    padding: 0;
}



.navbar li {
    list-style: none;
}

.links {
    margin-right: 15px;
}

.links a {
    text-decoration: none;
    color: black;
    font-size: 20px;
    font-weight: bold;
}
.links li{
    display: flex;
    align-items: center;
    justify-content: center;
}
.language a{
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang {
    text-decoration: none;
    color: black;
    font-size: 1.5rem;
}

.navbar a:hover {
    color: gray;
}

header {
    position: relative;
    padding: 0 2rem;
}

.navbar {
    width: 100%;
    height: 90px;
    margin: 0 auto;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(242, 211, 153, 0.8);
    z-index: 9999;
}

.navbar .name a {
    text-decoration: none;
    color: black;
}

.navbar .links {
    display: flex;
    gap: 2rem;
}

.navbar .toggle_btn {
    color: black;
    font-size: 2rem;
    margin-right: 15px;
    cursor: pointer;
    display: none;
}

/* DROP */
.dropdown_menu {
    display: none;
    position: fixed;
    right: 15px;
    top: 90px;
    width: 300px;
    height: 0;
    background-color: rgba(187, 143, 61, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}

.dropdown_menu.open {
    height: max-content;
}

.dropdown_menu li {
    pad: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
}


.dropdown_menu a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 1.5rem;
}








.start-bar {
    display: flex;

    max-height: 100px;
    width: 100%;
    background-color: rgba(242, 211, 153, 0.8);

    position: fixed;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.logoimg {
    height: 100px;
    width: 100px;
}

.name {
    text-decoration: none;
    float: left;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    padding-left: 5px;
    padding-right: 5px;
    font-weight: bold;
}

.desktop-list {
    display: flex;
    float: right;
    margin-left: auto;
    height: fit-content;
}

.mobile-list {
    position: fixed;
    top: 0;
    right: -70%;
    /* 初始隱藏在畫面右側 */
    width: 70%;
    /* 佔據 70% 的寬度 */
    height: 100%;
    background-color: #2d8b51;
    transition: right 0.3s ease-in-out;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

.mobile-button {
    display: none;
    cursor: pointer;
}

.list-content {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;

    font-size: 25px;
    font-weight: bold;
    font-family: 'handwritelite';
    cursor: pointer;
}

.hovered {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;

    font-size: 25px;
    font-weight: bold;
    background-color: rgba(250, 235, 215, 0.8);
}

.img-lang {
    float: right;
    height: 25px;
    width: 25px;
    background-size: cover;
    margin-right: 5px;
}

/*區塊一*/
.slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 90vh;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.active {
    opacity: 1;
}

.controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50%;
    align-items: center;
}

.control-button-left,
.control-button-right {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
}

.control-button-left {
    border-radius: 50% 0 0 50%;
}

.control-button-right {
    border-radius: 0 50% 50% 0;
}


.spctit{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f5f6f3;
}
.spctit h1{
    font-size: 25px;
}
.menump{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    padding: 30px 0px;
}
.menump img{
    width: 1000px;
    height: 560px;
}

.newaroom {
    display: flex;
}

.new {
    flex-basis: 50%;
    background-color: #f5f6f3;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.room {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    padding: 40px;
    background-color: #f5f6f3;
}

.newtop {
    flex-basis: 15%;
    display: flex;
    align-items: center;
}

.newsContainer {
    display: flex;
    flex-direction: column;
}

.newmid {
    flex-basis: 1%;
    border-bottom: 1px solid #b45c1d;

}

.newbottom {
    display: flex;
    flex-direction: column;
    flex-basis: 84%;
    background-color: #f5f6f3;
}

.newbottom li {
    list-style: none;
    display: flex;
    width: 100%;
    align-items: center;

}

.newslist {
    display: flex;
    flex-direction: column;
}

ul.newslist {
    padding: 0;
    margin: 0;
    list-style: none;
}

.newstitle {
    flex-basis: 80%;
    padding-left: 10px;
    cursor: pointer;
}

.newscontent {
    display: none;
}

.newsdate {
    flex-basis: 20%;
    font-size: clamp(15px, 1.5vw, 20px);
    padding-left: 10px;
}

.newaroom h2 {
    font-size: clamp(12px, 2vw, 25px);
}

.roomtop {
    margin-top: 12px;
    flex-basis: 15%;
    display: flex;
    align-items: center;
}

.roommid {
    flex-basis: 1%;
    border-bottom: 1px solid #b45c1d;
}

.roombottom {
    flex-basis: 84%;
    padding: 2rem;
}




/*客房簡介*/
.container {
    padding: 2rem;
}

.slider-wrapper {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
}

.sli {
    display: flex;
    aspect-ratio: 16/10;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
}

.sli::-webkit-scrollbar {
    display: none;
    /* 隱藏滾動條 */
}

.sli img {
    flex: 1 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
}

.sli-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);

}

.sli-nav a {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid brown;
    opacity: 0.4;
    transition: opacity ease 250ms;
}

.sli-nav a:hover {
    opacity: 1;
}

.slider-image {
    position: relative;
    overflow: hidden;
    flex: 1 0 100%;
    scroll-snap-align: start;
    object-fit: cover;
}

.slider-image img {
    width: 100%;
    height: auto;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s, transform 0.3s;
}

.slider-image:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay h3 {
    font-size: clamp(20px, 1.5vw, 30px);
    margin-left: 20px;
}

.overlay p {
    position: absolute;
    font-size: clamp(15px, 1.5vw, 25px);
    bottom: 0;
    right: 0;
    padding: 10px;
    margin: 0;
}

/*下方欄*/
.end-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 190px;
    width: 100%;
    background-color: rgba(242, 211, 153);
}

.logosection {
    flex-basis: 10%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logosection img{
    width: 120px;
    height: 100px;
}

.right-side {
    width: 500px;
    display: flex;
    align-items: center;
}

.toolsection {
    display: flex;
    width: 30%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.toolsection h3 {
    margin: 5px 0;
    cursor: pointer;
}

.aboutsection {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.aboutsection h4 {
    margin: 2px 0;
}

.board {
    width: 100%;
}

.icon {
    width: 60px;
    height: 54px;
    background-size: cover;
    margin-right: 20px;
}

.inew {
    background-image: url(Image/logo3.png);
}

.ibed {
    background-image: url(Image/logo3.png);
}



/*newspopup*/
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 透明灰色背景 */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup {
    background-color: #fff;
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 10px;
    width: 65%;
    height: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: flex;

}

.popup-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.popup-content {
    font-size: 20px;
    max-height: 65%;
    overflow-y: auto;
}


.newsleft{
    flex-basis: 30%;
}
.newsleft img{
    height: 100%;
    border-radius: 10px;
}
.newsright{
    flex-basis: 70%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.newsrt{
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-btn {
    background-color: #f5f5f5;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    position: fixed;
    top: 95%;
    left: 92%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    width: 100px;
}
.pic1{
    display: block;
}
.pic2{
    display: none;
    max-height: 150px;
    width: 100%;
    object-fit: cover;
}

.language {
    position: relative;
    display: inline-block;
}

.language a {
    text-decoration: none;
    color: #333;
}


.language-options {
    display: none;
    position: absolute;
    transform: translateY(80px);
    background-color: rgba(242, 211, 153, 0.8);
    border: 1px solid #ccc;
    list-style: none;
    padding: 5px;
}

.language-options li {
    padding: 5px;
}

.icon-e{
    width: 20px;
    height: 20px;
    object-fit: cover;
    margin-right:5px;
}



@media(max-height:600px){
    .popup{
        height: 70%;
    }
    .close-btn{
        width: 80px;
        font-size: 20px;
        top:92%;
        left:92%;
    }
}



@media(max-width:1250px) {
    .popup{
        height: 70%;
    }
    .close-btn{
        width: 80px;
        font-size: 20px;
        top:92%;
        left:92%;
    }
    .popup-title {
        font-size: 22px;
    }
    
    .popup-content {
        font-size: 18px;
        max-height: 60%;
    }
}


/* RES */

@media(max-width:1100px) {
    .spctit h1{
        font-size: 20px;
    }
    .menump{
        padding: 20px 0px;
    }
    .menump img{
        width: 750px;
        height: 420px;
    }

    .newsrt{
        display:none;
    }
    .language-toggle{
        display: flex;
        flex-direction: column;
    }
    .hidden{
        display: flex;
        width: 200px;
        justify-content: space-between;
    }
    ul.hidden{
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .ct{
        display:flex;
        justify-content:center;
        align-items:center;
    }
    
    .navbar .links {
        display: none;
    }

    .navbar .toggle_btn {
        display: block;
    }

    .dropdown_menu {
        display: block;
    }

    .name {
        font-size: 40px;
    }

    .slider {
        height: 65vh;
    }

    .end-bar img {
        max-height: 120px;
        max-width: 120px;
    }


    /**/
    .newstitle{
        flex-basis: 74%;
    }
    .newsdate{
        flex-basis: 26%;
    }
    .newaroom  h2{
        font-size: 25px;
    }
    .newaroom  p{
        font-size: 20px;
    }

    .popup{
        height: 65%;
    }
    .popup-title {
        font-size: 20px;
    }
    
    .popup-content {
        font-size: 15px;
    }
    .newsrt .icon{
        width: 50px;
        height: 40px;
    }
}

@media  (max-width:890px){
    
    .newaroom {
        display: flex;
        flex-direction: column;
    }
    .pic1{
        display: none;
    }
    .pic2{
        display: block;
    }
    .popup {
        flex-direction: column;
        overflow-y: auto;
    }
    .close-btn{
        position: relative;
        top: 0;
        left: 90%;
        font-size: 20px;
        width: 80px;
    }
    .popup-content{
        max-height: 550px;
    }

    .spctit h1{
        font-size: 20px;
    }
    .menump{
        padding: 20px 0px;
    }
    .menump img{
        width: 625px;
        height: 350px;
    }
}
@media(max-width:675px){
    .spctit h1{
        font-size: 18px;
    }
    .menump{
        padding: 15px 0px;
    }
    .menump img{
        width: 500px;
        height: 280px;
    }
}

@media(max-width:576px) {
    .spctit h1{
        font-size: 16px;
    }
    .menump{
        padding: 15px 0px;
    }
    .menump img{
        width: 375px;
        height: 210px;
    }

    .navbar {
        height: 70px;
    }

    .navbar a {
        font-size: clamp(25px, 5vw, 35px);
    }

    .navbar .toggle_btn {
        font-size: 25px;
    }

    .logoimg {
        height: 60px;
        width: 60px;
    }

    .dropdown_menu {
        left: 2rem;
        width: unset;
    }
    .dropdown_menu a{
        font-size: 20px;
    }

    .slider {
        height: 40vh;
    }

    .icon {
        width: 40px;
        height: 40px;
    }

    .control-button-left,
    .control-button-right {
        padding: 5px;
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        cursor: pointer;
        font-size: 10px;
    }

    .controls {
        display: flex;
        justify-content: space-between;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 30%;
        align-items: center;
    }

    .control-button-left {
        border-radius: 50% 0 0 50%;
    }

    .control-button-right {
        border-radius: 0 50% 50% 0;
    }

    /*newaroom*/
    .newaroom {
        display: flex;
        flex-direction: column;
    }
    .new{
        padding: 20px;
    }
    .room{
        padding: 20px;
    }
    .newstitle{
        flex-basis: 78%;
    }
    .newsdate{
        flex-basis: 26%;
    }
    .newaroom  h2{
        font-size: 14px;
    }
    .newaroom  p{
        font-size: 12px;
    }
    .roombottom{
        padding: 0.7rem;
    }


    .sli-nav {
        bottom: -1.25rem;
    }
    .sli-nav a{
        width: 0.4rem;
        height: 0.4rem;
    }
    .overlay{
        opacity: 1;
        transform: translateY(0);
    }


    /*end-bar*/
    .end-bar{
        height: 150px;
    }
    .logosection {
        margin-right: 10px;
    }

    .right-side {
        flex-direction: column;
        width: 300px;

    }

    .toolsection {
        flex-direction: row;
        justify-content: center;
        margin-bottom: 5px;
        width: fit-content;
    }
    .toolsection h3{
        margin: 0 3px;
    }

    .aboutsection {
        margin-left: 0px;
    }

    .end-bar h3 {
        font-size: 10px;
    }
    .end-bar h4 {
        font-size: 10px;
    }

    .end-bar img {
        max-height: 80px;
        max-width: 80px;
    }

    .newsrt h2{
        font-size: 20px;
    }
    .newsrt .icon{
        width: 35px;
        height: 30px;
    }

    .popup-title{
        font-size: 18px;
    }

}
@media(max-width:500px){
    .close-btn{
        left: 85%;
    }

}
@media(max-width:410px){

    .spctit h1{
        font-size: 13px;
    }
    .menump{
        padding: 10px 0px;
    }
    .menump img{
        width: 300px;
        height: 168px;
    }
    .logosection{
        margin-left:10px;
    }
    .right-side{
        align-items: start;
        margin-left: 20px;
    }
    .aboutsection{
        width: 100%;
    }
}