@font-face {
  font-family: 'handwritelite';
  src: url('Font/Bakudai-ExtraLight.woff') format('woff');
}

body {
  background-image: url(Image/marblebg.jpg), linear-gradient(135deg, #ffffff, #ffffff);
  background-blend-mode: multiply;
}

.room-section-1 {
  display: flex;
  width: 100%;
  height: 80vh;
  background-image: url(/Image/room1.jpg);
  background-size: cover;
  background-position: center;

  align-items: center;
  justify-content: end;
  flex-direction: column;
}

.room-section-1 h1 {
  color: #ffffff;
  font-size: 80px;
  /*display: none;*/
}

.room-section-1 p {
  color: #ffffff;
  font-size: 60px;
  /*display: none;*/
}

.room-title {
  display: flex;
  height: auto;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.room-title h1 {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.1)
}

.room-title h2 {
  font-size: clamp(60px, 3.5vw, 80px);
  font-weight: normal;
  color: #000000;
  margin-top: 50px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.1)
}

.roomintroduce {
  width: 75%;
  height: clamp(300px, 30vw, 1000px);
  display: flex;
  flex-wrap: wrap;
  margin-top: 50px;
  margin-bottom: 50px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  transition: opacity 1s;
}

.r {
  width: 75%;
  height: clamp(400px, 30vw, 710px);
  display: flex;
  flex-wrap: wrap;
  margin-top: 50px;
  margin-bottom: 50px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  transition: opacity 1s;
}

.fdin {
  opacity: 1;
}

.room-img {
  display: flex;
  flex-basis: 60%;
  /* 占父容器 60% 的寬度 */
  background-color: antiquewhite;
  /*假设房间照片的背景色为灰色 */
  /* 添加图片等样式 */
  overflow: hidden;
  position: relative;

}

.room-text {
  flex-basis: 40%;
  background-color: rgb(142, 96, 64);
  color: #f0f0f0;
  font-size: 30px;
  display: flex;
  flex-direction: column;
}

.r .room-text {
  flex-basis: 40%;
  /* 占父容器 60% 的寬度 */
  background-color: rgb(142, 96, 64);
  color: #f0f0f0;
  font-size: 30px;
}

.r .room-img {
  flex-basis: 60%;
  /* 占父容器 40% 的寬度 */
  background-color: antiquewhite;
  /* 假设房间信息的背景色为浅灰色 */
  /* 添加文字等样式 */
}

.topside {
  flex-basis: 20%;
  background-color: rgb(142, 96, 64);
  display: flex;
  justify-content: left;
  align-items: center;
}

.topside h1 {
  text-align: left;
  padding-left: 25px;
  font-size: clamp(20px, 2vw, 45px);
  font-weight: normal;
  /*text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);*/
}

.midside {
  flex-basis: 35%;
  background-color: rgb(142, 96, 64);
  display: flex;
}

.midside p {
  text-align: left;
  padding-left: 25px;
  font-size: clamp(15px, 1.25vw, 30px);
  /*text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);*/
}

.leftside {
  flex-basis: 50%;
  background-color: rgb(142, 96, 64);
  display: flex;
  flex-direction: column;
}

.rightside {
  flex-basis: 50%;
  background-color: rgb(142, 96, 64);
  display: flex;
  flex-direction: column;
}

.bottomside {
  flex-basis: 45%;
  background-color: rgb(201, 179, 165);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.roomfuntext {
  float: left;
  padding-left: 25px;
  font-size: clamp(15px, 1.4vw, 25px);
  font-weight: bold;
  color: #000000;
}

.buttoncheck {
  width: 60%;
  height: clamp(40px, 2.5vw, 60px);
  font-size: clamp(10px, 1.25vw, 20px);
  font-weight: bold;
  background-color: rgb(250 235 215);
  color: #000000;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 10px;
 box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: box-shadow, transform;
  transition-property: box-shadow, transform;
}

.buttoncheck:hover,
.buttoncheck:focus,
.buttoncheck:active {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}



.functiontitle {
  display: flex;
  justify-content: left;
  width: 100%;

}

.function {
  width: 90%;
  height: 80%;
  background-color: rgb(201, 179, 165);
  display: flex;
  flex-direction: column;
}

.funtop {
  flex-basis: 50%;
  display: flex;
}

.icon {
  width: 30px;
  height: 30px;

  background-size: cover;
  margin-right: 5px;
}

.i1 {
  background-image: url(Image/tv.png);
}

.i2 {
  background-image: url(Image/boiler.png);
}

.i3 {
  background-image: url(Image/wifi.png);
}

.i4 {
  background-image: url(Image/refrigerator.png);
}

.i5 {
  background-image: url(Image/shower.png);
}

.i6 {
  background-image: url(Image/toothbrush2.png);
}
.booking{
  background-image: url(Image/booking.png);
}

.funbuttom {
  flex-basis: 50%;
  display: flex;
}

.divide {
  flex-basis: 33%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.divide span {
  font-size: clamp(15px, 1.25vw, 25px);
  color: #000000;
  font-weight: bold;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: block;
}

.modal-content {
  position: fixed;
  top: 8%;
  left: 20%;
  width: 60%;
  height: max-content;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 40px;
  font-weight: bold;
  transform: translateY(-10px);
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.warning {
  font-size: clamp(20px, 2vw, 25px);
}

.modal-content h2 {
  font-size: clamp(20px, 2vw, 50px);
}

.modal-content li {
  font-size: clamp(20px, 2.5vh, 30px);
}

.content {
  width: 95%;
  height: 100%;
  background-color: rgba(250, 234, 214, 0.9);
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  overflow-y: auto;
}

.content li {
  margin-bottom: 10px;
}

.double {
  top: 20px;
  left: 20px;
  bottom: 20px;
  right: 20px;
  position: absolute;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.triple {
  top: 20px;
  left: 20px;
  bottom: 20px;
  right: 20px;
  position: absolute;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.triplec {
  top: 20px;
  left: 20px;
  bottom: 20px;
  right: 20px;
  position: absolute;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.quadruple {
  top: 20px;
  left: 20px;
  bottom: 20px;
  right: 20px;
  position: absolute;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.quadruplen {
  top: 20px;
  left: 20px;
  bottom: 20px;
  right: 20px;
  position: absolute;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.active {
  opacity: 1;
}

.active_t {
  opacity: 1;
}

.active_tc {
  opacity: 1;
}

.active_q {
  opacity: 1;
}

.active_qn {
  opacity: 1;
}


.room-controls {
  display: flex;
  justify-content: space-between;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
}

.room-control-left,
.room-control-right {
  padding: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
}

.room-control-left {
  border-radius: 50% 0 0 50%;
}

.room-control-right {
  border-radius: 0 50% 50% 0;
}


.hvbkfs {
  font-size: 15px;
}

.price {
  font-size: clamp(20px, 1.5vw, 40px);
  text-align: center;
  /*text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);*/
}

.dr {
  font-size: clamp(15px, 1.25vw, 30px);
  /*text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);*/
}

.telicon{
  height: 50px;
  width: 50px;
}

.bookurl{
  margin-top: 50px;
  display: flex;
  justify-content: end;
  text-align: center;
}

.bookurl a{
  text-decoration: none;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bookurl a:hover{
  text-decoration: underline;
}



@media(max-width:1250px){
  .modal-content{
    top:20%
  }
  .content{
    max-height: 90%;
  }
  .tel{
    font-size: 28px;
  }
  .warning{
    font-size: 23px;
  }
  .content h2{
    font-size: 20px;
  }
  .content li{
    font-size: 18px;
  }
}

@media(max-width:1080px) {
  .modal-content{
    width: 75%;
    left: 10%;
  }
  /*book*/
  .tel{
    font-size: 25px;
  }
  .warning{
    font-size: 21px;
  }
  .content h2{
    font-size: 18px;
  }
  .content li{
    font-size: 16px;
  }
  .telicon{
    width: 40px;
    height: 40px;
  }

  .room-title h1 {
    font-size: 24px;
  }

  .room-title h2 {
    font-size: 50px;
  }

  .roomintroduce {
    flex-direction: column;
    flex-wrap: nowrap;
    height: clamp(320px, 90vw, 600px);
    width: 90%;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .room-img {
    display: flex;
    flex-basis: 70%;
    background-color: antiquewhite;
    overflow: hidden;
    position: relative;

  }

  .room-text {
    flex-basis: 30%;
    background-color: rgb(142, 96, 64);
    color: rgb(240, 240, 240);
    font-size: 30px;
    display: flex;
    flex-direction: column;
  }

  .r {
    flex-direction: column-reverse;

  }

  .r .room-text {
    flex-basis: 30%;
  }

  .r .room-img {
    flex-basis: 70%;
  }

  .bottomside {
    display: none;
  }



}

@media (max-width:800px) {
  .bookurl a{
    font-size: 14px;
  }
  /*book*/
  .close{
    transform: translateY(-20px) translateX(10px);
  }
  .tel{
    font-size: 23px;
  }
  .warning{
    font-size: 19px;
  }
  .content h2{
    font-size: 17px;
  }
  .content li{
    font-size: 15px;
  }
  .telicon{
    width: 40px;
    height: 40px;
  }

  .room-section-1{
    height: 70vh;
  }
  .topside {
    flex-basis: 10%;
  }

  .topside h1 {
    font-size: 18px;

  }

  .midside p {
    font-size: 15px;
  }

  .hvbkfs {
    font-size: 13px;
  }
 
  
  .double,
  .triple,
  .triplec,
  .quadruple,
  .quadruplen {
    top: 10px;
    left: 10px;
    bottom: 10px;
    right: 10px;
  }

  .room-control-left{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    padding: 5px;
    border-radius: 30% 0 0 30%;
  }

  .room-control-right{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    padding: 5px;
    border-radius:  0 30% 30% 0 ;
  }

}

@media(max-width:640px) {
  /*book*/
  .modal-content{
    width: 75%;
    left: 10%;
    height: 480px;
  }
  .close{
    transform: translateY(-25px) translateX(15px);
  }
  .tel{
    font-size: 20px;
  }
  .warning{
    font-size: 18px;
  }
  .content h2{
    font-size: 16px;
  }
  .content li{
    font-size: 14px;
  }
  .telicon{
    width: 40px;
    height: 40px;
  }

  .room-section-1{
    height: 60vh;
  }

  .room-title h1 {
    font-size: 20px;
  }

  .room-title h2 {
    font-size: 40px;
    margin-top: 20px;
  }

  .topside {
    flex-basis: 5%;
  }

  .topside h1 {
    font-size: 15px;

  }

  .midside p {
    font-size: 14px;
  }

  .hvbkfs {
    font-size: 13px;
  }
  .price{
    font-size: 18px;
  }
  .dr{
    font-size: 14px;
  }
}

@media(max-width:540px) {
  .modal-content{
    padding: 10px;
    
    top:13%;
  }
  .content{
    max-height: 85%;
  }
  .close{
    transform: translateY(-25px) translateX(15px);
  }
  .tel{
    font-size: 16px;
  }
  .warning{
    font-size: 14px;
  }
  .content h2{
    font-size: 14px;
  }
  .content li{
    font-size: 14px;
  }
  .telicon{
    width: 30px;
    height: 30px;
  }

  .room-section-1{
    height: 45vh;
  }
  
  .room-title h1 {
    font-size: 16px;
  }

  .room-title h2 {
    font-size: 30px;
  }

  .topside {
    flex-basis: 5%;
  }

  .topside h1 {
    font-size: 13px;

  }

  .midside p {
    font-size: 13px;
    margin-top: 0.5rem;
    padding-left: 15px;
  }

  .hvbkfs {
    font-size: 12px;
  }

  .buttoncheck {
    height: 30px;
    width: 70%;
    
  }

  .p-space{
    font-size: 12px;
  }
  
}

@media(max-width:540px) {

  .room-section-1{
    height: 40vh;
  }
  
  .room-title h1 {
    font-size: 14px;
  }

  .room-title h2 {
    font-size: 25px;
  }
}
@media(max-width:400px){
  .modal-content{
    padding: 10px;
  }
  .content{
    max-height: 85%;
  }
  .close{
    transform: translateY(-25px) translateX(15px);
    font-size:30px;
  }
  .tel{
    font-size: 15px;
  }
  .warning{
    font-size: 13px;
  }
  .content h2{
    font-size: 12px;
  }
  .content li{
    font-size: 12px;
  }
  .telicon{
    width: 25px;
    height: 25px;
  }
}