@charset "utf-8";
/* CSS Document */

/* 자기소개 */


.container {
    display: flex;
    max-width: 500px;
    gap: 20px; 
    padding: 20px;
    width: 100%;
    box-sizing: border-box; 
	margin-top: -50px;
}

.container2 {
    margin: 0 auto;
	display: flex;
    gap: 20px; 
    padding: 20px;
    width: 100%;
    box-sizing: border-box; 
	margin-top: 100px;
}



.profile-section {
    flex: 1; 
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}


.profile-header {
    background-image: url('blueheader.jpg');
    height: 150px;
	
}


.profile-info {
    text-align: center;
    padding: 20px;
}

.profile-name-stats {
    display: flex;
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-top: -50px;
    background: #ddd;
	transition: all 0.3s ease;
}

.profile-image:hover {
    filter: grayscale(100%);
    border: 5px solid #f5f5f5;
}

.profile-name {
    font-size: 24px;
    color: #B3CDF0;
    font-style: italic;
    margin: 0;
	line-height: 0.9;
}

.profile-stats {
    color: #989898;
    font-size: 14px;
    margin: 0;
}

.profile-joined {
    color: #989898;
    font-size: 12px;
	line-height: 0.7;
}

.profile-memo {
    color: #989898;
    font-size: 13px;
	line-height: 0.7;
}

/* Tabs */
.profile-tabs {
    display: flex;
    justify-content: space-around;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.tab {
    font-size: 10px;
    color: #989898;
    cursor: pointer;
    transition: color 0.3s;
}

.tab.active {
    color: #B3CDF0;
    font-weight: bold;
    border-bottom: 2px solid #B3CDF0;
}

.tab:hover {
    color: #B3CDF0;
}

/* Grid Section */
.grid-section {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3열 레이아웃 */
    grid-gap: 20px; /* 항목 간 간격 */
    padding: 20px; /* 상단 패딩 조정 (header-bar와 겹치는 영역 보정) */
    background-color: #f5f7fa; /* 배경색 설정 */
    border: 1px solid #ddd; /* 경계선 */
    border-radius: 10px; /* 둥근 모서리 */
    position: relative; /* 기본 위치 */
}

.grid-item {
    width: 100%;
    padding-top: 100%;
    position: relative; /* 제목 위치 설정을 위해 상대 위치 지정 */
    background-size: cover; /* 이미지 크기 조정 */
    background-position: center; /* 이미지 중앙 정렬 */
    border-radius: 8px;
    filter: grayscale(100%); /* 흑백 처리 */
    transition: filter 0.3s ease; /* 부드러운 전환 효과 */
    overflow: hidden; /* 제목이 그리드 항목을 넘지 않도록 설정 */
}

.grid-item:hover {
    filter: grayscale(0%); /* 원본 색상으로 전환 */
}

/* 개별 이미지 설정 */
.grid-item1 {
    background-image: url('backlight.jpg'); /* 첫 번째 이미지 경로 */
}

.grid-item2 {
    background-image: url('green.jpg'); /* 두 번째 이미지 경로 */
}

.grid-item3 {
    background-image: url('blackswan.jpg'); /* 세 번째 이미지 경로 */
}

.grid-item4 {
    background-image: url('pizza.jpg'); /* 네 번째 이미지 경로 */
}

.grid-item5 {
    background-image: url('sgg.jpg'); /* 다섯 번째 이미지 경로 */
}

.grid-item6 {
    background-image: url('1st.jpg'); /* 여섯 번째 이미지 경로 */
}

.grid-item7 {
    background-image: url('jaeang.jpg'); /* 일곱 번째 이미지 경로 */
}

.grid-item8 {
    background-image: url('gs.jpg'); /* 여덟 번째 이미지 경로 */
}

.grid-item9 {
    background-image: url('gqm.jpg'); /* 아홉 번째 이미지 경로 */
}

.title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
    opacity: 0; /* 초기에는 숨김 */
    transition: opacity 0.3s ease; /* 부드러운 나타남 효과 */
    text-align: center;
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    background-color: rgba(85, 124, 163, 0.7); /* 반투명 배경색 */
    padding: 5px 10px; /* 배경 안쪽 여백 */
    border-radius: 5px; /* 모서리 둥글게 */
    z-index: 2; /* 제목이 링크 위로 오게 설정 */
}

.title {
    z-index: 2; /* 제목이 링크 위로 오게 설정 */
}

/* 호버 시 제목 표시 */
.grid-item:hover .title {
    opacity: 1; /* 투명도를 1로 설정하여 제목 표시 */
}


.tweet-container {
    background: #ffffff;
    width: 85%;
    padding: 5px;
    margin: 0 auto;
	
}


.tweet-header {
    color: #989898;
    font-size: 10px;
    margin-bottom: 3px;
    font-family: roboto;
}


.tweet-custom-hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0;
    width: 100%; 
}


.tweet-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 10px;
    color: #989898;
}


.reply-note {
    background: #EDF3F9;
    color: #79A4D3;
    font-size: 10px;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}


.message-container {
    background: #ffffff;
    width: 85%;
    padding-top: 10px;
    margin: 0 auto;
    color: #676767;
    font-size: 12px;
    font-family: roboto;
    margin-bottom: -20px;
}


/* 미디어 쿼리: 화면이 768px 이하일 때 레이아웃 변경 */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column; /* 세로 정렬 */
        align-items: center; /* 컨텐츠 가운데 정렬 */
		margin-top: 40px;
    }
	
    .profile-section,
    .grid-section {
        flex: none; /* 너비 비율 해제 */
        width: 100%; /* 각 섹션이 화면 전체 너비 사용 */
    }

    .grid-section {
        grid-template-columns: repeat(2, 1fr); /* 2열 레이아웃 */
		transform: scale(0.92); /* 90%로 축소 */
		margin-top: -60px;
    }
	
	    .grid-item {
        transform: scale(0.95); /* 각 그리드 항목도 90%로 축소 */
    }

            .menu > li a {
                color: #6195C9;
				font-weight:500; /* 축소 시 글자색 */
            }
	
        .reply-note {
            margin-bottom: 15px;
        }
	
        }

/* 미디어 쿼리: 화면이 480px 이하일 때 레이아웃 더 간단히 */
@media screen and (max-width: 480px) {
    .grid-section {
        grid-template-columns: 1fr; /* 1열 레이아웃 */
    }
	
	
    .grid-section {
        grid-template-columns: repeat(1, 1fr); /* 1열 레이아웃 */
        transform: scale(0.9); /* 추가 축소 */
    }
	
	.container {
    margin-bottom: 0; /* 추가: 아래쪽 간격 제거 */
}

.grid-section {
	position: relative;
    margin-top:-200px;
}
	
}
