body, html {
  height: 100%;
  margin: 0;
}

.bg{
  background-image: url("background.jpg");
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  height: 100%;
}

div.first{
  text-align: center;
}

.title{
  font-size:72px;
  background-color: aliceblue;
}

.name{
  font-size: 20px;  
  color: #000000;
  border-style:inset;
  border-width: medium;
  border-color: hsl(208, 77%, 47%);
  text-decoration: none;  
  background-color: rgb(228, 159, 90);
}

.ipt{
  color:red;
  font-size: 25px;
}

.word{
  font-size: 35px;
}

.layer{
  position: relative;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  margin: 10px auto ;
  max-width: 900px;
}

h1{
  size: 75px;
}

h2{
  size: 42px;
}
/*h4{
  size: 35px;
}
*/
.myurl{
  text-decoration: none;
  color: black;
}

.myurl:hover{
  width: 100%;
  color: #008FFF;
  font-size: 50px;
}

.prodiv {
  position: fixed;
  z-index: 98;
  top: 200px;
  right: 10px;
  width: 50px;
  height: 50px;
  text-align: center;
  background: linear-gradient(to bottom, #d8e8ff 5%, #8fc6ff 100%);
  border-radius: 50%;
  border: 7px solid;
  cursor: cell;
  color: white;
  font-family: 標楷體;
  font-size: 40px;
  transition: 2s;
  opacity: 0;
}
.circle{
  position: fixed;
  z-index: 99;
  top: 200px;
  right: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 7px solid;
  border-color: #3498db white white white;
  animation: rotate 1s linear infinite;
}
@keyframes rotate {
  to { transform: rotate(365deg); }
}
.fstbg{
  background-image: url(mhwibg.png);
  height:100%;
  width: 100%;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
}

.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 200px;
  height: 200px;
  transition: transform 0.3s ease;
}

.logo img {
  width: 200px;
  height: 100px;
  border-radius: 10px;
  
}

.logo:hover {
  transform: scale(1.2);
}
.logo img {
  width: 200px;
  height: 100px;
}

.layer p{
  font-size: 30px;
}
.imp{
  color:red;
  font-size: 50px;
}

.tb{
  background-color:#d8e8ff ;
}
.table3 {
  text-align: center;
  margin: auto;
  width: 70%;
  padding: 15px;
}
.button {
  border: none;
  padding: 15px 30px;
  text-align: center;
  display: inline-block;
  font-size: 25px;
  margin: 0px 0px;
  cursor: pointer;
  border-radius: 8px;
  color: #4a2900;
  background-color: #b5d8fe;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
} 

button:hover {
  background-color: #8fc6ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

button:active {
  background-color: #67a9f3;  /* 更深的藍色 */
  transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.entry {
  background: white;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  gap: 20px;
}

.mhwibg{
  background-image: url("mhwibg.png");
  height: 1000px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.mhrsbg{
  background-image: url("mhrsbg.png");
  height: 1000px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.mh {
  margin: auto;
  position: relative;
  width: 1200px;
  height: 800px;
  overflow: hidden;
}

.mh img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  opacity: 0.8;
}

.story {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 50px;
  box-sizing: border-box;
  border-radius: 50px;
}

.mh:hover .story {
  opacity: 1;
}

.mh:hover img {
  transform: scale(1.1);
  opacity: 0.1;
}

.story h3 {
  font-size: 70px;
  margin: 0 0 10px 0;
}

.story p {
  font-size: 40px;
  margin: 0;
  text-align: center;
  max-width: 1000px;
}

.r{
  color: #b5250c;
}

/*dragon*/
.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px auto;
  max-width: 1200px;
}

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.45);
  padding: 20px;
  border-radius: 10px;
  margin: 0 20px;
}

.section h2 {
  margin-top: 0;
  color: #4a2900;
  font-size: 1.8em;
}

.section .grid {
  width: 40%;
}

.section .grid img {
  width: 150px;
  height: 150px;
}

.section .info {
  width: 60%;
}

/*weapon*/
.weapon-tbe {
  display: flex;
  margin: 20px auto;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  max-width: 1200px;
  background-image: url('你的背景圖片.jpg');
  background-size: cover;
  background-position: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}

.grid img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.grid img:hover {
  transform: scale(1.1);
}

.info {
  width: 80%;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  text-align: center;
  margin: 0 auto;
}

.info p {
  margin: 0;
  font-size: 1.2em;
  line-height: 1.6;
}

.weaponbg {
  background-image: url('mhwibg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

.dragonbg {
    background-image: url('dragon.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}
/*ending*/
.endingbg {
  background-image: url(mhwibg.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}


.section {
  margin-bottom: 40px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}



.content p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
  padding: 0 15px;
}

.content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content li {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.content strong {
  color: #2c3e50;
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
}

.content p {
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.mouse-keyboard{
  margin-top: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.controller {
  margin-top: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.content li:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.section:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;}