@font-face {
  font-family: 'YeogiOttaeJalnan';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_four@1.2/JalnanOTF00.woff') format('woff');
}

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

body {
  font-family: 'YeogiOttaeJalnan', sans-serif;
  color: white;
  overflow-x: hidden;
}

/* ===== 애니메이션 ===== */
.fade-section {
  opacity: 0;
  transform: translateY(60px);
  transition: 0.9s;
}

.fade-section.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-item {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s;
}

.fade-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 첫 화면 ===== */
.hero {
  height: 100vh;
  background: url("bg.gif") center/cover no-repeat;
  position: relative;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.content {
  position: absolute;
  left: 8%;
  top: 40%;
}

h1 { font-size: 72px; }
.desc { opacity: 0.8; margin: 10px 0 30px; }

/* 🔥 링크 밑줄 (복구 핵심) */
.links a {
  margin-right: 25px;
  color: white;
  text-decoration: none;
  position: relative;
  opacity: 0.8;
  transition: 0.3s;
}

.links a:hover {
  opacity: 1;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: white;
  transition: 0.3s;
}

.links a:hover::after {
  width: 100%;
}

/* ===== 두번째 화면 (🔥 배경 복구 핵심) ===== */
.extra {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
}

/* 기본 배경 (없을 때 대비) */
.extra {
  background: url("cloudy.gif") center/cover no-repeat;
}

/* 날씨별 */
.extra.sunny { background: url("sunny.gif") center/cover no-repeat; }
.extra.cloudy { background: url("cloudy.gif") center/cover no-repeat; }
.extra.rain { background: url("rain.gif") center/cover no-repeat; }
.extra.snow { background: url("snow.gif") center/cover no-repeat; }

/* 어두운 오버레이 */
.extra-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  z-index: 1;
}

.box {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* ===== 검색 UI ===== */
input {
  padding: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
}

.suggest-box {
  position: absolute;
  top: 45px;
  width: 200px;
  background: rgba(0,0,0,0.9);
  list-style: none;
  border-radius: 10px;
  display: none;
}