/* Body and HTML styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #fff0f5;
    color: #333;
    font-family: 'Arial', sans-serif;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(90deg, #ff9a9e, #fecfef, #fecf45);
    border-bottom: 3px solid #ffb347;
}

.navbar-brand, .nav-link {
    color: #fff !important;
    font-weight: bold;
}
.nav-link.active {
    background-color: rgba(255, 175, 189, 0.2);
    border-radius: 5px;
}

/* Jumbotron Styling */
.jumbotron {
    background: linear-gradient(135deg, #fbc2eb 60%, #a6c1ee);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    padding: 40px 20px;
    border-bottom: 5px solid #fecf45;
}
.jumbotron h1 {
    font-size: 3rem;
    font-weight: bold;
}
.jumbotron p {
    font-size: 1.5rem;
    margin-top: 20px;
}

/* Page Heading Styles */
h2 {
    color: #ff6f61;
    font-weight: bold;
}

.container {
    font-size: 1.1rem;
    color: #555;
}

/* Footer Styles */
footer {
    background: linear-gradient(90deg, #ff9a9e 30%, #fecfef 90%);
    color: #fff;
    padding: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
footer p {
    font-size: 1rem;
    margin: 0;
}

/* Additional inline styles */
.alert {
    text-align: center;
    font-weight: bold;
}

.img-responsive {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.container {
    margin-top: 30px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Highlighted active navigation link styles */
nav .nav-link.active {
    font-weight: bold;
    color: #f8f9fa;
    background-color: #495057;
    border-radius: 4px;
}

/* Confetti Button Styling */
#confetti-trigger {
    background: linear-gradient(90deg, #F0A8D0, #FFC6C6);
    color: #39FF14;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#confetti-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Confetti Styling */
.confetti {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    background-color: hotpink;
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
}

/* Week 4 Custom Styles */
.bg-orchid {
    background-color: #CC99CC;
}
.bg-orange {
    background-color: #FF9900;
}
.tarot-card {
    width: 200px;
    height: 280px;
    perspective: 1000px;
    position: relative;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

.tarot-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-front {
    background: radial-gradient(circle at center, #fde2ff 0%, #caa6f4 100%);
    overflow: hidden;
    position: relative;
}

.card-front::before {
    content: "✨";
    font-size: 2.5rem;
    position: absolute;
    animation: twinkle 3s infinite ease-in-out;
    opacity: 0.5;
    color: #fff;
}

.card-front::after {
    content: "🌙";
    font-size: 2rem;
    position: absolute;
    top: 10%;
    left: 10%;
    animation: twinkle 4s infinite ease-in-out;
    opacity: 0.4;
    color: #fff;
}

@keyframes twinkle {
    0%, 100% {
        transform: translate(-10%, -10%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(10%, 10%) scale(1.2);
        opacity: 1;
    }
}

.card-back {
    transform: rotateY(180deg);
    flex-direction: column;
    background-color: #fff0f5;
}

.suit-img {
    width: 100px;
    height: 100px;
}

.suit-message {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0 8px;
    color: #444;
    text-align: center;
}

@media (max-width: 576px) {
    .tarot-card {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
