/*메롱이다*/

@import url("https://fonts.googleapis.com/css2?family=Nanum+Gothic&family=Nanum+Gothic+Coding:wght@400;700&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css");

/*레이아웃*/
* {
  box-sizing: border-box;
}

html,
body {
  font-family: "Pretendard Variable", sans-serif;
  font-display: swap;
  font-weight: 500;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /*font-size:3.2vw;*/
  /* font-size: clamp(0.88rem, 2.5vw, 15px); */
}
@media (max-width: 500px) {
  body,
  html {
    font-size: 3.8vw;
  }
}

body:not(.dark),
body:not(.dark) #content,
body:not(.dark) .selectPanel,
body:not(.dark) header,
body:not(.dark) aside,
#topicSelect {
  background: #fdfdff !important;
}

body {
  width: 100%;
  height: 100%;
  display: flex;
}

/*
aside,#menu .icon{/* border:red 1px solid; }
header{border:blue 1px solid;}
.logo{border:orange 1px solid;}
#menu{border:black 1px solid}
aside,#menu .icon,main,header,.logo,#menu{border-color:transparent !important;}
*/
aside,
main {
  display: flex;
  flex-direction: column;
}

aside {
  width: 6.5rem;
  padding: 10vh 1rem;
  align-items: center;
  margin-right: 5rem;
  justify-content: center !important;
}
main {
  width: calc(100% - 11.5rem);
  height: 100%;
}
main > * {
  flex-shrink: 1;
}

header {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 5px 20px;
}
header .logo {
  display: none;
}

aside .logo img {
  width: 3.2vw;
  height: auto;
}

header #sideUp {
  gap: 15px;
  margin-left: auto;
  height: 100%;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: row;
}

header #sideUp .icon {
  height: 75%;
  /* opacity: 0.8; */
  flex-shrink: 1;
}
header #sideUp #prof {
  height: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
}
header #sideUp #prof .ProfSty {
  width: 100%;
  height: 100%;
}

header .unlogined {
  gap: 5px;
}
body.login .unlogined {
  display: none;
}
body.login .logined {
  display: flex !important;
}
.logined {
  width: 100%;
}

aside .logo {
  /* width: 100%; */
  /* height: 200px; */
}
.logo {
  height: 3rem;
  width: 3rem;
  aspect-ratio: 1;
}
.newLabel {
  animation: biggerShow 0.5s ease;
  font-size: 0.8em;
  font-family: "42dot Sans", sans-serif !important;
  padding: 0px 4px;
  border-radius: 25px;
  position: absolute;
  background: #fc3955;
  color: white;
  font-weight: bolder;
  right: -0.35rem;
  top: -0.25rem;
}

#content {
  width: 100%;
  min-height: calc(100% - 6%);
  background: white;
}
#onContent {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #00000040;
  backdrop-filter: blur(2px);
  z-index: 10000;
  animation: blurShow 1s ease;
  display: none;
  justify-content: center;
  align-items: center;
}
#onContent iframe {
  box-shadow: 0 15px 15px #00000020;
}

#content,
#typeContent {
  width: calc(100%);
  height: calc(100vh - 6%);
  height: calc(100dvh - 6%);
  padding: 20px;
  padding-bottom: 80px;
  overflow-y: scroll;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  flex-direction: column;
}
#content,
#typeContent * {
  flex-shrink: 0;
}
#content,
#typeContent * {
  flex-shrink: 0;
}
.icon.target {
  animation: biggerShow 0.8s ease;
}
#menu {
  gap: 9vh;
  width: 100%;
  /* height:100%; */
  display: flex;
  flex-direction: column;
  margin-top: 10vh;
  align-items: center;
  /* justify-content:space-between !important; */
}
#menu .icon {
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  justify-items: center;
  align-items: center;
}
.icon img {
  width: auto;
  height: 70%;
}
#menu .icon img:not(.target *) {
  opacity: 0.25;
}

/*#content{background:black;}
*/

/*요소*/
.emo {
  user-select: text;
  margin: 0 0.2rem !important;
}
.emo img {
  display: inline-block;
  height: 1.4rem;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  margin-bottom: 0.15rem !important;
  vertical-align: middle;
}

.writterTag {
  height: fit-content;
  padding: 2.5px 3px;
  margin-left: 3px;
  font-size: 0.7em;
  font-weight: 680;
  user-select: none;
  line-height: 1 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #00000018;
  color: rgb(52, 52, 52);
  border-radius: 100px;
  opacity: 0.8;
}
body.dark .writterTag {
  background: #ffffff30;
}

*:not(.loadingPage):not(.loadingPage *):not(.space *) {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
* {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
textarea,
input[type="text"] {
  font-family: "Pretendard Variable", sans-serif;
  font-weight: 600;
}
a {
  text-decoration: none;
  color: black;
}
a:hover {
  text-decoration: none;
  color: black;
  text-decoration: underline;
}
button,
textarea::placeholder {
  user-select: none;
}

img {
  user-select: none;
  user-drag: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
button {
  font-family: "42dot Sans", sans-serif !important;
  padding: 6px 10px;
  border: none;
  font-weight: 800;
  border-radius: 14px;
  font-size: 0.85rem;
  transition: all 0.5s ease;
}
.highB {
  background: rgb(40 40 40);
  color: white;
}
.midB:not(.writter *) {
  background: #f3f3f3;
}
.midB:not(.writter *):hover {
  color: #000000bb;
  background-color: #eaeaea;
}

.ProfSty {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.ProfSty section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: #00000040;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ProfSty.noring:not(.killNoring) section {
  background: transparent !important;
}
.ProfSty section > div {
  width: 100%;
  height: 100%;
  transform: scale(0.9);
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ProfSty.noring:not(.killNoring) section > div {
  transform: scale(0.95);
  background: transparent;
}
.ProfSty .staticer {
  width: 100%;
  height: 100%;
  transform: scale(0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.ProfSty.noring:not(.killNoring) .staticer {
  transform: scale(0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.ProfSty img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  visibility: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.beta {
  margin: 0 10px;
  background: black;
  color: white;
  padding: 1px 5px;
  border-radius: 10px;
  font-size: 0.82em;
  font-weight: 550;
  background: linear-gradient(to right, #646affcc, #ff44f0cc);
}
body.dark .darkImg {
  filter: invert(1);
}
#postBox .postImg {
  aspect-ratio: 1;
}
.postImg {
  width: 100% !important;
  /*aspect-ratio: 1;*/
  overflow: hidden;
  border-radius: 10px;
  background: black;
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
body.dark .postImg {
  background: white;
}

.postImg img {
  width: 100% !important;
  height: auto !important;
  margin: 0;
  animation: blurShow 1s ease;
}
.postImg.showBigger {
  width: 100vw !important;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 0;
  align-items: center;
  background: #00000050;
  z-index: 99999999999999999999999999999999;
}
.postImg.showBigger img {
  max-height: 700px;
}
.toggle {
  width: 50px;
  height: 30px;
  border-radius: 100px;
  padding: 5px;
  position: relative;
  background: #eaeaea;
  margin-left: auto;
  transition: all 1s ease;
}
body.dark .toggle:not(.on) {
  background: #3f3f3f;
}
.toggle.on {
  background: #4c6dff;
}
.toggle div {
  border-radius: 50%;
  height: 100%;
  aspect-ratio: 1;
  background: white;
  transition: margin-left 1s ease;
}
.toggle.on div {
  margin-left: auto;
}

.popC {
  width: 220px;
  height: 90%;
  border-radius: 15px;
  overflow: hidden;
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
}

.popC::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 60%;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

footer {
  width: 100%;
  min-height: 300px;
  background: #00000015;
  color: #00000060;
  font-size: 1rem;
  opacity: 0;
  animation: blurShow 0.5s ease forwards 1s;
}
footer img {
  height: 25px;
  opacity: 0.4;
}
body.dark footer img {
  filter: invert(1);
}
body.dark footer {
  background: #ffffff15;
  color: #ffffff80 !important;
}

.txtInput {
  outline: none;
  width: 100%;
  margin: 8px 0 22px 0;
  padding: 11px 16.5px;
  background-color: white;
  border: 1px solid #39393920;
  border-radius: 16px;
  font-size: 15px !important;
  transition: all 0.5s ease;
  overflow: hidden;
  box-shadow: 0 8px 10px #00000000;
}

.txtInput:hover {
  border: 1px solid #522d0a30;
}

.txtInput:focus {
  transform: translateY(-2px);
  border-radius: 20px;
  border: 1.5px solid #522d0a30;
  box-shadow: 0 8px 10px #00000010, inset 0 5px 7px #572f0a08;
}

.txtInput::placeholder {
  color: #00000050;
  font-size: 15px;
}

.online,
.offline {
  width: 0.8rem !important;
  height: 0.8rem !important;
  aspect-ratio: 1;
  border-radius: 50%;
  flex-shrink: 0 !important;
  margin: 0 5px;
}
.online {
  background: #37c695;
}
.offline {
  background: transparent;
  border: 0.2rem solid gray;
}
.selectPanel {
  padding: 0 15px;
  display: flex;
  gap: 20px;
}

.selectPanel div {
  font-weight: 600;
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(12px, 0.95rem, 16px);
  padding: 0.7rem 1rem;
  padding-top: 1.5rem;
  border-bottom: 0.13rem solid transparent;
  transition: all 0.5s ease;
  opacity: 0.5;
}
.selectPanel div:hover {
  cursor: pointer;
}
.selectPanel .selected {
  border-bottom: 0.14rem solid black;
  font-weight: 700 !important;
  opacity: 0.8;
}

.helper {
  font-weight: 800;
  color: #8f80ff !important;
}
.helper:hover {
  font-weight: 800;
  color: #a47dff !important;
  text-decoration: underline;
}
#loadingPage {
  background: rgb(253, 253, 253);
  position: fixed;
  z-index: 9999999999999999;
}
#loadingPage,
#loadingPage > div {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
}
#loadingPage img {
  animation: logo 0.8s ease-in-out 1s;
}
@keyframes logo {
  0% {
    transform: scaleX(1) scaleY(1) translateY(0);
  }
  25% {
    transform: scaleX(0.9) scaleY(1.4) translateY(-7px);
  }
  75% {
    transform: scaleX(1.1) scaleY(0.8) translateY(5px);
  }
  100% {
    transform: scaleX(1) scaleY(1) translateY(0);
  }
}
#loadingPage > div {
  position: relative;
}
#loadingPage > div > span {
  line-height: 1;
  position: absolute;
  bottom: 10%;
  opacity: 0.75;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  text-align: center;
}
body.dark #loadingPage {
  background: black;
}
#loadingPage article {
  font-size: 1.2rem;
  font-weight: 750;
}
#loadingPage img {
  width: auto;
  height: 60px;
}
body.dark #loadingPage img {
  filter: invert(1);
}

.bigAlarm {
  width: 100vw;
  height: 100vh;
  background: #00000040;
  backdrop-filter: blur(2px);
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  top: 0;
  left: 0;
  transition: all 0.5s ease;
  font-size: 0.95rem;
}

.bigAlarm .title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 750;
}

.bigAlarm > div {
  width: 80%;
  max-width: 380px;
  min-width: 285px;
  height: fit-content;
  max-height: 300px;
  border-radius: 20px;
  background-color: white;
  padding: 20px;
  position: relative;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: biggerShow 0.5s ease;
}
.bigAlarm div > div {
  opacity: 0.8;
  margin-top: 5px;
}

body.dark .bigAlarm > div {
  background-color: #2d2e30;
  border: 1px solid #48494d;
}

.bigAlarm > div > article {
  width: 100%;
  display: flex;
  gap: 4%;
  margin-top: 30px;
  justify-content: center;
  align-items: center;
}

.bigAlarm > div > article button {
  width: 45%;
  border-radius: 100px;
  padding: 12px 25px !important;
  font-size: 1.1em;
}

body.dark .bigAlarm > div > article button {
  background: #141517 !important;
  color: white !important;
  border: none !important;
}
body.dark .bigAlarm > div > article button:not(.highB) {
  background: #444649 !important;
  color: white !important;
}
.link {
  color: #56aaee;
  font-weight: 500;
  transition: all 0.5s ease;
}
.link:hover {
  color: #0050da;
}
.color {
  color: #45d38c;
}
.tag {
  transition: all 1s ease;
  width: 10px;
}
.roleTag {
  height: fit-content;
  padding: 2.5px 3px;
  margin-left: 4px;
  border-radius: 6px;
  font-size: 0.6em;
  font-weight: 680;
  user-select: none;
  color: white;
  line-height: 1 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.adminTag {
  background-color: rgb(117, 104, 255);
}
.VIPTag {
  background-color: #ff637d;
}
* body span.mention {
  flex-grow: 0;
  flex-basis: auto;
  max-width: auto;
  border-radius: 5px;
  height: 1rem;
  padding: 1px 2px;
  font-weight: 680;
  color: #5ba5ff !important;
  transition: all 0.5s ease;
  display: inline-flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}
* body span.mention:hover {
  color: #0f7bff !important;
  background: #0073ff26;
}
.tag img {
  animation: glow 3.5s ease infinite;
  filter: drop-shadow(10px 10px 15px #ffb732c5);
  height: 14.5px;
  margin-left: 2px;
  margin-right: 2px;
  transform-origin: center;
}
.alarmWindow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  max-width: 70%;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 2rem;
  background: rgb(0, 0, 0);
  backdrop-filter: blur(3px);
  border-radius: 2rem;
  transition: all 0.8s ease !important;
  color: #ffffffef;
  z-index: 10000000000000000000000000000000000;
  box-shadow: 0 7px 5px #00000020, 0 0 3px #00000020,
    inset -2px -2px 3px #00000015, inset 4px 4px 5px #ffffff20;
}
.loading {
  animation: spin 0.8s linear infinite;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #dbdbdb;
  border-top: 1px solid #0000008b !important;
  margin: 10px;
  aspect-ratio: 1;
}

/*이전 다크모드*/
body.dark {
  background: rgb(22, 22, 25) !important;
}
body.dark .txtInput {
  background: #00000030;
  color: #ffffffd4;
  border-color: rgba(255, 255, 255, 0.18);
}
body.dark .txtInput::placeholder {
  color: #ffffff30 !important;
}
body.dark .selectPanel .selected {
  border-bottom: 0.13rem solid rgba(255, 255, 255, 0.904);
}
body.dark aside,
body.dark header {
  background: rgb(22, 22, 25) !important;
  border-color: #ffffff00 !important;
}
body.dark .logo:not(aside *) {
  filter: invert(1);
}
body.dark .logo:hover {
  filter: invert(1) drop-shadow(0px 8px 1px #fffcfc30);
}
body.dark #content,
body.dark #typeContent {
  min-height:100vh;
  overflow-x: hidden;
  background-color: rgb(22, 22, 25);
}
body.dark aside {
  color: #e8e8e8 !important;
}
body.dark {
  background-color: #000;
  color: #e8e8e8;
}

body.dark textarea,
body.dark input {
  background: transparent !important;
  color: white !important;
}
body.dark .ProfSty,
body.dark .ProfSty *,
body.dark header .ProfSty {
  filter: invert(0) !important;
}
body.dark .loading,
body .loading.dark {
  border: 1px solid rgba(181, 181, 181, 0.3) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.897) !important;
  margin: 10px;
  aspect-ratio: 1;
}

/*확정다크모드*/
body.dark .midB {
  background: #ffffff40 !important;
  color: #ffffffbb;
}
body.dark aside .icon img {
  filter: invert(1) !important;
}
body.dark header #sideUp #prof {
  border-color: #ffffff15;
}
body.dark .ProfSty,
body.dark .ProfSty *,
body.dark header .ProfSty {
  filter: invert(0) !important;
}
body.dark .icon img:not(aside *):not(header .logo img) {
  filter: invert(1);
}
body.dark .highB {
  filter: invert(1);
}

/*모바일*/
@media (max-width: 1000px) {
  aside {
    align-items: normal;
    margin-right: 0;
  }
  .selectPanel {
    justify-content: space-between;
  }
  aside .newLabel {
    right: calc(50% - 0.5rem);
    transform: translateX(50%);
  }
  body {
    flex-direction: column;
  }
  header,
  aside {
    /* height:5.6%; */
    height: 2.9rem;
    padding: 0.6rem 8%; /* min-height:35px; */
  }
  header {
    padding: 0.5rem 5%;
  }
  aside {
    width: 100vw;
    display: flex;
    flex-direction: row;
    margin-right: 0;
    position: absolute;
    bottom: 0;
    z-index: 10000; /*적당히 이길수 있음ㅋㅋ*/
    background: #ffffffee !important;
    backdrop-filter: blur(5px);
  }
  main {
    width: 100%;
  }
  aside .logo {
    display: none;
  }
  header .logo {
    display: block;
  }
  .logo {
    height: 100%;
    width: auto;
    aspect-ratio: 1;
  }
  #sideUp {
    gap: 3vw !important;
  }

  #menu {
    margin: 0;
    padding: 0;
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
  }
  #menu .icon {
    height: 95%;
  }
  #menu .icon {
    max-height: 40px;
    max-width: 40px;
  }
  .icon img {
    width: auto;
    height: 92%;
  }

  header #sideUp #prof {
    height: 90%;
    aspect-ratio: 1;
    border-radius: 50%;
  }

  /*다크모드*/
  body.dark aside {
    backdrop-filter: blur(10px) !important;
    background: rgba(22, 22, 25, 0.9) !important;
  }
}

/*애니메이션*/
@keyframes blurShow {
  0% {
    filter: blur(2px);
    opacity: 0;
  }
  100% {
    filter: none;
    opacity: 1;
  }
}
@keyframes like {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.92) translateY(2px);
  }
  60% {
    transform: scale(1.12) translateY(-1px);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes up {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.9) translateY(3.5px);
  }
  75% {
    transform: scale(1.12) translateY(-4.5px);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes isMore {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30%, 0);
  }
  100% {
    transform: translate(0, 0);
  }
}
@keyframes biggerShow {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes glow {
  0% {
    filter: none;
  }
  50% {
    filter: brightness(1.15) contrast(1.1);
  }
  100% {
    filter: none;
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
