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

@media (max-width: 550px) {
  body,
  html {
    font-size: 5.35vw !important;
  }
}

body{font-size:1.1rem;}

html,
body {
  font-family: "Pretendard Variable", sans-serif;
  font-display: swap;
  font-weight: 500;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

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

.profBar .prof {
  height: 100%;
}
.profBar .profBbar {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 0.6em;
}
.profBnick{
  display:flex;
  align-items:center;
}
.profBar .profBbar .profBtime {
  font-weight:600;
  opacity: 0.6;
}

.post:active{
  transform:scale(0.995)
}
body.dark .post {
  /* border-color: #ffffff15; */
}
.post .postProfile {
  width: 100%;
  display: flex;
  font-size: 0.86em;
  align-items:center;
}
.post .postProfile .profBar {
}

.post .profButton {
  margin-left: auto;
  margin-right: 0.2rem;
  height: 2.5em;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
  transition: all 0.5s ease;
}
.post .imgUpList {
  width:100%;
  max-height: 14em;
  overflow: hidden;
  margin: 1rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius:0.5rem;
  height:fit-content;
  margin-bottom:0;
}
.post .imgUpList > * {
  height: fit-content;
}
.writter .imgUpList {
  display: none;
}
.post .many {
  width: fit-content;
  overflow: auto;
  flex-shrink: 0;
  height: 15rem;
}
.post .many > *{
  width:fit-content !important;
  height:100% !important;
}
.post .postImg:not(.many *){
  height: 14em;
  width:fit-content;
}
.post .many .postImg{
  height: 13em !important;
  width:fit-content;
}
.post .postImg:not(.many *) img{
  
}
.post .profButton:hover {
  background: #00000020;
}

.post .profButton:active {
  transform: scale(0.9);
  background: #00000025;
}
.post .profButton img {
  height: 50%;
  width: auto;
  transform: rotate(90deg);
  opacity: 0.5;
  transition:all 0.5s ease
}
.post .profButton:hover img{opacity:1}
.post:not(.writter) .postInfo {
  display: flex;
}
.post:not(.writter) .postInfo:not(:has(*)) {
  display: none;
}
body.dark .post .profButton {
  filter: invert(1);
}
.post:not(.writter) .postInfo .tag {
  width: fit-content;
  padding: 0.1rem 0.3rem;
  border-radius: 100px;
  opacity: 0.8;
  font-size: 0.9em;
  min-width: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.post .postContent .long{
  scrollbar-width:none;
  max-height:10rem;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, #000000 30%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, #000000 30%);
  overflow-y:hidden
  
}
.post .postContent .postCedit {
  display: none;
}
.post .postTail .postTailButton {
  display: flex;
  padding: 0.1em 0.3em;
  border-radius: 0.5em;
  align-items: center;
  gap: 0.4em;
  transition: all 0.5s ease;
  letter-spacing: 0.03em;
  font-weight: 600;
  user-select: none;
  margin-top:0.5em;
}
.post .postTail .postTailButton:hover{
  opacity:1
}
.post .postTail .postTailButton:hover {
  cursor: pointer;
}
.post .postTail .postTailButton:active {
  transform: scale(0.9);
}
.post .postTail .postTailButton img {
  height: 1.05em;
  width: auto;
  transition: all 0.5s ease;
}
.post .postTail .postTailButton img:not(.L1 *) {
  opacity: 0.7;
}
.post .postTail .postTailButton span:not(.L1 *) {
  opacity: 0.5;
}
.post .postTail img:not(.L1 *) {
  filter: grayscale(100%);
}
body.dark .post .postTail img:not(.L1 *) {
  filter: grayscale(100%) invert(1);
}
.post .L1 img {
  animation: like 0.8s ease;
}
.post .L1 span {
  color: #ff3e62 !important;
}

.L1 {position:relative}
.L1 ::after{
  content:'';
  position:absolute;
  aspect-ratio:1;
  height:1.45em;
  background:#ff3e6210;
  top:50%;
  transform:translateY(-50%);
  left:0.06em;
  opacity:0.5;
  border-radius:100%;
  filter:blur(0.2em);
  animation:biggerShowL1 1s ease, show 0.5s ease,show 0.5s ease 0.25s reverse forwards;
}
.post .postCCpreview {
  display: flex;
  font-size: 0.85em;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #00000015;
  border-radius: 0.5rem;
}
.post .postCCpreview .prof {
  height: 1.3rem;
}
body.dark .post .postCCpreview {
  background: #ffffff15;
}
.post .postWindow {
  position: absolute;
  display: none;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 0.2rem 0.2rem #00000030;
  border-radius: 0.5rem;
  font-size: 0.9em;
  overflow: hidden;
  top: 3.6rem;
  right: 1rem;
  z-index: 1000;
  animation: show 0.5s ease;
}
.post .postWindow.show {
  display: flex;
}
.post .postWindow div {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.8rem;
  gap: 0.6rem;
  width: 100%;
  transition: all 0.5s ease;
  font-weight: 550;
  opacity:0.8
}

img{
  user-select:none;
}

.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;
}

#pageTitle {
  padding: 1.1rem;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}
#pageTitle img {
  height: 1rem;
  transition: all 0.5s ease;
}
#pageTitle img:hover {
  opacity:0.9
}
#pageTitle img:active {
  transform: scale(0.98);
}
#pageTitle img:not(#pageTitle > img){height: 1.1em;}

.bigAlarm > div:first-of-type > div:nth-of-type(2){opacity:0.4;max-width:85%;display:flex;justify-content:center;text-align:center;line-height:1.5}
.bigAlarm .title {
  opacity:1;
  font-size: 1.1rem;
  margin-bottom: 0.2em;
  font-weight: 650;
  max-width:90%;
  user-select:none;
}

.bigAlarm > div {
  width: 80%;
  width: 19rem;
  height: fit-content;
  max-height: 300px;
  border-radius: 0.8rem;
  background-color: white;
  position: relative;
  flex-direction: column;
  display: flex;
  overflow:hidden;
  align-items: center;
  justify-content: center;
  animation: biggerShow 0.5s ease;
  padding-top:1rem;
  /*box-shadow:inset -0.1rem -0.1rem 0.2rem #00000050;*/
}
.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;
  margin-top: 30px;
  justify-content: center;
  align-items: center;
}

.bigAlarm > div > article button {
  width:100%;
  margin:0;
  font-weight:600;
  padding: 0.8rem !important;
  font-size: 0.92em;
  border-radius:0;
  background:transparent !important;
  border:1px solid #00000010;
  border-left:none;
  filter:none !important;
  color:black;

}
.bigAlarm.red button:first-of-type{color:#ff4646 !important}
.bigAlarm button:hover{background:#00000010 !important}
body.dark .bigAlarm button{border-color:#ffffff15}
body.dark .bigAlarm button:hover{background:#ffffff15}
body.dark .bigAlarm button{color:white;}

body.dark .post .postWindow {
  background: rgb(22, 22, 25);
  border: 1px solid #ffffff15;
}
body.dark .post .postWindow img {
  filter: invert(1);
}
.post .postWindow div:hover {
  background: #eaeaea;
}
body.dark .post .postWindow div:hover {
  background: #373737;
}
/*.post:has(.postWindow:hover){z-index:1000}*/
.post .postWindow img {
  height: 1.3em;
}
.ilppa{
  height:1em;
  margin-left:0.2em;
}
.post .replyRow {
  display: none;
  user-select: none;
  width: 100%;
}
.post .replyRow .post {
  width: 100%;
  padding-right: 0;
  margin:0;
  padding-left: 1rem;
  /* font-size:0.92em; */
}
.post .replyRow.show {
  display: block;
}
.replyRow .post {
  /*border-left: 0.1em solid #00000020;*/
}
.replyToggle,.post .postCommentTarget {
  margin-left: 0.3rem;
  font-weight: 700;
  opacity: 0.7;
  background:#00000025;
  color:#00000070;
  width:fit-content;
  font-size:0.9em;
  border-radius:2rem;
  padding:0.5em 0.8em;
  opacity:0.6;
  transition:all 0.5s ease;
}
body.dark .replyToggle,body.dark .post .postCommentTarget{background:#ffffff30;color:#ffffff70}
.replyToggle:hover ,.post .postCommentTarget:hover{
  opacity:0.8
}
.post .postCommentTarget:hover{
  text-decoration:underline;
}
.post .postCommentTarget{
  margin-left:0;
}
/*.replyRow .post::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0rem;
  width: 0.6rem;
  height: 1.5rem;
  border-left: 0.1em solid #888;
  border-bottom: 0.1em solid #888;
  border-radius: 0 0 0 4px;
  transform: translateX(-0.4rem);
}*/
.post .postCCpreview {
  display: none;
}

.tag {
  font-size: 0.75em;
  padding: 0.1em 0.3em;
  margin: 0 0.2rem;
  margin-right: 0;
  border-radius: 0.7em;
  background: #00000020;
  color: #00000080;
  font-weight: 700;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
}
body.dark .tag {
  filter: invert(1);
  color: #00000050;
}

.modePanel {
  display: flex;
  padding: 0.5rem 1rem;
  font-size: 0.8em;
  gap: 0.3rem;
  justify-content: center;
  background:rgb(253, 253, 255);
  position:sticky;
  margin-top:0.5rem;
  top:-0.05rem;
  z-index:500;
}
.modePanel > div {
  background: #00000000;
  padding: 0.4rem 0.6rem;
  border-radius: 1rem;
  color: #00000080 !important;
  font-weight: 600;
  animation: show 0.5s ease;
  transition: all 0.5s ease;
  user-select: none;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #00000035;
  height:1.8rem
}
.modePanel .selected {
  background: #000000de;
  color: #ffffff !important;
}
body.dark .modePanel>div {
  filter: invert(1);
}
body.dark .modePanel{background:rgb(0,0,0);}
.modePanel > div:hover{filter:brightness(1.1)}
.modePanel > div:not(.selected):hover{
  background: #00000030;}
.modePanel > div:active{transform:scale(0.8)}

.link {
  color: #9fd4ff !important;
  font-weight: 600;
  transition: all 0.5s ease;
  text-decoration:none;
  display:inline-block;
  flex-shrink: 1;
  
}
span:has(.link){
  display:inline-block !important;
  flex-shrink: 1;
}
.link:hover {
  color: #84b1ff;
}

* body span.mention {
  flex-grow: 0;
  flex-basis: auto;
  max-width: auto;
  border-radius: 5px;
  height: 1rem;
  padding: 1px 0.1em;
  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;
}

.writter {
  background: white;
  width: 90vw !important;
  max-width: 600px;
  padding: 1.15rem;
  padding-bottom: 0.8rem;
  border-radius: 1.2rem;
  max-height:80%;
  overflow-y:auto;
  /*box-shadow: inset -0.1rem -0.1rem 0.2rem #00000020, 0 0.4rem 0.5rem #00000010;*/
}
.writter .highB:last-of-type{margin:0;margin-left:auto;}
.writter .modePanel {
  padding: 0;
  margin-bottom: 0.2rem;
  margin-left: 0.5rem;
}
.writter .postContent {
  width: 100%;flex-wrap: nowrap;
  padding:0;
  flex-shrink:0;
}
.writter .profBar {
  font-size: 0.95em;
}
.writter textarea {
  font-size:1em;
  width: 100%;
  border: none !important;
  outline: none !important;
  background: transparent;
  white-space: pre-wrap; /* 엔터와 공백 그대로 유지 */
  overflow-wrap: break-word;
  resize: none;
  /* min-height: 3rem; */
  overflow:visible;
  scrollbar-width: none;
}
.writter textarea:active {
  border: none;
}
.writter textarea::placeholder {
  opacity: 0.7;
}
.writter .tag {
  padding: 0.5em;
  opacity: 0.7;
  border-radius:0.5rem;
  transition:all 0.5s ease;
  font-size:0.75em;
}
.writter .tag:active{
  transform:scale(0.6)
}
.writter .postTail {
  margin: 0;
  padding: 0 !important;
  margin-top: 0.6rem;
  align-items:center;
  width:100%;
}
.postMenus {
  display: flex;
  padding: 0 0.5rem;
  padding-left: 0;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.3;
  /* margin-left:0.2rem; */
}
.writter .postInfo {
  display: inline-flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.writter .postInfo input {
  height: 1em;
  font-size: 1.05em;
  font-weight: 700;
  border: none;
  width: 3rem;
  padding: 0;
  resize: horizontal;
}
.writter .postInfo .tag {
  width: fit-content;
  flex-shrink: 0;
}
body.dark .writter .postInfo .tag input{color: #000000 !important;}
.writter .postInfo input:focus {
  outline: none !important;
  border: none !important;
}

.postMenus img {
  height: 1.3rem;
}
.alarmWindow {
  position: fixed;
  bottom: -5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.9rem;
  background: rgb(0, 0, 0);
  border-radius: 0.9rem;
  color: #fff;
  user-select: none;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 0.9em;
  font-weight: 600;
  z-index: 9999999;
  width:fit-content;
  min-width:7rem;
  display:flex;
  justify-content:center;
  align-items:center;
  box-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.3),
    inset 0 -0.5rem 0.3rem rgb(0 0 0 / 5%);
  backdrop-filter: blur(8px);
}

#onContent .window {
  background: white;
  width: 20rem;
  height: fit-content;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  overflow-y:auto;
  height:80%;
}

#__bottomSheet.list > div:last-of-type{
  display:flex;
  flex-direction:column;
  gap:1em;
  font-size:0.9em;
}

body.dark #onContent .window{
  background:rgb(22,22,25);
  border: 1px solid #ffffff30;
}
#onContent .window .title {
  font-size: 1.2em;
  font-weight: 700;
  user-select:none;
}
#onContent .window .txtInput {
  background:none;
  border:1px solid #ffffff30;
}

body.dark .alarmWindow {
  background: #ffffff;
  color:black;
}

.postImg {
  width: fit-content !important;
  min-width:3em;
  /* aspect-ratio: 1; */
  overflow: hidden;
  border-radius: 10px;
  background: #000000de;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #eaeaea;
  animation:show 0.5s ease;
}
body.dark .postImg {
  background: #000000;
  border-color:#ffffff25;
}

.postImg img {
  width: auto !important;
  height: 100% !important;
  margin: 0;
  animation: blurShow 1s ease;
}

body.dark .postMenus img {
  filter: invert(1);
}
.postMenus img{transition:all 0.5s ease}
.postMenus img:active{
  transform:scale(0.6)
}
.writter .button {
  margin:0;
  margin-left: auto;
}

body.dark #__bottomSheet,
body.dark #onContent {
  /* background: rgb(32 32 36) !important; */
}
body.dark #__bottomSheet > div:first-of-type {
  opacity: 0.5;
}

/*모바일*/
@media (max-width: 600px) {
  .selectPanel {
    justify-content: space-between;
  }
  .modePanel {
    justify-content: flex-start;
  }/*좀더 안정적인?
  #onContent .writter{
    width:100vw !important;
    flex:1;
    height:100%;
    max-height:100%;
    border-radius:0;
  }*/
}
@media (max-width: 700px) {
  .post {
    width: 100vw;
    max-width: 100vw;
  }
}

/*다크모드*/
.selectPanel .selected {
  border-bottom: 0.13rem solid rgba(255, 255, 255, 0.904);
  border-bottom:none !important;
  position:relative;
}
.selectPanel .selected::after{
  content:'';
  position:absolute;
  width:100%;
  left:50%;transform:translateX(-50%);
  height:0.15rem;
  background:black;
  border-radius:100px;
  bottom:-0;
  animation:widthBigger 0.5s ease;
}
body.dark .selectPanel .selected::after{
  background:white;
}
@keyframes widthBigger{
  0%{width:20%;opacity:0}
  0%{width:60%;opacity:0.3}
  100%{width:100%;opacity:1}
}
body.dark .loading:not(.highB .loading),
body .loading.dark {
  border: 0.15em solid rgba(181, 181, 181, 0) !important;
  border-top: 0.15em solid rgba(255, 255, 255, 0.897) !important;
  margin: 0.5rem;
  aspect-ratio: 1;
}

body.dark .checkBox span:first-of-type {
  border-color: #727272;
}
body.dark .checkBox span:first-of-type.select {
  background: #ebebeb;
  border: none;
}
body.dark .checkBox span:nth-of-type(2) {
  color: #727272;
}
body.dark .txtInput {
  background: transparent;
  color: white;
  border-color: #72727270;
  border:1px solid #ffffff30;
}
body.dark .txtInput::placeholder {
  color: #ffffff40;
}
body.dark .txtInput {
  background: #ffffff15;
}

/*애니메이션*/
@keyframes reShow {
  0% {
    transition: all 0.5s ease;
  }
  50% {
    opacity: 0;
  }
}
@keyframes show {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes blurShow {
  0% {
    filter: blur(0.1em);
    opacity: 0;
  }
  100% {
    filter: none;
    opacity: 1;
  }
}
@keyframes like {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.92) translateY(0.1em);
  }
  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.5);
  }
  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% {
    rotate:0deg;
  }
  100% {
    rotate:360deg;
  }
}
.toggle {
  width: 3.5em;
  height: 2em;
  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: #6A3CFF;
}
.toggle div {
  border-radius: 50%;
  height: 100%;
  aspect-ratio: 1;
  background: white;
  transition: margin-left 1s ease;
}
.toggle.on div {
  margin-left: auto;
}
#__bottomSheet iframe{width:100%;border:none;height:100vh;height:100dvh;}
body.dark #__bottomSheet{
  background:rgb(22,22,25) !important;
  outline:1px solid #ffffff30
}

.txtInput input{font-size:1em;}
body.dark .selectPanel{background:rgb(0,0,0)}
.blueB{background:#6A3CFF ;color:white !important;transition:all 0.5s ease}
.blueB:hover{filter:brightness(1.2)}
.blueB .loading{filter:invert(1) !important}
body.dark .blueB .loading{filter:none !important}

@keyframes blink {
        0% {
          transform: scaleY(1);
        }
        50% {
          transform: scaleY(0.3);
        }
        100% {
          transform: scaleY(1);
        }
}

.imgView{
  width:90vw;
  max-width:25rem
}

.bar{
  padding:0.8rem;
  margin:0.5rem 0;
  border-radius:0.8rem;
  display:flex;
  flex-direction:column;
  gap: 0.5rem;
  flex:1;
  justify-content: space-around;
  font-size:0.9em;
}

#xpBar{
  background:black;
  color:white;
}
#xpBar img:first-of-type{
  filter:invert(1)
}

#levelBar{
  background:#eaeaea
}

#profEditBar{
  background:#eaeaea;
  margin:0 0.5rem;
  border-radius:0.8rem;
  padding:0.5rem 0.8rem;
  font-size:0.9em;
  display:flex;
  gap:1rem;
  display:none;
}
#profEditBar>*:first-of-type{margin-right:auto;}

body.dark #xpBar img:first-of-type{filter:none;}
body.dark #xpBar{background:#eaeaeaDD;color:black}
body.dark #levelBar{background:#ffffff25;}

.bar img:first-of-type{
  height:1.2em;
}

.bar > div:first-of-type{
  display:flex;
  gap: 0.5rem;
  font-weight:700;
}

.editProfBar{
  display:flex;
  padding:0.3rem;
  align-items:center;
  width:100%;
  margin-bottom:1rem;
}
.editBars{margin:1rem 0;margin-bottom:0.2rem;}
.editProfBar .txtInput,.editBars .txtInput{
  width:100%;
  height:2rem;
  padding:0rem 0.8rem;
  flex:1;
}
.editProfBar input,.editBars input{
  border:none;padding:0;height:100%;width:100%;outline:none
}
body.dark .editProfBar input,body.dark .editBars input{color:white;}
.editProfBar .prof{
  height:3rem;
  margin-right:1rem;
}
.editTitle{
  font-size:0.8em;
  margin-left:0.2rem;
  margin-bottom:0.2rem;
}

.editBars input[type='color']{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  border-radius:2rem;
  padding:0.4rem 0;
}
.editBars input[type='color']::-webkit-color-swatch{
  border-radius:2rem;
}


#editButton{
  height: 2rem !important;
  font-weight:700;
  margin-top:auto;
  flex-shrink:0;
}

.editProfBar .prof:hover:after {
  content: "";
  display: block; 
  width: 100%;
  aspect-ratio: 1;
  background: #00000040;
  opacity: 1;
  background-image: url("https://i.ifh.cc/D7H8lc.png");
  background-size: cover; /* 이미지 꽉 채우기 */
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  animation: blurShow 0.5s ease;
}

#__bottomSheet>div:last-of-type{scrollbar-width:none;}

.post .highB:active{transform:scale(0.9)}


.check{
  height:0.9em;
  display:inline-block;
}
.check img{
  height:100%;
  transition:all 0.5s ease;
  margin:0 0.25em;
  animation:show 0.4s ease;
}

.check img:hover{
  filter:brightness(1.2);
  transform:scale(1.05)
}

.moreSheet .prof{
  animation:spin 2s ease 1s;
}


#onContent .window:has(iframe){
  padding:0;
  display:flex;
  flex-direction:column;
  height: fit-content;
  max-height:80%;
  overflow:hidden;
  justify-content:center;
  align-items:center;
  overflow-y:auto;
  scrollbar-width:none;
}
#onContent iframe{
  border:none;
  width:100%;
  /*flex:1;*/
  transform:scale(1.1);
  height:30rem;
}

.profs {
  display: flex;
  padding: 0.1em;
  border-radius: 0.8em;
  width: 2.5em;
  /* background: #00000010; */
  height: 2.5em;
  flex-wrap: wrap;
  gap: 0.1em;
  position: relative;
  justify-content: center;
}
.profs > * {
  height: 1em;
}

.txtInput:has(input[type='color']){
  padding:0 0.5rem
}

.window .midTitle{
  font-size:0.85em;
  font-weight:600;
  padding: 0.5em;
}

.skip{
  border:1px solid #00000020;
  padding:0.5rem 1rem;
  border-radius:2rem;
  margin:0 auto;
  width:7rem;
  display:flex;
  justify-content:center;
  transition:all 0.5s ease;
}

.skip:active{transform:scale(0.9)}
.skip:hover{background:#00000020}
body.dark .skip:hover{background:#ffffff20}

body.dark .skip{
  border:1px solid #ffffff30;
}

.toonPre{
  display:flex;
  flex-direction:column;
  width:10em;
}
.toonPre .toonPreImg {
  width:100%;
  aspect-ratio:1;
  overflow:hidden;
  border-radius:0.5em;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, #000000 50%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, #000000 50%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
}

.toonPre .toonPreImg img{
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
  transition:all 0.5s ease;
}

.toonPre .toonTitle{font-size:1em;max-width:100%;overflow:hidden;height:1.2em;font-weight: 700;margin-top:0.5em;}
.toonPre .profBar{font-size:0.8em;font-weight:500;height:2em;align-items:center;gap:0.5em;margin-top:0.5em;}
.toonPre .profBar .prof{height:1.4em;}
.toonPre .toonLabel{
  position:absolute;
  background:#ff4646;
  background:#6A3CFF;
  z-index:10;
  top:0.5rem;
  left:0.5rem;
  border-radius:1rem;
  color:white;
  padding:0.2rem;
  font-size:0.8em;
  width:1.8rem;
  display:flex;
  justify-content:center;
  align-items:center;
  font-weight:700
}

.writter #typeChange{
  width:100%;
  display:flex !important;
  font-size:0.9em;
  height:100%;
  /* display:flex; */
  align-items:center;
  flex:1;
  opacity:0.1
}

.writter #typeChange > *:not(.toggle){
  opacity:1;
}
.writter #typeChange .toggle{font-size:0.8em;display:none;}
.writter .postInfo{transition:all 0.5s ease;height:1.3rem;}
.writter .postInfo:not(.show){opacity:0;height:0}

/*기본 레이아웃*/
body *::selection {
  background: #000000;
  color: white;
}
body.dark *::selection {
  background: #898989;
  color: #000000;
}
button,
.button {
  padding: 0.45rem 0.8rem;
  border: none;
  border-radius: 1rem;
  margin: 0.4rem 0.2rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  transition: all 0.5s ease;
  line-height: 1;
}
.button:not(.blueB):hover,
.click:hover {
  opacity: 0.7;
}
.button:active,
.click:active {
  transform: scale(0.9);
}
.highB {
  background: #171717;
  color: #ffffff;
}
.midB {
  background: #eaeaea;
  color: #000000de;
  outline:0.12em solid #00000030;
}
body.dark .highB {
  background-color: #ebebeb;
  color: #000000de;
}
body.dark .midB {
  background-color: #333232;
  color: white;

  outline:0.12em solid #ffffff50;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Pretendard Variable", sans-serif;
  font-weight: 500;
}
.midTitle {
  font-size: 0.95em;
  font-weight: 550;
}
.lowTitle {
  font-size: 0.75em;
}
.lowTitle span {
  margin: 0 0.4rem;
}

.bold {
  font-weight: 600;
}
.under {
  text-decoration: underline;
}

.emo{
  display:inline-block;
  height:1em;
}
.emo img{height:110%;}

.checkBox {
  display: flex;
  align-items: center;
}
.checkBox span:first-of-type {
  transition: all 0.5s ease;
  display: block;
  height: 0.9rem;
  aspect-ratio: 1;
  margin-right: 0.5rem;
  border-radius: 0.3rem;
  border: 0.1rem solid #00000030;
}
.checkBox span:first-of-type.select {
  background: #171717;
}
.checkBox span:nth-of-type(2) {
  display: flex;
  width: 100%;
  flex-shrink: 1;
  height: 100%;
  font-weight: 600;
  font-size: 0.8em;
  color: #00000070;
  flex-wrap: nowrap;
}

textarea,
input {
  background: transparent;
  font-weight: 600;
  font-family: "Pretendard Variable", sans-serif;
}
body.dark textarea,body.dark input{color:white;}

.txtInput {
  /*border: 0.1rem solid #00000020;*/
  background: #00000015;
  border: none;
  border-radius: 0.7rem;
  padding: 0.58rem 0.8rem;
  font-size: 0.85em;
  font-weight: 600;
  color: #000000b0;
}

.txtInput:hover {
}

.txtInput::placeholder {
  color: #00000060;
  font-weight: 500;
}

a {
  word-break: break-word; 
  overflow-wrap: anywhere; 
}

.prof {
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  position: relative;
  transition: all 0.5s ease;
  user-select: none;
  background: #eaeaea;
  outline: 1px solid #00000020;
}
body.dark .prof {
  background: #ffffff15;
  border-color: #ffffff15;
  outline:1px solid #ffffff25
}
.prof img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
  transition:all 0.5s ease;
}
.prof .loading {
  height: 70%;
  position:absolute;
}


.loadEnded{
  opacity:1 !important;
}

.prof:has(.loadEnded) .loading{
  opacity:0;
  
}

.prof:hover {
  opacity: 0.7;
  cursor: pointer;
}
.prof:active {
  transform: scale(0.9);
}

.loading {
  animation: spin 1.2s ease infinite, show 0.5s ease;
  border-radius: 50%;
  border: 0.15em solid transparent;
  border-top: 0.15em solid #0000009b !important;
  margin: 10px;
  aspect-ratio: 1;
  transition:all 0.5s ease
}

body.dark .darkObj {
  filter: invert(1);
}

.selectPanel {
  padding: 0 0.5rem;
  display: flex;
  gap: 0.5em;
  user-select: none;
}

.selectPanel div {
  font-weight: 600;
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  padding: 0.7rem;
  padding-top: 1.5rem;
  border-bottom: 0.13rem solid transparent;
  transition: all 0.5s ease;
  opacity: 0.5;
}

body.dark .selectPanel {
  border-color: #ffffff35 !important;
}
.selectPanel div:hover {
  cursor: pointer;
  opacity:0.9
}
.selectPanel .selected {
  border-bottom: 0.14rem solid #000000de;
  border-bottom:none !important;
  font-weight: 600 !important;
  opacity: 1;
}
.profBar {
  height: 2em;
  display: flex;
  gap: 0.55em;
  font-weight: 600;
  user-select:none;
}
.post .profBar{
  gap:0.7em;
}
.profBar .prof {
  height: 100%;
}
.profBar .profBbar {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 0.6em;
}
.profBnick{
  display:flex;
  align-items:center;
}
.profBar .profBbar .profBtime {
  font-weight:500;
  opacity: 0.6;
}

.post {
  padding: 0.5rem !important;
  padding-bottom:1rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  margin: 0.1rem 0;
  font-size: 0.855rem;
  border-color: #00000020;
  animation: show 0.5s ease;
  position: relative;
  transition:all 0.25s ease;
}
.post:active{
  transform:scale(0.995)
}
body.dark .post {
  /* border-color: #ffffff15; */
}
.post .postProfile {
  width: 100%;
  display: flex;
  font-size: 0.9em;
  align-items:center;
}
.post .postProfile .profBar {
}

.post .profButton {
  margin-left: auto;
  margin-right: 0.2rem;
  height: 2.5em;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
  transition: all 0.5s ease;
}
.post .imgUpList {
  width:100%;
  max-height: 14em;
  overflow: hidden;
  margin: 1rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius:0.5rem;
  height:fit-content;
  margin-bottom:0;
}
.post .imgUpList > * {
  height: fit-content;
}
.writter .imgUpList {
  display: none;
}
.post .many {
  width: fit-content;
  overflow: auto;
  flex-shrink: 0;
  max-height: 14rem;
}
.post .many > *{
  width:fit-content !important;
  height:100% !important;
}
.post .postImg:not(.many *){
  height: 14em;
  width:fit-content;
}
.post .many .postImg{
  height: 13em !important;
  width:fit-content;
}
.post .postImg:not(.many *) img{
  
}
.post .profButton:hover {
  background: #00000010;
}
.post .profButton:active {
  transform: scale(0.9);
  background: #00000025;
}
.post .profButton img {
  height: 50%;
  width: auto;
  transform: rotate(90deg);
  opacity: 0.5;
  transition:all 0.5s ease
}
.post .profButton:hover img{opacity:1}
.post:not(.writter) .postInfo {
  display: flex;
}
.post:not(.writter) .postInfo:not(:has(*)) {
  display: none;
}
body.dark .post .profButton {
  filter: invert(1);
}
.post:not(.writter) .postInfo .tag {
  width: fit-content;
  padding: 0.1rem 0.3rem;
  border-radius: 100px;
  opacity: 0.8;
  font-size: 0.9em;
  min-width: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.post .postContent {
  /* display:block !important; */
  width: 100%;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0 0.1rem;
  overflow-x:auto;
  scrollbar-width:none;
  display:flex !important;
  flex-wrap:wrap;
  flex-direction:column;
}
.post .postContent .long{
  scrollbar-width:none;
  max-height:10rem;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, #000000 30%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, #000000 30%);
  overflow-y:hidden
  
}
.post .postContent .postCedit {
  display: none;
}
.post .postTail {
  display: flex;
  font-size:1.05em;
  gap: 0.7em;
  /* margin-top: 0.5em; */
  margin-bottom: 0.7em;
}
.post .postTail .postTailButton {
  display: flex;
  padding: 0.1em 0.3em;
  border-radius: 0.5em;
  align-items: center;
  gap: 0.4em;
  transition: all 0.5s ease;
  letter-spacing: 0.03em;
  font-weight: 600;
  user-select: none;
}
.post .postTail .postTailButton:hover {
  cursor: pointer;
}
.post .postTail .postTailButton:active {
  transform: scale(0.9);
}
.post .postTail .postTailButton img {
  height: 1.05em;
  width: auto;
  transition: all 0.5s ease;
}
.post .postTail .postTailButton img:not(.L1 *) {
  opacity: 0.7;
}
.post .postTail .postTailButton span:not(.L1 *) {
  opacity: 0.5;
}
.post .postTail img:not(.L1 *) {
  filter: grayscale(100%);
}
body.dark .post .postTail img:not(.L1 *) {
  /* filter: grayscale(100%) invert(1); */
}
.post .L1 img {
  animation: like 1.3s ease;
}
.post .L1 span {
  color: #ff3e62 !important;
}
.post .postCCpreview {
  display: flex;
  font-size: 0.85em;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #00000015;
  border-radius: 0.5rem;
}
.post .postCCpreview .prof {
  height: 1.3rem;
}
body.dark .post .postCCpreview {
  background: #ffffff15;
}
.post .postWindow {
  position: absolute;
  display: none;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 0.2rem 0.2rem #00000030;
  border-radius: 0.5rem;
  font-size: 0.9em;
  overflow: hidden;
  top: 3rem;
  right: 1rem;
  z-index: 100;
  animation: show 0.5s ease;
}

.post:has(.postWindow.show){
  z-index:999
}

.post .postWindow.show {
  display: flex;
}
.post .postWindow div {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.8rem;
  gap: 0.6rem;
  width: 100%;
  transition: all 0.5s ease;
  font-weight: 550;
  opacity:0.8
}

img{
  user-select:none;
}

.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;
}

#pageTitle {
  padding: 1.1rem;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 650;
}
#pageTitle img {
  height: 1rem;
  transition: all 0.5s ease;
  /* display:none; */
}
#pageTitle img:hover {
  opacity:0.9
}
#pageTitle img:active {
  transform: scale(0.98);
}
#pageTitle img:not(#pageTitle > img){height: 1em;}

.bigAlarm > div:first-of-type > div:nth-of-type(2){opacity:0.4;max-width:85%;display:flex;justify-content:center;text-align:center;line-height:1.5}
.bigAlarm .title {
  opacity:1;
  font-size: 1.1rem;
  margin-bottom: 0.2em;
  font-weight: 650;
  max-width:90%;
  user-select:none;
}

.bigAlarm > div {
  width: 90%;
  max-width: 20rem;
  height: fit-content;
  max-height: 300px;
  border-radius: 0.8rem;
  background-color: white;
  position: relative;
  flex-direction: column;
  display: flex;
  overflow:hidden;
  align-items: center;
  justify-content: center;
  animation: biggerShow 0.5s ease;
  padding-top:1rem;
  /*box-shadow:inset -0.1rem -0.1rem 0.2rem #00000050;*/
}
.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;
  margin-top: 30px;
  justify-content: center;
  align-items: center;
}

.bigAlarm > div > article button {
  width:100%;
  margin:0;
  font-weight:600;
  padding: 0.8rem !important;
  font-size: 0.92em;
  border-radius:0;
  background:transparent !important;
  border:1px solid #00000010;
  border-left:none;
  filter:none !important;
  color:black;

}
.bigAlarm.red button:first-of-type{color:#ff4646 !important}
.bigAlarm button:hover{background:#00000010 !important}
body.dark .bigAlarm button{border-color:#ffffff15}
body.dark .bigAlarm button:hover{background:#ffffff15}
body.dark .bigAlarm button{color:white;}

body.dark .post .postWindow {
  background: rgb(0 0 0);
  border: 1px solid #ffffff35;
}
body.dark .post .postWindow img {
  filter: invert(1);
}
.post .postWindow div:hover {
  background: #eaeaea;
}
body.dark .post .postWindow div:hover {
  background: #373737;
}
/*.post:has(.postWindow:hover){z-index:1000}*/
.post .postWindow img {
  height: 1.3em;
}
.ilppa{
  height:1em;
  margin-left:0.2em;
}
.post .replyRow {
  display: none;
  user-select: none;
  width: 100%;
}
.post .replyRow .post {
  width: 100%;
  padding-right: 0;
  margin:0;
  padding-left: 1.7em;
  /* font-size:0.92em; */
}

.post .replyRow .post::before{
  content: "";
  position: absolute;
  top: 1em;
  left: 0;

  width: 1em;
  height: 1em;

  background-image: url("https://i.ifh.cc/zamf06.png");
  background-size: contain;
  background-repeat: no-repeat;

  pointer-events: none;
  transform:scaleY(-1);
  opacity:0.5
}
body.dark .post .replyRow .post::before{
  filter:invert(1)
}
.post .replyRow.show {
  display: block;
}
.replyRow .post {
  /*border-left: 0.1em solid #00000020;*/
}
.replyToggle,.post .postCommentTarget {
  margin-left: 0.3rem;
  font-weight: 700;
  opacity: 0.7;
  background:#00000035;
  color:#000000C0;
  width:fit-content;
  font-size:0.9em;
  border-radius:2rem;
  padding:0.5em 0.8em;
  opacity:0.6;
  transition:all 0.5s ease;
}
body.dark .replyToggle,body.dark .post .postCommentTarget{background:#ffffff30;color:#ffffff70}
.replyToggle:hover ,.post .postCommentTarget:hover{
  opacity:0.8
}
.post .postCommentTarget:hover{
  text-decoration:underline;
}
.post .postCommentTarget{
  margin-left:0;
}
/*.replyRow .post::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0rem;
  width: 0.6rem;
  height: 1.5rem;
  border-left: 0.1em solid #888;
  border-bottom: 0.1em solid #888;
  border-radius: 0 0 0 4px;
  transform: translateX(-0.4rem);
}*/
.post .postCCpreview {
  display: none;
}

.tag {
  font-size: 0.75em;
  padding: 0.1em 0.3em;
  margin: 0 0.2rem;
  margin-right: 0;
  border-radius: 0.7em;
  background: #00000020;
  color: #00000080;
  font-weight: 700;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
}
body.dark .tag {
  filter: invert(1);
  color: #00000050;
}

.modePanel {
  display: flex;
  padding: 0.2rem 0.5rem;
  padding-bottom:0;
  font-size: 0.8em;
  gap: 0.3rem;
  justify-content: center;
  background:rgb(253, 253, 255);
  position:sticky;
  margin-top:0.5rem;
  top:-0.05rem;
  z-index:1000;
}
.modePanel .selected {
  background: #000000de;
  color: #ffffff !important;
}
body.dark .modePanel>div {
  filter: invert(1);
}
body.dark .modePanel{background:rgb(0,0,0);}
.modePanel > div:hover{filter:brightness(1.1)}
.modePanel > div:not(.selected):hover{
  background: #00000030;}
.modePanel > div:active{transform:scale(0.8)}

.link {
  color: #9fd4ff !important;
  font-weight: 600;
  transition: all 0.5s ease;
  text-decoration:none;
  display:flex;
  flex-shrink: 1;
  flex-wrap:wrap;word-break: break-all;
  
}
span:has(.link){
  display:inline-block !important;
  flex-shrink: 1;
}
.link:hover {
  color: #84b1ff;
}

* body span.mention {
  flex-grow: 0;
  flex-basis: auto;
  max-width: auto;
  border-radius: 5px;
  height: 1rem;
  padding: 1px 0.1em;
  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;
}

.writter {
  background: white;
  width: 90vw !important;
  max-width: 600px;
  padding: 1.15rem;
  padding-bottom: 0.8rem;
  border-radius: 1.2rem;
  max-height:80%;
  overflow-y:auto;
  padding:1rem !important;
  /*box-shadow: inset -0.1rem -0.1rem 0.2rem #00000020, 0 0.4rem 0.5rem #00000010;*/
}
body.dark .writter {
  border: 1px solid #ffffff30;
  background: rgb(22,22,25);
  backdrop-filter:blur(2px)
  /* box-shadow: inset 0.1rem 0.1rem 0.2rem #ffffff0b, 0 0.4rem 0.5rem #00000080; */
}
.writter .highB:last-of-type{margin:0;margin-left:auto;}
.writter .writterHeader {
  border-bottom: 1px solid #00000000;
  /* padding-bottom: 0.4rem; */
}
.writter .modePanel {
  padding: 0;
  margin-bottom: 0.2rem;
  margin-left: 0.5rem;
}
.writter .postContent {
  width: 100%;flex-wrap: nowrap;
  padding:0;
  flex-shrink:0;
}
.writter .profBar {
  font-size: 0.95em;
}
.writter textarea {
  font-size:1em;
  width: 100%;
  border: none !important;
  outline: none !important;
  background: transparent;
  white-space: pre-wrap; /* 엔터와 공백 그대로 유지 */
  overflow-wrap: break-word;
  resize: none;
  /* min-height: 3rem; */
  overflow:visible;
  scrollbar-width: none;
}
.writter textarea:active {
  border: none;
}
.writter textarea::placeholder {
  opacity: 0.7;
}
.writter .tag {
  padding: 0.5em;
  opacity: 0.7;
  border-radius:0.5rem;
  transition:all 0.5s ease;
  font-size:0.75em;
}
.writter .tag:active{
  transform:scale(0.6)
}
.writter .postTail {
  margin: 0;
  padding: 0 !important;
  margin-top: 0.6rem;
  align-items:center;
  width:100%;
}
.postMenus {
  display: flex;
  padding: 0 0.5rem;
  padding-left: 0;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.3;
  /* margin-left:0.2rem; */
}
#postRow .postMenus{
  margin-top:0.5rem;
}
.writter .postInfo {
  display: inline-flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.writter .postInfo input {
  height: 1em;
  font-size: 1.05em;
  font-weight: 700;
  border: none;
  width: 3rem;
  padding: 0;
  resize: horizontal;
}
.writter .postInfo .tag {
  width: fit-content;
  flex-shrink: 0;
}
body.dark .writter .postInfo .tag input{color: #000000 !important;}
.writter .postInfo input:focus {
  outline: none !important;
  border: none !important;
}

.postMenus img {
  height: 1.3rem;
}
.alarmWindow {
  position: fixed;
  bottom: -5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.9rem;
  background: rgb(0, 0, 0);
  border-radius: 0.9rem;
  color: #fff;
  user-select: none;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 0.9em;
  font-weight: 600;
  z-index: 9999999;
  width:fit-content;
  min-width:7rem;
  display:flex;
  justify-content:center;
  align-items:center;
  box-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, 0.3),
    inset 0 -0.5rem 0.3rem rgb(0 0 0 / 5%);
  backdrop-filter: blur(8px);
}

#onContent .window {
  background: white;
  width:90vw;
  max-width: 20rem;
  height: fit-content;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  overflow-y:auto;
  height:80%;
}

#__bottomSheet.list > div:last-of-type{
  display:flex;
  flex-direction:column;
  gap:1em;
  font-size:0.9em;
}

body.dark #onContent .window{
  background:rgb(22,22,25);
  border: 1px solid #ffffff30;
}
#onContent .window .title {
  font-size: 1.2em;
  font-weight: 700;
  user-select:none;
}
#onContent .window .txtInput {
  border:1px solid #00000030;
}

body.dark #onContent .window .txtInput {
  border:1px solid #ffffff30;
}

body.dark .alarmWindow {
  background: #ffffff;
  color:black;
}

.postImg {
  width: fit-content !important;
  min-width:3em;
  /* aspect-ratio: 1; */
  overflow: hidden;
  border-radius: 10px;
  background: #000000de;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #d7d7d7;
  animation:show 0.5s ease;
}
body.dark .postImg {
  background: #000000;
  border-color:#ffffff25;
}

.postImg img {
  width: auto !important;
  height: 100% !important;
  margin: 0;
  animation: blurShow 1s ease;
}

body.dark .postMenus img {
  filter: invert(1);
}
.postMenus img{transition:all 0.5s ease}
.postMenus img:active{
  transform:scale(0.6)
}
.writter .button {
  margin:0;
  margin-left: auto;
}

body.dark #__bottomSheet,
body.dark #onContent {
  /* background: rgb(32 32 36) !important; */
}
body.dark #__bottomSheet > div:first-of-type {
  opacity: 0.5;
}

/*모바일*/
@media (max-width: 600px) {
  .selectPanel {
    justify-content: space-between;
  }
  .modePanel {
    justify-content: flex-start;
  }/*좀더 안정적인?
  #onContent .writter{
    width:100vw !important;
    flex:1;
    height:100%;
    max-height:100%;
    border-radius:0;
  }*/
}
@media (max-width: 700px) {
  .post {
    width: 100vw;
    max-width: 100vw;
  }
}

/*다크모드*/
body.dark .selectPanel .selected {
  border-bottom: 0.13rem solid rgba(255, 255, 255, 0.904);
}
body.dark .loading:not(.highB .loading),
body .loading.dark {
  border: 0.15em solid rgba(181, 181, 181, 0) !important;
  border-top: 0.15em solid rgba(255, 255, 255, 0.897) !important;
  margin: 0.5rem;
  aspect-ratio: 1;
}

body.dark .checkBox span:first-of-type {
  border-color: #727272;
}
body.dark .checkBox span:first-of-type.select {
  background: #6A3CFF;
  color:white !important;
  border: none;
  position:relative;
}
.checkBox span:first-of-type.select::after{
   content: "";
  position:absolute;
  width:1.5em;
  height:1.5em;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  background-image: url("https://i.ifh.cc/hvFt1a.png");
  background-size: contain;
  background-repeat: no-repeat;
}
body.dark .checkBox:has(.select) span:nth-of-type(2){
  
  color:white !important;
}
body.dark .checkBox span:nth-of-type(2) {
  /* color: #727272; */
}
body.dark .txtInput {
  background: transparent;
  color: white;
  border-color: #72727270;
  border:1px solid #ffffff30;
}
body.dark .txtInput::placeholder {
  color: #ffffff40;
}
body.dark .txtInput {
  background: #ffffff15;
}

/*애니메이션*/
@keyframes reShow {
  0% {
    transition: all 0.5s ease;
  }
  50% {
    opacity: 0;
  }
}
@keyframes show {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes blurShow {
  0% {
    filter: blur(0.1em);
    opacity: 0;
  }
  100% {
    filter: none;
    opacity: 1;
  }
}
@keyframes like {
  0% {
    transform: scale(1) rotate(0deg);
  }
  20% {
    transform: scale(0.85) translateY(0.2em) rotate(0deg);
  }
  40% {
    transform: scale(1.2) translateY(-0.15em) rotate(0deg);
  }
  55% {
    transform: scale(0.95) translateY(0.1em) rotate(0deg);
  }
  70% {
    transform: scale(1.08) translateY(0) rotate(0deg);
  }
  85% {
    transform: scale(0.98) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
@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.5);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes biggerShowL1 {
  0% {
    transform: scale(0.5) translateY(-50%);
  }
  50% {
    transform: scale(1.1) translateY(-60%);
  }
  100% {
    transform: scale(1) translateY(-50%);
  }
}

@keyframes glow {
  0% {
    filter: none;
  }
  50% {
    filter: brightness(1.15) contrast(1.1);
  }
  100% {
    filter: none;
  }
}
@keyframes spin {
  0% {
    rotate:0deg;
  }
  100% {
    rotate:360deg;
  }
}
.toggle {
  width: 2.5em;
  height: 1.5em;
  border-radius: 100px;
  padding: 5px;
  position: relative;
  background: #00000030;
  margin-left: auto;
  transition: all 1s ease;
}
body.dark .toggle:not(.on) {
  background: #3f3f3f;
}
.toggle.on {
  background: #6A3CFF;
}
.toggle div {
  border-radius: 50%;
  height: 100%;
  aspect-ratio: 1;
  background: white;
  transition: margin 0.5s ease;
  margin-left:0;
}
.toggle.on div {
  margin-left: calc(100% - 1em);
}
#__bottomSheet iframe{width:100%;border:none;height:100vh;height:100dvh;}
body.dark #__bottomSheet{
  background:rgb(22,22,25) !important;
  outline:1px solid #ffffff30
}

.txtInput input{font-size:1em;}
body.dark .selectPanel{background:rgb(0,0,0)}
.blueB{
  background:#6A3CFF ;
  color:white !important;
  transition:all 0.5s ease;
  outline:0.12em solid #7062ff
}.blueB:hover{filter:brightness(1.2)}

.newLoad{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgb(253, 253, 255);
  z-index:100000000000;
  display:flex;
  justify-content:center;
  align-items:center;
  animation:show 0.5s ease reverse forwards 2s;
  }
.newLoad > div{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2rem;
  font-size:1.1em;
}
.newLoad > div > div{
  display:flex;
  gap: 1rem;
  font-weight:1000;
  font-family: 'Do Hyeon', serif;
  animation:biggerShow 1s ease !important;
  /* display:none; */
}

.newLoad img{
  height:2.8rem;
  animation: biggerShow 0.7s ease, blink 0.5s ease 0.7s,spin 1s ease; ;
}

body.dark .newLoad{
  background:rgb(0,0,0);
}

@keyframes blink {
        0% {
          transform: scaleY(1);
        }
        50% {
          transform: scaleY(0.3);
        }
        100% {
          transform: scaleY(1);
        }
}

.imgView{
  width:90vw;
  max-width:25rem
}

.bar{
  padding:0.8rem;
  margin:0.5rem 0;
  border-radius:0.8rem;
  display:flex;
  flex-direction:column;
  gap: 0.5rem;
  flex:1;
  justify-content: space-around;
  font-size:0.9em;
}

#xpBar{
  background:black;
  color:white;
}
#xpBar img:first-of-type{
  filter:invert(1)
}

#levelBar{
  background:#eaeaea
}

#levelBar >*:nth-of-type(2),#xpBar >*:nth-of-type(2){
  font-size:1.4em;
  font-weight:800;
}

#profEditBar{
  background:#eaeaea;
  margin:0 0.5rem;
  border-radius:0.8rem;
  padding:0.5rem 0.8rem;
  font-size:0.9em;
  display:flex;
  gap:1rem;
  display:none;
}
#profEditBar>*:first-of-type{margin-right:auto;}

body.dark #xpBar img:first-of-type{filter:none;}
body.dark #xpBar{background:#eaeaeaDD;color:black}
body.dark #levelBar{background:#ffffff15;}

.bar img:first-of-type{
  height:1.2em;
}

.bar > div:first-of-type{
  display:flex;
  gap: 0.5rem;
  font-weight:700;
}

.bars{
  display:flex;
  gap:0.5rem;
  /* padding:0 0.5rem; */
  margin-top:0.5rem;
}

.editProfBar{
  display:flex;
  padding:0.3rem;
  align-items:center;
  width:100%;
  margin-bottom:1rem;
}
.editBars{margin:1rem 0;margin-bottom:0.2rem;}
.editProfBar .txtInput,.editBars .txtInput{
  width:100%;
  height:2rem;
  padding:0rem 0.8rem;
  flex:1;
}
.editProfBar input,.editBars input{
  border:none;padding:0;height:100%;width:100%;outline:none
}
body.dark .editProfBar input,body.dark .editBars input{color:white;}
.editProfBar .prof{
  height:3rem;
  margin-right:1rem;
}
.editTitle{
  font-size:0.8em;
  margin-left:0.2rem;
  margin-bottom:0.2rem;
}

.editBars input[type='color']{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  border-radius:2rem;
  padding:0.4rem 0;
}
.editBars input[type='color']::-webkit-color-swatch{
  border-radius:2rem;
}


.editProfBar .prof:hover:after {
  content: "";
  display: block; 
  width: 100%;
  aspect-ratio: 1;
  background: #00000040;
  opacity: 1;
  background-image: url("https://i.ifh.cc/D7H8lc.png");
  background-size: cover; /* 이미지 꽉 채우기 */
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  animation: blurShow 0.5s ease;
}

#__bottomSheet>div:last-of-type{scrollbar-width:none;}

.post .highB:active{transform:scale(0.9)}


.check{
  width:0.9em;
  height:0.9em;
  display:inline-block;
}
.check img{
  height:100%;
  transition:all 0.5s ease;
  margin:0 0.25em;
  animation:show 0.4s ease;
}

.check img:hover{
  filter:brightness(1.2);
  transform:scale(1.05)
}

.moreSheet .prof{
  animation:spin 2s ease 1s;
}


#onContent .window:has(iframe){
  padding:0;
  display:flex;
  flex-direction:column;
  height: fit-content;
  max-height:80%;
  overflow:hidden;
  justify-content:center;
  align-items:center;
  overflow-y:auto;
  scrollbar-width:none;
}
#onContent iframe{
  border:none;
  width:100%;
  /*flex:1;*/
  transform:scale(1.1);
  height:30rem;
}

.profs {
  display: flex;
  padding: 0.1em;
  border-radius: 0.8em;
  width: 2.5em;
  /* background: #00000010; */
  height: 2.5em;
  flex-wrap: wrap;
  gap: 0.1em;
  position: relative;
  justify-content: center;
}
.profs > * {
  height: 1em;
}

.txtInput:has(input[type='color']){
  padding:0 0.5rem
}

.window .midTitle{
  font-size:0.85em;
  font-weight:600;
  padding: 0.5em;
}

.skip{
  border:1px solid #00000020;
  padding:0.5rem 1rem;
  border-radius:2rem;
  margin:0 auto;
  width:7rem;
  display:flex;
  justify-content:center;
  transition:all 0.5s ease;
}

.skip:active{transform:scale(0.9)}
.skip:hover{background:#00000020}
body.dark .skip:hover{background:#ffffff20}

body.dark .skip{
  border:1px solid #ffffff30;
}

.toonPre{
  display:flex;
  flex-direction:column;
  width:8em;
}
.toonPre .toonPreImg {
  width:100%;
  aspect-ratio:1;
  overflow:hidden;
  border-radius:0.5em;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, #000000 50%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, #000000 50%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
}
body.dark .toonPre .toonPreImg{
  border:1px solid #ffffff35;
}

.toonPre .toonPreImg img{
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
  transition:all 0.5s ease;
}

.toonPre .toonTitle{font-size:1em;max-width:100%;overflow:hidden;height:1.2em;font-weight: 700;margin-top:0.5em;}
.toonPre .profBar{font-size:0.8em;font-weight:500;height:2em;align-items:center;gap:0.5em;margin-top:0.5em;}
.toonPre .profBar .prof{height:1.4em;}
.toonPre .toonLabel{
  position:absolute;
  background:#ff4646;
  background:#6A3CFF;
  z-index:10;
  top:0.5rem;
  left:0.5rem;
  border-radius:1rem;
  color:white;
  padding:0.2rem;
  font-size:0.8em;
  width:1.8rem;
  display:flex;
  justify-content:center;
  align-items:center;
  font-weight:700
}

.writter #typeChange{
  width:100%;
  display:flex !important;
  font-size:0.9em;
  height:100%;
  /* display:flex; */
  align-items:center;
  flex:1;
  opacity:0.1
}

.writter #typeChange > *:not(.toggle){
  opacity:1;
}
.writter #typeChange .toggle{font-size:0.8em;display:none;}
.writter .postInfo{transition:all 0.5s ease;height:1.3rem;}
.writter .postInfo:not(.show){opacity:0;height:0}

#content{
  width:100%;
  max-width:30rem;
  margin-left:auto;
  margin-right:auto;
}

body:not(.reg) #pageTitle> img:first-of-type {display:none;}

body.dark .modePanel>div{
  border:1px solid #00000035
}

.mention.selected{
  background:#65aaff7d;
}

.postImg:not(:has(.loaded)){
  aspect-ratio:1;
  height:14em !important;
}

.postTail svg{
  width: 1.2em;
  height: 1.1em;
  display: inline-block;
  stroke: #00000070;
  stroke-width: 12;
  stroke-linejoin: round;
  transition: all 1.2s ease,stroke 0s ease;
  fill:none;
}

body.dark .postTail svg:not(.L1 *){
  stroke: #ffffff70;
}

.postTail .L1 svg{
  stroke: #ff3e62;
  stroke-width:12;
  fill:#ff3e62;
}
.U1 span{color:#7a5eff;opacity:1 !important}
.postTail .U1 svg{
  stroke: #7a5eff !important;
  stroke-width:12;
  fill:#7a5eff;
}

.svgCover{
  display:flex;
  align-items:center;
}

.L1 .svgCover{
  animation:like 1.2s ease;
}

.U1 .svgCover{
  animation:up 0.8s ease;
}

.postTailButton{
  font-size:0.9em;
}

.postTail span{
  font-size:1.1em;
}

#tierBox{
  width:auto;
  background:#00000015;
  padding:1rem 0.7rem;
  border-radius:1rem;
  /* margin:0 0.5rem; */
  display:flex;
  align-items:center;
  gap:1rem;
}

body.dark #tierBox{
  background:#ffffff15;
}

#tier{
  width:4rem;
  transition: all 0.5s ease;
}

#tier:hover{
  transform:scaleX(-1);
  filter:brightness(0.5)
}

#tierBox .cover{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:0.25rem;
}

#tierBox progress {
  -webkit-appearance: none;
  appearance: none;
  border-radius:10rem;
  overflow:hidden;
  appearance: none;
  border-radius: 5rem;;
  height: 0.7rem;
  width: 100%;
}
#tierBox progress::-webkit-progress-value {
  border-radius: 100rem;
  height: 1rem;
  transition: width 1s ease;
}

#tierBox progress::-webkit-progress-bar {
  background: linear-gradient(90deg, #dcdcdc, #f0f0f0Ca);
  border-radius: 20rem;
  border: 0.11rem solid #e0dfe150;
  height:100%;
  overflow: hidden;
  transition: width 1s ease;
}

#tierBox .name{
  font-family: 'Do Hyeon', serif;
  font-weight:550;
  font-size:1.22em;
  opacity:1;
  margin-bottom:0.2rem;
}
#tierBox .info{
  font-family: 'Do Hyeon', serif;
  font-weight:550;
  font-size:0.75em;
  opacity:0.5;
}
.눈팅::-webkit-progress-value {
  background: linear-gradient(90deg, rgb(169 169 169 / 63%), #9f948c);
}
.잘알못::-webkit-progress-value {
  background: linear-gradient(90deg, rgb(198 119 71), #d58149);
}
.뭔말알::-webkit-progress-value {
  background: linear-gradient(90deg, rgb(255 191 63 / 63%), #ffba49);
}
.알잘딱::-webkit-progress-value {
  background: linear-gradient(90deg, rgb(92 255 168 / 63%), #8aeaec);
}
.터줏대감::-webkit-progress-value {
  background: linear-gradient(90deg, rgb(255 78 78 / 63%), #9959ff);
}

.writter{
  padding:0!important;
}
.writterHeader{
  padding:0.7rem 1rem;
  margin:0 !important;
  border-bottom:1px solid #ffffff15 !important;
  font-weight:500 !important
}
.writter .cover{
  display:flex;
  flex-direction:column;
  gap:0.5rem;
  padding:1rem;
  padding-top:0.5rem;
}

.login .blueB{
  font-size:0.9em;
}

.postContent{
  font-size:0.95em;
}
.post .profBar{
  height:1.9em;
}
/*
.post .profBar .profBbar{
  flex-direction:column;
  gap:0.2em;
  align-items:flex-start
}

.post .profBar .profBbar .profBnick{
  font-size:0.95em;
}
.post .profBar .profBbar .profBtime{
  font-size:0.85em;
}

.post .prof{
  height:2em;
}

.post .profBar{
  height:2.2em;
  align-items:center;
}
*/