/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f9f3ff;
    color: #333;
    line-height: 1.6;
}

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

/* 공통 스타일 */
a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* 헤더 */
header {
    background-color: #8e44ad;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-family: 'Jua', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 사이트 주소 복사 버튼 */
.copy-url-button {
    background-color: #7d3c98;
    border: none;
    color: white;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 10px;
    transition: background-color 0.2s;
}

.copy-url-button:hover {
    background-color: #6a1b9a;
}

.copy-url-button i {
    margin-right: 5px;
}

/* 앱 설치 버튼 (기존 스타일 추가) */
.install-button {
    background-color: #7d3c98;
    border: none;
    color: white;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 10px;
    transition: background-color 0.2s;
}

.install-button:hover {
    background-color: #6a1b9a;
}

.install-button i {
    margin-right: 5px;
}

/* 헤더 버튼 그룹 */
.header-buttons {
    display: flex;
    align-items: center;
}

/* 메뉴 오버레이 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 101;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 메인 메뉴 */
.main-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: white;
    z-index: 102;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.main-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #8e44ad;
    color: white;
    font-family: 'Jua', sans-serif;
    font-size: 1.2rem;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.main-menu ul {
    list-style: none;
    padding: 10px 0;
}

.main-menu li {
    margin-bottom: 5px;
}

.main-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    transition: background-color 0.2s;
}

.main-menu a:hover {
    background-color: #f0e6f7;
}

.main-menu i {
    width: 24px;
    margin-right: 10px;
    color: #8e44ad;
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, #9b59b6 0%, #6a1b9a 100%);
    color: white;
    text-align: center;
    padding: 100px 20px 60px;
}

.hero h1 {
    font-family: 'Jua', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero .highlight {
    color: #ffeb3b;
    font-size: 3rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.cta-button:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
}

.cta-button i {
    margin-left: 8px;
}

/* 펄스 애니메이션 */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* 메인 콘텐츠 */
main {
    padding: 40px 0;
}

/* 섹션 헤더 */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #e1d0f0;
    padding-bottom: 10px;
}

.section-header i {
    font-size: 1.8rem;
    color: #8e44ad;
    margin-right: 10px;
}

.section-header h2 {
    font-family: 'Jua', sans-serif;
    font-size: 1.8rem;
    color: #6a1b9a;
}

/* 게임 그리드 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* 게임 카드 */
.game-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5722;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 2;
}

.card-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 15px;
    text-align: center;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #8e44ad;
    font-family: 'Jua', sans-serif;
}

.card-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    height: 40px;
}

.btn-play {
    display: inline-block;
    background-color: #8e44ad;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.game-card:hover .btn-play {
    background-color: #ff9800;
}

.btn-play i {
    margin-left: 5px;
}

/* 파티 팁 섹션 */
.party-tips {
    margin-top: 20px;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tip-card {
    background-color: white;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.tip-card i {
    font-size: 2.5rem;
    color: #8e44ad;
    margin-bottom: 15px;
}

.tip-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Jua', sans-serif;
}

.tip-card p {
    font-size: 0.9rem;
    color: #666;
}

/* 푸터 */
footer {
    background-color: #8e44ad;
    color: white;
    padding: 25px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: white;
    font-size: 1.3rem;
    margin-left: 15px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 1;
}

/* 컨페티 효과 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5; /* 컨텐츠 위에 표시되도록 z-index 값 증가 */
    overflow: hidden; /* 넘치는 요소 숨김 */
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f0f;
    opacity: 0.7;
    pointer-events: none;
    will-change: transform; /* 애니메이션 성능 최적화 */
}

/* URL 복사 알림 */
.url-copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s;
}

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

    .hero .highlight {
        font-size: 2.3rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        margin-top: 15px;
    }

    .social-links a {
        margin: 0 8px;
    }
    
    /* 작은 화면에서 헤더 버튼 조정 */
    /* 모바일에서 앱 설치 아이콘만 숨기고 URL 복사 아이콘은 표시 */
    .install-button i {
        display: none;
    }
    
    /* 모든 버튼의 패딩 유지 */
    .copy-url-button,
    .install-button {
        padding: 6px 12px;
    }
    
    /* 설치 버튼 텍스트는 표시하고, URL 복사 아이콘과 텍스트 모두 표시 */
    .install-text,
    .copy-url-text {
        display: inline;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .tips-container {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 90px 20px 50px;
    }
}