
* {
    font-family: '돋움', Dotum, sans-serif;
    font-size: 20px;
    box-sizing: border-box;
}

body {
    margin: 20px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    width: 100%;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.category-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.category-nav li {
    margin: 15px 0;
}

.category-link {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    padding: 8px 16px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background-color: cadetblue;
    color: #fff;
}

.category-link.active {
    background-color: cadetblue;
    color: #fff;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 20px;
    font-family: 'myLocalFont';
    font-size: 1.2rem;
}

nav a {
    text-decoration: none;
    color: #333;
}

nav a:hover {
    background-color: cadetblue;
    color: #fff;
}

/* Container Styles */
.container {
    width: 85%;
    margin: 80px auto 0;
    overflow: hidden;
}

.images {
    width: 100%;
    height: auto;
}

.images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Figure Styles */
figure {
    position: relative;
    cursor: pointer;
}

figcaption {
    text-align: center;
    font-size: 0.7rem;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    background-color: #ffffff;
    transition: opacity 0.3s ease-in-out;
}

figure img {
    transition: all 0.3s ease-in-out;
}

figure:hover img {
    opacity: 0.5;
    transform: scale(1.1);
}

figure:hover figcaption {
    opacity: 0;
}

.thumbnail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

figure:hover .thumbnail {
    opacity: 1;
}

/* Sub Page Styles */
.sub-page {
    margin: 0;
    padding: 0;
}

p.home {
    font-family: 'myLocalFont';
    font-size: 2rem;
    text-align: center;
    padding: 50px 0;
    cursor: pointer;
}

p.home:hover {
    color: cadetblue;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 40px;
}

.content img {
    max-width: 40%;
    height: auto;
    object-fit: cover;
}

.content .text {
    max-width: 50%;
    font-size: 16px;
}

p.bold-text {
    font-weight: bold;
}

p {
    font-size: 0.7rem;
    line-height: 25px;
}

/* Admin Page Styles */
.admin-page {
    margin: 0;
    padding: 0;
}

.admin-section {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 20px;
}

.admin-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.form-container {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    resize: vertical;
}

.button-group {
    display: flex;
    gap: 10px;
}

button {
    padding: 12px 24px;
    font-size: 0.9rem;
    background-color: cadetblue;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #4a7c7c;
}

button[type="button"] {
    background-color: #999;
}

button[type="button"]:hover {
    background-color: #777;
}

.projects-list {
    margin-top: 40px;
}

.projects-list h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

table button {
    padding: 6px 12px;
    font-size: 0.75rem;
    margin-right: 5px;
}

table button.delete {
    background-color: #d9534f;
}

table button.delete:hover {
    background-color: #c9302c;
}

/* Footer Styles */
footer {
    text-align: center;
    font-size: 0.5rem;
    margin-top: 30px;
    padding: 20px;
    background-color: transparent;
}

/* Loading Indicator */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #999;
}



.content-management-list {
    min-height: 100px;
    padding: 10px;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.content-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    cursor: move;
    transition: all 0.2s;
}

.content-item-card:hover {
    background: #e8f4f8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.item-actions {
    display: flex;
    gap: 5px;
}

.item-actions button {
    padding: 4px 10px;
    font-size: 0.75rem;
}

.type-badge {
    font-size: 0.65rem;
    background: #5f9ea0;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
}





/* Responsive Styles */
@media screen and (max-width: 700px) {
    /* Sidebar를 상단으로 이동 (모바일) */
    .sidebar {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin: 80px auto 20px;
        width: 90%;
    }

    .category-nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .category-nav li {
        margin: 0;
    }

    .category-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .content {
        flex-direction: column !important;
        align-items: center;
    }

    .content img,
    .content .text {
        max-width: 90%;
        margin: 10px 0;
    }

    .images img {
        margin-top: 20px;
    }

    table {
        font-size: 0.7rem;
    }

    table button {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
}

@media (min-width: 700px) {
    .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        grid-auto-flow: row dense;
    }

    .imageFlex1,
    .imageFlex2,
    .imageFlex3 {
        display: grid;
        row-gap: 5px;
    }
}
