/* link.css */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}
/* link.css */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center; /* 제목을 중앙에 배치 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
}

header #back-button {
    position: absolute; /* 뒤로가기 버튼을 좌측에 고정 */
    left: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

header h1 {
    margin: 0;
    font-size: 18px;
    white-space: nowrap; /* 제목이 줄 바꿈되지 않도록 설정 */
    overflow: hidden;
    text-overflow: ellipsis; /* 제목이 너무 길면 '...'으로 표시 */
}

main {
    margin-top: 70px; /* 상단바 높이 만큼 여백 */
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.link-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 80px; /* 행 높이를 줄임 */
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.link-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.link-image {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* 원형 이미지 */
    object-fit: cover;
    margin: 10px;
    border: 2px solid #ddd;
}

.link-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.link-desc {
    font-size: 12px;
    color: #777;
}

@media (max-width: 768px) {
    .link-item {
        height: 70px; /* 모바일에서 행 높이 더 줄임 */
    }
    .link-image {
        width: 50px;
        height: 50px;
    }
    .link-title {
        font-size: 13px;
    }
    .link-desc {
        font-size: 11px;
    }
}
