html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  font-family: "Noto Sans TC";
  /* background-color: #fffef9!important; */
}

html {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption,
th,
td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q,
blockquote {
  quotes: none;
}

q:before,
q:after,
blockquote:before,
blockquote:after {
  content: "";
  content: none;
}

a img {
  border: none;
}

img {
  display: block;
  border: none;
}

html *,
html *:before,
html *:after {
  font-size: 16px;
  font-family: "Noto Sans TC";
}

/*# sourceMappingURL=reset.css.map */

.top-box {
  margin: auto;
  margin-top: 120px;
  display: flex;
  align-items: center;
  max-width: 1400px;

}

.top-box a {
  display: block;
}

.news_sec .container {
  padding: 30px 12px;
}

.sec_title {
  margin: 30px auto 60px auto;
  display: flex;
  align-items: center;
  font-size: 42px;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 5px;
  color: #243446;
}

.news_sec .news_content_right {
  position: relative;
  width: 80%;
  margin: 0 auto;
  padding-bottom: 35%;
}

.news_sec .news_content_right iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.top-box .left {
  width: 70%;
}

.top-box .right {
  width: 30%;
  text-align: center;
  color: #d3664a;
}

.mobile {
  display: none;
}

.top-box .right .topic1 {
  font-size: 36px;
  color: #243446;
  font-weight: 600;
  letter-spacing: 5px;
  margin: 10px auto;
}

.top-box .right .topic2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 5px;
  margin: 20px auto;
}

.top-box .right .topic3 {
  font-size: 24px;
  letter-spacing: 5px;
  margin-top: 40px;
}

.news_sec .news_content {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.news_sec .news_content_left {
  width: 43%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.news_sec .news_content_left .news_content_box {
  margin: 20px 0;
}

.news_sec .news_content_left .news_content_box .news_date_p {
  color: #d3664a;
  font-size: 24px;
  font-weight: 600;
  margin: 10px 0;
}

.news_sec .news_content_left .news_content_box .news_content_p {
  color: #2a3a4b;
  font-size: 28px;
  font-weight: 400;
  margin: 10px 0;
}

.news_sec .news_content_right {
  width: 57%;
}

.title-p {
  display: flex;
  gap: 5px;
}

.title-p img {
  width: 20px;
  height: 20px;
}



.top-box .right .btn {
  width: 80%;
  margin: auto;
  background: #dc684a;
  border: 8px solid #76a7b8;
  color: white;
  margin-top: 6%;
  padding: 28px;
  font-size: 2vw;
  max-width: fit-content;
  border-radius: 50px;
  letter-spacing: 5px;
  cursor: pointer;
  animation: pulse 1s ease-in-out infinite;
}

/* 定義放大縮小動畫 */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.course_content {
  display: flex;
}

.course_content .course_content_left,
.course_content_right {
  width: 10%;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  height: fit-content;
  z-index: 50;
}

.course_content .course_content_main {
  width: 80%;
}

.course_content .course_content_main .button-part {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.course_content .course_content_main .btn {
  margin: 10px auto;
  background: #dc684a;
  border: 5px solid #76a7b8;
  color: white;
  padding: 20px 30px;
  font-size: 24px;
  max-width: fit-content;
  border-radius: 50px;
  letter-spacing: 5px;
  cursor: pointer;
  min-width: 185px;
  position: relative;
  text-align: center;
  /* animation: pulse 1s ease-in-out infinite; */
}

.course_content .course_content_main .btn img {
  position: absolute;
  top: -30%;
  width: 20%;
  left: 0;
  transform: translate(-50%);
}

.course_content .course_content_main .content p {
  font-size: 28px;
  line-height: 3rem;
  color: #7c7f7e;
}

.course_content .course_content_main .content .content1 {
  width: 80%;
  margin: auto;
}

.course_content .course_content_main .content .content1 .sub_title {
  margin: 30px auto 40px auto;
  display: flex;
  align-items: center;
  font-size: 32px;
  justify-content: center;
  font-weight: 500;
  letter-spacing: 5px;
  color: #d3664a;
}

.course_content .course_content_main .content .content2 {
  width: 90%;
  margin: auto;
  clear: both;
}

/* ========================================================================== */
.game_content {
  display: flex;
}

.game_content .game_content_left,
.game_content_right {
  width: 10%;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  height: fit-content;
  z-index: 50;
}

.game_content .game_content_main {
  width: 80%;
}

.game_content .game_content_main .content p {
  font-size: 28px;
  line-height: 3rem;
  color: #7c7f7e;
}

.game_content .game_content_main .content .content1 {
  width: 80%;
  margin: auto;
}

.game_content .game_content_main .content .content2 {
  width: 80%;
  margin: auto;
  color: #d3664a;
  text-align: center;
  position: relative;
  z-index: 2;
}

.game_content .game_content_main .content .content2 img {
  position: absolute;
  top: -15%;
  left: 52%;
  width: 30%;
  z-index: -1;
}

.game_content .game_content_main .content .content2 .title {
  font-size: 60px;
  margin: 1rem;
  letter-spacing: 10px;
  font-weight: 500;
}

.game_content .game_content_main .content .content2 .subtitle {
  font-size: 40px;
  margin: 2rem;
  letter-spacing: 1.5rem;
  font-weight: 500;
}

.game_content .game_content_main .content .content2 .subtitle2 {
  font-size: 25px;
  margin: 2rem;
  letter-spacing: 1rem;
  font-weight: 400;
  color: #60afcd
}

.game_content .game_content_main .content .content_box {
  width: 90%;
  border: 10px solid #60afcd;
  background-color: #d3664a;
  border-radius: 25px;
  margin: auto;
  color: white;
  text-align: center;
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}

.game_content .game_content_main .content .content_box .title {
  text-align: center;
  font-size: 30px;
  letter-spacing: 10px;
  padding: 2rem;
  font-weight: 500;
}

.game_content .game_content_main .content .content_box .content {
  font-size: 24px;
  display: flex;
  width: 90%;
  margin: auto;
  padding: 0.3rem;
  text-align: left;
}

.game_content .game_content_main .content .content_box .content .left {
  color: #243446;
  line-height: 2.3rem;
  font-size: 22px;
}

.game_content .game_content_main .content .content_box .content .right {
  color: white;
  line-height: 2.3rem;
  font-size: 22px;
  width: 80%;
}

.game_content .game_content_main .content .content_box .remark {
  width: 90%;
  margin: auto;
  padding: 0.3rem;
  text-align: left;
  color: #243446;
}

.game_content .game_content_main .content .content_box .remark .left {
  font-size: 24px;
  color: #243446;
  margin-bottom: 0.8rem;
}

.game_content .game_content_main .content .content_box .remark p {
  font-size: 20px;
  color: #243446;
  line-height: 2rem;
  text-indent: 1rem;
}

.game_content .game_content_main .content .content_box .bottom {
  width: 90%;
  margin: auto;
  padding: 1rem;
  display: flex;
  color: #243446;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.game_content .game_content_main .content .content_box .bottom .button {
  /* width: 50%; */
  border: 3px solid white;
  border-radius: 60px;
  max-width: 350px;
  padding: 1rem;
  background-color: #60afcd;
  cursor: pointer;
}

.game_content .game_content_main .content .content_box .bottom .title {
  font-size: 26px;
  color: white;
  letter-spacing: 5px;
  font-weight: 500;
  padding: 1rem;
}

.game_content .game_content_main .content .content_box .bottom .subtitle {
  font-size: 20px;
  color: #1d3850;
  letter-spacing: 5px;
  font-weight: 500;
  padding: 0rem 1rem 1rem 1rem;
}

.game_content .game_content_main .rule {
  width: 90%;
  margin: 4rem auto;
}

.game_content .game_content_main .rule img {
  width: 100%;
  border-radius: 25px;
}

.game_content .game_content_main .game {
  width: 90%;
  margin: 4rem auto 0 auto;
  position: relative;
}

.game_content .game_content_main .game img {
  width: 100%;
}

.game_content .game_content_main .game .dice1,
.game_content .game_content_main .game .dice2,
.game_content .game_content_main .game .dice3,
.game_content .game_content_main .game .dice4,
.game_content .game_content_main .game .dice5,
.game_content .game_content_main .game .dice6 {
  width: 7%;
  position: absolute;
}

.game_content .game_content_main .game .dice1 {
  bottom: 37%;
  left: 28%;
}

.game_content .game_content_main .game .dice2 {
  bottom: 45%;
  left: 39%;
}

.game_content .game_content_main .game .dice3 {
  bottom: 45%;
  left: 52%;
}

.game_content .game_content_main .game .dice4 {
  bottom: 37%;
  left: 63%;
}

.game_content .game_content_main .game .dice5 {
  bottom: 30%;
  left: 39%;
}

.game_content .game_content_main .game .dice6 {
  bottom: 30%;
  left: 52%;
}

/* 3D骰子容器 */
.game_content .game_content_main .game .dicesContainer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* 調整六顆3D骰子的位置 */
.game_content .game_content_main .game .dicesContainer .diceWrap.dice1 {
  position: absolute;
  bottom: 37%;
  left: 28%;
}

.game_content .game_content_main .game .dicesContainer .diceWrap.dice2 {
  position: absolute;
  bottom: 45%;
  left: 39%;
}

.game_content .game_content_main .game .dicesContainer .diceWrap.dice3 {
  position: absolute;
  bottom: 45%;
  left: 52%;
}

.game_content .game_content_main .game .dicesContainer .diceWrap.dice4 {
  position: absolute;
  bottom: 37%;
  left: 63%;
}

.game_content .game_content_main .game .dicesContainer .diceWrap.dice5 {
  position: absolute;
  bottom: 30%;
  left: 39%;
}

.game_content .game_content_main .game .dicesContainer .diceWrap.dice6 {
  position: absolute;
  bottom: 30%;
  left: 52%;
}

/* 調整骰子尺寸以適應多顆骰子 */
.game_content .game_content_main .game .dicesContainer .diceWrap {
  width: 50px;
  height: 50px;
  top: auto;
}

.game_content .game_content_main .game .dicesContainer .diceWrap .dice {
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  margin-top: -25px;
  margin-left: -25px;
}

.game_content .game_content_main .game .dicesContainer .diceWrap .dice .diceFace {
  width: 50px;
  height: 50px;
}

.game_content .game_content_main .game .dicesContainer .diceWrap .dice .front,
.game_content .game_content_main .game .dicesContainer .diceWrap .dice .up,
.game_content .game_content_main .game .dicesContainer .diceWrap .dice .left,
.game_content .game_content_main .game .dicesContainer .diceWrap .dice .right,
.game_content .game_content_main .game .dicesContainer .diceWrap .dice .bottom,
.game_content .game_content_main .game .dicesContainer .diceWrap .dice .back {
  transform: translateZ(25px);
}

.game_content .game_content_main .game .dicesContainer .diceWrap .dice .up {
  transform: rotateX(90deg) translateZ(25px);
}

.game_content .game_content_main .game .dicesContainer .diceWrap .dice .left {
  transform: rotateY(-90deg) translateZ(25px);
}

.game_content .game_content_main .game .dicesContainer .diceWrap .dice .right {
  transform: rotateY(90deg) translateZ(25px);
}

.game_content .game_content_main .game .dicesContainer .diceWrap .dice .bottom {
  transform: rotateX(-90deg) translateZ(25px);
}

.game_content .game_content_main .game .dicesContainer .diceWrap .dice .back {
  transform: rotateX(180deg) translateZ(25px);
}

.game_content .game_content_main .game_button {
  width: 50%;
  border: 5px solid #60afcd;
  border-radius: 60px;
  max-width: 350px;
  padding: 1.5rem 1rem;
  font-size: 24px;
  background-color: #d3664a;
  text-align: center;
  letter-spacing: 10px;
  cursor: pointer;
  margin: auto;
  color: white;
  cursor: pointer;
}

/* =============  Four sec======================== */
.four_content {
  display: flex;
}

.four_content .four_content_main {
  width: 90%;
  margin: auto;
}

.four_content .four_content_main .content p {
  font-size: 28px;
  line-height: 3rem;
  color: #7c7f7e;
}

.four_content .four_content_main .content .content1 {
  width: 90%;
  margin: auto;
}

.four_content .four_content_main .content .content1 p span {
  font-size: 28px;
  color: #de6649;
}

.four_content .four_content_main .content .content2 {
  width: 80%;
  margin: auto;
  color: #d3664a;
  text-align: center;
  position: relative;
  z-index: 2;
}

.four_content .four_content_main .content .content2 .title {
  font-size: 60px;
  margin: 1rem;
  letter-spacing: 10px;
  font-weight: 500;
}

.four_content .four_content_main .content .content2 .subtitle {
  font-size: 40px;
  margin: 2rem;
  letter-spacing: 1.5rem;
  font-weight: 500;
}

.four_content .four_content_main .content .content2 .subtitle2 {
  font-size: 25px;
  margin: 2rem;
  letter-spacing: 1rem;
  font-weight: 400;
  color: #60afcd
}

.four_content .four_content_main .content .content_box {
  width: 90%;
  max-width: 850px;
  border: 10px solid #60afcd;
  background-color: #d3664a;
  border-radius: 25px;
  margin: auto;
  color: white;
  text-align: center;
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}

.four_content .four_content_main .content .content_box .title {
  text-align: center;
  font-size: 30px;
  letter-spacing: 10px;
  padding: 2rem;
  font-weight: 500;
}

.four_content .four_content_main .content .content_box .content {
  font-size: 24px;
  display: flex;
  width: 90%;
  margin: auto;
  padding: 0.3rem;
  text-align: left;
}

.four_content .four_content_main .content .content_box .content .left {
  color: #243446;
  line-height: 2.3rem;
  font-size: 22px;
}

.four_content .four_content_main .content .content_box .content .right {
  color: white;
  line-height: 2.3rem;
  font-size: 22px;
  width: 80%;
}


.four_content .four_content_main .content .content_box .bottom {
  width: 90%;
  margin: auto;
  padding: 1rem;
  display: flex;
  color: #243446;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.four_content .four_content_main .content .content_box .bottom .button {
  border: 3px solid white;
  border-radius: 60px;
  max-width: 350px;
  padding: 1rem;
  background-color: #60afcd;
  cursor: pointer;
}

.four_content .four_content_main .content .content_box .bottom .title {
  font-size: 26px;
  color: #1d3850;
  letter-spacing: 5px;
  font-weight: 500;
  padding: 1rem;
}

.four_content .four_content_main .content .content_box2 {
  width: 90%;
  border: 5px solid #60afcd;
  border-radius: 25px;
  margin: auto;
  color: white;
  text-align: center;
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}

.four_content .four_content_main .content .content_box2 .title {
  font-size: 30px;
  font-weight: 500;
  color: #d3664a;
  margin: 30px auto 60px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
}

.four_content .four_content_main .content .content_box2 .content {
  gap: 1rem;
  font-size: 24px;
  display: flex;
  width: 90%;
  margin: auto;
  padding: 0.3rem;
  text-align: left;
  max-width: 800px;
  justify-content: center;
}

.four_content .four_content_main .content .content_box2 .content .left {
  line-height: 2.3rem;
  font-size: 22px;
  color: #de6649;
}

.four_content .four_content_main .content .content_box2 .content .right {
  line-height: 2.3rem;
  font-size: 22px;
  width: 80%;
  color: #7c7f7e;
}


.four_content .four_content_main .content .content_box2 .bottom {
  width: 90%;
  margin: auto;
  padding: 1rem;
  display: flex;
  color: #243446;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.four_content .four_content_main .content .content_box2 .bottom .button {
  width: 50%;
  border: 3px solid white;
  border-radius: 60px;
  max-width: 350px;
  padding: 1rem;
  background-color: #60afcd;
  cursor: pointer;
}

.four_content .four_content_main .content .content_box2 .bottom .title {
  font-size: 26px;
  color: #1d3850;
  letter-spacing: 5px;
  font-weight: 500;
  padding: 1rem;
}

.four_content .four_content_main .content .content_box2 .table {
  width: 90%;
  margin: auto;
  font-size: 26px;
  color: #1d3850;
  letter-spacing: 5px;
  font-weight: 500;
  padding: 1rem;
}

.four_content .four_content_main .content .content_box2 .rowbox {
  display: flex;
  gap: 3px;
}

.four_content .four_content_main .content .content_box2 .rowbox .row1 {
  font-size: 30px;
  letter-spacing: 0px;
  display: flex;
  justify-content: flex-start;
  background-color: #60afcb;
  padding: 2rem 1.5rem;
  width: 33.33%;
  justify-content: center;
  align-items: center;
}

.four_content .four_content_main .content .content_box2 .rowbox .row1 img {
  width: 20%;
  margin-right: 20px;
}

.four_content .four_content_main .content .content_box2 .rowbox .row2 {
  font-size: 14px;
  letter-spacing: 0px;
  padding: 2rem 1.5rem;
  color: black;
  line-height: 1.3rem;
  width: 33.33%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.four_content .four_content_main .content .content_box2 .rowbox .row3 {
  font-size: 24px;
  text-align: center;
  letter-spacing: 0px;
  padding: 3rem 1.5rem;
  color: white;
  line-height: 2rem;
  font-weight: 400;
  background-color: #d3664a;
  width: 33.33%;
}

.four_content .four_content_main .content .content_box2 .remark {
  width: 90%;
  margin: auto;
  padding: 1rem;
}

.four_content .four_content_main .content .content_box2 .remark p {
  font-size: 18px;
  color: #7c7f7e;
  line-height: 2rem;
  font-weight: 400;
  text-align: left;
}

.four_content .four_content_main .button_part {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin: 20px auto;
  max-width: 800px;
}

.four_content .four_content_main .four_button {
  border: 5px solid #60afcd;
  border-radius: 60px;
  max-width: 350px;
  padding: 1.5rem 3rem;
  font-size: 24px;
  background-color: #d3664a;
  text-align: center;
  letter-spacing: 10px;
  cursor: pointer;
  margin: auto;
  color: white;
  cursor: pointer;
}

.four_content .four_content_main .content .content_box3 {
  width: 90%;
  margin: auto;
  color: white;
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
  display: flex;
  gap: 1rem;
}

.four_content .four_content_main .content .content_box3 .row1 {
  width: 100%;
}

.four_content .four_content_main .content .content_box3 .row2 {
  display: flex;
  font-size: 16px;
  color: #243446;
  justify-content: space-between;
  align-items: center;
}

.four_content .four_content_main .content .content_box3 .row2 .row2Content1 {
  margin: 1rem 0px;
  display: flex;
  align-items: center;
}

.four_content .four_content_main .content .content_box3 .row2 .row2Content1 img {
  width: 10%;
  margin-right: 10px;
}

.four_content .four_content_main .content .content_box3 .row2 .row2Content2 {
  margin: 1rem 0px;
  display: flex;
  align-items: center;
}

.four_content .four_content_main .content .content_box3 .row2 .row2Content2 span {
  border: 1px solid #7c7f7e;
  padding: 3px;
}

.four_content .four_content_main .content .content_box3 .row3 {
  display: flex;
  font-size: 16px;
  color: #243446;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

.four_content .four_content_main .content .content_box3 .row3 img {
  width: 7%;
}

.four_content .four_content_main .content .content_box3 .row4 {
  width: 60%;
  margin: 1rem auto;
  color: white;
  background-color: #60afcb;
  border-radius: 40px;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 5px;
}

/* ============================================ */
/* ...existing code... */

.course_content .course_content_main .content .content2 .content2_box {
  width: 90%;
  display: flex;
  align-items: center;
  border-radius: 20px;
  padding: 60px 40px;
  margin: 30px 0px 5rem 0px;
  background-image: url("../images/contentBG_13.gif");
  background-repeat: no-repeat;
  background-size: cover;
}

.course_content .course_content_main .content .content2 .content2_box2 {
  width: 90%;
  display: flex;
  align-items: center;
  border-radius: 20px;
  padding: 60px 40px;
  margin: 30px 0px 5rem 0px;
  background-image: url("../images/contentBG_24.gif");
  background-repeat: no-repeat;
  background-size: cover;
  float: right;
}

.course_content .course_content_main .content .content2 p {
  font-size: 26px;
  line-height: 2.8rem;
  color: #f6f3ef;
  font-weight: 300;
  letter-spacing: 5px;
}

.course_content .course_content_main .content .content2 .hint {
  font-size: 17px;
  line-height: 1.6rem;
  color: #0b0503;
  font-weight: 400;
  margin-top: 2rem;
  letter-spacing: 5px;
}

.course_content .course_content_main .content .content2 .content2_box .content2_box_left {
  width: 50%;
  padding: 25px;
}

.course_content .course_content_main .content .content2 .content2_box .content2_box_right {
  width: 50%;
}

.course_content .course_content_main .content .content2 .content2_box2 .content2_box2_left {
  width: 50%;
}

.course_content .course_content_main .content .content2 .content2_box2 .content2_box2_right {
  width: 50%;
  padding: 25px;

}

.course_content .course_content_main .content .content2 .content2_box img {
  width: 130%;
  border-radius: 15px;
  border: 10px solid #76a7b8;
}

.course_content .course_content_main .content .content2 .content2_box2 img {
  width: 130%;
  border-radius: 15px;
  border: 10px solid #76a7b8;
  transform: translate(-25%, 0px);
}

/* ==================================================== */

.game_content .game_content_main .content .content2 p {
  font-size: 26px;
  line-height: 2.8rem;
  color: #f6f3ef;
  font-weight: 300;
  letter-spacing: 5px;
}

.game_content .game_content_main .content .content2 .hint {
  font-size: 17px;
  line-height: 1.6rem;
  color: #0b0503;
  font-weight: 400;
  margin-top: 2rem;
  letter-spacing: 5px;
}

/* ...existing code... */

.event_sec .content {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.event_sec .content>img {
  width: 100%;
  height: auto;
  display: block;
}

.event_sec .event_buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.event_sec .event_buttons img {
  position: absolute;
  width: 120px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.event_sec .event_buttons img:hover {
  transform: scale(1.1);
}

/* 圓圈排列 - 按鈕位置調整 */
.event_sec .event_buttons .btn1 {
  top: 16%;
  left: 17%;
  width: 20%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 0.6s;
}

.event_sec .event_buttons .btn2 {
  top: 33%;
  left: 6%;
  width: 24%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 0.2s;
}

.event_sec .event_buttons .btn3 {
  top: 50%;
  left: 2%;
  width: 25%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 1s;
}

.event_sec .event_buttons .btn4 {
  top: 65%;
  left: 10%;
  width: 20%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 0.5s;
}

.event_sec .event_buttons .btn5 {
  top: 16%;
  right: 17%;
  width: 20%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 0.2s;
}

.event_sec .event_buttons .btn6 {
  top: 33%;
  right: 9%;
  width: 22%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 1s;
}

.event_sec .event_buttons .btn7 {
  top: 50%;
  right: 2%;
  width: 20%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 0.6s;
}

.event_sec .event_buttons .btn8 {
  top: 65%;
  right: 8%;
  width: 28%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 0.8s;
}

@keyframes swing {

  0%,
  100% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(15deg);
  }

  40% {
    transform: rotate(-10deg);
  }

  60% {
    transform: rotate(5deg);
  }

  80% {
    transform: rotate(-5deg);
  }
}

.game_sec .box {
  padding: 10px;
  width: 90%;
  max-width: 900px;
  margin: auto;
  background-color: #60afcb;
  text-align: center;
  height: 50vh;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
}

.game_sec .temptitle {
  font-size: 32px;
  color: white;
  letter-spacing: 10px;
}

.game_sec .temp_subtitle {
  font-size: 20px;
  color: #010202;
}



@media (max-width: 1600px) {}

@media (max-width: 1280px) {
  .top-box .right .topic1 {
    font-size: 32px;
  }

  .top-box .right .topic2 {
    font-size: 32px;
  }

  .top-box .right .topic3 {
    font-size: 20px;
  }

  .sec_title {
    font-size: 32px;
  }

  .course_content .course_content_main .btn {
    font-size: 22px;
    line-height: 25px;
  }

  .game_content .game_content_main .btn {
    font-size: 22px;
    line-height: 25px;
  }

  .game_content .game_content_main .content .content2 .title {
    font-size: 56px;
  }

  .game_content .game_content_main .content .content2 .subtitle {
    font-size: 32px;
    letter-spacing: 1rem;
  }

  .game_content .game_content_main .content .content2 .subtitle2 {
    font-size: 20px;
    letter-spacing: 0.8rem;
  }
}

@media (max-width: 980px) {
  .top-box {
    margin-top: 95px;
    flex-direction: column;
  }

  .top-box .left {
    width: 100%;
  }

  .top-box .right {
    width: 90%;
    text-align: center;
    color: #d3664a;
  }

  .top-box .right .topic1 {
    font-size: 2rem;
  }

  .top-box .right .topic2 {
    font-size: 2rem;
  }

  .top-box .right .topic3 {
    font-size: 1.4rem;
    margin-top: 20px;
  }

  .top-box .right .btn {
    width: 65%;
    font-size: 1.5rem;
    margin-top: 20px;
  }

  .news_sec .news_content_left .news_content_box .news_date_p {
    font-size: 1.3rem;
  }

  .news_sec .news_content_left .news_content_box .news_content_p {
    font-size: 1.5rem;
  }

  .game_content .game_content_main .content .content2 .title {
    font-size: 3rem;
  }

  .game_content .game_content_main .content .content2 .subtitle {
    font-size: 2rem;
    letter-spacing: 0.8rem;
  }

  .game_content .game_content_main .content .content2 .subtitle2 {
    font-size: 1.5rem;
    letter-spacing: 0.6rem;
  }

  .game_content .game_content_main .btn {
    font-size: 1rem;
    line-height: 25px;
  }

  .game_content .game_content_main .content .content1 {
    width: 96%;
    margin: auto;
  }

  .game_content .game_content_left,
  .game_content_right {
    width: 15%;
  }

  .game_content .game_content_main .content p {
    font-size: 1.6rem;
    line-height: 2.5rem;
  }

  .game_content .game_content_main .content .content_box .bottom {
    flex-wrap: wrap;
  }

  .game_content .game_content_main .content .content_box .bottom .button {
    width: fit-content;
  }

  .game_content .game_content_main .content .content_box .bottom .button .title {
    font-size: 1.6rem;
  }

  .game_content .game_content_main .content .content_box .content .right {
    width: 70%;
  }

  .game_content .game_content_main .game_button {
    font-size: 1.6rem;
    line-height: 2.5rem;
  }

  /*  */
  .course_content .course_content_main .btn {
    font-size: 1.6rem;
    line-height: 2.5rem;
  }

  .course_content .course_content_main .content .content1 {
    width: 96%;
    margin: auto;
  }

  .course_content .course_content_main .content .content1 .sub_title {
    font-size: 1.6rem;
  }

  .course_content .course_content_left,
  .course_content_right {
    width: 15%;
  }

  .course_content .course_content_main .content p {
    font-size: 1.6rem;
    line-height: 2.5rem;
  }

  .course_content .course_content_main .content .content2 .content2_box {
    width: 100%;
    flex-direction: column;
  }

  .course_content .course_content_main .content .content2 .content2_box2 {
    width: 100%;
    flex-direction: column-reverse;
  }

  .course_content .course_content_main .content .content2 .content2_box .content2_box_left,
  .course_content .course_content_main .content .content2 .content2_box .content2_box_right,
  .course_content .course_content_main .content .content2 .content2_box2 .content2_box2_left,
  .course_content .course_content_main .content .content2 .content2_box2 .content2_box2_right {
    width: 100%;
    margin: auto;
  }

  .course_content .course_content_main .content .content2 .content2_box img {
    width: 100%;
  }

  .course_content .course_content_main .content .content2 .content2_box2 img {
    width: 100%;
    transform: translate(0, 0);
  }

  /*  */

  .news_sec .news_content {
    flex-direction: column-reverse;
  }

  .news_sec .news_content_left {
    width: 43%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .news_sec .news_content_left .news_content_box {
    margin: 10px 0;
  }

  .news_sec .news_content_right {
    width: 90%;
    margin: auto;
  }

  .news_sec .news_content_left {
    width: 90%;
    margin: auto;
  }

  .mobile {
    display: block;
  }

  .sec_title {
    margin: 20px auto 30px auto;
    font-size: 2rem;
  }

  .news_sec .news_content_right {
    position: relative;
    width: 95%;
    margin: 0 auto;
    padding-bottom: 50%;
    height: 0;
  }

  .news_sec .news_content_right iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .news_sec .main {
    margin: 30px 0 30px 0;
  }

  .news_sec .main .content {
    padding: 0 30px;
  }

  .news_sec .main .content p {
    text-align: justify;
  }

  .news_sec .main .content .rabbitleft {
    display: none;
  }

  .news_sec .main .content .rabbitright {
    display: none;
  }

  .news_sec .main .treeleft {
    display: none;
  }

  .news_sec .main .treeright {
    display: none;
  }

  .news_sec .main {
    padding: 30px 8px;
  }

  .news_sec .main .title {
    padding: 0 20px;
  }

  .news_sec .main .content {
    margin-top: 24px;
  }

  .news_sec .main .content .info {
    padding: 0 8px 8px 8px;
  }

  .news_sec .main .content .info a {
    flex-direction: column;
  }

  .news_sec .main .content .info a p {
    padding-bottom: 4px;
    line-height: 1.5;
  }

  .four_content .four_content_main .content p {
    font-size: 1.6rem;
    line-height: 2.5rem;
  }

  .four_content .four_content_main .content .content_box .bottom .title {
    font-size: 1.6rem;
    line-height: 2.5rem;
  }

  .four_content .four_content_main .content .content_box2 .rowbox .row1 {
    font-size: 1.8rem;
    line-height: 2.3rem;
  }

  .four_content .four_content_main .content .content_box2 .rowbox .row1 img {
    margin-right: 5px;
  }

  .four_content .four_content_main .content .content_box2 .rowbox .row3 {
    font-size: 1.3rem;
  }

  .four_content .four_content_main .four_button {
    font-size: 1.6rem;
    line-height: 2.5rem;
  }

}

@media (max-width: 640px) {
  .top-box {
    margin-top: 75px;
  }

  .top-box .right .topic1 {
    font-size: 1.5rem;
  }

  .top-box .right .topic2 {
    font-size: 1.5rem;
  }

  .top-box .right .topic3 {
    font-size: 1rem;
    margin-top: 10px;
  }

  .top-box .right .btn {
    border: 6px solid #76a7b8;
    padding: 14px 28px;
    letter-spacing: 3px;
  }

  .sec_title {
    font-size: 1.5rem;
  }

  .course_content .course_content_main .btn {
    font-size: 1.2rem;
    line-height: 10px;
  }

  .course_content .course_content_main .content .content1 .sub_title {
    margin: 20px auto 25px auto;
    font-size: 1.3rem;
  }

  .course_content .course_content_main .content .content2 {
    width: 100%;
  }

  .course_content .course_content_main .content p {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .course_content .course_content_main .content .content2 .content2_box,
  .course_content .course_content_main .content .content2 .content2_box2 {
    padding: 0px;
    width: 100%;
    margin: 0px 0px 2.5rem 0px;
  }

  .course_content .course_content_main .content .content2 .content2_box .content2_box_left,
  .course_content .course_content_main .content .content2 .content2_box .content2_box_right,
  .course_content .course_content_main .content .content2 .content2_box2 .content2_box2_left,
  .course_content .course_content_main .content .content2 .content2_box2 .content2_box2_right {
    padding: 1rem;
  }

  .course_content .course_content_main .content .content2 p {
    font-size: 1rem;
    line-height: 1.5rem;
    letter-spacing: 3px;
  }

  .course_content .course_content_main .content .content2 .hint {
    font-size: 0.8rem;
    line-height: 1.3rem;
    margin-top: 1rem;
    letter-spacing: 2px;
  }

  /*  */
  .game_content .game_content_main .content .content2 {
    width: 100%;
  }

  .game_content .game_content_main .content .content2 p {
    font-size: 1.2rem;
    line-height: 1.8rem;
  }

  .game_content .game_content_main .content .content2 .title {
    font-size: 42px;
  }

  .game_content .game_content_main .content .content2 .subtitle {
    font-size: 22px;
    letter-spacing: 0.8rem;
    margin: 1rem;
  }

  .game_content .game_content_main .content .content2 .subtitle2 {
    font-size: 14px;
    letter-spacing: 0.5rem;
    margin: 1rem;
  }

  .game_content .game_content_main .content .content_box {
    width: 95%;
    border: 5px solid #60afcd;
  }

  .game_content .game_content_main .content .content_box .content {
    flex-direction: column;
  }

  .game_content .game_content_main .content .content_box .content .right {
    width: 100%;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .game_content .game_content_main .content .content_box .title {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 5px;
    padding: 1rem;
  }

  .game_content .game_content_main .content .content_box .content .left {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .game_content .game_content_main .content .content_box .remark .left {
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 0px;
  }

  .game_content .game_content_main .content .content_box .remark p {
    font-size: 1rem;
    line-height: 1.5rem;
    text-indent: 0px;
  }

  .game_content .game_content_main .content p {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .game_content .game_content_main .content .content_box .bottom {
    width: 100%;
  }

  .game_content .game_content_main .content .content_box .bottom .button {
    padding: 0.5rem 1rem;
  }

  .game_content .game_content_main .content .content_box .bottom .button .title {
    font-size: 1.2rem;
    line-height: 2rem;
  }

  .game_content .game_content_main .content .content_box .bottom .title {
    font-size: 1.2rem;
    letter-spacing: 3px;
    padding: 2px;
  }

  .game_content .game_content_main .content .content_box .bottom .subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 2px;
  }

  .game_content .game_content_main .rule {
    width: 95%;
  }

  .game_content .game_content_main .game {
    width: 100%;
  }

  .game_content .game_content_main .game_button {
    width: fit-content;
    border: 3px solid #60afcd;
    border-radius: 60px;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    letter-spacing: 5px;
  }

  .four_content .four_content_main .content p {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .four_content .four_content_main .content .content1 p span {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .four_content .four_content_main .content .content_box .title {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 5px;
    padding: 1rem;
  }

  .four_content .four_content_main .content .content_box .content {
    flex-direction: column;
  }

  .four_content .four_content_main .button_part {
    flex-direction: column;
    gap: 1rem;
  }

  .four_content .four_content_main .content .content_box .content .left {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .four_content .four_content_main .content .content_box .content .right {
    width: 100%;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .four_content .four_content_main .content .content_box .bottom {
    flex-direction: column;
  }

  .four_content .four_content_main .content .content_box .bottom .button {
    padding: 0.5rem 1rem;
  }

  .four_content .four_content_main .content .content_box .bottom .title {
    font-size: 1.2rem;
    line-height: 2rem;
  }

  .four_content .four_content_main .content .content_box2 .title {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 5px;
    padding: 1rem;
    margin: 0 auto;
  }

  .four_content .four_content_main .content .content_box2 .content .left {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .four_content .four_content_main .content .content_box2 .content .right {
    width: 100%;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .four_content .four_content_main .content .content_box2 {
    width: 100%;
  }

  .four_content .four_content_main .content .content_box2 .table {
    width: 100%;
  }

  .four_content .four_content_main .content .content_box2 .rowbox .row1 {
    font-size: 1.2rem;
    line-height: 1.5rem;
    padding: 1rem 0.2rem;
  }

  .four_content .four_content_main .content .content_box2 .rowbox .row2 {
    font-size: 0.7rem;
    line-height: 1.5rem;
    padding: 1rem 0.2rem;
  }

  .four_content .four_content_main .content .content_box2 .rowbox .row3 {
    font-size: 1rem;
    padding: 1rem 0.2rem;
  }

  .four_content .four_content_main .content .content_box2 .remark p {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .four_content .four_content_main .four_button {
    font-size: 1.2rem;
    line-height: 2rem;
    padding: 1rem 3rem;
  }
  .four_content .four_content_main .content .content_box3{
    flex-direction: column;
  }
  footer .travel .kinmen_web {
    flex-direction: column;
  }

  footer .travel .kinmen_web a,
  footer .travel .kinmen_mobile a {
    padding: 1.5rem 1rem;
  }

  .lightbox .lightbox_container .background-circle .name_box {
    padding: 1rem;
    font-size: 1.6rem;
    top: 10%;
    width: 100%;
    left: 0%;
  }

  .lightbox .lightbox_container .background-circle .lightboxdice1 {
    top: -10%;
  }

  .lightbox .lightbox_container .background-circle .lightboxdice3 {
    top: 85%;
  }

  .lightbox .lightbox_container .background-circle .time_place {
    top: 27%;

  }

  .lightbox .lightbox_container .background-circle .time_place .time_place_box .word {
    font-size: 1rem;
  }

  .lightbox .lightbox_container .background-circle .time_place .time_place_box .word_game {
    letter-spacing: 2px;
    font-size: 1rem;
    text-indent: 2rem;
    line-height: 1.5rem;
  }

  .lightbox .lightbox_container .background-circle .time_place .time_place_box .word1 {
    font-size: 1rem;
    line-height: 1.5rem;
    max-height: 15vh;
  }

  .lightbox .lightbox_container .background-circle .time_place .time_place_box .word1_small {
    font-size: 0.8rem;
    line-height: 1rem;
  }

  .lightbox .lightbox_container .background-circle .time_place .time_place_box .btn {
    border: 4px solid white;
    padding: 10px;
  }

  .lightbox .lightbox_container .background-circle .time_place .time_place_box {
    margin-bottom: 5px;
  }

  .lightbox .lightbox_container .background-circle .time_place .time_place_box .button_map {
    font-size: 1rem;
    width: 3rem;
    height: 3rem;
  }

  .game_sec .temp_subtitle {
    line-height: 2rem;
  }
}

/* 為每個錨點區域添加偏移量 */
#news,
#course,
#activity,
#onlieGame,
#course1,
#course2,
#course3,
#course4 {
  scroll-margin-top: 110px;
  /* 桌面版偏移量 */
}

/* 手機版調整 */
@media (max-width: 768px) {

  #news,
  #course,
  #activity,
  #onlieGame,
  #course1,
  #course2,
  #course3,
  #course4 {
    scroll-margin-top: 85px;
    /* 手機版偏移量 */
  }
}

/* 更小的手機螢幕 */
@media (max-width: 480px) {

  #news,
  #course,
  #activity,
  #onlieGame,
  #course1,
  #course2,
  #course3,
  #course4 {
    scroll-margin-top: 80px;
  }
}