/******************************************************************/
.circle-btn{
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center; 
    justify-content: center;
    background:var(--card);
    border-radius:50%;
    border:none;
    padding:14px; /* 增大按鈕尺寸 */
    cursor:pointer;
    box-shadow:0 3px 10px rgba(0,0,0,.1); /* 增大陰影範圍 */
    font-size: 24px;
    position: fixed;
    top: 5px;
    right: 5px;
    z-index: 999;
}

.circle-btn-lang{
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center; 
    justify-content: center;
    background:var(--card);
    border-radius:50%;
    border:none;
    padding:14px; /* 增大按鈕尺寸 */
    cursor:pointer;
    box-shadow:0 3px 10px rgba(0,0,0,.1); /* 增大陰影範圍 */
    font-size: 24px;
    position: fixed;
    top: 65px;
    right: 5px;
    z-index: 999;
}

.circle-btn-tip{
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center; 
    justify-content: center;
    background:var(--card);
    border-radius:50%;
    border:none;
    padding:14px; /* 增大按鈕尺寸 */
    cursor:pointer;
    box-shadow:0 3px 10px rgba(0,0,0,.1); /* 增大陰影範圍 */
    font-size: 24px;
    position: fixed;
    top: 125px;
    right: 5px;
    z-index: 999;
}

.circle-btn-oracle{
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center; 
    justify-content: center;
    background:var(--card);
    border-radius:50%;
    border:none;
    padding:14px; /* 增大按鈕尺寸 */
    cursor:pointer;
    box-shadow:0 3px 10px rgba(0,0,0,.1); /* 增大陰影範圍 */
    font-size: 24px;
    position: fixed;
    top: 125px;
    right: 5px;
    z-index: 999;
}

.oracle-icon {
/* Make the image take up 50% of the button's width */
  width: 180%; 
  /* Maintain aspect ratio */
  height: auto;
}


.tip_hide{
  display: none;
}


/* The Modal : tip frame :  (background) */
.tip-icon {
/* Make the image take up 50% of the button's width */
  width: 150%; 
  /* Maintain aspect ratio */
  height: auto;
}
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Style for the iframe container */
#iframe-container {
  width: 100%;
  height: 500px; /* Set a fixed height for visibility */
}


/* === modalLang 專用樣式 : modal for language selection === */
.modalLang-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 25, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 16px;
}
.modalLang-backdrop.open { display: flex; }

.modalLang {
  width: 320px;
  max-width: 95%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
  overflow: hidden;
}
.modalLang header {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modalLang header h3 {
  margin: 0;
  font-size: 16px;
}
.modalLang .close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}
.modalLang .options {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modalLang .option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .08s, transform .06s;
}
.modalLang .option:hover {
  background: #f6f9ff;
  transform: translateY(-1px);
}
.modalLang .option[aria-checked="true"] {
  background: linear-gradient(90deg, #e9f5ff, #fff);
  border-left: 3px solid #0077cc;
}
.modalLang .option .name {
  font-size: 15px;
}
.modalLang .option .desc {
  font-size: 12px;
  color: #666;
}