@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: #dcfce7;
    color: #4b5563;
}

body {
    background-image: url('../kgh/Animate_BG_img.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.left-section {
    width: 50%;
    padding: 4rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    overflow-x: hidden;
}

.right-section {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-section img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* ★ 이 부분을 contain으로 변경합니다. ★ */
    max-width: 800px;
}

.section-1, .section-2 {
    flex-grow: 1;
}

.section-1 {
    display: flex;
    align-items: center;
}

.section-2 {
    margin-top: 4rem;
}

.section-3 {
    margin-top: 4rem;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    line-height: 1.25;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

hr {
    display: none;
}

.description-box {
    background-color: #6dff6d;
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.section-3 a span {
    display: inline-block;
    background-color: #6dff6d;
    border-radius: 1rem;
    padding: 1rem;
    color: #6b7280;
    transition: color 0.2s;
}

.section-3 a:hover span {
    color: #111827;
}

/* 이미지 스타일 및 애니메이션 추가 */
.right-section img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    max-width: 800px;

    /* ★ 아래 애니메이션 관련 코드 추가 ★ */
    opacity: 0; /* 처음에는 투명하게 */
    animation: fadeIn 1.0s ease-out forwards; /* fadeIn 애니메이션 적용 */
    animation-delay: 0.5s; /* 0.5초 후에 애니메이션 시작 */
}

/* 애니메이션 키프레임 정의 */
@keyframes fadeIn {
    from {
        opacity: 0; /* 시작: 완전히 투명 */
    }
    to {
        opacity: 1; /* 끝: 완전히 불투명 */
    }
}