/* Base styles shared across pages */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Pretendard', sans-serif;
  position: relative;
  background-color: transparent;
  cursor: url("image/cursor.cur"), auto;
  color: #111;
  min-height: 100vh;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

a,
button,
input,
textarea,
select,
[role="button"],
[role="link"],
.post-box {
  cursor: url("image/cursor.cur"), auto !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("image/background_pc.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: none;
  z-index: 0;
  pointer-events: none;
}

body.index-bg::before {
  background-image: url("image/background-main_pc.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body > * {
  position: relative;
  z-index: 1;
}

body.theme-dark::before {
  background-image: url("image/background-dark_pc.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.index-bg.theme-dark::before {
  background-image: url("image/background-main_pc.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html {
  scrollbar-gutter: stable;
  background-color: #d8eeff;
}

@media (max-width: 600px) {
  body {
    background-color: #d8eeff;
  }

  main .story-wrap .story-body {
    text-align: justify !important;
    text-justify: inter-character;
  }

  body::before {
    background-image: url("image/background_mobile.webp");
    background-size: cover;
  }

  body.theme-dark::before {
    background-image: url("image/background-dark_mobile.webp");
    background-size: cover;
  }

  body.index-bg::before,
  body.index-bg.theme-dark::before {
    background-image: url("image/background-main_mobile.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  body.index-bg::before,
  body.index-bg.theme-dark::before {
    background-image: url("image/background-main_mobile.webp") !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

header {
  text-align: center;
  padding: 40px 0 20px;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #004a88;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
}

header h1 a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

header h1 img {
  width: 120px;
  height: 120px;
  display: block;
  object-fit: contain;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #004a88;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 14px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  transition: all 0.2s ease;
}

nav {
  font-family: "puntino-star", sans-serif;
  font-weight: 800;
  font-style: normal;
}

nav a:hover,
nav a.active {
  background: transparent;
  color: #004a88;
  transform: translateY(-1px);
  text-shadow: 0 2px 6px rgba(0, 24, 56, 0.18),
    0 0 16px rgba(78, 174, 255, 0.9),
    0 0 30px rgba(78, 174, 255, 0.6);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-bottom: 120px;
}

footer {
  display: flex;
  justify-content: center;
  padding: 50px 0 32px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #004a88;
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-link img {
  width: 22px;
  height: 22px;
  display: block;
}

.post-box {
  width: 90%;
  border: 1px solid rgba(0, 74, 136, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 20px 24px;
  box-shadow: 0 0 10px rgba(0, 74, 136, 0.08);
  transition: 0.3s ease;
}

.post-box:hover {
  box-shadow: 0 0 38px rgba(90, 170, 255, 0.35);
}

.post-box:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
}

.post-title {
  font-size: 1.1rem;
  font-weight: 650;
  color: #00345a;
  margin-bottom: 8px;
  letter-spacing: 0.025em;
}

.post-author {
  font-size: 0.9rem;
  color: #00345a;
  font-weight: 500;
  padding-top: 8px;
  border-top: 0.8px solid rgba(0, 74, 136, 0.23);
  text-align: right;
}

.floating-btns {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
