body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    position: relative;
}

.price-tab {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.session-title {
    text-align: center;
    margin-bottom: 40px;
}

.row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.product-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    width: 300px;
    margin: 10px;
}

.product-box:hover {
    transform: translateY(-10px);
}

.product-popular {
    background-color: #16a085;
    color: white;
    padding: 10px 0;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
}

.product-price {
    margin: 20px 0;
}

.price-amount {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.term {
    font-size: 14px;
    color: #777;
}

.max-translation {
    font-size: 14px;
    color: #555;
}

.product-features {
    margin: 20px 0;
}

.product-features ul {
    list-style-type: none;
    padding: 0;
}

.product-features li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.product-order {
    margin-top: 20px;
}

.btn-success {
    background-color: #16a085;
    border-color: #16a085;
    font-size: 16px;
    padding: 10px 20px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.btn-success:hover {
    background-color: #138d75;
    border-color: #138d75;
}

/* 로딩 화면 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
}

.overlay.active {
    display: flex;
}

.loading-message {
    color: white;
    font-size: 18px;
}

/* 사용자 정보 및 로그아웃 */
.user-info {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
}

.user-info img {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    cursor: pointer;
}

/* 구독 조회 버튼 */
#subscriptionHistoryButton {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
}

#subscriptionHistoryButton:hover {
    background-color: #2980b9;
}


/* subscription.css 파일에 추가 */
.price-tab {
    padding: 60px 0;
    background-color: #f9f9f9;
    margin-top: 100px;
    /* 헤더 높이만큼의 여백을 추가 */
}

/* 추가된 CSS */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* 헤더를 상위 레이어로 배치 */
}

/* 구독 유형 높이 줄이기 */
.product-box {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.2s;
}

.product-box:hover {
    transform: translateY(-5px);
}

/* 구독 페이지의 기존 스타일 */
.price-tab {
    padding: 60px 0;
    background-color: #f9f9f9;
    margin-top: 100px;
    /* 헤더 높이만큼 마진 추가 */
}

/* 다운로드 섹션 스타일 */
.download-container {
    padding: 40px 0;
    background-color: #f1f1f1;
    text-align: center;
}

.download-description {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn-download {
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: #218838;
}

/* 기존 CSS 유지하면서 관련 부분만 수정 */

.row {
    display: flex;
    justify-content: center;
    /* space-around에서 center로 변경 */
    flex-wrap: wrap;
    gap: 20px;
    /* 박스 간 간격을 일정하게 설정 */
    max-width: 1400px;
    /* 전체 너비 제한 */
    margin: 0 auto;
    /* 가운데 정렬 */
}

.product-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    width: calc(25% - 30px);
    /* 4개 박스가 들어갈 수 있도록 너비 조정 */
    min-width: 250px;
    /* 최소 너비 설정 */
    margin: 0;
    /* 기존 마진 제거, gap으로 대체 */
}

/* 반응형 처리 추가 */
@media (max-width: 1400px) {
    .product-box {
        width: calc(33.333% - 30px);
        /* 3개씩 */
    }
}

@media (max-width: 1100px) {
    .product-box {
        width: calc(50% - 30px);
        /* 2개씩 */
    }
}

@media (max-width: 768px) {
    .product-box {
        width: calc(100% - 30px);
        /* 1개씩 */
    }
}


.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #16a085;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.loading-detail {
    font-size: 14px;
    color: #666;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}