@font-face {
    font-family: 'SCDream3';
    src: url('fonts/SCDream3.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SCDream4';
    src: url('fonts/SCDream4.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'SCDream3', sans-serif;
    background-image: url('images/background.webp');
    background-size: cover; /* 이미지가 화면에 맞도록 조정 */
    background-position: center; /* 이미지가 중앙에 위치 */
    background-attachment: fixed; /* Parallax 효과 */
    animation: moveBackground 10s linear infinite; /* 애니메이션 적용 */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    flex-direction: column; /* 수직 정렬 */
    overflow-y: auto;
    overflow-x: hidden;
}

#intro-container {
    display: flex;
    position: relative;
    overflow-y: visible;
    overflow-x: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    width: 100%;
    height: 100vh; /* 전체 뷰포트 높이로 설정 */
    padding-top: 60px; /* 상단 패딩을 줄여서 컨텐츠가 잘리지 않도록 조정 */
    color: #ffffff
}

#intro-ui-container {
    display: flex;
    position: absolute; /* 고정 위치를 설정 */
    top: 20px; /* 화면 상단에서 50px 떨어진 곳에 위치 */
    left: 50%;
    transform: translateX(-50%); /* 수평으로 가운데 정렬 */
    flex-direction: column;
    justify-content: flex-start; /* 상단에서부터 정렬 */
    align-items: center;
    text-align: center;
    width: 80%;
    height: auto;
    max-height: 150vh;
    background-color: #01021436;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    overflow-y: visible;
    overflow-x: hidden;
}

label {
    color:rgb(255, 255, 255) !important; 
}

#ai-shaman-image, #intro-guide, h3, label, input, button {
    position: relative;
    z-index: 1; /* 이 값을 높게 설정하여 배경 이미지 위로 보이게 합니다 */
}

#intro-container label {
    margin-right: 10px;
    font-size: 16px;
    color: #333;
}

#ai-shaman-image {
    width: 50%;
    min-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

#birthday {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    flex-grow: 1;
    margin-right: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

#username {
    max-height: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    flex-grow: 1;
    margin-right: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

#save-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
}

#save-button:hover {
    background-color: #0056b3;
}

#delete-button {
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
}

#delete-button:hover {
    background-color: #c82333;
}

#menu-container {
    position: absolute;
    top: 10px;
    right: 3%;
}

#menu-button {
    width: 10vw;
    max-width: 40px;
    background-color: #52258d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px; /* 너비를 조절하기 위해 양쪽에 패딩 추가 */
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#menu-button .icon {
    margin-left: 5px;
    margin-right: 5px;
}

#menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: rgb(157, 115, 206);
    border: 1px solid #724b8d;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 150px; /* 메뉴의 최소 너비 설정 */
}

#menu ul {
    list-style: none;
    padding: 10px;
    margin: 0;
}

#menu ul li {
    margin-bottom: 10px;
}

#menu ul li:last-child {
    margin-bottom: 0;
}

#menu ul li button {
    width: 100%; /* 버튼의 너비를 100%로 설정 */
    padding: 10px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

#menu #delete-button {
    background-color: #fd7373;
}

#menu #delete-button:hover{
    background-color: #d63c3c;
}

#menu ul li button:hover {
    background-color: rgb(179, 179, 179);
}

#kakao-320x100-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    min-width: 320px;
    min-height: 100px;
}

.model-list {
    width: 90%;
    max-width: 700px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    box-sizing: border-box;
}

a.model-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9); /* 반투명한 흰색 배경 */
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    overflow: hidden;
    text-decoration: none;
    color: #2E2E2E;
    transition: transform 0.2s ease;
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
}

a.model-item:hover {
    transform: scale(1.02);
}

.model-icon {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 15px;
}

.model-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.model-name {
    font-family: 'SCDream4', sans-serif;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #663399; /* 보라색 톤으로 강조 */
}

.model-description {
    margin: 5px 0 0;
    font-size: 14px;
    color: #622be2; /* 푸른빛 보라색 */
}

/* Display 설정 */
#intro-container {
    display: none;
}
#delete-button {
    display: none;
}
