/* Pretendard 웹폰트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* 공통 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 기존 컬러 */
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --accent-color: #FF9800;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #333;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    
    /* 새로운 컬러 팔레트 */
    --sky-blue: #BCD5EB;
    --alaskan-blue: #6FAAD2;
    --deep-blue: #557DBA;
    --purple: #A4A8C3;
    --mint: #5DCBC8;
    --yellow: #E3CD81;
    --gray: #A3AEA8;
    --ivory: #F1F0EC;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* CommonBox 스타일 */
.common-box {
    background-color: var(--ivory);
    border-radius: 15px;
    box-shadow: 4px 4px 4px 2px rgba(163, 174, 168, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.common-box:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 6px 3px rgba(163, 174, 168, 0.35);
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* 버튼 스타일 */
.back-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.back-btn:hover {
    background-color: #1976D2;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: #757575;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #616161;
}

/* 유틸리티 클래스 */
.hidden {
    display: none !important;
}

/* 모달 팝업 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-box {
    background-color: var(--ivory);
    border-radius: 15px;
    box-shadow: 4px 4px 4px 2px rgba(163, 174, 168, 0.25);
    padding: 40px 50px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-overlay.show .modal-box {
    transform: scale(1);
}

.modal-content {
    margin-bottom: 30px;
}

.modal-text {
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #000000;
    line-height: 1.6;
    white-space: pre-line;
    margin: 0;
}

.modal-button {
    background-color: var(--yellow);
    color: #000000;
    border: none;
    border-radius: 10px;
    padding: 12px 40px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 2px 1px rgba(163, 174, 168, 0.2);
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 4px 2px rgba(163, 174, 168, 0.3);
}

.modal-button:active {
    transform: translateY(0);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 15px;
    }
}
