/* General Body Style */
body {
    font-family: sans-serif;
}

.container {
    padding: 20px;
}

/* Header Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
}

.nav-left {
    flex: 1;
}

.nav-center {
    flex: 1;
    text-align: center;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-left a, .nav-right a {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
}

.nav-center a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: black;
}

.nav-right a {
    margin-left: 10px;
}

/* Card Layout Styles */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px; /* 카드 사이의 간격 */
    justify-content: center; /* 중앙 정렬 */
    padding: 20px 0;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card {
    width: 280px; /* 카드 너비 조정 */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-content h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .card {
        width: 100%; /* 작은 화면에서는 카드 너비를 100%로 */
    }
}

.modal {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* 뒷 배경 어둡게 */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 화면 중앙에 위치 */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    max-height: 200px;
    border-radius: 8px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
}
