/* 기본 초기화 및 시스템 폰트 설정 (미니멀한 무드) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    font-size: 13px; /* Indexhibit 특유의 작고 단정한 글씨 크기 */
    line-height: 1.5;
}

a {
    color: #000000;
    text-decoration: none;
}

a:hover, .menu-item.active {
    text-decoration: underline;
}

/* 전체 레이아웃 구획 */
.container {
    display: block;
}

/* 좌측 고정 사이드바 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    padding: 40px 20px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #f0f0f0; /* 부드러운 경계선 */
}

.site-title h1 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.subtitle {
    color: #888888;
    font-size: 11px;
    margin-bottom: 40px;
}

/* 네비게이션 메뉴 */
.nav-menu {
    flex-grow: 1;
    overflow-y: auto;
}

.nav-menu ul {
    list-style: none;
}

.menu-category {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
}

.menu-item {
    margin-bottom: 5px;
    padding-left: 5px;
    cursor: pointer;
}

.sidebar-footer {
    font-size: 11px;
}

/* 우측 컨텐츠 스크롤 영역 */
.content-area {
    margin-left: 240px; /* 사이드바 너비 + 여백 */
    padding: 40px;
    max-width: 900px;
}

/* 프로젝트 렌더링 스타일 */
.project-container {
    margin-bottom: 100px;
}

.project-media {
    margin-bottom: 30px;
}

/* 업로드된 이미지가 화면에 알맞게 세로로 나열되도록 설정 */
.project-media img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.project-text {
    max-width: 600px;
    margin-top: 30px;
}

.project-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.project-desc {
    color: #333333;
    white-space: pre-wrap; /* 줄바꿈 유지 */
}

/* About 섹션 기본 뷰 */
.about-section h2 {
    font-size: 15px;
    margin-bottom: 15px;
}
.about-section p {
    max-width: 500px;
    color: #333333;
}

/* 모바일 대응 반응형 레이아웃 */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 30px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .content-area {
        margin-left: 0;
        padding: 30px;
    }
    
  /* PDF 플립북 뷰어 크기 및 여백 설정 */
.flipbook-container {
    width: 100%;
    height: 700px; /* 뷰어의 세로 높이 (원하는 대로 조절 가능) */
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    
}
/* ==========================================
   제너러티브 아트 캔버스 (반응형)
   ========================================== */

/* 1. 기본 설정 (PC 화면) */
#p5-canvas-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 30vw;  /* 원하시는 여백 너비 */
    height: 100vh;
    z-index: 999;
    pointer-events: none;
}

/* 2. 화면이 1024px 이하로 좁아질 때 (태블릿, 모바일) */
@media (max-width: 1024px) {
    #p5-canvas-container {
        display: none; /* 모바일에서는 여백이 없으므로 깔끔하게 그래픽을 숨깁니다 */
        
        /* 💡 만약 모바일에서도 이미지를 가리지 않을 정도로 아주아주 연하게라도 띄워두고 싶으시다면, 
           위의 'display: none;'을 지우고 아래처럼 투명도를 극단적으로 낮춰보세요. 
           opacity: 0.05; 
        */
    }
}
}
/* 모바일 화면(1024px 이하)에서만 적용되는 여백 */
@media (max-width: 1024px) {
    .contact-area {
        margin-top: 80px !important;
        margin-bottom: 40px !important;
    }
}