@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); .kanit-medium { font-family: "Kanit", sans-serif; font-weight: 500; font-style: normal; } .loader-wrapper { width: 100%; height: 100%; position: absolute; top: 0; left: 0; background-color: #151a22; display: flex; justify-content: center; align-items: center; } .loader { display: inline-block; width: 30px; height: 30px; position: relative; border: 4px solid #Fff; animation: loader 2s infinite ease; } .loader-inner { vertical-align: top; display: inline-block; width: 100%; background-color: #fff; animation: loader-inner 2s infinite ease-in; } @keyframes loader { 0% { transform: rotate(0deg);} 25% { transform: rotate(180deg);} 50% { transform: rotate(180deg);} 75% { transform: rotate(360deg);} 100% { transform: rotate(360deg);} } @keyframes loader-inner { 0% { height: 0%;} 25% { height: 0%;} 50% { height: 100%;} 75% { height: 100%;} 100% { height: 0%;} } * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; transition: all 0.3s ease; } body { font-family: "Kanit", Arial; font-weight: 500; font-style: normal; } #copySec , #copySoon { font-size: large; opacity: 0; visibility: hidden; width: 14rem; height: 4rem; color: #fff; border-radius: 0.5rem; background-color: #0f0f0f; display: flex; align-items: center; justify-content: center; position: fixed; top: 5%; left: 50%; transform: translate(-50%, -50%); transition: opacity 0.3s ease, visibility 0.5s ease; overflow: hidden; /* ซ่อนส่วนเกินของเส้น */ z-index: 10; } #copySec.show , #copySoon.show { opacity: 0.8; visibility: visible; } /* เส้นสีฟ้าที่จะขยายจากตรงกลาง */ #copySec::after { content: ""; display: block; width: 100%; height: 4px; background-color: #1d83f1; border-radius: 2px; position: absolute; bottom: 0; /* วางเส้นที่ด้านล่างภายใน copySec */ left: 0; transform: scaleX(0); /* เริ่มต้นด้วยการย่อเส้น */ transform-origin: center; /* ขยายจากตรงกลาง */ transition: transform 2s ease; /* ขยายเส้นใน 2 วินาที */ } #copySoon::after { content: ""; display: block; width: 100%; height: 4px; background-color: #e7a63d; border-radius: 2px; position: absolute; bottom: 0; /* วางเส้นที่ด้านล่างภายใน copySec */ left: 0; transform: scaleX(0); /* เริ่มต้นด้วยการย่อเส้น */ transform-origin: center; /* ขยายจากตรงกลาง */ transition: transform 2s ease; /* ขยายเส้นใน 2 วินาที */ } #copySec.show::after , #copySoon.show::after { transform: scaleX(1.1); /* ขยายจนสุด */ } .content .mlogo { margin-top: -4.5rem; } .content .mlogo a img { width: 25rem; height: auto; transition: all 0.3s ease; } .content .mlogo a img:hover { scale: 1.2; } nav { padding: 2rem 4rem 2rem 4rem; top: 0; overflow: hidden; background-color: rgba(0, 0, 0, 0.9); display: flex; justify-content: space-between; /* จัดให้แบ่งพื้นที่ระหว่าง menu กับปุ่ม */ } nav .menu { display: flex; } nav .btn { display: flex; margin-left: auto; /* ดันปุ่มทั้งหมดย้ายไปทางขวา */ } nav .menu a, nav .btn a { color: white; text-decoration: none; padding: 0.8rem 1rem 0.8rem 1rem; font-size: large; margin-left: 1rem; border-radius: 1rem; transition: all 0.3s ease; } nav .menu .redback:hover { background-color: #ff324a; } nav .menu .yback:hover { background-color: #ff9d4e; } nav .menu a:hover { border-radius: 0.5rem; background-color: #1d83f1; } nav .menu .now { background-color: #2e93ff; border-radius: 0.5rem; transition: all 0.3s ease; } nav .menu .now:hover { background-color: #1d83f1; border-radius: 0.5rem; } nav .btn { align-items: center; } nav .btn .store, nav .btn .copy { i { padding-right: 0.5rem; } } nav .btn .store { a { background-color: #ffb53e; } } nav .btn .store:hover { a { background-color: #e7a63d; } } nav .btn .discord { margin-left: auto; /* ผลัก discord ไปทางขวาสุด */ a { background-color: #3e54ff; } } nav .btn .discord:hover { a { background-color: #3348e7; } } nav .btn .copy { a { background-color: #2e93ff; } } nav .btn .copy:hover { a { background-color: #2781e2; } } .content { padding-top: 8%; padding-bottom: 9%; display: flex; flex-direction: column; align-items: center; /* จัดเนื้อหาให้อยู่ตรงกลางในแนวนอน */ .first { text-align: center; color: white; background: rgba(0, 0, 0, 0.7); padding: 1rem 3rem 1rem 3rem; border-radius: 1rem; letter-spacing: 0.3rem; transition: all 0.3s ease; h1 { transition: all 0.3s ease; } h1:hover { color: #ccc; } .copy { border-top: #ccc solid 0.1rem; cursor: pointer; a { display: block; cursor: pointer; font-size: 1.5rem; letter-spacing: 0.4rem; color: #75a8ff; transition: all 0.3s ease; } a:hover { color: #a6c7ff; } span { font-size: 1.2rem; letter-spacing: 0.1rem; color: #e8f0ff; } } } .sec { text-align: center; color: white; background: rgba(0, 0, 0, 0.7); padding: 0.5rem 6rem 0.5rem 6rem; margin-top: 0.5rem; border-radius: 1rem; a { color: white; span { font-size: 1.4rem; } } } .social { padding-top: 1.4rem; display: flex; justify-content: center; img { height: auto; width: 10rem; padding: 0 0.5rem 0 0.5rem; transition: all 0.3s ease; } img:hover { opacity: 0.8; scale: 1.05; } } } .ft { display: flex; justify-content: center; background-color: #121212; } .himg { padding-top: 6rem; display: flex; justify-content: center; align-items: center; margin: 0; padding-bottom: 1rem; } .himg img { max-width: 96%; height: auto; border-radius: 1rem; } .howto { padding: 0 5rem 5rem 5rem; display: flex; flex-direction: column; justify-content: center; background-color: #121212; color: white; h1 { text-align: center; padding: 4rem; } .edition { display: flex; justify-content: center; .bedrock { padding-left: 10rem; } h3 { padding-bottom: 2rem; } ul, li { margin: 0 1rem 0 1rem; } a { text-decoration: underline; color: white; } } } .sponser { padding-bottom: 6rem; display: flex; flex-direction: column; align-items: center; /* จัดเนื้อหาให้อยู่ตรงกลางในแนวนอน */ justify-content: center; text-align: center; color: white; background-color: #121212; width: 100%; min-height: 28rem; /* ใช้ min-height แทน height */ h1 { padding: 4rem; } .splist { display: flex; justify-content: center; flex-wrap: wrap; /* ทำให้รายการยืดหยุ่นตามขนาดจอ */ column-gap: 150px; /* ระยะห่างระหว่างไอเทม */ img { padding: 2rem 2rem 0 2rem; max-height: 18rem; max-width: 18rem; border-radius: 20%; object-fit: cover; transition: all 0.3s ease; } img:hover { opacity: 0.8; } a { cursor: pointer; flex-direction: column; } span { font-size: medium; display: block; letter-spacing: 0.2rem; } } } footer { border-bottom: #1d83f1 solid 1rem; margin-top: 15%; display: flex; padding: 2rem 10rem 2rem 10rem; border-radius: 1rem; background-color: #2e93ff; color: #fff; margin-bottom: 3rem; img { width: 12rem; height: auto; } .icons { display: flex; align-items: center; padding-top: 1rem; .support { color: white; cursor: pointer; background-color: #ff4b7e; padding: 0.5rem 0.5rem 0.5rem 0.5rem; border-radius: 0.4rem; font-size: larger; margin-left: 1rem; padding-right: 1rem; transition: all 0.3s ease; text-decoration: none; } .support:hover { background-color: #ff346d; } .copy { i { margin-left: 0; } } a { color: white; cursor: pointer; background-color: #1d83f1; padding: 0.5rem 0.5rem 0.5rem 0.5rem; border-radius: 0.4rem; font-size: larger; margin-left: 1rem; transition: all 0.3s ease; } i { padding: 0.5rem 0.5rem 0.5rem 0.5rem; margin-left: 0; } a:hover { background-color: #106fd4; } } .text { padding: 2rem 0 2rem 2rem; display: block; text-align: start; font-size: large; } } @media screen and (max-width: 820px) { nav .menu, nav .btn { display: grid; flex-direction: column; } nav .btn .store { margin-top: 2rem; } nav .btn .discord { margin-left: 0; a { background-color: #3e54ff; } } nav .btn .copy { a { padding: 0.8rem; } i { display: none; } } .howto h1 { padding: 4rem 0 0 0; } .howto .edition h2 { padding-top: 4rem; } .howto .edition .bedrock { margin-left: 0; padding-left: 0; } .howto .edition .java ul, .howto .edition .bedrock li { margin: 0; } .howto .edition { display: grid; justify-content: center; } .social { display: grid; flex-direction: column; } footer { display: grid; flex-direction: column; max-width: 90%; padding: 1rem; } footer img { display: none; } footer .copy { display: none; } footer p { max-width: 90%; display: grid; flex-direction: column; margin-left: 0; font-size: small; } footer .text { padding: 2rem 0 2rem 2rem; display: grid; flex-direction: column; text-align: start; font-size: large; } footer .support { display: none; } }