* {
    box-sizing: border-box;
}

body {
    background-color: #171615;
    color: #ffffff;
    font-family: "Minecraft-Seven", "NotoSansMerged-Regular";
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding-top: 80px;
}

@font-face {
    font-family: "NotoSansMerged-Regular";
    src: url("fonts/NotoSansMerged-Regular-5df70ade1ecaa8cdc5e2.ttf");
}

@font-face {
    font-family: "Minecraft-Seven";
    src: url("fonts/Minecraft-Seven-66398119c2c20ee73019.otf");
}

a {
    text-decoration: none;
}


.navbar {
    font-family: "MinecraftTen";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* แก้จาก 99% เป็น 100% */
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    background: rgba(23, 22, 21, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 9.1);
}

#logo_mcfirsting {
    height: 45px;
    width: auto;
    padding: 0;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 24px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff7300;
}


.doc-header {
    text-align: center;
    padding: 60px 20px 40px;
    background-color: #1f1e1d;
    border-bottom: 4px solid #ff9500;
    margin-bottom: 40px;
}

.doc-header h1 {
    font-family: "Minecraft-Seven";
    font-size: 2.5rem;
    color: #ff9500;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
    margin: 0;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
    color: #e0e0e0;
    line-height: 1.8;
}

.article-container h2 {
    font-family: "Minecraft-Seven";
    font-size: 1.8rem;
    color: #ff9500;
    border-bottom: 1px solid #444;
    margin-top: 40px;
    padding-bottom: 10px;
}

.article-container h3 {
    font-family: "Minecraft-Seven";
    font-size: 1.4rem;
    color: #fff;
    margin-top: 30px;
}

.article-container p {
    margin: 0 0 20px 0;
    text-align: left;
    font-size: 1.1rem;
    color: #ccc;
    width: 100%;
}

.article-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.article-container ul,
.article-container ol {
    margin-left: 20px;
    color: #ccc;
    font-size: 1.1rem;
}

.tabs-container {
    background-color: #262423;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
}

.tab-links {
    display: flex;
    background-color: #1f1e1d;
    border-bottom: 1px solid #444;
}

.tab-link {
    flex: 1;
    padding: 15px;
    cursor: pointer;
    background: none;
    border: none;
    color: #9e9e9e;
    font-family: "MinecraftTen";
    font-size: 1.1rem;
    transition: all 0.3s;
}

.tab-link.active {
    color: #ff9500;
    background-color: #2a2827;
    border-bottom: 3px solid #ff9500;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.code-wrapper {
    position: relative;
    background-color: #2b2b2b;
    border: 1px solid #444;
    border-radius: 6px;
    margin: 20px 0;
}

.code-wrapper pre {
    margin: 0;
    padding: 20px;
    padding-right: 70px;
    overflow-x: auto;
    font-family: monospace;
    color: #a5d6ff;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #444;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Minecraft-Seven", "NotoSansMerged-Regular";
    font-size: 0.8rem;
}

.copy-btn:hover {
    background-color: #ff9500;
    color: #000;
}


footer {
    background-color: #262423;
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
}

footer h2 {
    font-family: "Minecraft-Seven";
    margin-bottom: 20px;
}

.social-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons {
    width: 50px;
    height: 50px;
    background-color: #1f1e1d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.social-icons img {
    height: 30px;
    width: auto;
}

.social-icons:hover {
    transform: translateY(-3px);
}


* {
    box-sizing: border-box;
}

body {
    background-color: #171615;
    color: #ffffff;
    font-family: "MinecraftSeven", "NotoSansMerged-Regular";
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

body {
    padding-top: 80px;
}

@font-face {
    font-family: "MinecraftTen";
    src: url("fonts/Minecraft-Ten-ed29a1bbe6a620b83378.otf");
}

@font-face {
    font-family: "NotoSansMerged-Regular";
    src: url("fonts/NotoSansMerged-Regular-5df70ade1ecaa8cdc5e2.ttf");
}

a {
    text-decoration: none;
}


.navbar {
    font-family: "MinecraftTen";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* แก้จาก 99% เป็น 100% */
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    background: rgba(23, 22, 21, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 9.1);
}

#logo_mcfirsting {
    height: 45px;
    width: auto;
    padding: 0;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 24px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff7300;
}


.doc-header {
    text-align: center;
    padding: 40px 20px;
    background-color: #1f1e1d;
    border-bottom: 4px solid #ff9500;
    margin-bottom: 40px;
    width: 100%;
}

.doc-header h1 {
    font-family: "MinecraftTen";
    font-size: 2.5rem;
    color: #ff9500;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
    margin: 0;
    word-wrap: break-word;
}


.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
    color: #e0e0e0;
    line-height: 1.8;
    width: 100%;
}

.article-container h2 {
    font-family: "Minecraft-Seven";
    font-size: 1.8rem;
    color: #ff9500;
    border-bottom: 1px solid #444;
    margin-top: 40px;
    padding-bottom: 10px;
}

.article-container h3 {
    font-family: "Minecraft-Seven";
    font-size: 1.4rem;
    color: #fff;
    margin-top: 30px;
}

.article-container p {
    margin: 0 0 20px 0;
    text-align: left;
    font-size: 1.1rem;
    color: #ccc;
    width: 100%;
}

.article-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.article-container ul,
.article-container ol {
    margin-left: 20px;
    color: #ccc;
    font-size: 1.1rem;
    padding-right: 10px;
}


.tabs-container {
    background-color: #262423;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
    width: 100%;
}

.tab-links {
    display: flex;
    background-color: #1f1e1d;
    border-bottom: 1px solid #444;
}

.tab-link {
    flex: 1;
    padding: 15px;
    cursor: pointer;
    background: none;
    border: none;
    color: #9e9e9e;
    font-family: "MinecraftTen";
    font-size: 1.1rem;
    transition: all 0.3s;
}

.tab-link.active {
    color: #ff9500;
    background-color: #2a2827;
    border-bottom: 3px solid #ff9500;
}

.tab-content {
    display: none;
    padding: 20px;
    word-wrap: break-word;
}

.tab-content.active {
    display: block;
}

.code-wrapper {
    position: relative;
    background-color: #2b2b2b;
    border: 1px solid #444;
    border-radius: 6px;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
}

.code-wrapper pre {
    margin: 0;
    padding: 20px;
    padding-right: 70px;
    font-family: monospace;
    color: #a5d6ff;

    overflow-x: auto;
    white-space: pre;
    width: 100%;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #444;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: "MinecraftTen", "NotoSansMerged-Regular";
    font-size: 0.8rem;
}

.copy-btn:hover {
    background-color: #ff9500;
    color: #000;
}


footer {
    background-color: #262423;
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

footer h2 {
    font-family: "MinecraftTen";
    margin-bottom: 20px;
}

.social-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons {
    width: 50px;
    height: 50px;
    background-color: #1f1e1d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.social-icons img {
    height: 30px;
    width: auto;
}

.social-icons:hover {
    transform: translateY(-3px);
}

.screenshot-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.screenshot-large {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #555;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.code-wrapper {
    background-color: #1e1e1e !important;
    /* สีเทาเข้ม VS Code */
    border: 1px solid #333;
}

.code-wrapper pre {
    color: #d4d4d4;
    /* สีตัวอักษรทั่วไป (วงเล็บ, เครื่องหมาย) */
}

/* สีของ Key (เช่น "format_version") */
.token-key {
    color: #9cdcfe;
}

/* สีของ String (ข้อความในฟันหนู) */
.token-string {
    color: #ce9178;
}

/* สีของ Number (ตัวเลข) */
.token-number {
    color: #b5cea8;
}