/* width, height */
html, body {
    /* height: 100vh !important; /* 전체 페이지 높이 */
    width: 100vw !important; /* 전체 페이지 넓이 */
    overflow-x: hidden;
}

input {
    width: 156px;
    /* height: 40px; */
    padding: 12px 12px 12px 16px;
    border-radius: 8px;
    border: 1px solid #EEE;
    background: #FFF;

    overflow: hidden;  
    text-overflow: ellipsis;
    white-space: nowrap;
}

input::placeholder {
    color: #777;

}

textarea {
    all: unset;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */
    border-radius: 8px;
    border: 1px solid #EFEEEE;
    padding: 14px;
    flex: 1 0 0;
    text-align: left;
}

textarea::placeholder {
    color: #777;
}

button {
    all: unset;
    border-radius: 12px;
    color: #ffffff;
    background-color: #000000;
    text-align: center;      
    line-height: 48px;  
    cursor: pointer;  
}

ul, li, p, h1, h2, h3, h4, h5, h6 {
    list-style: none; /* 마커 제거 */
    padding: 0;       /* 기본 padding 제거 */
    margin: 0;        /* 기본 margin 제거 */
}

a {
    text-decoration: none; /* 밑줄 제거 */
    color: inherit; /* 기본 파란색 제거 */
    font-weight: normal; /* 굵기 초기화 */
    background: none; /* 배경 초기화 */
    border: none; /* 테두리 초기화 */
}

.carousel-item img {
    height: 30vh !important;
    width: 100% !important;
    margin-top: 8vh !important;
    object-fit: cover;
}

#footer_nocount {
    height: calc(var(--vh, 1vh) * 4) !important;
    width: 100%;
    background-color: #f9fafb;
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 10px;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: #242424;
    text-decoration: none;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    text-align: center;
    font-family: Pretendard;
    -webkit-font-smoothing: antialiased; /* 부드러운 렌더링 */
    -moz-osx-font-smoothing: grayscale;
}

#header h4 {
    margin: 0;
}


.main-empty {
    height: 50vh;
}


/* CSS로 스크롤 비활성화 */
.no-scroll {
    overflow: hidden;
}

#left-buttons {
    width: 90%;
    float:left;
}

/* #right-buttons {
    width: 10%;
    float:right;
} */

.searchbox {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;
}

.search-icon {
    position: absolute;
    top: 10px;
    left: 12px;
}

.search-input {
    padding-left: 40px;
}

/* 드롭다운 메뉴 스타일 */
.dropdown {
    display: flex;
    border-radius: 8px;
    border: 1px solid #EEE;
    background: #FFF;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    position: relative;
    min-width: 150px;
    height: 40px;
}

.dropdown:hover,
.dropdown:focus {
    outline: 2px solid #007bff; /* 파란색 윤곽선 */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* 약간의 그림자 */
}



.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 12px 12px 12px 16px;
    align-items: center;
    box-sizing: border-box;
    color: #242424;
    text-align: justify;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 21px */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.dropdown-toggle-word {
    color: #777;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#subjectDropdown[data-value] .dropdown-toggle-word {
    color: #242424;
}

#themeDropdown[data-value] .dropdown-toggle-word {
    color: #242424;
}

#levelDropdown[data-value] .dropdown-toggle-word {
    color: #242424;
}


.dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #EEE;
    background: #FFF;
    box-shadow: 0px 0px 34px 0px #EEE;
    z-index: 1000;
}

.dropdown li {
    list-style: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    height: 21px;
}

.dropdown li:hover {
    background-color: #F8F8FA;
}

.filter-option li:hover {
    background-color: #F8F8FA;
}

.dropdown.active .dropdown-menu {
    display: block;
}

/* Spacer로 공백 처리 */
.spacer {
    flex: 1; /* 가용 공간을 차지 */
}

.divider {
    width: 100%;
    height: 1px;
    background-color: #eee;
}

.xterm-viewport {
    overflow-y: hidden !important;
}
