
/* 사이드바 네비게이션 스타일 */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background-color: #28b676;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

#sidebar h3 {
    text-align: center;
    margin-top: 20px; /* 프로필 사진과 이름 간격 */
    margin-bottom: 50px; /* 이름과 첫 메뉴 항목 간 간격 */
}

#sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

#sidebar ul li {
    margin-bottom: 20px; /* 메뉴 항목간 간격 조정 */
    cursor: pointer;
    font-size: 18px;
    color: white;
    transition: color 0.3s, background-color 0.3s; /* 배경 및 색상 변화 효과 */
    padding: 15px 20px; /* 패딩 조정 */
    display: block;
    width: 100%; /* 전체 너비 사용 */
    box-sizing: border-box; /* 패딩을 포함한 너비 계산 */
}

/* 활성화된 메뉴 항목 스타일 */
#sidebar ul li.active {
    background-color: white; /* 활성화 시 배경을 흰색으로 변경 */
    color: #28b676; /* 활성화 시 텍스트 색상을 변경 */
    font-weight: bold;
    width: 100%; /* 전체 너비 사용 */
    box-sizing: border-box; /* 패딩을 포함한 너비 계산 */
    
    
}

/* 사이드바 이미지 스타일 */
#profile-pic {
    width: 180px; /* 사이드바 안에 맞는 적당한 너비 */
    height: auto; /* 비율에 맞춰 이미지 크기 조정 */
    border-radius: 50%; /* 원형 이미지 */
    display: block;
    margin: 20px auto; /* 중앙에 배치 */
    border: 3px solid #fff; /* 테두리 */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* 약간의 그림자 */
}


/* 메인 레이아웃 */
main {
    margin-left: 270px; /* 사이드바 너비만큼 여백 */
    padding: 20px;
}

/* 각 섹션 스타일 */
section {
    margin-bottom: 100px;
    padding: 50px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* 첫 번째 섹션 스타일 (Introduction) */
#section1 {
    height: 100%;
    display: flex;
    flex-direction: column; /* 컨텐츠를 수직으로 정렬 */
    justify-content: flex-start; /* 왼쪽 정렬 */
    background-color: #f4f4f4;
    padding-left: 50px; /* 왼쪽 패딩 */
    padding-right: 50px; /* 오른쪽 패딩 */
    padding-top: 20px; /* 상단 패딩 */
    padding-bottom: 20px; /* 하단 패딩 */
}

/* 나머지 섹션 스타일 */
#section2, #section3, #section4 {
    background-color: #ffffff;
}

/* 푸터 스타일 */
footer {
    background-color: #c0c0c0;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* 기본 텍스트 스타일 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
}

/* 제목 스타일 */
h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

/* 링크 스타일 */
a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/*포트폴리오단 css 추가 */

/* Portfolio 섹션 제목 스타일 */
#section3 h2 {
    font-size: 2.5em;
    color: #28b676;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #28b676;
    display: inline-block;
    padding-bottom: 10px;
}

/* 테이블 전체 스타일 */
#section3 .portfolio-table table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* 테이블 헤더 스타일 */
#section3 .portfolio-table thead th {
    background-color: #28b676;
    color: #ffffff;
    font-size: 1.3em;
    text-align: center;
    padding: 15px;
}

/* 테이블 셀 스타일 */
#section3 .portfolio-table th,
#section3 .portfolio-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
    font-size: 1em;
    color: #333;
}

/* 홀수/짝수 행 색상 */
#section3 .portfolio-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

#section3 .portfolio-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* 링크 스타일 */
#section3 .portfolio-table a {
    color: #28b676;
    font-weight: bold;
    text-decoration: none;
}

#section3 .portfolio-table a:hover {
    text-decoration: underline;
    color: #1b7f50;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    #section3 .portfolio-table table {
        font-size: 0.9em;
    }

    #section3 .portfolio-table th,
    #section3 .portfolio-table td {
        padding: 10px;
    }
}

/* 섹션 4번 */
/* Links 섹션 스타일 */
#section4 {
    background-color: #ffffff; /* 흰색 배경 */
    padding: 30px;
    margin-bottom: 100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 약간의 그림자 효과 */
    border-radius: 10px;
    text-align: left; /* 전체 중앙 정렬 */
}

/* Links 섹션 제목 스타일 */
#section4 h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

/* Links 항목 컨테이너 */
#section4 .link-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* 링크 항목 간의 간격 */
}

/* Links 텍스트 스타일 */
#section4 .link-label {
    font-size: 1.2em;
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap; /* 줄바꿈 방지 */
    color: #333; /* 기본 텍스트 색상 */
}

/* Links 이미지 크기 제한 */
#section4 .link-item img {
    max-height: 35px; /* 아이콘 크기 제한 */
    height: auto;
    margin-left: 10px;
}

/* Links 항목 간격 */
#section4 .link-item a {
    display: inline-block;
    text-decoration: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    #section4 .link-item {
        flex-direction: column; /* 작은 화면에서 수직 정렬 */
        align-items: flex-start; /* 왼쪽 정렬 */
    }
    #section4 .link-item img {
        margin-left: 0; /* 수직 정렬 시 마진 제거 */
        margin-top: 5px;
    }
}
