/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    background: 
        radial-gradient(ellipse at top, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
        linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0;
    animation: galaxyFloat 20s ease-in-out infinite;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Galaxy Stars Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, #ffffff, transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, #ffffff, transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent),
        radial-gradient(1px 1px at 200px 60px, #ffffff, transparent),
        radial-gradient(2px 2px at 240px 90px, #ffffff, transparent),
        radial-gradient(1px 1px at 280px 40px, #ffffff, transparent),
        radial-gradient(2px 2px at 320px 70px, #ffffff, transparent),
        radial-gradient(1px 1px at 360px 20px, #ffffff, transparent),
        radial-gradient(2px 2px at 400px 80px, #ffffff, transparent),
        radial-gradient(1px 1px at 440px 50px, #ffffff, transparent),
        radial-gradient(2px 2px at 480px 30px, #ffffff, transparent),
        radial-gradient(1px 1px at 520px 70px, #ffffff, transparent),
        radial-gradient(2px 2px at 560px 90px, #ffffff, transparent),
        radial-gradient(1px 1px at 600px 40px, #ffffff, transparent),
        radial-gradient(2px 2px at 640px 60px, #ffffff, transparent),
        radial-gradient(1px 1px at 680px 20px, #ffffff, transparent),
        radial-gradient(2px 2px at 720px 80px, #ffffff, transparent),
        radial-gradient(1px 1px at 760px 50px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 800px 100px;
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 50px 150px, #ffffff, transparent),
        radial-gradient(1px 1px at 100px 200px, #ffffff, transparent),
        radial-gradient(2px 2px at 150px 250px, #ffffff, transparent),
        radial-gradient(1px 1px at 200px 300px, #ffffff, transparent),
        radial-gradient(2px 2px at 250px 350px, #ffffff, transparent),
        radial-gradient(1px 1px at 300px 400px, #ffffff, transparent),
        radial-gradient(2px 2px at 350px 450px, #ffffff, transparent),
        radial-gradient(1px 1px at 400px 500px, #ffffff, transparent),
        radial-gradient(2px 2px at 450px 550px, #ffffff, transparent),
        radial-gradient(1px 1px at 500px 600px, #ffffff, transparent),
        radial-gradient(2px 2px at 550px 650px, #ffffff, transparent),
        radial-gradient(1px 1px at 600px 700px, #ffffff, transparent),
        radial-gradient(2px 2px at 650px 750px, #ffffff, transparent),
        radial-gradient(1px 1px at 700px 800px, #ffffff, transparent),
        radial-gradient(2px 2px at 750px 850px, #ffffff, transparent),
        radial-gradient(1px 1px at 800px 900px, #ffffff, transparent),
        radial-gradient(2px 2px at 850px 950px, #ffffff, transparent),
        radial-gradient(1px 1px at 900px 1000px, #ffffff, transparent),
        radial-gradient(2px 2px at 950px 1050px, #ffffff, transparent),
        radial-gradient(1px 1px at 1000px 1100px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 1000px 1200px;
    animation: twinkle 6s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.3);
    animation: fadeInDown 1s ease-out;
}

.subtitle {
    font-size: 1.2rem;
    color: #e8e8e8;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4), 0 0 10px rgba(255,255,255,0.2);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Fortune Section */
.fortune-section {
    text-align: center;
    margin-bottom: 40px;
}

.fortune-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.4), 0 0 15px rgba(255,255,255,0.3);
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Card Styles */
.card-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.card {
    width: 300px;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px;
}

.card-front {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
    color: white;
    transform: rotateY(0deg);
}

.card-back {
    color: white;
    transform: rotateY(180deg);
}

.card-back-content {
    text-align: center;
}

.card-back-content i {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.card-back-content p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.card-back-content small {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Quote Content */
.quote-content {
    text-align: center;
    width: 100%;
    /* background: rgba(255, 255, 255, 0.9); */
    /* padding: 30px; */
    padding: 20px;
    border-radius: 15px;
    /* backdrop-filter: blur(10px); */
}

.quote-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
    animation: fadeIn 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.5);
    /* backdrop-filter: blur(10px); */
    /* background: rgba(255, 255, 255, 0.9); */
}

.quote-category {
    text-transform: uppercase;
    background: rgba(255,255,255,0.2);
    padding: 4px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: inline-block;
    animation: slideInUp 0.8s ease-out 0.2s both;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4), 0 0 8px rgba(255,255,255,0.6);
    backdrop-filter: blur(5px);
}



/* Buttons Section */
.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.9s both;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-family: 'Prompt', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    color: white;
}

.btn-tertiary {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

/* Footer */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 1s ease-out 1.2s both;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4), 0 0 10px rgba(255,255,255,0.2);
}

.logo i {
    color: #fd79a8;
    font-size: 1.5rem;
}

.hashtag-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.hashtag-link:hover {
    color: #e84393;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #e8e8e8;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.social-link:hover {
    color: #fd79a8;
}

/* Confetti */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fd79a8;
    animation: confetti-fall 3s linear forwards;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .card {
        width: 280px;
        height: 380px;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .fortune-title {
        font-size: 1.3rem;
    }
    
    .card {
        width: 260px;
        height: 360px;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Galaxy Animations */
@keyframes galaxyFloat {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    25% {
        background-position: 2% 1%, 1% 2%, 1% 1%, 2% 2%;
    }
    50% {
        background-position: 1% 2%, 2% 1%, 2% 2%, 1% 1%;
    }
    75% {
        background-position: 2% 2%, 1% 1%, 1% 2%, 2% 1%;
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
} 