/* NEW Color Palette from the image */
:root {
    --sea-main: #D95D39;      /* Terracotta Red */
    --sea-dark: #54251A;      /* Deep Brownish Red */
    --accent-yellow: #FFD166; /* Warm Golden Yellow */
    --accent-coral: #F4A261;  /* Soft Orange */
    --accent-pink: #C83E36;   /* Deep Brick Red */
    --bg-light: #FFF5EB;      /* Warm Cream */
}

body {
    background-color: var(--bg-light);
    color: var(--sea-dark);
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

/* Fun, artistic fonts */
.font-brand {
    font-family: 'Pacifico', cursive;
}

.font-body {
    font-family: 'Quicksand', sans-serif;
}

/* Background and Text Colors */
.bg-sea-main { background-color: var(--bg-main); }
.bg-sea-dark { background-color: var(--sea-dark); }
.bg-accent-yellow { background-color: var(--accent-yellow); }
.bg-accent-coral { background-color: var(--accent-coral); }
.bg-accent-pink { background-color: var(--accent-pink); }
.bg-light { background-color: var(--bg-light); }
.text-light { color: var(--bg-light); }
.text-dark { color: var(--sea-dark); }
.text-coral { color: var(--accent-coral); }
.text-yellow { color: var(--accent-yellow); }

/* Funky link underline animation */
.header-link {
    position: relative;
    padding-bottom: 6px;
    text-decoration: none;
    transition: color 0.4s ease;
}
.header-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--accent-yellow);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.header-link:hover::after {
    width: 110%;
}

/* Eye-catching navigation button */
.nav-button {
    background-color: var(--accent-coral);
    color: var(--bg-light) !important; /* Use important to override other link colors */
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    font-weight: 700;
}
.nav-button:hover {
    background-color: var(--accent-pink);
    transform: scale(1.05);
}


/* Card floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Stagger animation delays for multiple cards */
.past-edition-card:nth-child(2) .float-anim, .team-card:nth-child(2) .float-anim { animation-delay: 2s; }
.past-edition-card:nth-child(3) .float-anim, .team-card:nth-child(3) .float-anim { animation-delay: 4s; }
.team-card:nth-child(4) .float-anim { animation-delay: 1s; }
.team-card:nth-child(5) .float-anim { animation-delay: 3s; }
.team-card:nth-child(6) .float-anim { animation-delay: 5s; }
.team-card:nth-child(7) .float-anim { animation-delay: 2s; }
.team-card:nth-child(8) .float-anim { animation-delay: 4s; }


/* Custom style for the flipbook container on read.html */
#flipbook_container {
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.2);
    height: 85vh; 
    border: 4px solid white;
}

.theme-background {
    position: relative;
    isolation: isolate;
    background-color: var(--sea-dark);
}

.theme-background::before  {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/phoenix.svg") center / cover no-repeat;
    background-position: left -100px top -400px;
    z-index: -1;
    opacity: 0.35;
    animation:
        float-in 2.0s ease-out forwards;
}

@media (max-width: 768px) {
    .theme-background::before {
        background-size: auto 75%;
        background-position: center top 50px   ;
    }
}

@keyframes float-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.35;
    }
}