html,
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* 중앙으로 위치 변경 */
  width: 100%;
  height: 100vh; /* 화면의 100% 높이로 변경 */
  font-family: "Black Han Sans", sans-serif;
  background-color: #2f2f2f;
  font-size: 1.5rem;
  margin: 0; /* 기본 여백 제거 */
}

a {
  cursor: pointer;
  -webkit-text-stroke: 1px #f9f7f1;
  background-image: linear-gradient(0deg, #f9f7f1, #f9f7f1);
  -webkit-background-clip: text;
  color: transparent;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease-in;
  margin: 3px 0; /* 텍스트 사이 간격 추가 */
  text-decoration: none; /* 링크 밑줄 제거 */
}

a:hover {
  background-size: 100% 100%;
}

.left {
  background-position: 0% 0%;
  background-size: 0% 100%;
}

.right {
  background-position: 100% 0%;
  background-size: 0% 100%;
}

.top {
  background-position: 0% 0%;
  background-size: 100% 0%;
}

.bottom {
  background-position: 0% 100%;
  background-size: 100% 0%;
}

.center {
  background-position: 50% 50%;
  background-size: 0% 0%;
}

/* 반응형 디자인을 위한 미디어 쿼리 */
@media (max-width: 768px) {
  html,
  body {
    font-size: 1.5rem;
  }

  a {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  html,
  body {
    font-size: 1.2rem;
  }

  a {
    font-size: 1rem;
  }
}