body {
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #222;
  background-color: #fff;
  display: none;
  font-size: 18px;
  line-height: 1.7;
}

* {
  scrollbar-width: thin;
}

body.dark-theme {
  color: #eee;
  background-color: #121212;
}

.hljs-copy-wrapper {
  white-space: pre-wrap;
}

nav {
  top: 0;
  left: 0;
  height: 60px;
  position: fixed;
  width: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 30px;
  background-color: inherit;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  font-size: 20px;
  font-weight: 400;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

nav a {
  color: inherit;
  text-decoration-line: none;
  word-break: keep-all;
  font-size: 20px;
}

nav a svg {
  height: 40px;
}

nav a svg g {
  height: 40px;
  fill: #000;
}

.dark-theme nav a svg {
  height: 40px;
  fill: #000;
}

nav div {
  display: flex;
  align-items: center;
  column-gap: 30px;
}

.dic {
  cursor: pointer;
}

.blog {
  cursor: pointer;
}

.menu-flex {
  display: flex;
  flex-wrap: wrap;
}

.search-bar {
  display: flex;
  align-items: center;
  outline: none;
  height: 40px;
  border-radius: 20px;
  border: 1px solid #bcbcbc;
  padding: 10px;
}

.search-bar form {
  display: flex;
  align-items: center;
}

.search-bar input {
  margin-left: 5px;
  width: 125px;
  border: #fff;
  outline-style: none;
  &::-webkit-search-decoration,
  &::-webkit-search-cancel-button,
  &::-webkit-search-results-button,
  &::-webkit-search-results-decoration {
    display: none;
  }
  font-size: 18px;
  font-weight: 400;
  background-color: inherit;
  color: inherit;
}

/* input 자동 완성 시 색상 제거 */

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1.875rem #fff inset;
  -webkit-text-fill-color: #000;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s;
}

.search-btn {
  display: flex;
  align-items: center;
  background: inherit;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  cursor: pointer;
}

#search-icon {
  width: 20px;
  height: 20px;
}

.dark-theme #search-icon {
  filter: brightness(140%);
}

#root {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
}

.hbg-menu {
  position: fixed;
  display: none;
  width: 100%;
  align-items: center;
  flex-direction: column;
  margin-top: 60px;
  background-color: inherit;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  z-index: 4;
  row-gap: 10px;
  padding: 10px;
  max-height: calc(100% - 60px);
  overflow-y: scroll;
  scrollbar-width: none;
}

.hbg-menu a {
  color: inherit;
  text-decoration-line: none;
  word-break: keep-all;
  font-size: 20px;
}

.show-menu {
  display: none;
}

footer {
  position: relative;
  display: flex;
  height: 100px;
  width: 100%;
  align-items: center;
  padding: 70px;
  color: #cdcdcd;
  background-color: #333;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 20px;
}

main {
  display: block;
  margin-top: 144px;
  padding-bottom: 48px;
  /* padding-bottom: 96px; */
  width: 800px;
  flex: 1;
  padding-left: 15px;
  padding-right: 15px;
}

main a {
  width: fit-content;
  word-break: keep-all;
  white-space: nowrap;
  color: #0069ce;
  font-size: 18px;
}

main p {
  margin-bottom: 24px;
  margin-top: 0px;
  font-size: 18px;
}

main h1 {
  font-size: 36px;
}

main h2 {
  margin-bottom: 15px;
  margin-top: 0px;
  font-size: 27px;
  font-weight: 500;
}

.dark-theme main a {
  color: #7cbdff;
}

.prevNextBtnBar {
  display: flex;
  position: relative;
  flex-direction: row;
  max-width: 790px;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 64px;
}

.prevNextBtnBar button {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 6px;
  padding-left: 10px;
  padding-right: 10px;
  color: #eee;
  background: #222;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
}

.dark-theme .prevNextBtnBar button {
  display: flex;
  align-items: center;
  color: #eee;
  background: #7cb342;
}

.btn-toggle {
  display: flex;
  align-items: center;
  border: none;
  background: inherit;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
  width: 40px;
}

.btn-toggle svg {
  width: 30px;
  height: 30px;
}

.dark-theme .btn-toggle svg {
  fill: #eee;
}

code {
  font-family: Consolas, SF Mono, Menlo, DejaVu Sans Mono, Roboto Mono,
    monospace;
  font-weight: 500;
}

.hbg-btn {
  float: right;
  display: none;
  align-items: center;
  border: none;
  background: inherit;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
  max-width: 38px;
  height: 40px;
  background: inherit;
}

.hbgsvg1 {
  width: 30px;
  height: 30px;
  display: none;
}

.hbg-open-show {
  display: flex;
}

.hbgsvg2 {
  width: 38px;
  height: 37px;
  display: none;
}

.hbg-close-show {
  display: flex;
}

.dark-theme .hbg-btn svg {
  fill: #eee;
}

header {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  width: 100%;
  height: 40px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  z-index: 2;
  background-color: inherit;
  border-top: 1px solid #ccc;
}

header div {
  padding-top: 5px;
  padding-bottom: 5px;
  font-weight: 400;
}

header button {
  position: absolute;
  display: flex;
  align-items: center;
  right: 5px;
  border: none;
  background: inherit;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
}

header button svg {
  width: 20px;
}

.dark-theme svg {
  position: relative;
  fill: #eee;
}

.tab-content {
  display: none;
  flex-direction: column;
  margin-top: 100px;
  position: fixed;
  width: 250px;
  height: calc(100% - 100px);
  z-index: 3;
  background-color: #efefef;
  right: 0px;
}

.dark-theme .tab-content {
  background-color: #232323;
}

.show-tab-content {
  display: flex;
}

header .show-tab-content {
  transform: rotate(180deg);
}

.tab-content div {
  position: relative;
  font-size: 24px;
  font-weight: 600;
}

.table-search {
  padding: 15px;
  background-color: #ccc;
}

.table-search .search-bar {
  background-color: #fff;
}

.dark-theme .table-search {
  padding: 15px;
  background-color: #555;
}

.dark-theme .table-search .search-bar {
  background-color: #121212;
}

.table-search .search-bar {
  width: 220px;
}

.table-search .search-bar input {
  width: 182px;
}

.tab-content {
  overflow-y: auto;
  overflow-x: auto;
}

.tab-content .tab-title {
  display: flex;
  justify-content: center;
  background-color: #555;
}

.tab-content ul li {
  list-style-type: none;
  list-style: none;
  padding-bottom: 2px;
  font-size: 18px;
  float: left;
  clear: both;
  width: 100%;
  white-space: nowrap;
}

.current-li {
  background-color: #ccc;
}

.dark-theme .current-li {
  background-color: #888;
}

.tab-content ul li a {
  width: fit-content;
}

.tab-content ul {
  position: relative;
  top: -10px;
  display: flex;
  flex-direction: column;
  word-break: keep-all;
  padding: 0;
  margin: 0;
}

.tab-content a {
  color: inherit;
  text-decoration-line: none;
}

.tab-content .l0 {
  position: relative;
  font-size: 27px;
  padding-left: 20px;
}

.tab-content .l1 {
  position: relative;
  padding-left: 30px;
  padding-right: 5px;
}

.tab-content .l2 {
  position: relative;
  padding-left: 40px;
}

.tab-content .l3 {
  position: relative;
  padding-left: 50px;
}

.table-content {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  padding-top: 20px;
}

@media screen and (max-width: 1024px) {
  .hljs-copy-wrapper {
    max-width: 800px;
    width: 100%;
  }
}

@media screen and (max-width: 820px) {
  main {
    max-width: 800px;
    width: 100%;
  }
  .prevNextBtnBar {
    max-width: 800px;
    width: 100%;
  }
  .hbg-menu .btn-toggle {
    display: none;
  }
}

@media screen and (max-width: 580px) {
  nav .search-bar {
    display: none;
  }
  .hbg-btn {
    display: flex;
  }
  .hbg-menu .search-bar {
    display: flex;
  }
  .hbg-menu div {
    display: none;
  }
  .show-menu {
    display: flex;
  }
}

@media screen and (max-width: 450px) {
  .menu-flex div {
    display: none;
  }
  .menu-flex .btn-toggle {
    display: none;
  }
  .hbg-menu div {
    display: flex;
  }
  .show-menu {
    display: flex;
  }
  .hbg-menu .btn-toggle {
    display: flex;
  }
}
