
body { 
    font-family: 'Malgun Gothic','Noto Sans KR', Arial, sans-serif; 
    line-height: 1.5; 
    padding: 15px; 
    margin: 0;
    background-color: #dab88b; /* 포스트잇 보드 색상 */
    color: black;
    box-sizing: border-box; /* 추가 */
}
h1 { 
    font-weight: bold; 
    color: #2c3e50; 
    font-size: 24px;
    text-align: center;
    justify-content: center;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
}
.rss-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box; /* 추가 */
}
.rss-container .rss-table { 
    width: calc(25% - 15px); 
    max-width: 280px;
    border: none;
    border-radius: 2px; 
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    background-color: #ffffa0; /* 더 밝은 노란색 */
    position: relative;
    cursor: move;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box; /* 추가 */
}
.rss-container .rss-table:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.rss-container .rss-table * {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.rss-header { 
    background-color: #fef4a0; /* 헤더도 약간 밝게 조정 */
    color: black; 
    padding: 6px 10px;
    display: flex; 
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #e6d974;
}
.rss-title {
    flex: 1;
    margin-right: 8px;
    overflow: hidden;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0; 
}
.rss-icons {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}
.refresh-icon, .color-option {
    margin-left: 4px;
    font-size: 12px;
}
.rss-title a {
    color: black; 
    text-decoration: none;
}
.rss-content { 
    height: 250px;
    overflow-y: auto;
    padding: 8px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--thumb-color) var(--background-color);
}

/* Webkit browsers like Chrome, Safari */
.rss-content::-webkit-scrollbar {
    width: 6px;
}

.rss-content::-webkit-scrollbar-track {
    background: var(--background-color);
}

.rss-content::-webkit-scrollbar-thumb {
    background-color: var(--thumb-color);
    border-radius: 3px;
    border: 2px solid var(--background-color);
}

ul { list-style-type: none; padding: 0; margin: 0; }
li { 
    margin-bottom: 6px;
    padding-bottom: 6px;
    font-size: 12px;
    line-height: 1.3;
    border-bottom: 1px dashed #e6d974;
}
li:last-child {
    border-bottom: none;
}
a { 
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: #3498db; }
.date { 
    color: #555555; 
    font-size: 0.85em;
}
.refresh-icon { 
    cursor: pointer; 
    transition: transform 0.3s ease;
}
.refresh-icon:hover {
    transform: rotate(90deg);
}
.loading {
    display: none;
    text-align: center;
    padding: 8px;
    font-style: italic;
    color: #777777;
    font-size: 12px;
}

/* 데스크톱 (4개 열) */
@media (min-width: 1200px) {
    .rss-container { flex-direction: row; }
    .rss-table { 
        width: calc(25% - 15px); 
        max-width: 280px;
    }
}

/* 태블릿 (3개 열) */
@media (min-width: 992px) and (max-width: 1199px) {
    .rss-container { flex-direction: row; }
    .rss-table { 
        width: calc(33.333% - 15px); 
        max-width: 280px;
    }
}

/* 작은 태블릿 (2개 열) */
@media (min-width: 768px) and (max-width: 991px) {
    .rss-container { flex-direction: row; }
    .rss-table { 
        width: calc(50% - 15px); 
        max-width: none;
    }
}

/* 모바일 (1개 열) */
@media (max-width: 767px) {
    body { 
        padding: 8px;      
    }
    .rss-container { 
        flex-direction: column; 
        padding: 0;
        width: 100%; /* 컨테이너의 너비를 100%로 설정 */
        max-width: 100%; /* 컨테이너의 최대 너비를 100%로 설정 */
    }
    .rss-table { 
        width: 100% !important; 
        max-width: none !important;
        box-sizing: border-box; /* 추가 */
    }
    .rss-title { 
        font-size: 13px; 
    }
    .rss-icons { 
        font-size: 11px; 
    }
    .rss-content { 
        height: 200px; 
    }
    li { 
        font-size: 11px; 
    }
    h1 {
        text-align: left;
        font-size: 18px;
        padding: 5px 0;
        margin-left: 10px;
    }
    #addRssForm {
        flex-direction: column;
        align-items: stretch;
    }
    #addRssForm select, #addRssForm button {
        width: 100%;
        margin: 5px 0;
    }
    .toggle-container {
        margin-top: 10px;
        display: none;
    }
}

#addRssForm {
    margin-bottom: 15px;
    text-align: center;
    background-color: transparent;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#addRssForm select, #addRssForm button {
    margin: 4px;
    padding: 4px 8px;
    border: 1px solid #e6d974;
    border-radius: 3px;
    background-color: #fffbaf;
    color: black;
    font-family: 'Malgun Gothic', 'Noto Sans KR', Arial, sans-serif;
    font-size: 12px;
}
#addRssForm select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%;
    background-size: 0.65em auto;
    padding-right: 1.5em;
    scrollbar-width: thin;
    scrollbar-color: #e6d974 #fffbaf;
}
#addRssForm select::-webkit-scrollbar {
    width: 6px;
}

#addRssForm select::-webkit-scrollbar-track {
    background: #fffbaf;
}

#addRssForm select::-webkit-scrollbar-thumb {
    background-color: #e6d974;
    border-radius: 3px;
    border: 2px solid #fffbaf;
}
#addRssForm select::-ms-expand {
    display: none;
}
#addRssForm button {
    cursor: pointer;
    background-color: #fef4a0;
    transition: background-color 0.3s ease;
}
#addRssForm button:hover {
    background-color: #e6d974;
}
/* 옵션 스타일링을 위한 추가 CSS */
#addRssForm select option {
    background-color: #fffbaf;
    color: black;
}

.ui-sortable-placeholder {
    visibility: visible !important;
    background-color: var(--background-color) !important;
    border: 2px dashed var(--thumb-color) !important;
    border-radius: 2px;
    box-shadow: none !important;
}

.color-option {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
    border: 1px solid #ccc;
}
.color-yellow { background-color: #ffffa0; } /* 더 밝은 노란색 */
.color-blue { background-color: #b4e4ff; }
.color-green { background-color: #ccffc1; }

/* 토글 버튼 스타일 */
.toggle-container {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;  /* 크기 줄임 */
    height: 22px; /* 크기 줄임 */
    margin-right: 5px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; /* 크기 줄임 */
    width: 18px;  /* 크기 줄임 */
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(18px); /* 이동 거리 조정 */
}

.slider.round {
    border-radius: 22px;
}

.slider.round:before {
    border-radius: 50%;
}

.toggle-container span {
    font-size: 12px;
    color: black;
}

/* 3D 효과 클래스 */
.rss-table.effect-3d {
    transform: rotate(-0.7deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rss-table.effect-3d:nth-child(even) {
    transform: rotate(0.7deg);
}

.rss-table.effect-3d:hover {
    transform: rotate(0) scale(1.01);
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.close-icon {
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
    color: #555;
    transition: color 0.3s ease;
}

.close-icon:hover {
    color: #ff0000;
}

/* 새로 추가된 Google 로그인 버튼 관련 스타일 */
h1 {
    position: relative;
    text-align: center;
    padding: 10px 0;
    font-size: 24px;
}

h1 .google-btn-login {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    background-color: #4285f4;
    border-radius: 2px;
    box-shadow: 0 3px 4px 0 rgba(0,0,0,.25);
    display: inline-flex;
    align-items: center;
}

h1 .google-btn-login:hover {
    box-shadow: 0 0 6px #4285f4;
}

h1 .google-btn-login:active {
    background: #1669F2;
}

h1 #google-signin-button a {
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

h1 .google-icon-wrapper {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1px;
}

h1 .google-icon {
    width: 18px;
    height: 18px;
}

h1 .btn-text {
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.2px;
    font-family: "Roboto", sans-serif;
    padding-left: 10px;
    padding-right: 10px;
}


/* 새로 추가된 Google 로그아웃 버튼 관련 스타일 */

h1 .google-btn-logout {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    background-color: #bbbbbb;
    border-radius: 2px;
    box-shadow: 0 3px 4px 0 rgba(0,0,0,.25);
    display: inline-flex;
    align-items: center;
}

h1 .google-btn-logout:hover {
    box-shadow: 0 0 6px #eeeeee;
}

h1 .google-btn-logout:active {
    background: #aaaaaa;
}

h1 #google-signout-button a {
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}
