.github-corner svg {
  fill: var(--primary-light-color);
  color: var(--page-background-color);
  width: 72px;
  height: 72px;
}

#main, .container {
  max-width: 100% !important;
  padding-left: 30px;
  padding-right: 30px;
  margin: 0 auto;
}


@media screen and (max-width: 767px) {
  .github-corner svg {
    width: 50px;
    height: 50px;
  }
  #projectnumber {
    margin-right: 22px;
  }
}

.alter-theme-button {
  display: inline-block;
  cursor: pointer;
  background: var(--primary-color);
  color: var(--page-background-color) !important;
  border-radius: var(--border-radius-medium);
  padding: var(--spacing-small) var(--spacing-medium);
  text-decoration: none;
}

.alter-theme-button:hover {
  background: var(--primary-dark-color);
}

html.dark-mode .darkmode_inverted_image img, /* < doxygen 1.9.3 */
html.dark-mode .darkmode_inverted_image object[type="image/svg+xml"] /* doxygen 1.9.3 */ {
  filter: brightness(89%) hue-rotate(180deg) invert();
}

.bordered_image {
  border-radius: var(--border-radius-small);
  border: 1px solid var(--separator-color);
  display: inline-block;
  overflow: hidden;
}

html.dark-mode .bordered_image img, /* < doxygen 1.9.3 */
html.dark-mode .bordered_image object[type="image/svg+xml"] /* doxygen 1.9.3 */ {
  border-radius: var(--border-radius-small);
}

.title_screenshot {
  filter: drop-shadow(0px 3px 10px rgba(0, 0, 0, 0.22));
  max-width: 500px;
  margin: var(--spacing-large) 0;
}

.title_screenshot .caption {
  display: none;
}

.hotkey {
  color: #f0e68c !important;
  font-weight: bold;
}

html.dark-mode {
  --page-background-color: rgb(0, 8, 18);
  --side-nav-background: rgb(0, 8, 18);
}

h1,
h2 {
  color: #90ee90 !important;
  font-weight: bold;
}

h2 {
  color: #98d8d8 !important;
}

.toc ul li > a {
  cursor: pointer;
  text-decoration: none;
}

.toc ul li {
  margin: 5px 0;
}

.toc ul {
  margin-left: 20px;
  list-style: none;
}

/***************************** Dracula theme **************************/
/* html {
  
  --primary-color: #bd93f9;
  --primary-dark-color: #9270e4;
  --primary-light-color: #9270e4;

    --page-background-color: #ffffff;
  --page-foreground-color: #2f4153;
  --page-secondary-foreground-color: #6f7e8e;

    --separator-color: #bd93f965;

    --border-radius-large: 22px;
  --border-radius-small: 9px;
  --border-radius-medium: 14px;
  
  --spacing-small: 8px;
  --spacing-medium: 14px;
  --spacing-large: 19px;

  --top-height: 125px;
}

html.dark-mode {
  color-scheme: dark;

  --primary-color: #bd93f9;
  --primary-dark-color: #9270e4;
  --primary-light-color: #9270e4;
  --primary-lighter-color: #191e21;
  --primary-lightest-color: #191a1c;

  --page-background-color: #21222c;
  --page-foreground-color: #d2dbde;
  --page-secondary-foreground-color: #859399;
  --separator-color: #3a3246;
  --side-nav-background: #282a36;
  --side-nav-foreground: #f8f8f2;
  --toc-background: #282a36;
  --searchbar-background: var(--page-background-color);
} */

/************************** Tokyo Night theme***********************************************/
/* html.dark-mode {
  --primary-color: #7aa2f7;
  --primary-dark-color: #bb9af7;
  --primary-light-color: #b4f9f8;

  --page-background-color: #24283b;
  --page-foreground-color: #a9b1d6;
  --page-secondary-foreground-color: #9aa5ce;
  --separator-color: #565f89;
  --side-nav-background: #1a1b26;

  --code-background: #31364e;
  --code-foreground: #73daca;

  --tablehead-background: #1a1b26;

  --blockquote-background: #414868;
  --blockquote-foreground: #73daca;

  --warning-color: #e0af68;
  --warning-color-dark: #ff9e64;
  --warning-color-darker: #f7768e;
  --bug-color: #f7768e;

  --fragment-background: #24283b;
  --fragment-foreground: #a9b1d6;
  --fragment-keyword: #bb9af7;
  --fragment-keywordtype: #a9b1d6;
  --fragment-keywordflow: #bb9af7;
  --fragment-token: #9ece6a;
  --fragment-comment: #565f89;
  --fragment-link: #73daca;
  --fragment-preprocessor: #bb9af7;
  --fragment-linenumber-color: #414868;
  --fragment-linenumber-background: #24283b;
  --fragment-linenumber-border: #1a1b26;
} */


#back-home-button {
  position: absolute;
  top: 20px;
  left: 220px;
  background: rgba(30, 30, 30, 0.85);
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  z-index: 9999;
  font-family: sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}
#back-home-button:hover {
  background: rgba(50, 50, 50, 0.95);
}

/* 기본 사이드바 링크 보이도록 */
#side-nav a {
  color: #aaa !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* 마우스 올렸을 때 */
#side-nav a:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* 현재 선택된 메뉴 */
#side-nav .current a {
  color: #40c4ff !important; /* 밝은 파랑 */
  font-weight: bold;
}




.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  bottom: 116px;
  right: 19px;
  background-color: #5865F2;
  box-sizing: border-box;
  width: 44px;
  color: white;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.discord-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.discord-label {
  margin-left: 8px;
  color: white;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.discord-button:hover {
  width: 170px;
  background-color: #6e79ff;
  transform: scale(1.05);
}

.discord-button:hover .discord-label {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 950px) {
  .mobile-quick-link {
    display: block;
    background: rgba(255,255,255,0.08);
    border-left: 4px solid #5865F2;
    margin: 12px 0 16px;
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
  }
  .mobile-quick-link a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
  }

    html, body {
    overflow: auto !important;
    overflow-anchor: none !important;
    -webkit-overflow-scrolling: touch;
    }

}

@media (min-width: 951px) {
  .mobile-quick-link {
    display: none;
  }
}



