@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* 각 페이지의 CSS 파일 상단에 추가 */
.content-wrapper {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.content-wrapper.ready {
    opacity: 1;
    visibility: visible;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader.hidden {
    display: none;
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: none;
}

.modal-overlay.show .modal-content {
    opacity: 1;
}

.modal-content h2 {
    font-size: 2.5rem;
    margin: 50px 0;
    color: #212529;
    text-align: center;
    font-weight: 600;
}

.guide-item {
    margin: 20px 0;
    padding: 20px;
    border-radius: 15px;
    background: #fff;
    transition: all 0.2s ease-in-out;
}

.guide-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.guide-item h3 {
    color: #212529;
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 600;
}

.guide-item p {
    font-size: 1.5rem;
    color: #212529;
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffe0e0, #ffeaea);
    color: #212529;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 1.5rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.1);
}

.close-btn:hover {
    background: linear-gradient(135deg, #ffd1d1, #ffe0e0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

/* 다크모드 스타일 */
body.dark-mode .modal-content {
    background: #1e1e1e;  /* 다크모드 배경색 직접 지정 */
    color: #fff;
    box-shadow: none;
}

body.dark-mode .modal-content h2 {
    color: #fff;
}

body.dark-mode .modal-content h3 {
    color: #e1e1e1;
}

body.dark-mode .modal-content p {
    color: #ccc;
}

body.dark-mode .close-btn {
    background: linear-gradient(135deg, #ff4d4d, #ff6b6b);
    color: #fff;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.2);
}

body.dark-mode .close-btn:hover {
    background: linear-gradient(135deg, #ff3333, #ff5252);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* 고대비 모드 스타일 */
body.high-contrast .modal-content {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
}

body.high-contrast .modal-content h2,
body.high-contrast .modal-content h3,
body.high-contrast .modal-content p {
    color: #fff;
}

body.high-contrast .close-btn {
    background: #000;
    color: #fff;
    border: 2px solid #ff0000;
}

body.high-contrast .close-btn:hover {
    background: #ff0000;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 2rem;
    }

    .guide-item h3 {
        font-size: 1.5rem;
    }

    .guide-item p {
        font-size: 1.2rem;
    }

    .close-btn {
        font-size: 1.2rem;
    }
}

.tooltip {
    padding-top: 8px;
    margin-top: 4px;
}

.tooltip-container {
    padding: 8px;
    position: relative;
}

/* 다크모드 스타일 수정 */
body.dark-mode .guide-item {
    background: #1e1e1e;  /* 배경색을 어둡게 변경 */
}

body.dark-mode .guide-item:hover {
    transform: translateY(-2px);
    background: #2d2d2d;  /* 호버 시 배경색 약간 밝게 */
}

body.dark-mode .guide-item h3 {
    color: #e1e1e1;
}

body.dark-mode .guide-item p {
    color: #ccc;
}

/* 고대비 모드 스타일도 함께 수정 */
body.high-contrast .guide-item {
    background: #000;
    border: 2px solid #fff;
    box-shadow: none;
}

body.high-contrast .guide-item:hover {
    background: #333;
}

/* 다크모드에서도 동일한 어두운 배경 유지 */
body.dark-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.85);
}