@media (max-width: 600px) {
    body {
        font-size: 14px; /* 기본 폰트 크기 줄이기 */
    }

    header {
        padding: 10px 0; /* 헤더의 패딩 조정 */
        height: auto; /* 고정된 높이 대신 자동으로 설정 */
    }

    .subtitle {
        font-size: 24px; /* 폰트 크기 줄이기 */
        padding: 0 20px; /* 좌우 여백 축소 */
    }

    .container-0,
    .container-1,
    .container-2,
    .container-project {
        flex-direction: column; /* 세로로 쌓이도록 변경 */
        padding: 0 20px; /* 좌우 여백 줄이기 */
    }

    .left-side,
    .middle-side,
    .right-side {
        width: 100%; /* 모든 사이드를 100%로 설정 */
        text-align: left; /* 텍스트 왼쪽 정렬 */
    }

    .left-project-section,
    .middle-project-section,
    .right-project-section {
        min-width: 100%; /* 최소 너비를 100%로 설정 */
        margin-bottom: 20px; /* 각 섹션 아래에 여백 추가 */
    }

    .project-img {
        width: 100%; /* 이미지 너비를 100%로 설정 */
        height: auto; /* 이미지 높이를 자동으로 설정 */
    }

    .video-modal-content {
        max-width: 95%; /* 팝업 너비를 줄여 모바일에서 더 잘 보이도록 조정 */
        max-height: 90%; /* 팝업 높이도 조정 */
    }

    .video-close {
        font-size: 28px; /* 닫기 버튼 크기 줄이기 */
        width: 30px; /* 닫기 버튼 너비 조정 */
        height: 30px; /* 닫기 버튼 높이 조정 */
    }
}

/* ----------------------------- */

body {
    font-family: 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: white;
    color: white;
    padding: 1px 0;
    height: 1px; /* 헤더 높이를 100px로 설정 */
    text-align: center;
}

main {
    padding: 20px;
}

.subtitle {
    text-align: left;
    font-size: 35px;
    font-weight: 500;
    margin: 30px 0;
    margin-bottom: 50px;
    color: #5477AD;
    padding: 0 50px; /* 좌우 여백을 20px로 설정 */

    position: relative; /* 상대 위치 설정 */
    display: inline-block; /* 인라인 블록 요소로 설정 */
}

.container-0 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #5477AD;
    padding: 0 50px; /* 왼쪽과 오른쪽 여백을 20px로 설정 */
    padding-top: 30px; /* 예시: .subtitle과의 간격을 조정할 패딩 설정 */
    padding-bottom: 50px; 
}

.container-1 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #5477AD;
    /* font-weight: 500; */
    padding: 0 50px; /* 왼쪽과 오른쪽 여백을 20px로 설정 */
    padding-bottom: 30px; /*한 컨테이너 끝날 때 간격*/
}

.container-2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #5477AD;
    /* font-weight: 500; */
    padding: 0 50px; /* 왼쪽과 오른쪽 여백을 20px로 설정 */
    padding-bottom: 30px; /*한 컨테이너 끝날 때 간격*/
}

.container-project {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #5477AD;
    /* font-weight: 500; */
    padding: 0 50px; /* 왼쪽과 오른쪽 여백을 20px로 설정 */
    padding-bottom: 80px; /*한 컨테이너 끝날 때 간격*/
    gap: 0px; /* 섹션 간의 간격 설정, 필요한 만큼 조절 가능 */
}

.left-side {
    width: 16%;
}

.middle-side {
    width:60%;
    text-align: left;
}

.right-side {
    width: 43%;
    text-align: left;
    font-size: 500;
}

.left-project-section, .middle-project-section, .right-project-section {
    flex: 1; /* 섹션이 같은 비율로 공간을 차지하도록 설정 */
    min-width: 300px; /* 각 섹션의 최소 너비 설정 */
    box-sizing: border-box; /* 패딩과 보더를 포함하여 너비를 계산 */
    text-align: left; /* 텍스트 왼쪽 정렬 */
}


.left-side img {
    max-width: 100%;
    height: auto;
    display: block;
}

.left {
    width: 20%;
}

.right {
    width: 80%;
    text-align: left;
}

h1, h2 {
    margin: 0;
    padding-bottom: 10px;
}

.middle-side p, .right-side p {
    margin: 0px 0;
}

.about-text, .contact-text {
    color:#6E6E6E; 
    font-size: 18px; 
    font-weight: normal;
    line-height: 1.5;
    
}
.contact-title, .about-title {
    font-weight: 500;
    font-size: 23px;
    color: #5477AD;
    margin-bottom: 20px;

}

.education-title, .experience-title {
    font-weight: 500;
    font-size: 23px;
    color: #5477AD;
    margin-bottom: 30px;
    padding: 0 50px; /* 왼쪽과 오른쪽 여백을 20px로 설정 */
}


.contact-sub {
    color: #5477AD;
    font-weight: bold;
}

/* 마우스 커서 깜빡이는 효과 */
.blink-cursor {
    position: absolute; /* 절대 위치 설정 */
    top: 42%;
    left: var(--cursor-position, 50); /* 변수로 위치 설정 */
    transform: translateY(-50%); /* 수직 정렬을 위한 변환 */
    animation: blink 0.8s infinite; /* 깜빡임 애니메이션 */
    margin-left: -15px; /* 여기에 원하는 간격을 설정하세요 */
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* 구분선 추가 */
.hr-bottom {
    width: 93%;
    border-color: #F7F7F7;
    margin-bottom: 40px; /* 구분선 아래의 간격 설정 */
    border-width: 0.1px; /* 구분선 두께 설정 */
}

.date-text {
    color:#6E6E6E; 
    font-size: 15px; 
    font-weight: normal;
}

.content-sub {
    color: black;
    font-size: 18px;
    font-weight: bold;
}

.content-text {
    color: #6E6E6E;
    /*#4D4D4D*/
    font-size: 17px; 
    font-weight: normal;
}

.skill-title{
    color: black;
    font-size: 17px;
    font-weight: bold;
}

/* 공백을 제거하는 클래스 */
.no-margin-wrapper p {
    margin: 3px;
    padding: 0;
}

.no-margin-img {
    margin-top: 20px;
    /* margin: 3px; */
}

.circle {
    /* width: 60px;
    height: 30px; */
    background-color: #5477AD;
    color: white;
    display: inline-flex;
    padding: 0px 8px; /* 도형 내부 여백 설정 */
    justify-content: center;
    align-items: center;
    border-radius: 5%;
    font-size: 13px;
    font-weight: normal;
    text-align: center;
    line-height: 30px; /* 높이와 동일하게 설정하여 수직 중앙 정렬 */
    margin-bottom: 5px; /* 도형 사이의 세로 간격 조정 */
}

.project-img {
    width: 300px;
    height: 200px;
    display: block; /* 이미지와 하단 텍스트 사이에 여백 추가 */
    margin-bottom: 20px; /* 이미지 아래쪽에 여백 추가 */
}

.project-text {
    color: black;
    font-weight: bold;
}

.content-sub-education {
    color: black;
    font-size: 17px;
    font-weight: bold;
}


/* 팝업창 스타일 */
.video-modal {
    display: none; /* 기본적으로 숨김 */
    position: fixed; /* 화면에 고정 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* 반투명 검정 배경 */
    z-index: 1000; /* 다른 요소 위에 표시 */
    overflow: hidden; /* 스크롤바 숨기기 */
    align-items: center; /* 중앙 정렬 */
    justify-content: center; /* 중앙 정렬 */
}

/* 팝업 내용 스타일 */
.video-modal-content {
    position: relative;
    background: black;
    padding: 20px;
    max-width: 80%;
    max-height: 80%;
}

/* 닫기 버튼 스타일 */
.video-close {
    position: absolute;
    top: 10px; /* 팝업의 상단에서 10px */
    right: 10px; /* 팝업의 우측에서 10px */
    font-size: 36px; /* 버튼 크기 조정 */
    color: #333; /* 버튼 색상 (어두운 회색) */
    cursor: pointer; /* 클릭할 수 있는 버튼임을 나타내는 커서 */
    background: rgba(255, 255, 255, 0.8); /* 버튼 배경 (약간 반투명 흰색) */
    border-radius: 50%; /* 버튼을 원형으로 만들기 */
    width: 40px; /* 버튼 너비 */
    height: 40px; /* 버튼 높이 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* 버튼 내 텍스트 가운데 정렬 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 버튼에 그림자 추가 */
}

.video-close:hover {
    background: rgba(255, 255, 255, 1); /* 호버 시 버튼 배경색 변경 */
}

