body {
  min-height: 100vh;
  opacity: 0;
  background: linear-gradient(135deg, #252031 10%, #000 100%);
}
#wrap {
  width: 92%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* 상,하단 이동 버튼 */
div#fixedBtn {
  z-index: 101;
  position: fixed;
  bottom: 4%;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0;
  line-height: 1;
}
div#fixedBtn div {
  cursor: pointer;
}
div#fixedBtn img {
  width: 36px;
}

div#fixedBtn #bottom-btn {
  transform: rotate(180deg);
}

/* 상단 */
#header {
  z-index: 101;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #252031;
  transition: 0.5s;
}
header#header.search-on {
  background-color: #252031 !important;
}
.header-blank {
  display: block;
  height: 80px;
}
#header .inner {
  z-index: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 80px;
  background: #252031;
  overflow: hidden;
}

/* 상단 : 로고 */
#header a.logo-area {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  min-width: 130px;
}
#header a.logo-area #logo {
  color: #fff;
  font-weight: 700;
  animation: blink 1s infinite;
}
@keyframes blink {
  0% {
    border-right: 2px solid transparent;
  }
  100% {
    border-right: 2px solid #fff;
  }
}
/* 상단 : 카테고리 */
#header #category {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
#header #category a {
  position: relative;
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}
#header #category a:after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: #fff;
  margin-top: 4px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
}
#header #category a.now:after,
#header #category a:hover:after {
  width: 100%;
}

/* 상단 : 로그인,검색 */
#header #util {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  gap: 32px;
}
#header #util a {
  color: #fff;
  font-size: 16px;
}
#header #util #search {
  font-size: 0;
  line-height: 1;
  cursor: pointer;
}
#header #util #search img {
  width: 24px;
  height: 24px;
}
#header #util #search .close {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}
#header #util #search .close:before,
#header #util #search .close:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;
  background-color: #fff;
}
#header #util #search .close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}
#header #util #search .close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
#header #util #search:hover .close:before {
  animation: close 0.5s linear forwards;
}
#header #util #search:hover .close:after {
  width: 0;
  animation: close 0.5s linear 0.2s forwards;
}

@keyframes close {
  0% {
    width: 0;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 100%;
  }
}
#header #util #search:hover .open {
  animation: wave 1s linear infinite;
}
#header #util #search:hover .open {
  animation: wave 1s linear infinite;
}

@keyframes wave {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-4px, -1px) rotate(-6deg);
  }
  50% {
    transform: translate(-1px, -4px) rotate(6deg);
  }
  70% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(0, 0);
  }
}
#header #util #search .close,
#header #util #search.on .open {
  display: none;
}

#header #util #search.on .close {
  display: block;
}

@media (max-width: 780px) {
  #header .inner {
    height: 100px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  span.header-blank {
    height: 100px;
  }

  #header .inner a.logo-area {
    position: static;
    transform: translateY(0);
  }
  #header .inner #util {
    position: static;
    transform: translateY(0);
  }
  #header .inner #category {
    order: 2;
    width: 100%;
    justify-content: flex-start;
  }
}

/* 상단 : 검색 */
div#search-area {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  background: linear-gradient(135deg, #252031 10%, #000 100%);
  width: 100%;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-100%);
  transition: 0.5s;
  opacity: 0;
}

div#search-area input {
  border: 1px solid #1a1a1a;
  width: 80%;
  max-width: 400px;
  height: 40px;
  padding: 0 20px;
  background-color: #fff;
  font-size: 14px;
  line-height: 40px;
  box-sizing: border-box;
  outline: none;
}
div#search-area button {
  padding: 0;
  border: 0;
  background-color: transparent;
  margin-left: 12px;
  cursor: pointer;
}
div#search-area button img {
  width: 32px;
}

/* 회원가입, 로그인 */
div#member-area {
  width: 80%;
  max-width: 400px;
  min-height: 70vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

div#title {
  text-align: center;
  margin-bottom: 40px;
}
div#title h2 {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
}

div.join-box,
div.login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

div#member-area label {
  display: block;
  width: 100%;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
div#member-area input {
  border: 1px solid #e3e3e3;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  background-color: #fff;
  font-size: 14px;
  line-height: 48px;
  box-sizing: border-box;
  outline: none;
}
div#member-area input + label {
  margin-top: 24px;
}

div#member-area .member-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 100%;
  height: 60px;
  margin-top: 40px;
  background-color: #cabdeb;
  border: 0;
  color: #252031;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  transition: 0.3s;
}
div#member-area .member-btn:hover {
  background-color: #252031;
  color: #fff;
}

div#member-area a.member-btn {
  margin-top: 16px;
  background-color: #fff;
  border: 2px solid #cabdeb;
  color: #1a1a1a;
  border-radius: 4px;
}
div#member-area a.member-btn:hover {
  background-color: #cabdeb;
  color: #252031;
}

/* 목록,검색 더보기 버튼 */
div#more-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 2px solid #cabdeb;
  padding: 24px 80px;
  margin: 100px auto 0;
  color: #cabdeb;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

div#more-btn:hover {
  color: #fff;
  border-top: 2px solid #cabdeb;
}
div#more-btn:before {
  content: "";
  position: absolute;
  top: 0;
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, #cabdeb -165%, transparent 100%);
  transition: 0.3s;
}
div#more-btn:hover:before {
  height: 100%;
}

/* 하단 출처표기 */
#footer {
  padding: 24px 0;
  font-size: 12px;
  text-align: center;
  color: #fff;
  opacity: 0.7;
}
#footer a {
  color: #fff;
}
