@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

/* 전체 배경 */
body {
  background: linear-gradient(135deg, #0f1a0f, #1a2e1a);
  /* 어두운 녹색 계열 그라데이션 */
  color: #a3ffb5;
  /* 연한 녹색 텍스트 */
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 헤더 - 화면 꽉 채움 */
header {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

header nav {
  background-color: #2a4d2a;
  /* 진한 녹색 배경 */
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 15px #49c749;
  /* 녹색 그림자 */
  flex-wrap: wrap;
}

/* 로고 */
.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  /* 로고와 텍스트 간격 */
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

.logo-link img {
  width: 30px;
  height: 30px;
}

.logo-link span {
  color: #a3ffb5;
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow:
    0 0 10px #49c749,
    0 0 20px #3a9a3a;
}

/* 메뉴 */
.top-menu {
  display: flex;
  gap: 20px;
  /* 메뉴 간격 */
}


.top-menu a {
  position: relative;
  color: #e0e0e0;
  /* 기본 밝은 회색 글씨 */
  text-decoration: none;
  padding: 4px 6px;
  transition: color 0.3s ease;
}

.top-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  /* 글자 아래 위치 */
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #ff9900;
  /* 주황색 */
  box-shadow: 0 0 6px #ff9900, 0 0 12px #ff6600;
  /* 네온 느낌 */
  transition: width 0.3s ease;
}

.top-menu a:hover {
  color: #ffcc66;
  /* 글씨도 살짝 주황빛으로 */
}

.top-menu a:hover::after {
  width: 100%;
  /* 밑줄이 글자 전체로 확장 */
}

/* 배경 레이저 라인 */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.line {
  position: absolute;
  width: 3px;
  height: 100vh;
  background: linear-gradient(180deg, #fac42e 0%, transparent 100%);
  filter: drop-shadow(0 0 10px #f7db3c);
  animation: moveUp 6s linear infinite;
  opacity: 0.8;
  border-radius: 1.5px;
}

.line:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.line:nth-child(2) {
  left: 25%;
  animation-delay: 2s;
}

.line:nth-child(3) {
  left: 40%;
  animation-delay: 4s;
}

.line:nth-child(4) {
  left: 55%;
  animation-delay: 1s;
}

.line:nth-child(5) {
  left: 70%;
  animation-delay: 3s;
}

.line:nth-child(6) {
  left: 85%;
  animation-delay: 5s;
}

@keyframes moveUp {
  0% {
    transform: translateY(100vh);
  }

  100% {
    transform: translateY(-100vh);
  }
}

/* 로그인 버튼 */
.login-btn {
  padding: 6px 12px;
  background-color: #ff9900;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}


.login-btn::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: #ff6600;
  box-shadow: 0 0 8px #ff6600, 0 0 16px #ff6600;
  transition: width 0.3s ease, box-shadow 0.3s ease;
}

.login-btn:hover {
  background-color: #e68900;
}

.login-btn:hover::after {
  width: 100%;
  box-shadow: 0 0 12px #ff6600, 0 0 24px #ff6600, 0 0 36px #ff6600;
}



/* 메인 영역 */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  position: relative;
  text-align: center;
}

h1 {
  font-size: 5rem;
  margin-top: 60px;
  color: #b084cc;
  /* 보라색 */
  text-shadow:
    0 0 15px #ab47bc,
    0 0 30px #7e57c2,
    0 0 40px #673ab7;
}

p {
  font-size: 1.5rem;
  color: #d1c4e9;
  /* 연한 보라색 */
  text-shadow:
    0 0 5px #9575cd,
    0 0 10px #b39ddb;
  margin-bottom: 100px;
}

/* 푸터 */
footer {
  width: 100vw;           /* 화면 전체 너비 */
  max-width: 100%;
  box-sizing: border-box; /* 패딩 포함 */
  padding: 10px 15px;
  background-color: rgba(0,0,0,0.7);
  color: white;
  text-align: center;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  position: fixed;        /* 푸터 고정 원하면 */
  bottom: 0;
  left: 0;
  z-index: 1000;
}
#footerText {
  display: inline-block;
  white-space: nowrap;
  color: white;           /* 글씨 색 명확히 지정 */
  font-size: 14px;
}
.typing {
  border-right: 2px solid orange;
  display: inline-block;
  animation: blink 0.7s infinite;
}

/* 타자치는 효과 */
.typing {
  border-right: 2px solid orange;
  display: inline-block;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% {
    border-color: orange;
  }

  50% {
    border-color: transparent;
  }

  100% {
    border-color: orange;
  }
}

footer p {
  margin: 0;
  /* p 태그 기본 여백 제거 */
  white-space: nowrap;
  /* 줄바꿈 방지 */
  overflow: hidden;
  text-overflow: ellipsis;
}

footer a {
  color: #00e6f6;
  text-decoration: underline;
}

.footer-animated {
  display: none;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #f0e6ff;
  width: 0;
  animation: typing 4s steps(30) forwards, blink 0.7s step-end infinite;
  color: #f0e6ff;
}

@media (max-width: 768px) {
  .login-btn {
    position: absolute;
    top: 10px;
    right: 10px;
  }
}
@media screen and (max-width: 600px) {
  footer {
    white-space: normal;
    font-size: 12px;
    padding: 10px;
  }
  #footerText {
    white-space: normal;
  }
}


@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }

  100% {
    border-color: #f0e6ff;
  }
}

/* 반응형 */
@media (max-width: 480px) {
  footer {
    padding: 1px 0;
  }
}

main p {
  font-size: 1.1rem;
  letter-spacing: 1px;
  padding: 0 10px;
}

.top-menu {
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

header nav {
  display: flex;
  justify-content: space-between;
  /* 좌우 간격 분배 */
  align-items: center;
  /* 세로 중앙 정렬 */
  padding: 10px 20px;
  background-color: transparent;
  /* 배경 투명 (필요 시 변경) */
}