:root {
    --primary-color: #ffffff00;
    --text-color: #333;
    --bg-color: #fff;
    --sidebar-bg: #f8f9fa;
    --sidebar-text: #495057;
    --border-color: #dee2e6;
    --hover-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --theme-switch-border: #ccc;
}

[data-theme="dark"] {
    --primary-color: #ffffff00;
    --text-color: #e0e0e0;
    --bg-color: #1e1e1e;
    --sidebar-bg: #252526;
    --sidebar-text: #d4d4d4;
    --border-color: #444;
    --hover-color: #2d2d30;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --theme-switch-border: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

a {
  color: rgb(248, 149, 0);
  text-decoration: none;
}

body {
    font-family: 'WenQuanYi Micro Hei', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    min-width: 1200px;
}

h1, h2, h3, h4, h5, h6, p, span, a, div, button, input, textarea {
  font-family: inherit;
}

.red {
  color: rgb(255, 0, 0);
  text-decoration: none;
}

.navbar {
    background-color: var(--primary-color);
    backdrop-filter: blur(2px);
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}

.logo-container {
    margin: 0;
    margin-right: auto;
    padding-left: 0.5rem;
}

.nav-logo {
    height: 30px;
    max-width: 100%;
    object-fit: contain;
}

.search-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    border: 5px solid #1e1e1e;
    border-radius: 10px;
    margin: 0 1rem;
    max-width: 400px;
}

#search-input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 100%;
}

#search-button {
    padding: 0.5rem 1rem;
    background-color: #4e4e4e;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1rem;

}

.theme-switch-container {
    padding: 0.3rem;
    border: 1px solid var(--theme-switch-border);
    border-radius: 20px;
    background-color: var(--bg-color);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.main-container {
    display: flex;
    width: 100%;
    margin: 0;
    min-height: calc(100vh - 60px);
}

.sidebar {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  width: 250px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 100;
  flex-shrink: 0;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-content {
    padding: 1rem;
}

.content {
  flex: 1;
  padding: 2rem;
  margin-top: 60px;
  min-height: calc(100vh - 60px);
  box-sizing: border-box;
}

.sidebar-menu {
    list-style: none;
}

.menu-item {
    margin-bottom: 0.5rem;
}

.menu-title {
    display: block;
    padding: 0.5rem;
    color: var(--sidebar-text);
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}

.menu-title:hover {
    background-color: var(--hover-color);
}

.submenu {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.submenu li a {
    display: block;
    padding: 0.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 4px;
}

.submenu li a:hover {
    background-color: var(--hover-color);
}

.image-container {
    margin: 1.5rem 0;
    text-align: center;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.responsive-image1 {
    max-width: 90%;
    height: auto;
    border-radius: 4px;
}

.responsive-image2 {
    max-width: 50%;
    height: auto;
    transform: translateX(-50%);
    border-radius: 4px;
}

.responsive-image3 {
    max-width: 100%;
    height: auto;
    transform: translateX(-56%);
    border-radius: 5px;
}

.responsive-image4 {
    max-width: 80%;
    height: auto;
    transform: translateX(-13%);
    border-radius: 5px;
}

.responsive-image5 {
    max-width: 80%;
    height: auto;
    transform: translateX(-30%);
    border-radius: 5px;
}

.responsive-image6 {
    max-width: 50%;
    height: auto;
    transform: translateX(-10%);
    border-radius: 4px;
}

.responsive-image7 {
    max-width: 60%;
    height: auto;
    transform: translateX(-30%);
    border-radius: 4px;
}

.responsive-image72 {
    max-width: none;
    width: 60%;
    height: auto;
    transform: translateX(-30%);
    border-radius: 4px;
    transform-origin: center center;
    image-rendering: crisp-edges;
}

/*
.responsive-image8 {
    max-width: 60%;
    height: auto;
    transform: translateX(-30%);
    border-radius: 4px;
}
*/

.responsive-image8-2 {
    max-width: none;
    width: 50%;
    height: auto;
    transform: translateX(-50%);
    border-radius: 4px;
    transform-origin: center center;
    image-rendering: crisp-edges;
}

.image-caption {
    font-size: 0.9rem;
    color: var(--sidebar-text);
    margin-top: 0.5rem;
}

.highlight {
    background-color: yellow;
    color: black;
    padding: 0 0.2rem;
}

.simple-copyright {
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.simple-copyright p {
    color: var(--text-color);
    margin: 0;
    opacity: 0.8;
}

.minecraft-item {
    width: 32px;
    height: 32px;
    margin-right: 5px;
    image-rendering: pixelated;
    transform: translateY(30%);
}

.minecraft-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@font-face {
  font-family: 'Minecraft';
  src: url('../font/minecraft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'WenQuanYi Micro Hei';
  src: url('../font/wryh.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.minecraft-name {
  font-family: 'Minecraft', sans-serif;
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: none;
  background-color: #95e4a2;
  color: #524f4f;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  margin: 0;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.15);
  background-color: #5bc26d;
}

.arrow-icon {
  fill: currentColor;
  stroke: currentColor;
  width: 22px;
  height: 22px;
}
