#top-menu {
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 10px;
    background-color: #ebe3ff; /* 연보라색 */
    /* 필요한 여백 추가 */
}

#body-container {
    width: 100%;
    font-family: 'Pretendard-Regular', 'sans-serif';
    font-size: 20px;

    max-width: 1600px; /* 최대 가로 길이 */
    margin: 0 auto; /* 좌우 중앙 정렬 */
    padding: 0; /* 여백 추가 */

    position: relative; /* 자식 요소를 기준으로 위치 지정 */
}

hr {
    border: none; /* 기본 경계선 제거 */
    height: 1px; /* 선 두께 설정 */
    background-color: #000; /* 원하는 색상으로 변경 */
    box-shadow: none; /* 그림자 제거 */
    margin: 10px 0; /* 상하 여백 조정 */
}
.floating-button {
    position: fixed;
    bottom: 2%; /* 컨테이너 하단에서 20px */
    right: 20%; /* 컨테이너 우측에서 20px */
    padding: 10px 15px;
    background-color: #ebe3ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.floating-button:hover {
    background-color: #ffffa8; /* 호버 시 색상 변경 */
}
@media (max-width: 3000px) {
    .floating-button {
        right: 20%; /* 우측에서 5%로 변경 */
    }
}

/* 화면 너비가 1200px 이하일 때 */
@media (max-width: 2600px) {
    .floating-button {
        right: 15%; /* 우측에서 5%로 변경 */
    }
}
@media (max-width: 2200px) {
    .floating-button {
        right: 10%; /* 우측에서 5%로 변경 */
    }
}

/* 화면 너비가 800px 이하일 때 */
@media (max-width: 2000px) {
    .floating-button {
        right: 5%; /* 우측에서 2%로 변경 */
    }
}

/* 화면 너비가 500px 이하일 때 */
@media (max-width: 1600px) {
    .floating-button {
        right: 1%; /* 우측에서 1%로 변경 */
    }
}
.question-button {
    padding: 5px;
    margin-left: 10px;
    font-size: 14px; /* 물음표 아이콘 크기 */
    background-color: #ebe3ff; /* 버튼 배경색 */
    color: white; /* 글자 색 (물음표 색) */
    border: none; /* 테두리 없애기 */
    border-radius: 5px; /* 둥근 모서리 */
    display: flex;
    justify-content: center;
    align-items: center; /* 텍스트(물음표) 가운데 정렬 */
    cursor: pointer; /* 마우스를 올렸을 때 포인터 모양 */
    /*animation: blink 2s infinite;*/
}

#apiKeyInput {
    max-height: 26px;
}

/* 애니메이션 정의 
@keyframes blink {
0%,100% {
background-color: #ebe3ff; 
color: white;
}
50% {
background-color: #ffffa8; 
color: black;
}

}*/
a,
button {
    font-family: 'Pretendard-Regular', 'sans-serif' !important;
    border: 1px solid black !important;
    color: #ffffff !important;
    background-color: #5e4c77 !important;
    font-size: 16px;
    border-radius: 5px;
}

#toggleFilterButton,
.filterDeleteButton {
    padding: 5px 10px;
}

.cell:hover {
    background-color: rgba(224, 209, 255, 0.2);
}

.question-button:hover {
    /*animation: none;  애니메이션 중지 */
    background-color: #ffffa8;
    color: black; /* 호버 시 글자 색상 변경 */
}
.set-check {
    font-size: large;
    color: red;
    padding: 2px 0px 2px 0px;
    display: flex;
    flex-wrap: wrap;
}
.modal-color {
    display: flex;
}
.modal-color-div {
    display: flex;
    margin-right: 10px;
}
/* 모달창 스타일 */
#modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 배경색 */
    justify-content: center; /* 수평 중앙 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
}

#modal-content {
    position: relative;
    background-color: white;
    padding: 10px 20px 10px 20px;
    border-radius: 10px;
    /* width: 100%; */
    min-width: 300px;
    max-width: 800px;

    box-sizing: border-box; /* 패딩이 크기에 영향을 주지 않도록 */
    max-height: 100vh;
    overflow-y: auto;
}
#modal-pouch {
    height: 46px;
    width: auto;
    display: flex;
}
/* #modal-pouch img {
    height: 64px;
} */
#modal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
}
#modal-body > * {
    margin: 2px;
}

#modal-close {
    position: absolute; /* 스크롤 시 버튼 고정 */
    top: 0px; /* 모달의 상단에서 10px 떨어지게 설정 */
    right: 5px; /* 오른쪽에서 20px 간격 */
    color: #aaa;
    float: right;
    font-size: 56px;
    font-weight: bold;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 9999;
}

#modal-close:hover,
#modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* 로딩 스피너 스타일 */
.spinner {
    border: 20px solid #ebe3ff;
    border-top: 20px solid #ffffff;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 1s linear infinite;
    margin: 20px auto !important;
}

/* 스피너 애니메이션 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 로딩 텍스트 스타일 */
.loading-text {
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #333;
    margin-top: 10px;
}

.location_name {
    font-family: 'HakgyoansimAllimjangTTF-B', 'sans-serif';
    font-size: 30px;
    font-weight: bold;
    margin: 10px 0px 10px 0px;
    text-align: left;
}
#content {
    padding: 10px 10px;
    display: flex;
    flex-direction: column; /* 세로 방향으로 배치 */
}

.table {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px; /* 각 테이블 간의 간격 */

    align-items: flex-start;
}

.row {
    width: 100%;
    display: flex; /* 가로 방향으로 배치 */
    flex-wrap: wrap; /* 줄 바꿈 활성화 */
    justify-content: flex-start; /* 왼쪽 정렬 */
}

.cell {
    align-items: center;
    /* flex: 1 0 16.66%; 각 셀의 기본 너비를 16.66%로 설정 (6개가 100% 차지) */
    box-sizing: border-box; /* 패딩과 테두리를 포함한 박스 모델 */
    padding: 10px; /* 패딩 추가 */
    width: 250px; /* 셀 최대 너비 설정 (반응형에 따라 조정 가능) */
    border: 1px solid #ebe3ff;
    margin: 2px;
}
.filterColor input {
    width: 100px;
}
.filterColor p {
    margin: 2px;
}
.filterColor {
    display: flex;
    flex-wrap: wrap;
}

#filterInputGroups {
    display: flex;
    flex-direction: column;
}
#filterAbove {
    display: flex;
    flex-direction: column;
    justify-items: end;
}
#filterBelow {
    display: flex;
    justify-content: center;
    align-items: center;
}

.filterPassColor {
    /* background-color: #ebe3ff; */
    color: #6f22ff;

    font-weight: 900;
    position: relative;
    background-color: rgba(89, 0, 255, 0.083);
    /* text-decoration: underline;
    text-decoration-color: rgb(0, 0, 0);
    text-decoration-thickness: auto; */
}
.filterPassColor::after {
    content: '';
    width: 100%;
    height: 2px;
    background: #6f22ff;
    position: absolute;
    display: inline-block;
    left: 0;
    bottom: 1px;
    z-index: -1;
}

#addInputButton {
    padding: 5px 10px;
}
.filterInput {
    margin: 0 0 2px 0;
    align-items: center;
    display: flex;
    height: 100%;
}

.colorInputColor {
    height: 94%;
    width: 31px;

    margin-right: 5px;
    border: 1px solid #6b6b6b;
    border-radius: 7%;
}

/* .rounded-button {
    padding: 0px 10px 5px 10px;
    color: white;
    border: none;
    border-radius: 30px; 
    cursor: pointer;
    font-size: 30px;
} */

/* @media (max-width: 1200px) {
    .cell {
      flex: 1 0 33.33%; 
    }
  }

  @media (max-width: 768px) {
    .cell {
      flex: 1 0 50%;
    }
  }

  @media (max-width:480px) {
    .cell {
      flex: 1 0 100%; 
    }
  } */
#secondsRemaining {
    color: #000000 !important;
}

#next-time {
    padding-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #555 !important;
}
body {
    font-family: Arial, sans-serif;
    max-width: 1600px; /* 최대 가로 길이 */
    margin: 0 auto; /* 좌우 중앙 정렬 */
    padding: 0; /* 여백 추가 */
    width: 100%;
}

label {
    padding-left: 10px;
    padding-right: 5px;
}
.bgColor {
    display: flex;
    flex-direction: column;
    text-align: left;
    color: #9f9f9f;
}
.color-box-box {
    padding-top: 0.5px;
    padding-left: 1.5px;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}
.color-box {
    width: 30px;
    height: 30px;
    display: inline-block;
    margin-right: 5px;
    border: 1px solid #cdcdcd;
    padding: 1px;
    /* box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2); */
}
.color-box-color {
    padding-bottom: 2px;
}

.link {
    padding: 5px 10px;

    margin-left: 10px;
    font-size: 16px; /* 물음표 아이콘 크기 */
    background-color: #ebe3ff; /* 버튼 배경색 */
    color: white; /* 글자 색 (물음표 색) */
    border: none; /* 테두리 없애기 */
    border-radius: 5px; /* 둥근 모서리 */
    display: flex;
    justify-content: center;
    align-items: center; /* 텍스트(물음표) 가운데 정렬 */
    cursor: pointer; /* 마우스를 올렸을 때 포인터 모양 */
    text-decoration: none;
}
.link:hover {
    background-color: #ffffa8;
    color: #1a1b23;
}

#fetchButton {
    padding: 5px 20px;
}

p {
    color: rgb(77, 77, 77);
    margin: 0;
}
.hidden {
    display: none;
}

#channeling-tooltip {
    z-index: 9999;
}

.tooltip {
    display: flex;
    position: relative;
    /* display: inline-block; */
    align-items: center !important;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: -150%; /* 툴팁 위치 조정 */
    left: 30%;

    opacity: 0; /* 초기 투명도 설정 */
    transition: opacity 0.3s; /* 애니메이션 효과 */
    white-space: normal; /* 줄바꿈이 자연스럽게 되도록 설정 */
    word-wrap: break-word; /* 긴 단어가 있을 경우 줄바꿈 허용 */
    pointer-events: none; /* 클릭 무시 */
}
.gyo {
    left: 100% !important;
}
.cofi {
    bottom: -50% !important;
    left: 0% !important;
}

.container {
    align-items: center;
    display: flex;
    flex-direction: column; /* 세로로 나열 */
    box-sizing: border-box;
    padding: 0px;
}
select,
input {
    font-family: 'Pretendard-Regular', 'sans-serif';
    font-size: 16px; /* 폰트 크기를 16px로 설정 */
    padding: 4px; /* 패딩을 추가하여 입력 영역을 키움 */
    margin-left: 0px;
    margin-right: 5px;
}
#locationSelect,
#channelInput {
    height: 31px;
    padding: 0;
    margin: 0;
}
#prevBtn,
#nextBtn,
#chanNextBtn,
#chanPrevBtn {
    margin: 0 2px 0 2px;
    height: 90%;
    border-radius: 5px;
}

.itemName {
    padding-bottom: 5px;
    font-weight: 800;
    font-size: medium;
}
.chanItemName {
    width: 200px;
    text-align: left;
    margin-right: 10px;
}

.modal-header {
    display: flex;
    flex-direction: column;
}
#modal-time {
    padding-bottom: 5px;
    font-size: medium;
}
.modal-left {
    padding-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-right {
    display: flex;
    flex-direction: column;
    align-items: start;
}
.modal-right h2 {
    font-size: x-large;
    margin: 5px 0 5px 0;
}

#modal-set {
    display: block;
    margin: 5px 0 5px 0;
}

#notification {
    display: none;
    position: fixed;
    top: 40%;
    right: 40%;
    background-color: #5e4c77;
    color: white;
    font-size: 20px;
    padding: 50px;
    border-radius: 5px;
    z-index: 1000;
}

.search {
    align-items: center;
}

label {
    display: flex;
    align-items: center;
}

.serverName {
    background-color: #f3eaff;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.serverName h2 {
    font-size: large;
    margin: 5px 0;
}
.chanitems {
    margin: 0 !important;
    background-color: #f9f5ff;
}
.chanItemName p {
    margin: 2px;
    font-size: medium;
}
.chanitems p {
    margin: 2px;
    font-size: medium;
}
.category h3 {
    margin: 3px;
}
input[type='checkbox'] {
    width: 20px !important;
    height: 20px;
}

input[type='checkbox']:checked {
    accent-color: purple;
}

#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 검정색 */
    color: white;
    font-size: 24px;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.collapsed {
    max-height: 0; /* 높이를 0으로 설정하여 숨김 */
    overflow: hidden; /* 넘치는 내용 숨김 */
}
