body, h1, h2, h3, h4, h5, h6, label, input, button, textarea, div, p, nav, ul, select, pre, img, li, span, table, tr, td {font-family: 's-core-dream', sans-serif;}

.video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

img.card-img-top {
    object-fit: cover;
}

@media screen and (max-width: 1140px) {
    img.card-img-top {
        height: 300px;
    }
}

@media screen and (min-width: 1140px) {
    img.card-img-top {
        width: 1140px;
    }
}

@media screen and (max-width: 768px) {
    div.container {
        position: relative;
        width: 100%;
        padding-right: 0px;
        padding-left: 0px;
    }

    img.card-img-top {
        height: 220px;
    }
}

@media screen and (max-width: 560px) {
    img.card-img-top {
        height: 120px;
    }

    img.card-img-top2 {
        width: 100%;
        height: 100%;
    }
}

.custom-width {
    width: 140px;
}

.youtube-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 비율 */
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.aspect-ratio-4-3 {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background: #e0e0e0;
    overflow: hidden;
}

.aspect-ratio-4-3 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    transition: all 0.3s;
    opacity: 0.5;
}

.custom-card-column {
    padding-left: 5px;
    padding-right: 5px;
}

.container {
    display: flex;
    flex-wrap: wrap;
}

.help-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    padding: 20px;
    background-color: white;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 12pt;
}

.help-popup .close-btn {
    display: block;
    text-align: right;
    margin-bottom: 10px;
}

.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 블로그 에디터 레프트 메뉴 */
#blogEditorMenu {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #fcfcfc;
    /* box-shadow: 0.2px 0 0px rgba(255, 0, 0, 0); */
    transition: left 0.3s ease;
    overflow-y: auto;
    /* padding: 10px; */
    z-index: 1000;
    font-family: 's-core-dream', sans-serif;
    font-size: 12pt;
    font-weight: 500;
    text-align: left;
    border-right: 0.5px solid #ff0000;
}

#blogEditorMenu.show {
    left: 0;
}

#toggleMenuButton {
    position: fixed;
    top: 20px;
    left: 0;
    z-index: 1001;
    background-color: #ff0000;
    color: white;
    padding: 10px 15px;
    border: none; /* 테두리 없음 */
    cursor: pointer;
    border-radius: 0 5px 5px 0; /* 왼쪽 상하 꼭지점은 사각형, 오른쪽 상하 꼭지점은 둥글게 */
    outline: none; /* 외곽선 없음 */
    box-shadow: none; /* 그림자 제거 */
    transition: left 0.3s ease;
}

#toggleMenuButton.show {
    left: 250px;
}

#toggleMenuButton:hover {
    background-color: #b30000;
}

/* 수직 메뉴 스타일링 */
#blogEditorMenu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#blogEditorMenu li {
    margin-bottom: 10px;
}

#blogEditorMenu a {
    display: block;
    padding-left: 25px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: #000000;
    font-size:11pt;
    /* background-color: #ffffff; */
    text-decoration: none;
    /* border-radius: 0 5px 5px 0; /* 왼쪽 상하 꼭지점은 사각형, 오른쪽 상하 꼭지점은 둥글게 */
    transition: background-color 0.3s ease;
}

#blogEditorMenu a:hover {
    background-color: #ffe0e0;
    font-weight: 900;
    color:red;
}

.tree-menu {
    padding-top: 30px;
    padding-left: 15px;
    background-color: #fcfcfc;
    max-width: 350px;
    font-weight: 500;
    font-family: 's-core-dream', sans-serif;
}

.tree-menu .menu-header::before {
    content: "▶︎";
    display: inline-block;
    margin-right: 5px;
    font-size: 14px;
}

.tree-menu .menu-header.active::before {
    content: "▼";
    font-size: 14px;
}

.tree-menu ul ul {
    display: none; /* 모든 서브메뉴를 기본적으로 숨김 */
}

.tree-menu .menu-header.active + ul {
    display: block; /* 활성화된 메뉴만 열리도록 설정 */
}


.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* 기본 first-div와 second-div의 너비 */
.first-div {
    width: 800px;
    max-width: 1200px; /* first_div의 최대 너비 */
    padding: 10px;
    box-sizing: border-box;
}

.second-div {
    width: 340px; /* second_div는 고정된 크기 */
    padding: 10px;
    box-sizing: border-box;
}

/* 화면 너비가 1280px 이상일 때 */
@media (min-width: 1280px) {
    .container {
        max-width: 1620px; /* first_div + second_div */
    }
    .first-div {
        width: calc(100% - 350px); /* 전체 화면에서 second-div를 제외한 공간을 first-div에 할당 */
        max-width: 1200px;
    }
}

/* 화면 너비가 1400px 이상일 때 (xxl) */
@media (min-width: 1400px) {
    .container {
        max-width: 1620px; /* container의 최대 너비 설정 */
    }
    .first-div {
        max-width: 1200px; /* first_div의 최대 너비 */
    }
}

/* 작은 화면을 위한 처리 */
@media (max-width: 1200px) {
    .first-div {
        width: 100%;
        max-width: 100%; /* 작은 화면에서 최대 너비 제한 해제 */
    }
    .second-div {
        display: none;
    }



}
