/* 공통 */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --color-body: #f0f0f0;
  --color-point: #5ac0fa;
  --color-primary: #0c1a39;
  --hover-primary: #253351;
  --hover-basic: #f0f0f0;
  --color-secondary: #848b9b;
  --color-border: #caccd0;
  --shadow-input: inset 2px 2px 4px #00000014;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, system-ui, sans-serif;
}

body {
  width: 100vw;
  height: 100vh;
  background-color: var(--color-body);
  color: var(--color-primary);
}

ul,
li {
  list-style: none;
}

a {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: 0.2s;
}

img {
  vertical-align: top;
}

button {
  color: inherit;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: 0.2s;
  outline: none;
}

@keyframes icon {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-20%);
  }
}

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  width: max-content;
  background-color: var(--color-body);
  color: var(--color-primary);
  font-size: 15px;
  text-align: center;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  pointer-events: none;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

.wrap {
  width: 100%;
  height: 100%;
  display: flex;
}

.side_bar {
  width: 300px;
  height: 100vh;
  background-color: #ffffff;
  border-right: 1px solid var(--color-border);
  padding: 64px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.home_logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
}
.home_logo > h2 {
  font-size: 14px;
  font-weight: 500;
}

.side_btns {
  margin-bottom: 26px;
}
.side_btns > a {
  width: 100%;
  height: 40px;
  line-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: 18px;
}
.side_btns > a > span {
  font-size: 15px;
  font-weight: 500;
}
.side_btns > a:hover {
  background-color: var(--hover-basic);
}

.side_menu_area {
  width: 100%;
  height: calc(100vh - 94px - 76px - 44px - 150px);
  /*height: calc(100vh - 94px - 76px - 36px - 98px - 26px - 150px);*/
  margin-top: 44px;
  overflow-y: scroll;
}
.side_menu_area > li:last-child > a {
  margin-bottom: 0;
}

.side_menu_area::-webkit-scrollbar {
  width: 0;
}

.side_menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 24px;
}
.side_menu > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.side_menu > div > span {
  display: block;
  width: 82%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side_menu:hover {
  background-color: var(--hover-basic);
}

.present_category {
  text-decoration: underline;
  background-color: var(--hover-basic);
}

.write_count {
  font-weight: 600;
  text-align: right;
}

.main_area {
  position: relative;
  width: calc(100% - 300px);
  height: 100%;
  padding: 0 40px 48px;
  overflow-y: scroll;
}

.main_area::-webkit-scrollbar {
  width: 12px;
}

.main_area::-webkit-scrollbar-thumb {
  background-color: rgb(222, 222, 222);
  border-radius: 2px;
}

.main_area::-webkit-scrollbar-thumb:hover {
  background-color: #b8b7b7;
}

.main_area::-webkit-scrollbar-track {
  background-color: #d3d3d3;
  border-radius: 2px;
}

.login_btn,
.logout_btn {
  position: unset;
  margin-top: 30px;
  font-size: 15px;
  /*top: 30px;*/
  /*right: 40px;*/
  width: 138px;
  height: 44px;
  line-height: 44px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
}

.login_btn {
  color: #ffffff;
  background-color: var(--color-primary);
}
.login_btn:hover {
  background-color: var(--hover-primary);
}

.logout_btn {
  background-color: #ffffff;
  border: 1px solid var(--color-secondary);
}
.logout_btn:hover {
  background-color: var(--hover-basic);
}

.white_bg {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.disable_btn {
  opacity: 0.4;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}
.pagination > button {
  width: 30px;
  height: 30px;
  line-height: 30px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
}
.pagination > button:hover {
  background-color: var(--hover-basic);
}
.pagination > button.disable_btn:hover {
  background-color: #ffffff;
}
.page_arrow {
  margin: auto;
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.page_prev {
  border-right: 6px solid var(--color-primary);
}
.page_next {
  border-left: 6px solid var(--color-primary);
}
.pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.page {
  padding: 2px 6px;
}
.page:hover {
  text-decoration: underline;
}
.present_page {
  font-weight: 700;
  text-decoration: underline;
}

.gotop {
  display: flex;
  visibility: hidden;
  opacity: 0;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50px;
  position: fixed;
  bottom: 2%;
  right: 1.5%;
  z-index: 1;
  background-color: #ffffff;
  box-shadow: 0px 4px 9px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: 0.2s;
}

.gotop:hover {
  background-color: var(--hover-basic);
}

.gotop.active {
  visibility: visible;
  opacity: 1;
}

.hidden {
  display: none !important;
  transition: all 0.3s ease-out;
}

/* 모바일에서 보이는 부분 */

.menu_btn,
.close_btn {
  display: none;
  background-color: transparent;
  box-shadow: none;
}

.menu_box {
  position: absolute;
  z-index: 1;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.39);
}
.menu_box > div {
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  /*height: calc(100% - 33px - 20px - 20px - 98px - 24px);*/
  height: calc(100% - 60px);
}
.menu_box > div::-webkit-scrollbar {
  width: 0;
}

.menu_btns {
  margin-top: 24px;
  /*margin-bottom: 12px;*/
  align-self: center;
}
.menu_btns > a {
  width: 180px;
  height: 40px;
  line-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: 18px;
}
.menu_btns > a:last-child {
  margin-bottom: unset;
}

.mobile_logout {
  color: var(--color-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  margin-bottom: 20px;
}
/* step01,02 공통 css */
.category_title {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1;
  width: calc(100% - 300px);
  height: 104px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.category_title > h2 {
  font-weight: 500;
}
.category_title > span {
  font-size: 24px;
  font-weight: 900;
}

.write_state > span {
  position: relative;
  margin-left: 10px;
  color: var(--color-secondary);
}
.write_state > span::before {
  content: "|";
  position: absolute;
  color: var(--color-border);
  left: -10px;
}
.write_state > span:first-child {
  margin-left: 0;
}
.write_state > span:first-child::before {
  display: none;
}

footer {
  padding: 85px 0 0;
}
footer > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 8px;
}
footer > div > a {
  color: var(--color-secondary);
  font-size: 12px;
  text-decoration: underline;
}
.copyright {
  color: var(--color-secondary);
  font-size: 12px;
  text-align: center;
}
footer > .copyright {
  margin-top: 24px;
}
footer > .footer_copyright {
  margin-top: 0;
}

.mobile_category {
  padding-top: 24px;
}
