body {
  background: url('/chatimg/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #ffffff; /* 設定字體顏色為白色，避免與背景衝突 */
}
.container {
  background: rgba(0, 0, 0, 0.6); /* 加入黑色透明背景，提高可讀性 */
  padding: 20px;
  border-radius: 10px;
  margin-top: 50px;
}
.form-control {
  background: rgba(255, 255, 255, 0.8); /* 讓輸入框有白色半透明背景 */
  border: none;
}
.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}
.interesting .checkbox {
display: inline-block;
}
        
#ai-popup .popup-content {
  position: fixed;
  padding: 20px;
  background: white;
  border-radius: 30px 0 30px 30px; /* 右上角設置為直角，其餘角保持圓角 */
  max-width: 920px;
  top: 100px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 60vh;
  min-height: 700px;
  margin-left: 10%;
  width: 80%;
}

#ai-popup {
  display: none;
  position: fixed;
  z-index: 9;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background-color: black;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  transition: background-color 0.3s ease;
}

.close-btn:hover {
  background-color: white;
  color: black;
}

.chat-box {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.ai-message, .user-message {
  display: flex;
  margin-bottom: 10px;
}

.ai-message .ai-comment {
  text-align: left;
  padding: 10px;
  border-radius: 10px;
  color: rebeccapurple;
}

.user-message {
  justify-content: flex-end;
}

.user-message .user-comment {
  background-color: #6c6ce5;
  color: white;
  padding: 10px;
  border-radius: 10px;
  max-width: 70%;
}

.chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.chat-input input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.chat-input button {
  padding: 10px;
  margin-left: 10px;
  background-color: #6c6ce5;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #5a5abe;
}
#call_ai {
  position: fixed;
  bottom: 20px;
  right: 70px;
  width: 80px;
  display: none;
}

.locale-chooser {
  display: inline-block;
  float: right;
  font-size: 14px;
}

.locale-chooser a {
  padding: 0 5px 0;
  border: 1px solid;
  margin: 3px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 920px;
  }
}
@media (min-width: 1366px) {
  .container {
    max-width: 1080px;
  }
}
@media only screen and (max-height: 500px) {
  .scroll-down {
    display: none;
  }
}
@media only screen and (max-height: 667px) {
  header.desktop-header-2 .footer {
    margin-top: 100px;
  }
}

@media (max-height: 667px) {
  #ai-popup .popup-content {
    top: 20px;
    height: 90vh;
    min-height: 90vh;
  }
}


.shadow-dark, .desktop-header-3 .dropdown-menu, .form-control, .form-control:focus {
  -webkit-box-shadow: 0px 5px 20px 0px rgba(69, 67, 96, 0.1);
  -moz-box-shadow: 0px 5px 20px 0px rgba(69, 67, 96, 0.1);
  box-shadow: 0px 5px 20px 0px rgba(69, 67, 96, 0.1);
}
.loader-thin {
  height: 3px;
  width: 60px;
  background: linear-gradient(#000 0 0) right/51% 100% no-repeat;
  display: flex;
  animation: l10-0 2s linear infinite;
}
.loader-thin:before,
.loader-thin:after {
  content: "";
  width: 15px;
  background: #000;
  animation: l10-1 2s linear infinite;
}
.loader-thin:after {
  animation-delay: -1s;
  --s:-1;
}
@keyframes l10-1 {
  0%,100%{transform:scaleX(var(--s,1)) rotate(0)}
  25%,75%   {transform:scaleX(var(--s,1)) rotate(180deg)}
}

@keyframes l10-0 {
  0%,49.9%{transform:scaleX( 1)}
  50%,100%{transform:scaleX(-1)}
}

.loading-text {
  color: #ccc;
}

.loading-effect .loading-container {
position: absolute;
    top: 40%;
    left: 50%;
}

.loading-effect .square {
  width: 8px;
  height: 30px;
  background: rgb(71, 195, 248);
  border-radius: 10px;
  display: block;
  /*margin:10px;*/
  -webkit-animation: turn 2.5s ease infinite;
  animation: turn 2.5s ease infinite;
  box-shadow: rgb(71, 195, 248) 0px 1px 15px 0px;
}

.loading-effect .top {
  position: absolute;
  left: 40%;
  top: 50%;
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}

.loading-effect .bottom {
  position: absolute;
  left: 40%;
  top: 50%;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

.loading-effect .left {
  position: absolute;
  left: 40%;
  top: 50%;
}

.loading-effect .right {
  position: absolute;
  left: 40%;
  top: 50%;
  -webkit-transform: rotate(-180deg);
  transform: rotate(-180deg);
}

@-webkit-keyframes turn {
  0% {
    transform: translateX(0) translateY(0) rotate(0);
  }

  50% {
    transform: translateX(400%) translateY(100%) rotate(90deg);
  }

  100% {
    transform: translateX(0) translateY(0) rotate(0);
  }
}

@keyframes turn {
  0% {
    transform: translateX(0) translateY(0) rotate(0);
  }

  70% {
    transform: translateX(400%) translateY(100%) rotate(90deg);
  }

  100% {
    transform: translateX(0) translateY(0) rotate(0);
  }
}