* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Noto Sans TC";
}
/* body {
  display: flex;
  flex-direction: column;
} */
header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 1;
  /* box-shadow: 0 1px 3px black; */
}
.navbar {
  height: 54px;
}
.logo-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-wrapper h2 {
  font-size: 30px;
  line-height: 34px;
  color: #448899;
  letter-spacing: 0;
}
.logo-wrapper ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-wrapper ul li {
  padding: 10px;
  text-decoration: none;
  height: 34px;
  line-height: 16px;
  font-size: 16px;
  font-weight: 500;
  color: #666666;
  &:hover {
    cursor: pointer;
    color: #000000;
  }
}

/* Index.html */
.search-bg {
  width: 100%;
  background-image: url("../images/taipei_full.png");
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  height: 320px;
  padding-top: 75px;
  padding-bottom: 76px;
}
.slogan-search-wrapper {
  padding: 10px;
  max-width: 1200px;
  margin: auto;
}
.slogan {
  margin-bottom: 25px;
  color: #ffffff;
}
.slogan-big {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 24px;
}
.search {
  width: 460px;
  border-radius: 5px;
  border-color: #aabbcc;
  box-shadow: 0 0 20px 0 #aabbcc;
}
.search input {
  width: 400px;
  height: 46px;
  line-height: 46px;
  vertical-align: middle;
  padding: 15px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 5px 0 0 5px;
  border: 0;
}
.search input::placeholder {
  color: #757575;
  font-weight: bold;
}
.search .search-img {
  display: inline-block;
  background-color: #448899;
  background-image: url("../images/search.png");
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
  background-size: 30px 30px;
  height: 46px;
  width: 60px;
  border-radius: 0 5px 5px 0;
  &:hover {
    cursor: pointer;
  }
}
.index-main {
  /* min-height: 966px; */
  padding: 40px;
}
.art-list-bar {
  margin: auto;
  max-width: 1200px;
  width: 100%;
  padding: 0 15px 20px;
  display: flex;
  align-items: center;
}
.slide-left {
  opacity: 0.5;
  &:hover {
    cursor: pointer;
    opacity: 1;
  }
}
.slide-left img {
  vertical-align: middle;
}
.slide-right {
  opacity: 0.5;
  &:hover {
    cursor: pointer;
    opacity: 1;
  }
}
.slide-right img {
  vertical-align: middle;
}
.list-wrapper {
  width: 90%;
  flex-grow: 1;
  padding: 13px 10px;
}

.art-list-bar ul {
  overflow-x: hidden;
  width: 100%;
  list-style: none;
  display: flex;
  align-items: center;

  flex-wrap: nowrap;
  scroll-behavior: smooth;
}
.art-list-bar ul li {
  padding: 0 15px;
  height: 24px;
  font-weight: bold;
  color: #666666;
  white-space: nowrap;
  &:hover {
    cursor: pointer;
    color: #000000;
  }
}
.attractions {
  padding: 15px;
  max-width: 1200px;
  width: 100%;
  min-height: 272px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: min-content;
  grid-gap: 30px;
}
.attractions > div {
  /* width: 200px; */
  height: 242px;
}
.attraction-link {
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  &:hover {
    opacity: 0.5;
  }
}
.data-container {
  border: 1px solid #e8e8e8;
  border-radius: 5px;
}
.img-container {
  position: relative;
}

.img-container img {
  object-fit: cover;
  object-position: center;
  display: block;
  width: 100%;
  height: 197px;
  border-radius: 5px 5px 0 0;
}

.img-container .attraction-name {
  position: absolute;
  bottom: 0;
  padding: 10px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.attractions .detail {
  color: #757575;
  font-weight: bold;
  padding: 10px;
  height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

/* Attraction.html */
.img-profile {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}
.img-current {
  width: 540px;
  height: 400px;
  position: relative;
}
.slider {
  /* overflow: hidden; */
  /* display: flex; */
  width: 100%;
  height: 100%;
  /* scroll-behavior: smooth; */
}
.img-left,
.img-right {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
  transition: all 0.2s ease-in;
  &:hover {
    opacity: 1;
    cursor: pointer;
  }
}
.img-left {
  background-image: url(../images/btn_leftArrow.png);
  left: 10px;
}
.img-right {
  background-image: url(../images/btn_rightArrow.png);
  right: 10px;
}
.profile-img {
  animation: fadeIn 1s ease-in-out forwards;
  position: relative;
  z-index: -1;
}
@keyframes fadeIn {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.dot-container {
  position: absolute;
  bottom: 10px;
  width: 100%;
}
.dot-list {
  list-style: none;
  display: flex;
  justify-content: center;
}
.dot-list li {
  width: 12px;
  height: 12px;
  border: 1px solid white;
  border-radius: 50%;
  background-color: #ffffff;
  margin: 0 6px;
  opacity: 0.7;
  &:hover {
    cursor: pointer;
  }
}
li[class="dot active"] {
  background-color: #000000;
}
.img-current img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}
.profile-img {
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}
.hidden {
  opacity: 0;
}
.attraction-profile {
  width: 600px;
  height: 100%;
  color: #666666;
}
.Bold24 {
  font-weight: 700;
  font-size: 24px;
  vertical-align: middle;
}
.Bold16 {
  font-weight: 700;
  font-size: 16px;
}
.Med16 {
  font-weight: 400;
  font-size: 16px;
}
.profile-form {
  background-color: #e8e8e8;
  padding: 15px 20px;
  height: 302px;
  border-radius: 5px;
}
.profile-form p {
  margin-bottom: 15px;
}
.profile-btn {
  margin-top: 10px;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #448899;
  color: #ffffff;
  border-radius: 5px;
  border: none;
  font-weight: 400;
  font-size: 19px;
  &:hover {
    cursor: pointer;
  }
}
.profile-form input[type="radio"] {
  width: 22px;
  height: 22px;
  position: relative;
}
.profile-form label,
.profile-form input,
.profile-form span {
  vertical-align: middle;
}

.single-line {
  max-width: 1200px;
  margin: 40px auto;
  border-bottom: 1px solid #e8e8e8;
}
.infors {
  max-width: 1200px;
  padding: 10px;
  color: #666666;
  margin: 0 auto 40px;
  min-height: 362px;
}
/* 遮罩 */
.overlay {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.25);
  display: none;
}
.overlay.active {
  display: block;
}
/* 登入表單 */
.form-container {
  z-index: 3;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  border-radius: 5px;
  box-shadow: 0 4px 60px 0 #aaaaaa;
  background-color: #ffffff;
  display: none;
}
.close-btn-container {
  position: absolute;
  top: 20px;
  right: 10px;
  padding: 7px;
  &:hover {
    cursor: pointer;
  }
}
.close-btn {
  background-image: url(../images/icon_close.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 16px;
  height: 16px;
}

.sign-up.active {
  display: block;
}
.sign-in.active {
  display: block;
}
.decorator-bar {
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, #66aabb, #337788);
  border-radius: 5px 5px 0 0;
}
.general-form {
  width: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.general-form h3 {
  font-size: 24px;
  font-weight: 700;
  color: #666666;
  align-items: center;
  margin: 0 auto 15px;
}
.general-form > input {
  height: 47px;
  margin-bottom: 10px;
  border-radius: 5px;
  padding: 15px;
  color: #757575;
  border: 1px solid #cccccc;
}
.general-form > button {
  height: 46px;
  background-color: #448899;
  color: #ffffff;
  font-size: 19px;
  font-weight: 400;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  &:hover {
    cursor: pointer;
  }
}
.error-msg {
  color: red;
  margin: 10px auto;
}
.general-form .form-msg {
  margin: 0 auto;
  color: #666666;
}
.form-msg .click-signup,
.click-signin {
  text-decoration: underline;
  &:hover {
    cursor: pointer;
    color: #000000;
  }
}
/* booking page */
.no-schedule {
  display: none;
  margin: 0 auto 40px;
  max-width: 980px;
}
.Bold19 {
  font-weight: 700;
  font-size: 19px;
  color: #666666;
}
.booking-headline {
  padding: 0 10px;
  margin: 40px auto 30px;
  max-width: 1000px;
}
.itinerary-container {
  display: flex;
  max-width: 980px;
  margin: 0 auto;
}
.itinerary-img {
  width: 250px;
  height: 200px;
  margin-right: 30px;
  object-fit: cover;
  object-position: center;
}
.itinerary-info {
  position: relative;
  flex-grow: 1;
}

.itinerary-info h3 {
  color: #448899;
  margin-bottom: 20px;
}
.delete-trash {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  &:hover {
    cursor: pointer;
  }
}

.itinerary-info p {
  margin-bottom: 10px;
  color: #666666;
  font-weight: 700;
}
.itinerary-info p > span {
  font-weight: 400;
}
.contact-container,
.payment-container {
  max-width: 980px;
  margin: 0 auto;
}
.contact-container h3,
.payment-container h3 {
  margin-bottom: 20px;
}
.contact-container p,
.payment-container p {
  margin-bottom: 15px;
}
.contact-container label,
.payment-container label {
  color: #666666;
}
.contact-container input,
.payment-container input {
  height: 38px;
  border-radius: 5px;
  border: 1px solid #e8e8e8;
  padding: 10px;
}
.payment-container input {
  color: #757575;
  font-weight: 500;
}
.confirm-container {
  max-width: 980px;
  height: 100px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.confirm-container p {
  margin-bottom: 22px;
}
.confirm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 10px 20px;
  font-size: 19px;
  font-weight: 400;
  color: #ffffff;
  background-color: #448899;
  border: none;
  border-radius: 5px;
  &:hover {
    cursor: pointer;
  }
}
/* thankyou */
.order-success-msg {
  max-width: 1200px;
  text-align: center;
  margin: 40px auto 0;
  color: #666666;
}
.order-msg,
.order-number {
  text-align: center;
  margin: 50px auto;
  color: #666666;
}
/* tappay style */
.tpfield-label,
.tpfield {
  vertical-align: middle;
}
.tpfield {
  padding: 10px;
  height: 38px;
  border-radius: 5px;
  border: 1px solid #e8e8e8;
  width: 200px;
  color: #757575;
}
.tpfield-container {
  margin-bottom: 15px;
}
/* footer */
footer {
  width: 100%;
  height: auto;
  background-color: #757575;
  padding: 40px;
  text-align: center;
}
footer .copyright {
  width: 100%;
  font-size: 14px;
  color: #ffffff;
  font-weight: bold;
}

@media (max-width: 1200px) {
  .search-bg {
    padding-top: 76px;
    padding-bottom: 75px;
  }
  .slogan-search-wrapper {
    padding: 20px 20px;
  }
  .art-list-bar {
    padding: 0 0 20px;
  }
  .attractions {
    grid-template-columns: repeat(2, 1fr);
  }
  .list-wrapper {
    width: 80%;
    flex-grow: 1;
  }
  .img-profile {
    flex-direction: column;
  }
  .img-current {
    width: 80%;
    height: 400px;
    margin-bottom: 20px;
  }
  .attraction-profile {
    width: 80%;
  }
  .single-line {
    width: 85%;
  }
  .infors {
    width: 80%;
  }
  .booking-main {
    padding: 0 40px;
  }
  .no-schedule {
    padding: 0 40px;
  }
}

@media (max-width: 600px) {
  .index-main {
    padding: 40px 15px;
  }
  .slogan-search-wrapper {
    padding: 20px 20px;
  }
  .search {
    width: 320px;
  }
  .search input {
    width: 260px;
  }
  .art-list-bar {
    width: 100%;
    padding: 0 0 20px;
  }
  .list-wrapper {
    width: 60%;
    flex: 1;
  }
  .attractions {
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(1, 1fr);
  }
  .img-profile {
    padding: 0;
    margin: 0;
  }
  .img-current {
    min-width: 100%;
    height: 350px;
  }
  .img-current img {
    border-radius: 0;
  }
  .attraction-profile {
    width: 100%;
    padding: 0 10px;
    min-height: 390px;
  }
  .single-line {
    margin: 40px 10px;
    min-width: 95%;
  }
  .under-trash-line {
    margin-top: 30px;
  }
  .infors {
    width: 100%;
    padding: 0 20px;
    min-height: 700px;
  }
  .profile-form {
    height: auto;
  }
  .booking-main {
    padding: 10px;
  }
  .itinerary-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
  }
  .itinerary-info {
    width: 100%;
    margin-top: 30px;
    padding-bottom: 30px;
  }
  .itinerary-img {
    margin: 0;
    width: 100%;
  }
  .delete-trash {
    right: 0;
    top: 85%;
  }
  .no-schedule {
    padding: 0 10px;
  }
}
/* .tpfield {
  height: 40px;
  width: 300px;
  border: 1px solid gray;
  margin: 5px 0;
  padding: 5px;
} */
