/* =========================
   1. Spoqa Han Sans Neo 폰트 설정
   ========================= */
@font-face {
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 200;
    font-style: normal;
    src: url('../fonts/SpoqaHanSansNeo-Thin.ttf') format('truetype');
}

@font-face {
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 300;
    font-style: normal;
    src: url('../fonts/SpoqaHanSansNeo-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 400;
    font-style: normal;
    src: url('../fonts/SpoqaHanSansNeo-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 500;
    font-style: normal;
    src: url('../fonts/SpoqaHanSansNeo-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 600;
    font-style: normal;
    src: url('../fonts/SpoqaHanSansNeo-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Noto Sans KR';
    src: url('../fonts/NotoSansKR-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

/* =========================
   2. 기본 전역 스타일
   ========================= */
* {
    font-family: 'Spoqa Han Sans Neo', sans-serif;
    font-weight: 300;
    /* 기본 두께 (얇지 않게) */
}


body {
    margin: 0;
    background: white;
    text-align: center;
    color: black;
    font-size: 14px;
}

body.dark-mode {
    background: #1a1a1a;
    color: #f0f0f0;
}

.dark-mode .layout,
.dark-mode .header,
.dark-mode .header-logo,
.dark-mode .header-logo a,
.dark-mode .sidebar,
.dark-mode .main-title,
.dark-mode .menu,
.dark-mode .menu-close {
    color: white;
    background-color: #1a1a1a;
}

.dark-mode .sidebar a,
.dark-mode .sidebar a[disabled],
.dark-mode .menu a,
.dark-mode .menu a[disabled] {
    color: rgb(150, 150, 150);
}

.dark-mode .sidebar a.active,
.dark-mode .menu a.active {
    color: white
}

/* =========================
   3. 메인 타이틀
   ========================= */
.layout {
    display: flex;
}

/* 상단 타이틀 바 */
.header {
    position: fixed;
    width: 100%;
    height: 80px;
    background-color: white;
    padding: 8px 12px;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    display: flex;
}

.header-logo a {
    font-size: 36px;
    font-weight: 600;
}

.header-logo .subtitle {
    font-size: 12px;
    text-align: left;
}

/* 본문 */
.content {
    margin-top: 80px;
    margin-left: 220px;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    /* background-color: rgba(172, 255, 47, 0.541); */
    box-sizing: border-box;
}

.text-container {
    margin-top: 80px;
    margin-left: 220px;
    max-width: 800px;
    
    text-align: left;
    padding: 0px 20px;

    /* background-color: rgba(172, 255, 47, 0.541); */
    box-sizing: border-box;
}

.image-container {
    max-width: 800px;
    margin-bottom: 50px;
}

.image-container img {
    width: 100%;
    height: auto;
    /* 높이 자동 조절 */
    object-fit: contain;
    /* 이미지 비율 유지하면서 맞춤 */
    align-content: center;
    display: block;
    margin: 0 auto;
}

.main-title {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

.project-info {
    max-width: 800px;
    padding: 20px 0px;
    margin: 0 auto;
    text-align: left;
}

.project-title {
    font-size: 16px;
    /* 본문 크기로 줄임 */
    font-weight: 500;
    margin-top: 10px;
}

.project-details {
    font-size: 14px;
    /* 연도, 크기, 재료 크기 줄임 */
    color: #555;
    margin-top: 5px;
    line-height: 1.6;
}

.project-description {
    font-size: 16px;
    color: #000;
    margin-top: 20px;
    line-height: 1.8;
}

/* =========================
   4. 메뉴 & 링크
   ========================= */
.menu a {
    text-decoration: none;
    color: black;
    font-weight: 300;
}

/* 사이드바 (데스크탑) */
.sidebar {
    position: fixed;
    top: 80px;
    width: 220px;
    padding: 12px 0px;
    text-align: left;
    font-size: 16px;
    /* background-color: rgba(255, 192, 203, 0.568); */
}

.sidebar a {
    padding: 6px 16px;
    text-decoration: none;
    color: rgb(150, 150, 150);
    display: block;
    font-weight: 300;
}

.sidebar a[disabled] {
    pointer-events: none;
    color: rgb(170, 170, 170);
}

.sidebar .real,
.sidebar .unreal {
    padding-left: 36px;
    font-size: 12px;
}


/* =========================
   5. 햄버거 메뉴
   ========================= */
.menu-button {
    position: absolute;
    right: 16px;
    font-size: 24px;
    z-index: 1100;
    cursor: pointer;
}

.menu-close {
    position: absolute;
    top: 15px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: black;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.menu {
    position: fixed;
    top: 0px;
    right: -250px;
    width: 220px;
    height: 100vh;
    background: white;
    transition: right 0.3s ease;
    padding: 40px 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 100;
    line-height: 1.5;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.menu a {
    text-decoration: none;
    color: black;
    font-weight: 100;
}

.menu a[disabled] {
    pointer-events: none;
    color: rgb(150, 150, 150);
}

.menu .real,
.menu .unreal {
    padding-left: 20px;
    font-size: 14px;
    margin: 4px 0;
}

/* 이메일 & 인스타 사이 여백 조정 */
.contact-links p {
    margin: 5px 0;
    /* 위아래 여백 줄임 */
}

a {
    color: black;
    /* 링크 색상 검은색으로 변경 */
    text-decoration: none;
    font-weight: 400;
    /* Regular */
}

a:hover {
    text-decoration: underline;
}

a.active {
    color: black;
    font-weight: 600;
}

.video-thumbnail {
    max-width: 800px;
    margin-bottom: 50px;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    /* 높이 자동 조절 */
    object-fit: contain;
    /* 이미지 비율 유지하면서 맞춤 */
    align-content: center;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
}

/* 동영상 스타일 */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.year {
    font-size: 18px;
    margin-bottom: 20px;
}

.description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.separator {
    margin: 30px 0;
    text-align: center;
}

.credits {
    font-size: 16px;
}

/* =========================
   6. 반응형
   ========================= */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .layout {
        display: block;
    }

    .header {
        height: 60px;
    }

    .header-logo a {
        font-size: 24px;
    }

    .header-logo .subtitle {
        font-size: 10px;
    }

    .content {
        margin-top: 0px;
        display: block;
        margin-left: 0;
        padding: 60px 0px;
    }

    .text-container {
        margin-top: 0px;
        display: block;
        margin-left: 0;
        padding: 60px 15px;
    }

    .project-info {
        width: auto;
        padding: 20px 15px 80px;
    }

    .menu {
        position: fixed;
        right: -250px;
        width: 220px;
        height: 100vh;
        background: white;
        transition: right 0.3s ease;
        padding: 60px 0px;
        text-align: left;
        display: flex;
        flex-direction: column;
        
        font-size: 16px;
        font-weight: 100;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
        right: 0;
    }

    .menu a {
        padding: 6px 16px;
        text-decoration: none;
        color: rgb(150, 150, 150);
        display: block;
        font-weight: 200;
    }

    .menu a.active {
        color: black;
        font-weight: 600;
    }
    
    a:hover {
        text-decoration: underline;
    }

    .menu .real,
    .menu .unreal {
        padding: 0px 0px;
        padding-left: 36px;
        font-size: 12px;
    }

    p {
        font-size: 16px;
        line-height: 1.8;
    }

    .description {
        font-size: 16px;
        line-height: 1.6;
    }

    .credits {
        font-size: 14px;
    }

    .video-thumbnail {
        padding: 0px 20px;
    }
}

/* 데스크탑에서 햄버거 메뉴 숨기기 */
@media (min-width: 769px) {
    .menu-button {
        display: none;
    }

    .menu {
        display: none;
    }
}

/* =========================
   7. Contact 페이지용 폰트 굵기 클래스
   ========================= */
.bold {
    font-weight: 600;
}

.semi-bold {
    font-weight: 400;
}