/* Google Fonts에서 'Noto Sans KR' 폰트 가져오기 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

body {
    font-family: 'Noto Sans KR', sans-serif; /* 기본 폰트 변경 */
    background-color: #F0EBE3; /* 눈이 편안한 베이지 톤 배경 */
    color: #5C5470; /* 부드러운 보라색 톤 텍스트 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card {
    background-color: #fff;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 90%;
    max-width: 450px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

h1 {
    color: #352F44;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    color: #B2B1B9;
    margin-bottom: 2rem;
    font-weight: 300;
}

#zodiac-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%; /* 이미지를 원형으로 */
    margin: 0 auto 1.5rem auto;
    display: none; /* 처음에는 숨김 */
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    animation: fadeIn 1s;
}

.select-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

#zodiac-select {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid #DBD8E3;
    font-size: 1rem;
    background-color: #FAF9F6;
    cursor: pointer;
    -webkit-appearance: none; /* 기본 화살표 제거 */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%235C5470" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

#get-fortune {
    background-color: #5C5470; /* 메인 색상 */
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#get-fortune:hover {
    background-color: #352F44; /* 더 진한 색으로 */
    transform: translateY(-2px);
}

#fortune-display {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #352F44;
    min-height: 100px;
    padding: 1.5rem;
    border-radius: 15px;
    background-color: #F7F5F2;
    line-height: 1.8;
    text-align: left;
    animation: fadeIn 1s;
}

/* 페이드인 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
