@font-face {
  font-family: "Kkukukk";
  src: url("../fonts/MemomentKkukkukk.ttf") format("truetype");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Kkukukk",sans-serif;
  background: #090d22;
  color: #f8f4ff;
  overflow-x: hidden;
}

button,
input,
textarea {
  font-family: "Kkukukk",sans-serif;
}

button {
  cursor: pointer;
}

.hide {
  display: none !important;
}

/* 저녁 */
#app {
  --bg: linear-gradient(180deg,#10193a 0%,#1b2552 45%,#352e60 100%);
  --bg-light-1: rgba(98, 110, 201, 0.18);
  --bg-light-2: rgba(142, 134, 255, 0.16);
  --modal-overlay: rgba(11, 16, 36, 0.535);

  --text: #f9f8fa;
  --sub-text: #dedafa;
  --box-text:#2f2a50;
  --side-text: rgba(248, 244, 255, 0.477);
  --placeholder: #7e78a2;

  --post-bg: rgba(103, 106, 140, 0.342);
  --card-line: #8e95c1;
  --card-bg: #505475;
  --input-bg: #f8f3f3;
  --input-line: #373f66;
  --button-line:#7072a8;
  --close-button:#6e759b;
  --chip-bg: #656fa6;
  --chip-text: var(--text);
  --view-button : linear-gradient(135deg, #ffe08a, #f5b85b);

  --window-bg: linear-gradient(180deg, #101733 0%, #17204a 52%, #20285c 100%);
  --window-frame: #263465;
  --window-line: #6471bd;
  --hill-bg: linear-gradient(180deg, #252f66 0%, #302d6d 100%);

  --sun-moon: #fff6c7;
  --sun-moon-shadow: rgba(255, 246, 199, 0.9);

  --main-button: linear-gradient(135deg, #8e86ff, #c696ff);
  --main-button-text: #ffffff;
  --main-button-shadow: rgba(142, 134, 255, 0.3);

  --detail-button: var(--chip-bg);
  --detail-button-text: var(--text);
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

/* 오전 */
#app.theme-day {
  --bg: linear-gradient(180deg, #b8dff5 0%, #d6eef9 50%, #e8f5fb 100%);
  --bg-light-1: rgba(255, 255, 255, 0.22);
  --bg-light-2: rgba(255, 255, 255, 0.2);

  --text: #465c77;
  --sub-text: #3e4f6d;
  --side-text: rgba(113, 128, 155, 0.72);

  --window-bg: linear-gradient(180deg,#dcf2ff 0%,#dbefff 55%,#ffffff 100%);
  --window-frame: #abd1c1;
  --window-line: #62a9a3;
  --hill-bg: linear-gradient(180deg, #c2dcbd 0%, #8eb68f 100%);

  --sun-moon: #ffe88a;
  --sun-moon-shadow: rgba(255, 232, 138, 0.7);

  --card-bg: #fff7ea;
  --card-line: #e7d4bc;

  --post-bg: #feffff;
  --input-bg: #fffdf8;
  --input-line: #e7d4bc;
  --placeholder: #a99c8c;
  --button-line:#ded1c0;

  --chip-bg: #f1e2d0;
  --close-button : #f1e2d0;
  --view-button : #f1e2d0;
  --chip-text: #324359;

  --main-button: linear-gradient(135deg, #fff1a6, #f2c98b);
  --main-button-text: #4b5f78;
  --main-button-shadow: rgba(242, 201, 139, 0.32);

  --detail-button: linear-gradient(135deg, #a9c8a3, #7fa986);
  --detail-button-text: #ffffff;
  --modal-overlay: rgba(255, 249, 240, 0.48);
}

/* 오후 */
#app.theme-sunset {
  --bg: #ffeade;
  --bg-light-1: rgba(255, 207, 170, 0.28);
  --bg-light-2: rgba(216, 184, 237, 0.28);

  --text: #5c3f5f;
  --sub-text: #8a6b83;
  --side-text: rgba(178, 129, 110, 0.72);

  --window-bg: linear-gradient(180deg, hsl(27, 69%, 87%) 0%, #dab9f1 58%, #d78b80 100%);
  --window-frame: #ebc094;
  --window-line: #a66e45;
  --hill-bg: linear-gradient(180deg, #e99a86 0%, #d48780 100%);

  --sun-moon: #ffe28a;
  --sun-moon-shadow: rgba(255, 226, 138, 0.75);

  --card-bg: #fff4eb;
  --card-line: #e9bea1;

  --post-bg: hwb(26 82% 0%);
  --input-bg: #fff7ef;
  --input-line: #e7c3a8;
  --placeholder: #a98d90;
  --button-line:#cfb6b6;

  --chip-bg: #ead9ca;
  --close-button : #f5cfab;
  --view-button:#f2ddca;
  --chip-text: #593c5c;

  --main-button: linear-gradient(135deg, #fff3c4, #f6c98f);
  --main-button-text: #5c3f5f;
  --main-button-shadow: rgba(246, 201, 143, 0.32);

  --detail-button: linear-gradient(135deg, #d99586, #c878a6);
  --detail-button-text: #ffffff;
  --modal-overlay: rgba(255, 243, 232, 0.616);
}

#app::before {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  left: 16%;
  top: 14%;
  border-radius: 50%;
  background: var(--bg-light-1);
  filter: blur(100px);
  pointer-events: none;
}

#app::after {
  content: "";
  position: fixed;
  width: 480px;
  height: 480px;
  right: 12%;
  bottom: 10%;
  border-radius: 50%;
  background: var(--bg-light-2);
  filter: blur(110px);
  pointer-events: none;
}

.page {
  min-height: 100vh;
  padding: 34px 20px;
  position: relative;
  z-index: 1;
  display: none;
}

.page.active {
  display: grid;
  place-items: center;
}

.side-text {
  position: absolute;
  right: 18%;
  bottom: 20%;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--side-text);
}

.star {
  position: absolute;
  z-index: 4;
  color: #ffffff;
  font-size: 24px;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 20px rgba(255, 255, 255, 0.62);
}

.bg-star {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  z-index: 0;
  pointer-events: none;
}

.s1 { top: 21%; left: 12%; width: 5px; height: 5px; opacity: 0.45; }
.s2 { top: 28%; left: 28%; width: 7px; height: 7px; opacity: 0.7; }
.s3 { top: 29%; left: 70%; width: 9px; height: 9px; opacity: 0.95; }
.s4 { top: 42%; left: 82%; width: 7px; height: 7px; opacity: 0.8; }
.s5 { top: 65%; left: 9%; width: 8px; height: 8px; opacity: 0.95; }
.s6 { top: 79%; left: 28%; width: 5px; height: 5px; opacity: 0.4; }
.s7 { top: 75%; left: 75%; width: 7px; height: 7px; opacity: 0.55; }


input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--input-line);
  background: var(--input-bg);
  color: var(--box-text);
  padding: 14px 16px;
  font-size: 14px;
}

input {
  height: 44px;
  padding: 0 14px;
}

textarea {
  min-height: 126px;
  resize: vertical;
  line-height: 1.6;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}

input:focus,
textarea:focus {
  border-color: var(--main-button-text);
  box-shadow: 0 0 0 3px var(--main-button-shadow);
}

label {
  display: block;
  margin-bottom: 14px;
}

label span {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.close-btn {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--close-button);
  color: var(--chip-text);
  font-size: 22px;
  font-weight:900;
}

.submit-btn,.delete-btn{
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--main-button);
  color: var(--main-button-text);
  font-size: 18px;
  font-weight: 500;
  box-shadow:
    0 14px 36px var(--main-button-shadow),
    0 0 28px var(--main-button-shadow);
}

.delete-btn{
  font-size : 15px;
}

.button-area {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.button-area.two {
  justify-content: center;
}

button:hover {
  background: #ffffff;
  color: rgb(41, 33, 33);
}