@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #4A90E2;
    --secondary-color: #FF6B6B;
    --text-color: #2C3E50;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* 기본 스타일 */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    background: var(--background-gradient);
}

.game-background {
    min-height: 100vh;
    padding: 20px;
}

/* 헤더 스타일 */
header {
    background: linear-gradient(45deg, #FF416C, #FF4B2B);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 헤더 상단 네비게이션 */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.back-button {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: transform 0.2s;
}

.back-button:hover {
    transform: translateX(-3px);
    color: white;
}

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

.header-buttons {
    display: flex;
    align-items: center;
}

.copy-url-button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.copy-url-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

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

.game-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.game-title i {
    font-size: 2.5rem;
}

.title-text {
    font-size: 2.5rem;
    font-weight: bold;
}

.title-text span {
    color: #FFD700;
}

.game-info {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* 캐릭터 스타일 */
.game-character {
    text-align: center;
    margin-bottom: 30px;
}

.game-character img {
    width: 120px;
    height: 120px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* 카드 스타일 */
.game-card {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.card {
    width: 500px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-content {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

/* 카운트다운 스타일 */
.countdown {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    display: none;
}

.countdown-number {
    font-size: 5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

/* 푸터 스타일 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

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

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

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-menu a {
    color: #ddd;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-menu a:hover {
    color: white;
    text-decoration: underline;
}

.copyright-container {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

    .game-info {
        font-size: 1rem;
    }

    .card {
        width: 450px;
        height: 350px;
    }

    .card-content {
        font-size: 2.5rem;
    }

    .game-character img {
        width: 100px;
        height: 100px;
    }

    .countdown-number {
        font-size: 5rem;
    }

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

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

    .footer-menu {
        flex-direction: column;
        align-items: center;
    }

    .footer-menu a {
        margin: 5px 0;
    }

    .copy-url-text {
        display: none;
    }

    .back-button span {
        display: none;
    }

    .header-top {
        margin-bottom: 10px;
    }
}

@media (max-width: 500px) {
    .card {
        width: 90%;
        height: 250px;
    }

    .card-content {
        font-size: 2rem;
        padding: 15px;
    }
}